2 # From configure.in Revision: 1.466 .
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-rcs-ids compile-in RCS identifiers
759 Options to Specify How Manpages are Installed:
760 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
761 optionally formatted/catonly, e.g., gzip,formatted
762 --with-manpage-renames specify manpage-renaming
763 --with-manpage-aliases specify manpage-aliases using .so
764 --with-manpage-symlinks specify manpage-aliases using symlinks
765 --with-manpage-tbl specify manpage processing with tbl
767 --disable-ext-funcs disable function-extensions
768 --enable-sp-funcs disable experimental SCREEN-extensions
769 --enable-const compile with extra/non-standard const
770 --enable-ext-colors compile for 256-color support
771 --enable-ext-mouse compile for extended mouse-encoding
772 --enable-no-padding compile with $NCURSES_NO_PADDING code
773 --enable-signed-char compile using signed Boolean's in term.h
774 --enable-sigwinch compile with SIGWINCH handler
775 --enable-tcap-names compile with user-definable terminal capabilities
777 --without-develop disable development options
778 --enable-hard-tabs compile with hard-tabs code
779 --enable-xmc-glitch compile with support for xmc (magic-cookie)
781 --disable-assumed-color do not assume anything about default-colors
782 --disable-hashmap compile without hashmap scrolling-optimization
783 --enable-colorfgbg compile with $COLORFGBG code
784 --with-pthread use POSIX thread library
785 --enable-weak-symbols enable weak-symbols for pthreads
786 --enable-reentrant compile with experimental reentrant code
787 --enable-safe-sprintf compile with experimental safe-sprintf code
788 --disable-scroll-hints compile without scroll-hints code
789 --enable-wgetch-events compile with experimental wgetch-events code
790 Testing/development Options:
791 --enable-echo build: display "compiling" commands (default)
792 --enable-warnings build: turn on GCC compiler warnings
793 --enable-assertions test: turn on generation of assertion code
794 --with-dmalloc test: use Gray Watson's dmalloc library
795 --with-dbmalloc test: use Conor Cahill's dbmalloc library
796 --with-valgrind test: use valgrind
797 --disable-leaks test: free permanent memory, analyze leaks
798 --enable-expanded test: generate functions for certain macros
799 --disable-macros test: use functions rather than macros
800 --with-trace test: add trace() function to all models of ncurses
801 Ada95 Binding Options:
802 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
803 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
804 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
806 Some influential environment variables:
807 CC C compiler command
808 CFLAGS C compiler flags
809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
810 nonstandard directory <lib dir>
811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
812 headers in a nonstandard directory <include dir>
814 CXX C++ compiler command
815 CXXFLAGS C++ compiler flags
816 CXXCPP C++ preprocessor
818 Use these variables to override the choices made by `configure' or to help
819 it to find libraries and programs with nonstandard names/locations.
824 if test "$ac_init_help" = "recursive"; then
825 # If there are subdirs, report their specific --help.
827 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
829 # A "../" for each directory in /$ac_subdir.
830 ac_dots=`echo $ac_subdir |
831 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
834 .) # No --srcdir option. We are building in place.
835 ac_sub_srcdir=$srcdir ;;
836 [\\/]* | ?:[\\/]* ) # Absolute path.
837 ac_sub_srcdir=$srcdir/$ac_subdir ;;
839 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
842 # Check for guested configure; otherwise get Cygnus style configure.
843 if test -f $ac_sub_srcdir/configure.gnu; then
845 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
846 elif test -f $ac_sub_srcdir/configure; then
848 $SHELL $ac_sub_srcdir/configure --help=recursive
849 elif test -f $ac_sub_srcdir/configure.ac ||
850 test -f $ac_sub_srcdir/configure.in; then
854 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
860 test -n "$ac_init_help" && exit 0
861 if $ac_init_version; then
864 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
865 Free Software Foundation, Inc.
866 This configure script is free software; the Free Software Foundation
867 gives unlimited permission to copy, distribute and modify it.
873 This file contains any messages produced by compilers while
874 running configure, to aid debugging if configure makes a mistake.
876 It was created by $as_me, which was
877 generated by GNU Autoconf 2.52.20081225. Invocation command line was
888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
900 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
917 # Keep a trace of the command line.
918 # Strip out --no-create and --no-recursion so they do not pile up.
919 # Also quote any args containing shell meta-characters.
925 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926 | --no-cr | --no-c) ;;
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
929 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
930 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
931 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
933 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
936 # Get rid of the leading space.
939 # When interrupted or exit'd, cleanup temporary files, and complete
940 # config.log. We remove comments because anyway the quotes in there
941 # would cause problems or look ugly.
943 # Save into config.log some information that might help in debugging.
945 echo "## ----------------- ##" >&5
946 echo "## Cache variables. ##" >&5
947 echo "## ----------------- ##" >&5
949 # The following way of writing the cache mishandles newlines in values,
952 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
955 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
960 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
964 sed "/^$/d" confdefs.h >conftest.log
965 if test -s conftest.log; then
967 echo "## ------------ ##" >&5
968 echo "## confdefs.h. ##" >&5
969 echo "## ------------ ##" >&5
974 test "$ac_signal" != 0 &&
975 echo "$as_me: caught signal $ac_signal" >&5
976 echo "$as_me: exit $exit_status" >&5
977 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
980 for ac_signal in 1 2 13 15; do
981 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
985 # confdefs.h avoids OS command line length limits that DEFS can exceed.
986 rm -rf conftest* confdefs.h
987 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
990 # Let the site file select an alternate cache file if it wants to.
991 # Prefer explicitly selected file to automatically selected ones.
992 if test -z "$CONFIG_SITE"; then
993 if test "x$prefix" != xNONE; then
994 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
996 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
999 for ac_site_file in $CONFIG_SITE; do
1000 if test -r "$ac_site_file"; then
1001 { echo "$as_me:1001: loading site script $ac_site_file" >&5
1002 echo "$as_me: loading site script $ac_site_file" >&6;}
1003 cat "$ac_site_file" >&5
1008 if test -r "$cache_file"; then
1009 # Some versions of bash will fail to source /dev/null (special
1010 # files actually), so we avoid doing that.
1011 if test -f "$cache_file"; then
1012 { echo "$as_me:1012: loading cache $cache_file" >&5
1013 echo "$as_me: loading cache $cache_file" >&6;}
1015 [\\/]* | ?:[\\/]* ) . $cache_file;;
1016 *) . ./$cache_file;;
1020 { echo "$as_me:1020: creating cache $cache_file" >&5
1021 echo "$as_me: creating cache $cache_file" >&6;}
1025 # Check that the precious variables saved in the cache have kept the same
1027 ac_cache_corrupted=false
1028 for ac_var in `(set) 2>&1 |
1029 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1031 eval ac_new_set=\$ac_env_${ac_var}_set
1032 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1033 eval ac_new_val="\$ac_env_${ac_var}_value"
1034 case $ac_old_set,$ac_new_set in
1036 { echo "$as_me:1036: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1037 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1038 ac_cache_corrupted=: ;;
1040 { echo "$as_me:1040: error: \`$ac_var' was not set in the previous run" >&5
1041 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1042 ac_cache_corrupted=: ;;
1045 if test "x$ac_old_val" != "x$ac_new_val"; then
1046 { echo "$as_me:1046: error: \`$ac_var' has changed since the previous run:" >&5
1047 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1048 { echo "$as_me:1048: former value: $ac_old_val" >&5
1049 echo "$as_me: former value: $ac_old_val" >&2;}
1050 { echo "$as_me:1050: current value: $ac_new_val" >&5
1051 echo "$as_me: current value: $ac_new_val" >&2;}
1052 ac_cache_corrupted=:
1055 # Pass precious variables to config.status. It doesn't matter if
1056 # we pass some twice (in addition to the command line arguments).
1057 if test "$ac_new_set" = set; then
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1061 ac_configure_args="$ac_configure_args '$ac_arg'"
1063 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1068 if $ac_cache_corrupted; then
1069 { echo "$as_me:1069: error: changes in the environment can compromise the build" >&5
1070 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1071 { { echo "$as_me:1071: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1072 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1073 { (exit 1); exit 1; }; }
1077 ac_cpp='$CPP $CPPFLAGS'
1078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1081 ac_main_return=return
1083 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1084 *c*,-n*) ECHO_N= ECHO_C='
1086 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1087 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1089 echo "#! $SHELL" >conftest.sh
1090 echo "exit 0" >>conftest.sh
1091 chmod +x conftest.sh
1092 if { (echo "$as_me:1092: PATH=\".;.\"; conftest.sh") >&5
1093 (PATH=".;."; conftest.sh) 2>&5
1095 echo "$as_me:1095: \$? = $ac_status" >&5
1096 (exit $ac_status); }; then
1097 ac_path_separator=';'
1101 PATH_SEPARATOR="$ac_path_separator"
1104 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1108 echo "$as_me:1108: checking for egrep" >&5
1109 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1110 if test "${ac_cv_prog_egrep+set}" = set; then
1111 echo $ECHO_N "(cached) $ECHO_C" >&6
1113 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1114 then ac_cv_prog_egrep='grep -E'
1115 else ac_cv_prog_egrep='egrep'
1118 echo "$as_me:1118: result: $ac_cv_prog_egrep" >&5
1119 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1120 EGREP=$ac_cv_prog_egrep
1122 test -z "$EGREP" && { { echo "$as_me:1122: error: No egrep program found" >&5
1123 echo "$as_me: error: No egrep program found" >&2;}
1124 { (exit 1); exit 1; }; }
1126 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1127 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1128 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1129 cf_cv_abi_version=${NCURSES_MAJOR}
1130 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1131 cf_cv_timestamp=`date`
1132 echo "$as_me:1132: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1133 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1135 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1137 # Check whether --with-rel-version or --without-rel-version was given.
1138 if test "${with_rel_version+set}" = set; then
1139 withval="$with_rel_version"
1140 { echo "$as_me:1140: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1141 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1142 cf_cv_rel_version=$withval
1145 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1146 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1148 if test -n "$NCURSES_MAJOR" ; then
1149 case $NCURSES_MAJOR in #(vi
1153 { { echo "$as_me:1153: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1154 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1155 { (exit 1); exit 1; }; }
1159 { { echo "$as_me:1159: error: Release major-version value is empty" >&5
1160 echo "$as_me: error: Release major-version value is empty" >&2;}
1161 { (exit 1); exit 1; }; }
1164 if test -n "$NCURSES_MINOR" ; then
1165 case $NCURSES_MINOR in #(vi
1169 { { echo "$as_me:1169: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1170 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1171 { (exit 1); exit 1; }; }
1175 { { echo "$as_me:1175: error: Release minor-version value is empty" >&5
1176 echo "$as_me: error: Release minor-version value is empty" >&2;}
1177 { (exit 1); exit 1; }; }
1180 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1182 # Check whether --with-abi-version or --without-abi-version was given.
1183 if test "${with_abi_version+set}" = set; then
1184 withval="$with_abi_version"
1185 { echo "$as_me:1185: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1186 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1187 cf_cv_abi_version=$withval
1190 if test -n "$cf_cv_abi_version" ; then
1191 case $cf_cv_abi_version in #(vi
1195 { { echo "$as_me:1195: error: ABI version is not a number: $cf_cv_abi_version" >&5
1196 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1197 { (exit 1); exit 1; }; }
1201 { { echo "$as_me:1201: error: ABI version value is empty" >&5
1202 echo "$as_me: error: ABI version value is empty" >&2;}
1203 { (exit 1); exit 1; }; }
1207 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1208 if test -f $ac_dir/install-sh; then
1210 ac_install_sh="$ac_aux_dir/install-sh -c"
1212 elif test -f $ac_dir/install.sh; then
1214 ac_install_sh="$ac_aux_dir/install.sh -c"
1216 elif test -f $ac_dir/shtool; then
1218 ac_install_sh="$ac_aux_dir/shtool install -c"
1222 if test -z "$ac_aux_dir"; then
1223 { { echo "$as_me:1223: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1224 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1225 { (exit 1); exit 1; }; }
1227 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1228 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1229 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1231 # Make sure we can run config.sub.
1232 $ac_config_sub sun4 >/dev/null 2>&1 ||
1233 { { echo "$as_me:1233: error: cannot run $ac_config_sub" >&5
1234 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1235 { (exit 1); exit 1; }; }
1237 echo "$as_me:1237: checking build system type" >&5
1238 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1239 if test "${ac_cv_build+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 ac_cv_build_alias=$build_alias
1243 test -z "$ac_cv_build_alias" &&
1244 ac_cv_build_alias=`$ac_config_guess`
1245 test -z "$ac_cv_build_alias" &&
1246 { { echo "$as_me:1246: error: cannot guess build type; you must specify one" >&5
1247 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1248 { (exit 1); exit 1; }; }
1249 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1250 { { echo "$as_me:1250: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1251 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1252 { (exit 1); exit 1; }; }
1255 echo "$as_me:1255: result: $ac_cv_build" >&5
1256 echo "${ECHO_T}$ac_cv_build" >&6
1258 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1259 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1260 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262 echo "$as_me:1262: checking host system type" >&5
1263 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1264 if test "${ac_cv_host+set}" = set; then
1265 echo $ECHO_N "(cached) $ECHO_C" >&6
1267 ac_cv_host_alias=$host_alias
1268 test -z "$ac_cv_host_alias" &&
1269 ac_cv_host_alias=$ac_cv_build_alias
1270 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1271 { { echo "$as_me:1271: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1272 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1273 { (exit 1); exit 1; }; }
1276 echo "$as_me:1276: result: $ac_cv_host" >&5
1277 echo "${ECHO_T}$ac_cv_host" >&6
1279 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1280 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1281 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1283 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1284 echo "$as_me:1284: checking target system type" >&5
1285 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1286 if test "${ac_cv_target+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1289 ac_cv_target_alias=$target_alias
1290 test "x$ac_cv_target_alias" = "x" &&
1291 ac_cv_target_alias=$ac_cv_host_alias
1292 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1293 { { echo "$as_me:1293: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1294 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1295 { (exit 1); exit 1; }; }
1298 echo "$as_me:1298: result: $ac_cv_target" >&5
1299 echo "${ECHO_T}$ac_cv_target" >&6
1300 target=$ac_cv_target
1301 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1302 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1303 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1305 # The aliases save the names the user supplied, while $host etc.
1306 # will get canonicalized.
1307 test -n "$target_alias" &&
1308 test "$program_prefix$program_suffix$program_transform_name" = \
1310 program_prefix=${target_alias}-
1311 system_name="$host_os"
1313 system_name="`(uname -s -r) 2>/dev/null`"
1314 if test -z "$system_name" ; then
1315 system_name="`(hostname) 2>/dev/null`"
1318 test -n "$system_name" && cat >>confdefs.h <<EOF
1319 #define SYSTEM_NAME "$system_name"
1322 if test "${cf_cv_system_name+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 cf_cv_system_name="$system_name"
1328 test -z "$system_name" && system_name="$cf_cv_system_name"
1329 test -n "$cf_cv_system_name" && echo "$as_me:1329: result: Configuring for $cf_cv_system_name" >&5
1330 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1332 if test ".$system_name" != ".$cf_cv_system_name" ; then
1333 echo "$as_me:1333: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1334 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1335 { { echo "$as_me:1335: error: \"Please remove config.cache and try again.\"" >&5
1336 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1337 { (exit 1); exit 1; }; }
1340 # Check whether --with-system-type or --without-system-type was given.
1341 if test "${with_system_type+set}" = set; then
1342 withval="$with_system_type"
1343 { echo "$as_me:1343: WARNING: overriding system type to $withval" >&5
1344 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1345 cf_cv_system_name=$withval
1348 ### Save the given $CFLAGS to allow user-override.
1349 cf_user_CFLAGS="$CFLAGS"
1351 ### Default install-location
1353 echo "$as_me:1353: checking for prefix" >&5
1354 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1355 if test "x$prefix" = "xNONE" ; then
1356 case "$cf_cv_system_name" in
1357 # non-vendor systems don't have a conflict
1358 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1361 *) prefix=$ac_default_prefix
1365 echo "$as_me:1365: result: $prefix" >&5
1366 echo "${ECHO_T}$prefix" >&6
1368 if test "x$prefix" = "xNONE" ; then
1369 echo "$as_me:1369: checking for default include-directory" >&5
1370 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1371 test -n "$verbose" && echo 1>&6
1374 $includedir/ncurses \
1376 $prefix/include/ncurses \
1377 /usr/local/include \
1378 /usr/local/include/ncurses \
1380 /usr/include/ncurses
1382 cf_dir=`eval echo $cf_symbol`
1383 if test -f $cf_dir/curses.h ; then
1384 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1385 includedir="$cf_symbol"
1386 test -n "$verbose" && echo $ac_n " found " 1>&6
1390 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1392 echo "$as_me:1392: result: $includedir" >&5
1393 echo "${ECHO_T}$includedir" >&6
1396 ### Checks for programs.
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 ac_main_return=return
1403 if test -n "$ac_tool_prefix"; then
1404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1406 echo "$as_me:1406: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1414 ac_save_IFS=$IFS; IFS=$ac_path_separator
1416 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 $as_executable_p "$ac_dir/$ac_word" || continue
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1428 if test -n "$CC"; then
1429 echo "$as_me:1429: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1432 echo "$as_me:1432: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1439 # Extract the first word of "gcc", so it can be a program name with args.
1440 set dummy gcc; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 ac_save_IFS=$IFS; IFS=$ac_path_separator
1451 for ac_dir in $ac_dummy; do
1453 test -z "$ac_dir" && ac_dir=.
1454 $as_executable_p "$ac_dir/$ac_word" || continue
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464 echo "$as_me:1464: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1467 echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1476 if test -z "$CC"; then
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}cc; ac_word=$2
1480 echo "$as_me:1480: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 ac_save_IFS=$IFS; IFS=$ac_path_separator
1490 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 $as_executable_p "$ac_dir/$ac_word" || continue
1494 ac_cv_prog_CC="${ac_tool_prefix}cc"
1495 echo "$as_me:1495: found $ac_dir/$ac_word" >&5
1502 if test -n "$CC"; then
1503 echo "$as_me:1503: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1506 echo "$as_me:1506: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1511 if test -z "$ac_cv_prog_CC"; then
1513 # Extract the first word of "cc", so it can be a program name with args.
1514 set dummy cc; ac_word=$2
1515 echo "$as_me:1515: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$ac_ct_CC"; then
1521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523 ac_save_IFS=$IFS; IFS=$ac_path_separator
1525 for ac_dir in $ac_dummy; do
1527 test -z "$ac_dir" && ac_dir=.
1528 $as_executable_p "$ac_dir/$ac_word" || continue
1529 ac_cv_prog_ac_ct_CC="cc"
1530 echo "$as_me:1530: found $ac_dir/$ac_word" >&5
1536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1537 if test -n "$ac_ct_CC"; then
1538 echo "$as_me:1538: result: $ac_ct_CC" >&5
1539 echo "${ECHO_T}$ac_ct_CC" >&6
1541 echo "$as_me:1541: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1551 if test -z "$CC"; then
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:1554: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 if test -n "$CC"; then
1560 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 ac_save_IFS=$IFS; IFS=$ac_path_separator
1565 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 $as_executable_p "$ac_dir/$ac_word" || continue
1569 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1570 ac_prog_rejected=yes
1574 echo "$as_me:1574: found $ac_dir/$ac_word" >&5
1578 if test $ac_prog_rejected = yes; then
1579 # We found a bogon in the path, so make sure we never use it.
1580 set dummy $ac_cv_prog_CC
1582 if test $# != 0; then
1583 # We chose a different compiler from the bogus one.
1584 # However, it has the same basename, so the bogon will be chosen
1585 # first if we set CC to just the basename; use the full file name.
1587 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1595 if test -n "$CC"; then
1596 echo "$as_me:1596: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1599 echo "$as_me:1599: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1604 if test -z "$CC"; then
1605 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1610 echo "$as_me:1610: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 ac_save_IFS=$IFS; IFS=$ac_path_separator
1620 for ac_dir in $ac_dummy; do
1622 test -z "$ac_dir" && ac_dir=.
1623 $as_executable_p "$ac_dir/$ac_word" || continue
1624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1625 echo "$as_me:1625: found $ac_dir/$ac_word" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:1633: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:1636: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1640 test -n "$CC" && break
1643 if test -z "$CC"; then
1647 # Extract the first word of "$ac_prog", so it can be a program name with args.
1648 set dummy $ac_prog; ac_word=$2
1649 echo "$as_me:1649: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 ac_save_IFS=$IFS; IFS=$ac_path_separator
1659 for ac_dir in $ac_dummy; do
1661 test -z "$ac_dir" && ac_dir=.
1662 $as_executable_p "$ac_dir/$ac_word" || continue
1663 ac_cv_prog_ac_ct_CC="$ac_prog"
1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:1672: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:1675: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1679 test -n "$ac_ct_CC" && break
1687 test -z "$CC" && { { echo "$as_me:1687: error: no acceptable cc found in \$PATH" >&5
1688 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1689 { (exit 1); exit 1; }; }
1691 # Provide some information about the compiler.
1692 echo "$as_me:1692:" \
1693 "checking for C compiler version" >&5
1694 ac_compiler=`set X $ac_compile; echo $2`
1695 { (eval echo "$as_me:1695: \"$ac_compiler --version </dev/null >&5\"") >&5
1696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700 { (eval echo "$as_me:1700: \"$ac_compiler -v </dev/null >&5\"") >&5
1701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:1705: \"$ac_compiler -V </dev/null >&5\"") >&5
1706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line 1712 "configure"
1713 #include "confdefs.h"
1723 ac_clean_files_save=$ac_clean_files
1724 ac_clean_files="$ac_clean_files a.out a.exe"
1725 # Try to create an executable without -o first, disregard a.out.
1726 # It will help us diagnose broken compilers, and finding out an intuition
1728 echo "$as_me:1728: checking for C compiler default output" >&5
1729 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1730 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1731 if { (eval echo "$as_me:1731: \"$ac_link_default\"") >&5
1732 (eval $ac_link_default) 2>&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); }; then
1736 # Find the output, starting from the most likely. This scheme is
1737 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1739 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1740 ls a.out conftest 2>/dev/null;
1741 ls a.* conftest.* 2>/dev/null`; do
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1744 a.out ) # We found the default executable, but exeext='' is most
1747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1748 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1755 echo "$as_me: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1757 { { echo "$as_me:1757: error: C compiler cannot create executables" >&5
1758 echo "$as_me: error: C compiler cannot create executables" >&2;}
1759 { (exit 77); exit 77; }; }
1762 ac_exeext=$ac_cv_exeext
1763 echo "$as_me:1763: result: $ac_file" >&5
1764 echo "${ECHO_T}$ac_file" >&6
1766 # Check the compiler produces executables we can run. If not, either
1767 # the compiler is broken, or we cross compile.
1768 echo "$as_me:1768: checking whether the C compiler works" >&5
1769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1771 # If not cross compiling, check that we can run a simple program.
1772 if test "$cross_compiling" != yes; then
1773 if { ac_try='./$ac_file'
1774 { (eval echo "$as_me:1774: \"$ac_try\"") >&5
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); }; }; then
1781 if test "$cross_compiling" = maybe; then
1784 { { echo "$as_me:1784: error: cannot run C compiled programs.
1785 If you meant to cross compile, use \`--host'." >&5
1786 echo "$as_me: error: cannot run C compiled programs.
1787 If you meant to cross compile, use \`--host'." >&2;}
1788 { (exit 1); exit 1; }; }
1792 echo "$as_me:1792: result: yes" >&5
1793 echo "${ECHO_T}yes" >&6
1795 rm -f a.out a.exe conftest$ac_cv_exeext
1796 ac_clean_files=$ac_clean_files_save
1797 # Check the compiler produces executables we can run. If not, either
1798 # the compiler is broken, or we cross compile.
1799 echo "$as_me:1799: checking whether we are cross compiling" >&5
1800 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1801 echo "$as_me:1801: result: $cross_compiling" >&5
1802 echo "${ECHO_T}$cross_compiling" >&6
1804 echo "$as_me:1804: checking for executable suffix" >&5
1805 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1806 if { (eval echo "$as_me:1806: \"$ac_link\"") >&5
1807 (eval $ac_link) 2>&5
1809 echo "$as_me:1809: \$? = $ac_status" >&5
1810 (exit $ac_status); }; then
1811 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1812 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1813 # work properly (i.e., refer to `conftest.exe'), while it won't with
1815 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1818 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1825 { { echo "$as_me:1825: error: cannot compute EXEEXT: cannot compile and link" >&5
1826 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1827 { (exit 1); exit 1; }; }
1830 rm -f conftest$ac_cv_exeext
1831 echo "$as_me:1831: result: $ac_cv_exeext" >&5
1832 echo "${ECHO_T}$ac_cv_exeext" >&6
1834 rm -f conftest.$ac_ext
1835 EXEEXT=$ac_cv_exeext
1837 echo "$as_me:1837: checking for object suffix" >&5
1838 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1839 if test "${ac_cv_objext+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 cat >conftest.$ac_ext <<_ACEOF
1843 #line 1843 "configure"
1844 #include "confdefs.h"
1854 rm -f conftest.o conftest.obj
1855 if { (eval echo "$as_me:1855: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>&5
1858 echo "$as_me:1858: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1862 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868 echo "$as_me: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1870 { { echo "$as_me:1870: error: cannot compute OBJEXT: cannot compile" >&5
1871 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1872 { (exit 1); exit 1; }; }
1875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1877 echo "$as_me:1877: result: $ac_cv_objext" >&5
1878 echo "${ECHO_T}$ac_cv_objext" >&6
1879 OBJEXT=$ac_cv_objext
1881 echo "$as_me:1881: checking whether we are using the GNU C compiler" >&5
1882 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1883 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1901 rm -f conftest.$ac_objext
1902 if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5
1903 (eval $ac_compile) 2>&5
1905 echo "$as_me:1905: \$? = $ac_status" >&5
1906 (exit $ac_status); } &&
1907 { ac_try='test -s conftest.$ac_objext'
1908 { (eval echo "$as_me:1908: \"$ac_try\"") >&5
1911 echo "$as_me:1911: \$? = $ac_status" >&5
1912 (exit $ac_status); }; }; then
1915 echo "$as_me: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1919 rm -f conftest.$ac_objext conftest.$ac_ext
1920 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1923 echo "$as_me:1923: result: $ac_cv_c_compiler_gnu" >&5
1924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1925 GCC=`test $ac_compiler_gnu = yes && echo yes`
1926 ac_test_CFLAGS=${CFLAGS+set}
1927 ac_save_CFLAGS=$CFLAGS
1929 echo "$as_me:1929: checking whether $CC accepts -g" >&5
1930 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1931 if test "${ac_cv_prog_cc_g+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line 1935 "configure"
1936 #include "confdefs.h"
1946 rm -f conftest.$ac_objext
1947 if { (eval echo "$as_me:1947: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1950 echo "$as_me:1950: \$? = $ac_status" >&5
1951 (exit $ac_status); } &&
1952 { ac_try='test -s conftest.$ac_objext'
1953 { (eval echo "$as_me:1953: \"$ac_try\"") >&5
1956 echo "$as_me:1956: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1960 echo "$as_me: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1964 rm -f conftest.$ac_objext conftest.$ac_ext
1966 echo "$as_me:1966: result: $ac_cv_prog_cc_g" >&5
1967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968 if test "$ac_test_CFLAGS" = set; then
1969 CFLAGS=$ac_save_CFLAGS
1970 elif test $ac_cv_prog_cc_g = yes; then
1971 if test "$GCC" = yes; then
1977 if test "$GCC" = yes; then
1983 # Some people use a C++ compiler to compile C. Since we use `exit',
1984 # in C++ we need to declare it. In case someone uses the same compiler
1985 # for both compiling C and C++ we need to have the C++ compiler decide
1986 # the declaration of exit, since it's the most demanding environment.
1987 cat >conftest.$ac_ext <<_ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:1993: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -s conftest.$ac_objext'
1999 { (eval echo "$as_me:1999: \"$ac_try\"") >&5
2002 echo "$as_me:2002: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2004 for ac_declaration in \
2006 '#include <stdlib.h>' \
2007 'extern "C" void std::exit (int) throw (); using std::exit;' \
2008 'extern "C" void std::exit (int); using std::exit;' \
2009 'extern "C" void exit (int) throw ();' \
2010 'extern "C" void exit (int);' \
2013 cat >conftest.$ac_ext <<_ACEOF
2014 #line 2014 "configure"
2015 #include "confdefs.h"
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:2027: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:2033: \"$ac_try\"") >&5
2036 echo "$as_me:2036: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 echo "$as_me: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2044 rm -f conftest.$ac_objext conftest.$ac_ext
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line 2046 "configure"
2047 #include "confdefs.h"
2057 rm -f conftest.$ac_objext
2058 if { (eval echo "$as_me:2058: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>&5
2061 echo "$as_me:2061: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:2064: \"$ac_try\"") >&5
2067 echo "$as_me:2067: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2071 echo "$as_me: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2074 rm -f conftest.$ac_objext conftest.$ac_ext
2077 if test -n "$ac_declaration"; then
2078 echo '#ifdef __cplusplus' >>confdefs.h
2079 echo $ac_declaration >>confdefs.h
2080 echo '#endif' >>confdefs.h
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 rm -f conftest.$ac_objext conftest.$ac_ext
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 ac_main_return=return
2096 if test "$GCC" = yes ; then
2097 echo "$as_me:2097: checking version of $CC" >&5
2098 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2099 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2100 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2101 echo "$as_me:2101: result: $GCC_VERSION" >&5
2102 echo "${ECHO_T}$GCC_VERSION" >&6
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110 ac_main_return=return
2111 echo "$as_me:2111: checking how to run the C preprocessor" >&5
2112 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2113 # On Suns, sometimes $CPP names a directory.
2114 if test -n "$CPP" && test -d "$CPP"; then
2117 if test -z "$CPP"; then
2118 if test "${ac_cv_prog_CPP+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 # Double quotes because CPP needs to be expanded
2122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2125 for ac_c_preproc_warn_flag in '' yes
2127 # Use a header file that comes with gcc, so configuring glibc
2128 # with a fresh cross-compiler works.
2129 # On the NeXT, cc -E runs the code through the compiler's parser,
2130 # not just through cpp. "Syntax error" is here to catch this case.
2131 cat >conftest.$ac_ext <<_ACEOF
2132 #line 2132 "configure"
2133 #include "confdefs.h"
2137 if { (eval echo "$as_me:2137: \"$ac_cpp conftest.$ac_ext\"") >&5
2138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2140 egrep -v '^ *\+' conftest.er1 >conftest.err
2142 cat conftest.err >&5
2143 echo "$as_me:2143: \$? = $ac_status" >&5
2144 (exit $ac_status); } >/dev/null; then
2145 if test -s conftest.err; then
2146 ac_cpp_err=$ac_c_preproc_warn_flag
2153 if test -z "$ac_cpp_err"; then
2156 echo "$as_me: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2158 # Broken: fails on valid input.
2161 rm -f conftest.err conftest.$ac_ext
2163 # OK, works on sane cases. Now check whether non-existent headers
2164 # can be detected and how.
2165 cat >conftest.$ac_ext <<_ACEOF
2166 #line 2166 "configure"
2167 #include "confdefs.h"
2168 #include <ac_nonexistent.h>
2170 if { (eval echo "$as_me:2170: \"$ac_cpp conftest.$ac_ext\"") >&5
2171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2173 egrep -v '^ *\+' conftest.er1 >conftest.err
2175 cat conftest.err >&5
2176 echo "$as_me:2176: \$? = $ac_status" >&5
2177 (exit $ac_status); } >/dev/null; then
2178 if test -s conftest.err; then
2179 ac_cpp_err=$ac_c_preproc_warn_flag
2186 if test -z "$ac_cpp_err"; then
2187 # Broken: success on invalid input.
2190 echo "$as_me: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2192 # Passes both tests.
2196 rm -f conftest.err conftest.$ac_ext
2199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2200 rm -f conftest.err conftest.$ac_ext
2201 if $ac_preproc_ok; then
2213 echo "$as_me:2213: result: $CPP" >&5
2214 echo "${ECHO_T}$CPP" >&6
2216 for ac_c_preproc_warn_flag in '' yes
2218 # Use a header file that comes with gcc, so configuring glibc
2219 # with a fresh cross-compiler works.
2220 # On the NeXT, cc -E runs the code through the compiler's parser,
2221 # not just through cpp. "Syntax error" is here to catch this case.
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #line 2223 "configure"
2224 #include "confdefs.h"
2228 if { (eval echo "$as_me:2228: \"$ac_cpp conftest.$ac_ext\"") >&5
2229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2231 egrep -v '^ *\+' conftest.er1 >conftest.err
2233 cat conftest.err >&5
2234 echo "$as_me:2234: \$? = $ac_status" >&5
2235 (exit $ac_status); } >/dev/null; then
2236 if test -s conftest.err; then
2237 ac_cpp_err=$ac_c_preproc_warn_flag
2244 if test -z "$ac_cpp_err"; then
2247 echo "$as_me: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2249 # Broken: fails on valid input.
2252 rm -f conftest.err conftest.$ac_ext
2254 # OK, works on sane cases. Now check whether non-existent headers
2255 # can be detected and how.
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line 2257 "configure"
2258 #include "confdefs.h"
2259 #include <ac_nonexistent.h>
2261 if { (eval echo "$as_me:2261: \"$ac_cpp conftest.$ac_ext\"") >&5
2262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2264 egrep -v '^ *\+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:2267: \$? = $ac_status" >&5
2268 (exit $ac_status); } >/dev/null; then
2269 if test -s conftest.err; then
2270 ac_cpp_err=$ac_c_preproc_warn_flag
2277 if test -z "$ac_cpp_err"; then
2278 # Broken: success on invalid input.
2281 echo "$as_me: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 # Passes both tests.
2287 rm -f conftest.err conftest.$ac_ext
2290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2291 rm -f conftest.err conftest.$ac_ext
2292 if $ac_preproc_ok; then
2295 { { echo "$as_me:2295: error: C preprocessor \"$CPP\" fails sanity check" >&5
2296 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2297 { (exit 1); exit 1; }; }
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 ac_main_return=return
2307 if test $ac_cv_c_compiler_gnu = yes; then
2308 echo "$as_me:2308: checking whether $CC needs -traditional" >&5
2309 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2310 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 ac_pattern="Autoconf.*'x'"
2314 cat >conftest.$ac_ext <<_ACEOF
2315 #line 2315 "configure"
2316 #include "confdefs.h"
2318 int Autoconf = TIOCGETP;
2320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2321 egrep "$ac_pattern" >/dev/null 2>&1; then
2322 ac_cv_prog_gcc_traditional=yes
2324 ac_cv_prog_gcc_traditional=no
2328 if test $ac_cv_prog_gcc_traditional = no; then
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line 2330 "configure"
2331 #include "confdefs.h"
2333 int Autoconf = TCGETA;
2335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2336 egrep "$ac_pattern" >/dev/null 2>&1; then
2337 ac_cv_prog_gcc_traditional=yes
2343 echo "$as_me:2343: result: $ac_cv_prog_gcc_traditional" >&5
2344 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2345 if test $ac_cv_prog_gcc_traditional = yes; then
2346 CC="$CC -traditional"
2350 echo "$as_me:2350: checking whether $CC understands -c and -o together" >&5
2351 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2352 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat > conftest.$ac_ext <<CF_EOF
2360 ${cf_cv_main_return:-return}(0);
2363 # We do the test twice because some compilers refuse to overwrite an
2364 # existing .o file with -o, though they will create one.
2365 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2366 if { (eval echo "$as_me:2366: \"$ac_try\"") >&5
2369 echo "$as_me:2369: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 test -f conftest2.$ac_objext && { (eval echo "$as_me:2371: \"$ac_try\"") >&5
2374 echo "$as_me:2374: \$? = $ac_status" >&5
2375 (exit $ac_status); };
2377 eval cf_cv_prog_CC_c_o=yes
2379 eval cf_cv_prog_CC_c_o=no
2384 if test $cf_cv_prog_CC_c_o = yes; then
2385 echo "$as_me:2385: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6
2388 echo "$as_me:2388: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2392 echo "$as_me:2392: checking for POSIXized ISC" >&5
2393 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2394 if test -d /etc/conf/kconfig.d &&
2395 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2397 echo "$as_me:2397: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6
2399 ISC=yes # If later tests want to check for ISC.
2401 cat >>confdefs.h <<\EOF
2402 #define _POSIX_SOURCE 1
2405 if test "$GCC" = yes; then
2411 echo "$as_me:2411: result: no" >&5
2412 echo "${ECHO_T}no" >&6
2416 echo "$as_me:2416: checking for ${CC-cc} option to accept ANSI C" >&5
2417 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2418 if test "${cf_cv_ansi_cc+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cf_save_CFLAGS="$CFLAGS"
2424 cf_save_CPPFLAGS="$CPPFLAGS"
2425 # Don't try gcc -ansi; that turns off useful extensions and
2426 # breaks some systems' header files.
2427 # AIX -qlanglvl=ansi
2428 # Ultrix and OSF/1 -std1
2429 # HP-UX -Aa -D_HPUX_SOURCE
2431 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2432 for cf_arg in "-DCC_HAS_PROTOS" \
2437 "-Aa -D_HPUX_SOURCE" \
2444 cf_new_extra_cppflags=
2446 for cf_add_cflags in $cf_arg
2448 case $cf_fix_cppflags in
2450 case $cf_add_cflags in #(vi
2451 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2452 case $cf_add_cflags in
2454 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2456 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2457 && test -z "${cf_tst_cflags}" \
2458 && cf_fix_cppflags=yes
2460 if test $cf_fix_cppflags = yes ; then
2461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2463 elif test "${cf_tst_cflags}" = "\"'" ; then
2464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470 *$cf_add_cflags) #(vi
2473 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2478 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2483 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2485 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2487 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2488 && test -z "${cf_tst_cflags}" \
2489 && cf_fix_cppflags=no
2494 if test -n "$cf_new_cflags" ; then
2496 CFLAGS="$CFLAGS $cf_new_cflags"
2499 if test -n "$cf_new_cppflags" ; then
2501 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2504 if test -n "$cf_new_extra_cppflags" ; then
2506 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2509 cat >conftest.$ac_ext <<_ACEOF
2510 #line 2510 "configure"
2511 #include "confdefs.h"
2513 #ifndef CC_HAS_PROTOS
2514 #if !defined(__STDC__) || (__STDC__ != 1)
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2530 rm -f conftest.$ac_objext
2531 if { (eval echo "$as_me:2531: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2534 echo "$as_me:2534: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:2537: \"$ac_try\"") >&5
2540 echo "$as_me:2540: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 cf_cv_ansi_cc="$cf_arg"; break
2544 echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2547 rm -f conftest.$ac_objext conftest.$ac_ext
2549 CFLAGS="$cf_save_CFLAGS"
2550 CPPFLAGS="$cf_save_CPPFLAGS"
2553 echo "$as_me:2553: result: $cf_cv_ansi_cc" >&5
2554 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2556 if test "$cf_cv_ansi_cc" != "no"; then
2557 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2562 cf_new_extra_cppflags=
2564 for cf_add_cflags in $cf_cv_ansi_cc
2566 case $cf_fix_cppflags in
2568 case $cf_add_cflags in #(vi
2569 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2570 case $cf_add_cflags in
2572 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2574 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2575 && test -z "${cf_tst_cflags}" \
2576 && cf_fix_cppflags=yes
2578 if test $cf_fix_cppflags = yes ; then
2579 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2581 elif test "${cf_tst_cflags}" = "\"'" ; then
2582 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2588 *$cf_add_cflags) #(vi
2591 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2596 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2603 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2605 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2606 && test -z "${cf_tst_cflags}" \
2607 && cf_fix_cppflags=no
2612 if test -n "$cf_new_cflags" ; then
2614 CFLAGS="$CFLAGS $cf_new_cflags"
2617 if test -n "$cf_new_cppflags" ; then
2619 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2622 if test -n "$cf_new_extra_cppflags" ; then
2624 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2628 cat >>confdefs.h <<\EOF
2629 #define CC_HAS_PROTOS 1
2635 if test "$cf_cv_ansi_cc" = "no"; then
2636 { { echo "$as_me:2636: error: Your compiler does not appear to recognize prototypes.
2637 You have the following choices:
2638 a. adjust your compiler options
2639 b. get an up-to-date compiler
2640 c. use a wrapper such as unproto" >&5
2641 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2642 You have the following choices:
2643 a. adjust your compiler options
2644 b. get an up-to-date compiler
2645 c. use a wrapper such as unproto" >&2;}
2646 { (exit 1); exit 1; }; }
2649 case $cf_cv_system_name in
2651 CFLAGS="$CFLAGS -Zmt"
2652 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2653 CXXFLAGS="$CXXFLAGS -Zmt"
2654 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2655 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2662 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2663 #define PROG_EXT "$PROG_EXT"
2666 if test "$cross_compiling" = yes ; then
2669 case "$cf_cv_system_name" in #(vi
2670 dragonfly*|freebsd*) #(vi
2671 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2673 *) LDPATH=$PATH:/sbin:/usr/sbin
2674 # Extract the first word of "ldconfig", so it can be a program name with args.
2675 set dummy ldconfig; ac_word=$2
2676 echo "$as_me:2676: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2686 ac_save_IFS=$IFS; IFS=$ac_path_separator
2688 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if $as_executable_p "$ac_dir/$ac_word"; then
2692 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2693 echo "$as_me:2693: found $ac_dir/$ac_word" >&5
2701 LDCONFIG=$ac_cv_path_LDCONFIG
2703 if test -n "$LDCONFIG"; then
2704 echo "$as_me:2704: result: $LDCONFIG" >&5
2705 echo "${ECHO_T}$LDCONFIG" >&6
2707 echo "$as_me:2707: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2715 echo "$as_me:2715: checking if you want to ensure bool is consistent with C++" >&5
2716 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2718 # Check whether --with-cxx or --without-cxx was given.
2719 if test "${with_cxx+set}" = set; then
2721 cf_with_cxx=$withval
2725 echo "$as_me:2725: result: $cf_with_cxx" >&5
2726 echo "${ECHO_T}$cf_with_cxx" >&6
2727 if test "X$cf_with_cxx" = Xno ; then
2731 # with autoconf 2.13, we can change the error to a warning:
2733 ac_cpp='$CXXCPP $CPPFLAGS'
2734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2737 ac_main_return=return
2738 if test -n "$ac_tool_prefix"; then
2739 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2743 echo "$as_me:2743: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CXX+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CXX"; then
2749 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2751 ac_save_IFS=$IFS; IFS=$ac_path_separator
2753 for ac_dir in $ac_dummy; do
2755 test -z "$ac_dir" && ac_dir=.
2756 $as_executable_p "$ac_dir/$ac_word" || continue
2757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2758 echo "$as_me:2758: found $ac_dir/$ac_word" >&5
2765 if test -n "$CXX"; then
2766 echo "$as_me:2766: result: $CXX" >&5
2767 echo "${ECHO_T}$CXX" >&6
2769 echo "$as_me:2769: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2773 test -n "$CXX" && break
2776 if test -z "$CXX"; then
2778 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 echo "$as_me:2782: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$ac_ct_CXX"; then
2788 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2790 ac_save_IFS=$IFS; IFS=$ac_path_separator
2792 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 $as_executable_p "$ac_dir/$ac_word" || continue
2796 ac_cv_prog_ac_ct_CXX="$ac_prog"
2797 echo "$as_me:2797: found $ac_dir/$ac_word" >&5
2803 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2804 if test -n "$ac_ct_CXX"; then
2805 echo "$as_me:2805: result: $ac_ct_CXX" >&5
2806 echo "${ECHO_T}$ac_ct_CXX" >&6
2808 echo "$as_me:2808: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2812 test -n "$ac_ct_CXX" && break
2814 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2819 # Provide some information about the compiler.
2820 echo "$as_me:2820:" \
2821 "checking for C++ compiler version" >&5
2822 ac_compiler=`set X $ac_compile; echo $2`
2823 { (eval echo "$as_me:2823: \"$ac_compiler --version </dev/null >&5\"") >&5
2824 (eval $ac_compiler --version </dev/null >&5) 2>&5
2826 echo "$as_me:2826: \$? = $ac_status" >&5
2827 (exit $ac_status); }
2828 { (eval echo "$as_me:2828: \"$ac_compiler -v </dev/null >&5\"") >&5
2829 (eval $ac_compiler -v </dev/null >&5) 2>&5
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); }
2833 { (eval echo "$as_me:2833: \"$ac_compiler -V </dev/null >&5\"") >&5
2834 (eval $ac_compiler -V </dev/null >&5) 2>&5
2836 echo "$as_me:2836: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2839 echo "$as_me:2839: checking whether we are using the GNU C++ compiler" >&5
2840 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2841 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 cat >conftest.$ac_ext <<_ACEOF
2845 #line 2845 "configure"
2846 #include "confdefs.h"
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:2860: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:2866: \"$ac_try\"") >&5
2869 echo "$as_me:2869: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2873 echo "$as_me: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2877 rm -f conftest.$ac_objext conftest.$ac_ext
2878 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2881 echo "$as_me:2881: result: $ac_cv_cxx_compiler_gnu" >&5
2882 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2883 GXX=`test $ac_compiler_gnu = yes && echo yes`
2884 ac_test_CXXFLAGS=${CXXFLAGS+set}
2885 ac_save_CXXFLAGS=$CXXFLAGS
2887 echo "$as_me:2887: checking whether $CXX accepts -g" >&5
2888 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2889 if test "${ac_cv_prog_cxx_g+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line 2893 "configure"
2894 #include "confdefs.h"
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:2905: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>&5
2908 echo "$as_me:2908: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:2911: \"$ac_try\"") >&5
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_cv_prog_cxx_g=yes
2918 echo "$as_me: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2922 rm -f conftest.$ac_objext conftest.$ac_ext
2924 echo "$as_me:2924: result: $ac_cv_prog_cxx_g" >&5
2925 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2926 if test "$ac_test_CXXFLAGS" = set; then
2927 CXXFLAGS=$ac_save_CXXFLAGS
2928 elif test $ac_cv_prog_cxx_g = yes; then
2929 if test "$GXX" = yes; then
2935 if test "$GXX" = yes; then
2941 for ac_declaration in \
2943 '#include <stdlib.h>' \
2944 'extern "C" void std::exit (int) throw (); using std::exit;' \
2945 'extern "C" void std::exit (int); using std::exit;' \
2946 'extern "C" void exit (int) throw ();' \
2947 'extern "C" void exit (int);' \
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line 2951 "configure"
2952 #include "confdefs.h"
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:2964: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:2970: \"$ac_try\"") >&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2981 rm -f conftest.$ac_objext conftest.$ac_ext
2982 cat >conftest.$ac_ext <<_ACEOF
2983 #line 2983 "configure"
2984 #include "confdefs.h"
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:2995: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:3001: \"$ac_try\"") >&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3008 echo "$as_me: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3014 if test -n "$ac_declaration"; then
3015 echo '#ifdef __cplusplus' >>confdefs.h
3016 echo $ac_declaration >>confdefs.h
3017 echo '#endif' >>confdefs.h
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 ac_main_return=return
3027 # autoconf 2.5x removed the error - by hardcoding it to g++.
3028 if test "$CXX" = "g++" ; then
3029 # Extract the first word of "g++", so it can be a program name with args.
3030 set dummy g++; ac_word=$2
3031 echo "$as_me:3031: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_path_CXX+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3041 ac_save_IFS=$IFS; IFS=$ac_path_separator
3043 for ac_dir in $ac_dummy; do
3045 test -z "$ac_dir" && ac_dir=.
3046 if $as_executable_p "$ac_dir/$ac_word"; then
3047 ac_cv_path_CXX="$ac_dir/$ac_word"
3048 echo "$as_me:3048: found $ac_dir/$ac_word" >&5
3058 if test -n "$CXX"; then
3059 echo "$as_me:3059: result: $CXX" >&5
3060 echo "${ECHO_T}$CXX" >&6
3062 echo "$as_me:3062: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3067 if test "$CXX" = "g++" ; then
3068 { echo "$as_me:3068: WARNING: ignoring hardcoded g++" >&5
3069 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3070 cf_with_cxx=no; CXX=""; GXX="";
3075 if test "$GXX" = yes; then
3076 echo "$as_me:3076: checking version of g++" >&5
3077 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3078 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3079 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3080 echo "$as_me:3080: result: $GXX_VERSION" >&5
3081 echo "${ECHO_T}$GXX_VERSION" >&6
3084 case $GXX_VERSION in
3086 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3088 { echo "$as_me:3088: WARNING: templates do not work" >&5
3089 echo "$as_me: WARNING: templates do not work" >&2;}
3093 echo "$as_me:3093: checking if you want to build C++ binding and demo" >&5
3094 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3096 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3097 if test "${with_cxx_binding+set}" = set; then
3098 withval="$with_cxx_binding"
3099 cf_with_cxx_binding=$withval
3101 cf_with_cxx_binding=$cf_with_cxx
3103 echo "$as_me:3103: result: $cf_with_cxx_binding" >&5
3104 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3106 echo "$as_me:3106: checking if you want to build with Ada95" >&5
3107 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3109 # Check whether --with-ada or --without-ada was given.
3110 if test "${with_ada+set}" = set; then
3112 cf_with_ada=$withval
3116 echo "$as_me:3116: result: $cf_with_ada" >&5
3117 echo "${ECHO_T}$cf_with_ada" >&6
3119 echo "$as_me:3119: checking if you want to install manpages" >&5
3120 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3122 # Check whether --with-manpages or --without-manpages was given.
3123 if test "${with_manpages+set}" = set; then
3124 withval="$with_manpages"
3125 cf_with_manpages=$withval
3127 cf_with_manpages=yes
3129 echo "$as_me:3129: result: $cf_with_manpages" >&5
3130 echo "${ECHO_T}$cf_with_manpages" >&6
3132 echo "$as_me:3132: checking if you want to build programs such as tic" >&5
3133 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3135 # Check whether --with-progs or --without-progs was given.
3136 if test "${with_progs+set}" = set; then
3137 withval="$with_progs"
3138 cf_with_progs=$withval
3142 echo "$as_me:3142: result: $cf_with_progs" >&5
3143 echo "${ECHO_T}$cf_with_progs" >&6
3145 echo "$as_me:3145: checking if you wish to install curses.h" >&5
3146 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3148 # Check whether --with-curses-h or --without-curses-h was given.
3149 if test "${with_curses_h+set}" = set; then
3150 withval="$with_curses_h"
3151 with_curses_h=$withval
3155 echo "$as_me:3155: result: $with_curses_h" >&5
3156 echo "${ECHO_T}$with_curses_h" >&6
3158 modules_to_build="ncurses"
3159 if test "X$cf_with_progs" != Xno ; then
3160 modules_to_build="$modules_to_build progs tack"
3162 modules_to_build="$modules_to_build panel menu form"
3164 test "$program_prefix" != NONE &&
3165 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3166 # Use a double $ so make ignores it.
3167 test "$program_suffix" != NONE &&
3168 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3169 # Double any \ or $. echo might interpret backslashes.
3170 # By default was `s,x,x', remove it if useless.
3171 cat <<\_ACEOF >conftest.sed
3172 s/[\\$]/&&/g;s/;s,x,x,$//
3174 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3177 for ac_prog in mawk gawk nawk awk
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 echo "$as_me:3181: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_AWK+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$AWK"; then
3187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3189 ac_save_IFS=$IFS; IFS=$ac_path_separator
3191 for ac_dir in $ac_dummy; do
3193 test -z "$ac_dir" && ac_dir=.
3194 $as_executable_p "$ac_dir/$ac_word" || continue
3195 ac_cv_prog_AWK="$ac_prog"
3196 echo "$as_me:3196: found $ac_dir/$ac_word" >&5
3203 if test -n "$AWK"; then
3204 echo "$as_me:3204: result: $AWK" >&5
3205 echo "${ECHO_T}$AWK" >&6
3207 echo "$as_me:3207: result: no" >&5
3208 echo "${ECHO_T}no" >&6
3211 test -n "$AWK" && break
3214 test -z "$AWK" && { { echo "$as_me:3214: error: No awk program found" >&5
3215 echo "$as_me: error: No awk program found" >&2;}
3216 { (exit 1); exit 1; }; }
3218 echo "$as_me:3218: checking for egrep" >&5
3219 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3220 if test "${ac_cv_prog_egrep+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3224 then ac_cv_prog_egrep='grep -E'
3225 else ac_cv_prog_egrep='egrep'
3228 echo "$as_me:3228: result: $ac_cv_prog_egrep" >&5
3229 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3230 EGREP=$ac_cv_prog_egrep
3232 test -z "$EGREP" && { { echo "$as_me:3232: error: No egrep program found" >&5
3233 echo "$as_me: error: No egrep program found" >&2;}
3234 { (exit 1); exit 1; }; }
3236 # Find a good install program. We prefer a C program (faster),
3237 # so one script is as good as another. But avoid the broken or
3238 # incompatible versions:
3239 # SysV /etc/install, /usr/sbin/install
3240 # SunOS /usr/etc/install
3241 # IRIX /sbin/install
3243 # AmigaOS /C/install, which installs bootblocks on floppy discs
3244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3247 # ./install, which can be erroneously created by make from ./install.sh.
3248 echo "$as_me:3248: checking for a BSD compatible install" >&5
3249 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3250 if test -z "$INSTALL"; then
3251 if test "${ac_cv_path_install+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_save_IFS=$IFS; IFS=$ac_path_separator
3255 for ac_dir in $PATH; do
3257 # Account for people who put trailing slashes in PATH elements.
3259 / | ./ | .// | /cC/* \
3260 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3263 # OSF1 and SCO ODT 3.0 have their own names for install.
3264 # Don't use installbsd from OSF since it installs stuff as root
3266 for ac_prog in ginstall scoinst install; do
3267 if $as_executable_p "$ac_dir/$ac_prog"; then
3268 if test $ac_prog = install &&
3269 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3270 # AIX install. It has an incompatible calling convention.
3272 elif test $ac_prog = install &&
3273 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3274 # program-specific install script used by HP pwplus--don't use.
3277 ac_cv_path_install="$ac_dir/$ac_prog -c"
3287 if test "${ac_cv_path_install+set}" = set; then
3288 INSTALL=$ac_cv_path_install
3290 # As a last resort, use the slow shell script. We don't cache a
3291 # path for INSTALL within a source directory, because that will
3292 # break other packages using the cache if that directory is
3293 # removed, or if the path is relative.
3294 INSTALL=$ac_install_sh
3297 echo "$as_me:3297: result: $INSTALL" >&5
3298 echo "${ECHO_T}$INSTALL" >&6
3300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3301 # It thinks the first close brace ends the variable substitution.
3302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3312 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3313 test -z "$cf_dir" && cf_dir=.
3314 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3318 for ac_prog in tdlint lint alint
3320 # Extract the first word of "$ac_prog", so it can be a program name with args.
3321 set dummy $ac_prog; ac_word=$2
3322 echo "$as_me:3322: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_LINT+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 if test -n "$LINT"; then
3328 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3330 ac_save_IFS=$IFS; IFS=$ac_path_separator
3332 for ac_dir in $ac_dummy; do
3334 test -z "$ac_dir" && ac_dir=.
3335 $as_executable_p "$ac_dir/$ac_word" || continue
3336 ac_cv_prog_LINT="$ac_prog"
3337 echo "$as_me:3337: found $ac_dir/$ac_word" >&5
3343 LINT=$ac_cv_prog_LINT
3344 if test -n "$LINT"; then
3345 echo "$as_me:3345: result: $LINT" >&5
3346 echo "${ECHO_T}$LINT" >&6
3348 echo "$as_me:3348: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3352 test -n "$LINT" && break
3355 echo "$as_me:3355: checking whether ln -s works" >&5
3356 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3358 if test "$LN_S" = "ln -s"; then
3359 echo "$as_me:3359: result: yes" >&5
3360 echo "${ECHO_T}yes" >&6
3362 echo "$as_me:3362: result: no, using $LN_S" >&5
3363 echo "${ECHO_T}no, using $LN_S" >&6
3366 echo "$as_me:3366: checking for long file names" >&5
3367 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3368 if test "${ac_cv_sys_long_file_names+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 ac_cv_sys_long_file_names=yes
3372 # Test for long file names in all the places we know might matter:
3373 # . the current directory, where building will happen
3374 # $prefix/lib where we will be installing things
3375 # $exec_prefix/lib likewise
3376 # eval it to expand exec_prefix.
3377 # $TMPDIR if set, where it might want to write temporary files
3378 # if $TMPDIR is not set:
3379 # /tmp where it might want to write temporary files
3382 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3385 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3387 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3388 test -d $ac_dir || continue
3389 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3390 ac_xdir=$ac_dir/cf$$
3391 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3392 ac_tf1=$ac_xdir/conftest9012345
3393 ac_tf2=$ac_xdir/conftest9012346
3394 (echo 1 >$ac_tf1) 2>/dev/null
3395 (echo 2 >$ac_tf2) 2>/dev/null
3396 ac_val=`cat $ac_tf1 2>/dev/null`
3397 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3398 ac_cv_sys_long_file_names=no
3399 rm -rf $ac_xdir 2>/dev/null
3402 rm -rf $ac_xdir 2>/dev/null
3405 echo "$as_me:3405: result: $ac_cv_sys_long_file_names" >&5
3406 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3407 if test $ac_cv_sys_long_file_names = yes; then
3409 cat >>confdefs.h <<\EOF
3410 #define HAVE_LONG_FILE_NAMES 1
3415 # if we find pkg-config, check if we should install the ".pc" files.
3417 echo "$as_me:3417: checking if you want to use pkg-config" >&5
3418 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3420 # Check whether --with-pkg-config or --without-pkg-config was given.
3421 if test "${with_pkg_config+set}" = set; then
3422 withval="$with_pkg_config"
3423 cf_pkg_config=$withval
3427 echo "$as_me:3427: result: $cf_pkg_config" >&5
3428 echo "${ECHO_T}$cf_pkg_config" >&6
3430 case $cf_pkg_config in #(vi
3435 # Extract the first word of "pkg-config", so it can be a program name with args.
3436 set dummy pkg-config; ac_word=$2
3437 echo "$as_me:3437: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3447 ac_save_IFS=$IFS; IFS=$ac_path_separator
3449 for ac_dir in $ac_dummy; do
3451 test -z "$ac_dir" && ac_dir=.
3452 if $as_executable_p "$ac_dir/$ac_word"; then
3453 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3454 echo "$as_me:3454: found $ac_dir/$ac_word" >&5
3459 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3465 if test -n "$PKG_CONFIG"; then
3466 echo "$as_me:3466: result: $PKG_CONFIG" >&5
3467 echo "${ECHO_T}$PKG_CONFIG" >&6
3469 echo "$as_me:3469: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3479 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3480 if test "$PKG_CONFIG" != none ; then
3482 if test "x$prefix" != xNONE; then
3483 cf_path_syntax="$prefix"
3485 cf_path_syntax="$ac_default_prefix"
3488 case ".$PKG_CONFIG" in #(vi
3489 .\$\(*\)*|.\'*\'*) #(vi
3493 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3496 eval PKG_CONFIG="$PKG_CONFIG"
3497 case ".$PKG_CONFIG" in #(vi
3499 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3504 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3507 { { echo "$as_me:3507: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3508 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3509 { (exit 1); exit 1; }; }
3515 if test "$PKG_CONFIG" != no ; then
3516 echo "$as_me:3516: checking if we should install .pc files for $PKG_CONFIG" >&5
3517 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3519 # Leave this as something that can be overridden in the environment.
3520 if test -z "$PKG_CONFIG_LIBDIR" ; then
3521 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3524 if test -d "$PKG_CONFIG_LIBDIR" ; then
3526 # Check whether --enable-pc-files or --disable-pc-files was given.
3527 if test "${enable_pc_files+set}" = set; then
3528 enableval="$enable_pc_files"
3529 enable_pc_files=$enableval
3533 echo "$as_me:3533: result: $enable_pc_files" >&5
3534 echo "${ECHO_T}$enable_pc_files" >&6
3536 echo "$as_me:3536: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 { echo "$as_me:3538: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3539 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3544 echo "$as_me:3544: checking if we should assume mixed-case filenames" >&5
3545 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3547 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3548 if test "${enable_mixed_case+set}" = set; then
3549 enableval="$enable_mixed_case"
3550 enable_mixedcase=$enableval
3552 enable_mixedcase=auto
3554 echo "$as_me:3554: result: $enable_mixedcase" >&5
3555 echo "${ECHO_T}$enable_mixedcase" >&6
3556 if test "$enable_mixedcase" = "auto" ; then
3558 echo "$as_me:3558: checking if filesystem supports mixed-case filenames" >&5
3559 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3560 if test "${cf_cv_mixedcase+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 if test "$cross_compiling" = yes ; then
3565 case $target_alias in #(vi
3566 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3574 rm -f conftest CONFTEST
3576 if test -f CONFTEST ; then
3581 rm -f conftest CONFTEST
3585 echo "$as_me:3585: result: $cf_cv_mixedcase" >&5
3586 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3587 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3588 #define MIXEDCASE_FILENAMES 1
3592 cf_cv_mixedcase=$enable_mixedcase
3593 if test "$enable_mixedcase" = "yes" ; then
3594 cat >>confdefs.h <<\EOF
3595 #define MIXEDCASE_FILENAMES 1
3601 # do this after mixed-case option (tags/TAGS is not as important as tic).
3602 echo "$as_me:3602: checking whether ${MAKE-make} sets \${MAKE}" >&5
3603 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3605 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 cat >conftest.make <<\EOF
3610 @echo 'ac_maketemp="${MAKE}"'
3612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3613 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3614 if test -n "$ac_maketemp"; then
3615 eval ac_cv_prog_make_${ac_make}_set=yes
3617 eval ac_cv_prog_make_${ac_make}_set=no
3621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3622 echo "$as_me:3622: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6
3626 echo "$as_me:3626: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 SET_MAKE="MAKE=${MAKE-make}"
3631 # Extract the first word of "ctags", so it can be a program name with args.
3632 set dummy ctags; ac_word=$2
3633 echo "$as_me:3633: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test -n "$MAKE_LOWER_TAGS"; then
3639 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3641 ac_save_IFS=$IFS; IFS=$ac_path_separator
3643 for ac_dir in $ac_dummy; do
3645 test -z "$ac_dir" && ac_dir=.
3646 $as_executable_p "$ac_dir/$ac_word" || continue
3647 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3648 echo "$as_me:3648: found $ac_dir/$ac_word" >&5
3652 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3655 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3656 if test -n "$MAKE_LOWER_TAGS"; then
3657 echo "$as_me:3657: result: $MAKE_LOWER_TAGS" >&5
3658 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3660 echo "$as_me:3660: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 if test "$cf_cv_mixedcase" = yes ; then
3665 # Extract the first word of "etags", so it can be a program name with args.
3666 set dummy etags; ac_word=$2
3667 echo "$as_me:3667: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if test -n "$MAKE_UPPER_TAGS"; then
3673 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3675 ac_save_IFS=$IFS; IFS=$ac_path_separator
3677 for ac_dir in $ac_dummy; do
3679 test -z "$ac_dir" && ac_dir=.
3680 $as_executable_p "$ac_dir/$ac_word" || continue
3681 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3682 echo "$as_me:3682: found $ac_dir/$ac_word" >&5
3686 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3689 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3690 if test -n "$MAKE_UPPER_TAGS"; then
3691 echo "$as_me:3691: result: $MAKE_UPPER_TAGS" >&5
3692 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3694 echo "$as_me:3694: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3702 if test "$MAKE_UPPER_TAGS" = yes ; then
3708 if test "$MAKE_LOWER_TAGS" = yes ; then
3714 echo "$as_me:3714: checking for makeflags variable" >&5
3715 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3716 if test "${cf_cv_makeflags+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3723 cat >cf_makeflags.tmp <<CF_EOF
3726 @ echo '.$cf_option'
3728 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3729 case "$cf_result" in
3731 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3732 case "$cf_result" in
3733 .*CC=*) cf_cv_makeflags=
3735 *) cf_cv_makeflags=$cf_option
3741 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3745 rm -f cf_makeflags.tmp
3748 echo "$as_me:3748: result: $cf_cv_makeflags" >&5
3749 echo "${ECHO_T}$cf_cv_makeflags" >&6
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3754 echo "$as_me:3754: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_RANLIB+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test -n "$RANLIB"; then
3760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3762 ac_save_IFS=$IFS; IFS=$ac_path_separator
3764 for ac_dir in $ac_dummy; do
3766 test -z "$ac_dir" && ac_dir=.
3767 $as_executable_p "$ac_dir/$ac_word" || continue
3768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3769 echo "$as_me:3769: found $ac_dir/$ac_word" >&5
3775 RANLIB=$ac_cv_prog_RANLIB
3776 if test -n "$RANLIB"; then
3777 echo "$as_me:3777: result: $RANLIB" >&5
3778 echo "${ECHO_T}$RANLIB" >&6
3780 echo "$as_me:3780: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3785 if test -z "$ac_cv_prog_RANLIB"; then
3786 ac_ct_RANLIB=$RANLIB
3787 # Extract the first word of "ranlib", so it can be a program name with args.
3788 set dummy ranlib; ac_word=$2
3789 echo "$as_me:3789: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 if test -n "$ac_ct_RANLIB"; then
3795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3797 ac_save_IFS=$IFS; IFS=$ac_path_separator
3799 for ac_dir in $ac_dummy; do
3801 test -z "$ac_dir" && ac_dir=.
3802 $as_executable_p "$ac_dir/$ac_word" || continue
3803 ac_cv_prog_ac_ct_RANLIB="ranlib"
3804 echo "$as_me:3804: found $ac_dir/$ac_word" >&5
3808 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3812 if test -n "$ac_ct_RANLIB"; then
3813 echo "$as_me:3813: result: $ac_ct_RANLIB" >&5
3814 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3816 echo "$as_me:3816: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3820 RANLIB=$ac_ct_RANLIB
3822 RANLIB="$ac_cv_prog_RANLIB"
3825 if test -n "$ac_tool_prefix"; then
3826 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3827 set dummy ${ac_tool_prefix}ld; ac_word=$2
3828 echo "$as_me:3828: checking for $ac_word" >&5
3829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830 if test "${ac_cv_prog_LD+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 if test -n "$LD"; then
3834 ac_cv_prog_LD="$LD" # Let the user override the test.
3836 ac_save_IFS=$IFS; IFS=$ac_path_separator
3838 for ac_dir in $ac_dummy; do
3840 test -z "$ac_dir" && ac_dir=.
3841 $as_executable_p "$ac_dir/$ac_word" || continue
3842 ac_cv_prog_LD="${ac_tool_prefix}ld"
3843 echo "$as_me:3843: found $ac_dir/$ac_word" >&5
3850 if test -n "$LD"; then
3851 echo "$as_me:3851: result: $LD" >&5
3852 echo "${ECHO_T}$LD" >&6
3854 echo "$as_me:3854: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3859 if test -z "$ac_cv_prog_LD"; then
3861 # Extract the first word of "ld", so it can be a program name with args.
3862 set dummy ld; ac_word=$2
3863 echo "$as_me:3863: checking for $ac_word" >&5
3864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3865 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 if test -n "$ac_ct_LD"; then
3869 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3871 ac_save_IFS=$IFS; IFS=$ac_path_separator
3873 for ac_dir in $ac_dummy; do
3875 test -z "$ac_dir" && ac_dir=.
3876 $as_executable_p "$ac_dir/$ac_word" || continue
3877 ac_cv_prog_ac_ct_LD="ld"
3878 echo "$as_me:3878: found $ac_dir/$ac_word" >&5
3882 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3885 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3886 if test -n "$ac_ct_LD"; then
3887 echo "$as_me:3887: result: $ac_ct_LD" >&5
3888 echo "${ECHO_T}$ac_ct_LD" >&6
3890 echo "$as_me:3890: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}ar; ac_word=$2
3902 echo "$as_me:3902: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_AR+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$AR"; then
3908 ac_cv_prog_AR="$AR" # Let the user override the test.
3910 ac_save_IFS=$IFS; IFS=$ac_path_separator
3912 for ac_dir in $ac_dummy; do
3914 test -z "$ac_dir" && ac_dir=.
3915 $as_executable_p "$ac_dir/$ac_word" || continue
3916 ac_cv_prog_AR="${ac_tool_prefix}ar"
3917 echo "$as_me:3917: found $ac_dir/$ac_word" >&5
3924 if test -n "$AR"; then
3925 echo "$as_me:3925: result: $AR" >&5
3926 echo "${ECHO_T}$AR" >&6
3928 echo "$as_me:3928: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3933 if test -z "$ac_cv_prog_AR"; then
3935 # Extract the first word of "ar", so it can be a program name with args.
3936 set dummy ar; ac_word=$2
3937 echo "$as_me:3937: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test -n "$ac_ct_AR"; then
3943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3945 ac_save_IFS=$IFS; IFS=$ac_path_separator
3947 for ac_dir in $ac_dummy; do
3949 test -z "$ac_dir" && ac_dir=.
3950 $as_executable_p "$ac_dir/$ac_word" || continue
3951 ac_cv_prog_ac_ct_AR="ar"
3952 echo "$as_me:3952: found $ac_dir/$ac_word" >&5
3956 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3959 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3960 if test -n "$ac_ct_AR"; then
3961 echo "$as_me:3961: result: $ac_ct_AR" >&5
3962 echo "${ECHO_T}$ac_ct_AR" >&6
3964 echo "$as_me:3964: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3973 if test -n "$ac_tool_prefix"; then
3974 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3975 set dummy ${ac_tool_prefix}ar; ac_word=$2
3976 echo "$as_me:3976: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978 if test "${ac_cv_prog_AR+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 if test -n "$AR"; then
3982 ac_cv_prog_AR="$AR" # Let the user override the test.
3984 ac_save_IFS=$IFS; IFS=$ac_path_separator
3986 for ac_dir in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir=.
3989 $as_executable_p "$ac_dir/$ac_word" || continue
3990 ac_cv_prog_AR="${ac_tool_prefix}ar"
3991 echo "$as_me:3991: found $ac_dir/$ac_word" >&5
3998 if test -n "$AR"; then
3999 echo "$as_me:3999: result: $AR" >&5
4000 echo "${ECHO_T}$AR" >&6
4002 echo "$as_me:4002: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4007 if test -z "$ac_cv_prog_AR"; then
4009 # Extract the first word of "ar", so it can be a program name with args.
4010 set dummy ar; ac_word=$2
4011 echo "$as_me:4011: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$ac_ct_AR"; then
4017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4019 ac_save_IFS=$IFS; IFS=$ac_path_separator
4021 for ac_dir in $ac_dummy; do
4023 test -z "$ac_dir" && ac_dir=.
4024 $as_executable_p "$ac_dir/$ac_word" || continue
4025 ac_cv_prog_ac_ct_AR="ar"
4026 echo "$as_me:4026: found $ac_dir/$ac_word" >&5
4030 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4033 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4034 if test -n "$ac_ct_AR"; then
4035 echo "$as_me:4035: result: $ac_ct_AR" >&5
4036 echo "${ECHO_T}$ac_ct_AR" >&6
4038 echo "$as_me:4038: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4047 echo "$as_me:4047: checking for options to update archives" >&5
4048 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4049 if test "${cf_cv_ar_flags+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 cf_cv_ar_flags=unknown
4054 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4056 rm -f conftest.$ac_cv_objext
4059 cat >conftest.$ac_ext <<EOF
4060 #line 4060 "configure"
4061 int testdata[3] = { 123, 456, 789 };
4063 if { (eval echo "$as_me:4063: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4066 echo "$as_me:4066: \$? = $ac_status" >&5
4067 (exit $ac_status); } ; then
4068 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4069 if test -f conftest.a ; then
4070 cf_cv_ar_flags=$cf_ar_flags