2 # From configure.in Revision: 1.464 .
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-const compile with extra/non-standard const
769 --enable-ext-colors compile for 256-color support
770 --enable-ext-mouse compile for extended mouse-encoding
771 --enable-no-padding compile with $NCURSES_NO_PADDING code
772 --enable-signed-char compile using signed Boolean's in term.h
773 --enable-sigwinch compile with SIGWINCH handler
774 --enable-tcap-names compile with user-definable terminal capabilities
776 --without-develop disable development options
777 --enable-hard-tabs compile with hard-tabs code
778 --enable-xmc-glitch compile with support for xmc (magic-cookie)
780 --disable-assumed-color do not assume anything about default-colors
781 --disable-hashmap compile without hashmap scrolling-optimization
782 --enable-colorfgbg compile with $COLORFGBG code
783 --with-pthread use POSIX thread library
784 --enable-weak-symbols enable weak-symbols for pthreads
785 --enable-reentrant compile with experimental reentrant code
786 --enable-safe-sprintf compile with experimental safe-sprintf code
787 --disable-scroll-hints compile without scroll-hints code
788 --enable-wgetch-events compile with experimental wgetch-events code
789 Testing/development Options:
790 --enable-echo build: display "compiling" commands (default)
791 --enable-warnings build: turn on GCC compiler warnings
792 --enable-assertions test: turn on generation of assertion code
793 --with-dmalloc test: use Gray Watson's dmalloc library
794 --with-dbmalloc test: use Conor Cahill's dbmalloc library
795 --with-valgrind test: use valgrind
796 --disable-leaks test: free permanent memory, analyze leaks
797 --enable-expanded test: generate functions for certain macros
798 --disable-macros test: use functions rather than macros
799 --with-trace test: add trace() function to all models of ncurses
800 Ada95 Binding Options:
801 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
802 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
803 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
805 Some influential environment variables:
806 CC C compiler command
807 CFLAGS C compiler flags
808 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
809 nonstandard directory <lib dir>
810 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
811 headers in a nonstandard directory <include dir>
813 CXX C++ compiler command
814 CXXFLAGS C++ compiler flags
815 CXXCPP C++ preprocessor
817 Use these variables to override the choices made by `configure' or to help
818 it to find libraries and programs with nonstandard names/locations.
823 if test "$ac_init_help" = "recursive"; then
824 # If there are subdirs, report their specific --help.
826 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
828 # A "../" for each directory in /$ac_subdir.
829 ac_dots=`echo $ac_subdir |
830 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
833 .) # No --srcdir option. We are building in place.
834 ac_sub_srcdir=$srcdir ;;
835 [\\/]* | ?:[\\/]* ) # Absolute path.
836 ac_sub_srcdir=$srcdir/$ac_subdir ;;
838 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
841 # Check for guested configure; otherwise get Cygnus style configure.
842 if test -f $ac_sub_srcdir/configure.gnu; then
844 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
845 elif test -f $ac_sub_srcdir/configure; then
847 $SHELL $ac_sub_srcdir/configure --help=recursive
848 elif test -f $ac_sub_srcdir/configure.ac ||
849 test -f $ac_sub_srcdir/configure.in; then
853 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
859 test -n "$ac_init_help" && exit 0
860 if $ac_init_version; then
863 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
864 Free Software Foundation, Inc.
865 This configure script is free software; the Free Software Foundation
866 gives unlimited permission to copy, distribute and modify it.
872 This file contains any messages produced by compilers while
873 running configure, to aid debugging if configure makes a mistake.
875 It was created by $as_me, which was
876 generated by GNU Autoconf 2.52.20081225. Invocation command line was
887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
894 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
896 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
897 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
899 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
900 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
901 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
902 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
916 # Keep a trace of the command line.
917 # Strip out --no-create and --no-recursion so they do not pile up.
918 # Also quote any args containing shell meta-characters.
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c) ;;
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
928 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
929 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
930 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
932 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
935 # Get rid of the leading space.
938 # When interrupted or exit'd, cleanup temporary files, and complete
939 # config.log. We remove comments because anyway the quotes in there
940 # would cause problems or look ugly.
942 # Save into config.log some information that might help in debugging.
944 echo "## ----------------- ##" >&5
945 echo "## Cache variables. ##" >&5
946 echo "## ----------------- ##" >&5
948 # The following way of writing the cache mishandles newlines in values,
951 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
954 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
959 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
963 sed "/^$/d" confdefs.h >conftest.log
964 if test -s conftest.log; then
966 echo "## ------------ ##" >&5
967 echo "## confdefs.h. ##" >&5
968 echo "## ------------ ##" >&5
973 test "$ac_signal" != 0 &&
974 echo "$as_me: caught signal $ac_signal" >&5
975 echo "$as_me: exit $exit_status" >&5
976 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
979 for ac_signal in 1 2 13 15; do
980 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
985 rm -rf conftest* confdefs.h
986 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
989 # Let the site file select an alternate cache file if it wants to.
990 # Prefer explicitly selected file to automatically selected ones.
991 if test -z "$CONFIG_SITE"; then
992 if test "x$prefix" != xNONE; then
993 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
995 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
998 for ac_site_file in $CONFIG_SITE; do
999 if test -r "$ac_site_file"; then
1000 { echo "$as_me:1000: loading site script $ac_site_file" >&5
1001 echo "$as_me: loading site script $ac_site_file" >&6;}
1002 cat "$ac_site_file" >&5
1007 if test -r "$cache_file"; then
1008 # Some versions of bash will fail to source /dev/null (special
1009 # files actually), so we avoid doing that.
1010 if test -f "$cache_file"; then
1011 { echo "$as_me:1011: loading cache $cache_file" >&5
1012 echo "$as_me: loading cache $cache_file" >&6;}
1014 [\\/]* | ?:[\\/]* ) . $cache_file;;
1015 *) . ./$cache_file;;
1019 { echo "$as_me:1019: creating cache $cache_file" >&5
1020 echo "$as_me: creating cache $cache_file" >&6;}
1024 # Check that the precious variables saved in the cache have kept the same
1026 ac_cache_corrupted=false
1027 for ac_var in `(set) 2>&1 |
1028 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1029 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1030 eval ac_new_set=\$ac_env_${ac_var}_set
1031 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1032 eval ac_new_val="\$ac_env_${ac_var}_value"
1033 case $ac_old_set,$ac_new_set in
1035 { echo "$as_me:1035: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1036 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1037 ac_cache_corrupted=: ;;
1039 { echo "$as_me:1039: error: \`$ac_var' was not set in the previous run" >&5
1040 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1041 ac_cache_corrupted=: ;;
1044 if test "x$ac_old_val" != "x$ac_new_val"; then
1045 { echo "$as_me:1045: error: \`$ac_var' has changed since the previous run:" >&5
1046 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1047 { echo "$as_me:1047: former value: $ac_old_val" >&5
1048 echo "$as_me: former value: $ac_old_val" >&2;}
1049 { echo "$as_me:1049: current value: $ac_new_val" >&5
1050 echo "$as_me: current value: $ac_new_val" >&2;}
1051 ac_cache_corrupted=:
1054 # Pass precious variables to config.status. It doesn't matter if
1055 # we pass some twice (in addition to the command line arguments).
1056 if test "$ac_new_set" = set; then
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1060 ac_configure_args="$ac_configure_args '$ac_arg'"
1062 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1067 if $ac_cache_corrupted; then
1068 { echo "$as_me:1068: error: changes in the environment can compromise the build" >&5
1069 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1070 { { echo "$as_me:1070: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1071 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1072 { (exit 1); exit 1; }; }
1076 ac_cpp='$CPP $CPPFLAGS'
1077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1080 ac_main_return=return
1082 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1083 *c*,-n*) ECHO_N= ECHO_C='
1085 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1086 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1088 echo "#! $SHELL" >conftest.sh
1089 echo "exit 0" >>conftest.sh
1090 chmod +x conftest.sh
1091 if { (echo "$as_me:1091: PATH=\".;.\"; conftest.sh") >&5
1092 (PATH=".;."; conftest.sh) 2>&5
1094 echo "$as_me:1094: \$? = $ac_status" >&5
1095 (exit $ac_status); }; then
1096 ac_path_separator=';'
1100 PATH_SEPARATOR="$ac_path_separator"
1103 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1107 echo "$as_me:1107: checking for egrep" >&5
1108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1109 if test "${ac_cv_prog_egrep+set}" = set; then
1110 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1113 then ac_cv_prog_egrep='grep -E'
1114 else ac_cv_prog_egrep='egrep'
1117 echo "$as_me:1117: result: $ac_cv_prog_egrep" >&5
1118 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1119 EGREP=$ac_cv_prog_egrep
1121 test -z "$EGREP" && { { echo "$as_me:1121: error: No egrep program found" >&5
1122 echo "$as_me: error: No egrep program found" >&2;}
1123 { (exit 1); exit 1; }; }
1125 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1126 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1127 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1128 cf_cv_abi_version=${NCURSES_MAJOR}
1129 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1130 cf_cv_timestamp=`date`
1131 echo "$as_me:1131: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1132 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1134 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1136 # Check whether --with-rel-version or --without-rel-version was given.
1137 if test "${with_rel_version+set}" = set; then
1138 withval="$with_rel_version"
1139 { echo "$as_me:1139: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1140 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1141 cf_cv_rel_version=$withval
1144 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1145 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1147 if test -n "$NCURSES_MAJOR" ; then
1148 case $NCURSES_MAJOR in #(vi
1152 { { echo "$as_me:1152: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1153 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1154 { (exit 1); exit 1; }; }
1158 { { echo "$as_me:1158: error: Release major-version value is empty" >&5
1159 echo "$as_me: error: Release major-version value is empty" >&2;}
1160 { (exit 1); exit 1; }; }
1163 if test -n "$NCURSES_MINOR" ; then
1164 case $NCURSES_MINOR in #(vi
1168 { { echo "$as_me:1168: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1169 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1170 { (exit 1); exit 1; }; }
1174 { { echo "$as_me:1174: error: Release minor-version value is empty" >&5
1175 echo "$as_me: error: Release minor-version value is empty" >&2;}
1176 { (exit 1); exit 1; }; }
1179 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1181 # Check whether --with-abi-version or --without-abi-version was given.
1182 if test "${with_abi_version+set}" = set; then
1183 withval="$with_abi_version"
1184 { echo "$as_me:1184: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1185 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1186 cf_cv_abi_version=$withval
1189 if test -n "$cf_cv_abi_version" ; then
1190 case $cf_cv_abi_version in #(vi
1194 { { echo "$as_me:1194: error: ABI version is not a number: $cf_cv_abi_version" >&5
1195 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1196 { (exit 1); exit 1; }; }
1200 { { echo "$as_me:1200: error: ABI version value is empty" >&5
1201 echo "$as_me: error: ABI version value is empty" >&2;}
1202 { (exit 1); exit 1; }; }
1206 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1207 if test -f $ac_dir/install-sh; then
1209 ac_install_sh="$ac_aux_dir/install-sh -c"
1211 elif test -f $ac_dir/install.sh; then
1213 ac_install_sh="$ac_aux_dir/install.sh -c"
1215 elif test -f $ac_dir/shtool; then
1217 ac_install_sh="$ac_aux_dir/shtool install -c"
1221 if test -z "$ac_aux_dir"; then
1222 { { echo "$as_me:1222: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1223 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1224 { (exit 1); exit 1; }; }
1226 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1227 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1228 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1230 # Make sure we can run config.sub.
1231 $ac_config_sub sun4 >/dev/null 2>&1 ||
1232 { { echo "$as_me:1232: error: cannot run $ac_config_sub" >&5
1233 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1234 { (exit 1); exit 1; }; }
1236 echo "$as_me:1236: checking build system type" >&5
1237 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1238 if test "${ac_cv_build+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1241 ac_cv_build_alias=$build_alias
1242 test -z "$ac_cv_build_alias" &&
1243 ac_cv_build_alias=`$ac_config_guess`
1244 test -z "$ac_cv_build_alias" &&
1245 { { echo "$as_me:1245: error: cannot guess build type; you must specify one" >&5
1246 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1247 { (exit 1); exit 1; }; }
1248 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1249 { { echo "$as_me:1249: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1250 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1251 { (exit 1); exit 1; }; }
1254 echo "$as_me:1254: result: $ac_cv_build" >&5
1255 echo "${ECHO_T}$ac_cv_build" >&6
1257 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1258 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1259 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1261 echo "$as_me:1261: checking host system type" >&5
1262 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1263 if test "${ac_cv_host+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 ac_cv_host_alias=$host_alias
1267 test -z "$ac_cv_host_alias" &&
1268 ac_cv_host_alias=$ac_cv_build_alias
1269 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1270 { { echo "$as_me:1270: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1271 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1272 { (exit 1); exit 1; }; }
1275 echo "$as_me:1275: result: $ac_cv_host" >&5
1276 echo "${ECHO_T}$ac_cv_host" >&6
1278 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1279 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1280 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1282 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1283 echo "$as_me:1283: checking target system type" >&5
1284 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1285 if test "${ac_cv_target+set}" = set; then
1286 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 ac_cv_target_alias=$target_alias
1289 test "x$ac_cv_target_alias" = "x" &&
1290 ac_cv_target_alias=$ac_cv_host_alias
1291 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1292 { { echo "$as_me:1292: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1293 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1294 { (exit 1); exit 1; }; }
1297 echo "$as_me:1297: result: $ac_cv_target" >&5
1298 echo "${ECHO_T}$ac_cv_target" >&6
1299 target=$ac_cv_target
1300 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1301 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1302 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1304 # The aliases save the names the user supplied, while $host etc.
1305 # will get canonicalized.
1306 test -n "$target_alias" &&
1307 test "$program_prefix$program_suffix$program_transform_name" = \
1309 program_prefix=${target_alias}-
1310 system_name="$host_os"
1312 system_name="`(uname -s -r) 2>/dev/null`"
1313 if test -z "$system_name" ; then
1314 system_name="`(hostname) 2>/dev/null`"
1317 test -n "$system_name" && cat >>confdefs.h <<EOF
1318 #define SYSTEM_NAME "$system_name"
1321 if test "${cf_cv_system_name+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 cf_cv_system_name="$system_name"
1327 test -z "$system_name" && system_name="$cf_cv_system_name"
1328 test -n "$cf_cv_system_name" && echo "$as_me:1328: result: Configuring for $cf_cv_system_name" >&5
1329 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1331 if test ".$system_name" != ".$cf_cv_system_name" ; then
1332 echo "$as_me:1332: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1333 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1334 { { echo "$as_me:1334: error: \"Please remove config.cache and try again.\"" >&5
1335 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1336 { (exit 1); exit 1; }; }
1339 # Check whether --with-system-type or --without-system-type was given.
1340 if test "${with_system_type+set}" = set; then
1341 withval="$with_system_type"
1342 { echo "$as_me:1342: WARNING: overriding system type to $withval" >&5
1343 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1344 cf_cv_system_name=$withval
1347 ### Save the given $CFLAGS to allow user-override.
1348 cf_user_CFLAGS="$CFLAGS"
1350 ### Default install-location
1352 echo "$as_me:1352: checking for prefix" >&5
1353 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1354 if test "x$prefix" = "xNONE" ; then
1355 case "$cf_cv_system_name" in
1356 # non-vendor systems don't have a conflict
1357 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1360 *) prefix=$ac_default_prefix
1364 echo "$as_me:1364: result: $prefix" >&5
1365 echo "${ECHO_T}$prefix" >&6
1367 if test "x$prefix" = "xNONE" ; then
1368 echo "$as_me:1368: checking for default include-directory" >&5
1369 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1370 test -n "$verbose" && echo 1>&6
1373 $includedir/ncurses \
1375 $prefix/include/ncurses \
1376 /usr/local/include \
1377 /usr/local/include/ncurses \
1379 /usr/include/ncurses
1381 cf_dir=`eval echo $cf_symbol`
1382 if test -f $cf_dir/curses.h ; then
1383 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1384 includedir="$cf_symbol"
1385 test -n "$verbose" && echo $ac_n " found " 1>&6
1389 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1391 echo "$as_me:1391: result: $includedir" >&5
1392 echo "${ECHO_T}$includedir" >&6
1395 ### Checks for programs.
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1401 ac_main_return=return
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:1405: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 ac_save_IFS=$IFS; IFS=$ac_path_separator
1415 for ac_dir in $ac_dummy; do
1417 test -z "$ac_dir" && ac_dir=.
1418 $as_executable_p "$ac_dir/$ac_word" || continue
1419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1420 echo "$as_me:1420: found $ac_dir/$ac_word" >&5
1427 if test -n "$CC"; then
1428 echo "$as_me:1428: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1431 echo "$as_me:1431: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1436 if test -z "$ac_cv_prog_CC"; then
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:1440: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 ac_save_IFS=$IFS; IFS=$ac_path_separator
1450 for ac_dir in $ac_dummy; do
1452 test -z "$ac_dir" && ac_dir=.
1453 $as_executable_p "$ac_dir/$ac_word" || continue
1454 ac_cv_prog_ac_ct_CC="gcc"
1455 echo "$as_me:1455: found $ac_dir/$ac_word" >&5
1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462 if test -n "$ac_ct_CC"; then
1463 echo "$as_me:1463: result: $ac_ct_CC" >&5
1464 echo "${ECHO_T}$ac_ct_CC" >&6
1466 echo "$as_me:1466: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1475 if test -z "$CC"; then
1476 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1478 set dummy ${ac_tool_prefix}cc; ac_word=$2
1479 echo "$as_me:1479: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 ac_save_IFS=$IFS; IFS=$ac_path_separator
1489 for ac_dir in $ac_dummy; do
1491 test -z "$ac_dir" && ac_dir=.
1492 $as_executable_p "$ac_dir/$ac_word" || continue
1493 ac_cv_prog_CC="${ac_tool_prefix}cc"
1494 echo "$as_me:1494: found $ac_dir/$ac_word" >&5
1501 if test -n "$CC"; then
1502 echo "$as_me:1502: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1505 echo "$as_me:1505: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1512 # Extract the first word of "cc", so it can be a program name with args.
1513 set dummy cc; ac_word=$2
1514 echo "$as_me:1514: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 ac_save_IFS=$IFS; IFS=$ac_path_separator
1524 for ac_dir in $ac_dummy; do
1526 test -z "$ac_dir" && ac_dir=.
1527 $as_executable_p "$ac_dir/$ac_word" || continue
1528 ac_cv_prog_ac_ct_CC="cc"
1529 echo "$as_me:1529: found $ac_dir/$ac_word" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:1537: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:1540: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1550 if test -z "$CC"; then
1551 # Extract the first word of "cc", so it can be a program name with args.
1552 set dummy cc; ac_word=$2
1553 echo "$as_me:1553: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1562 ac_save_IFS=$IFS; IFS=$ac_path_separator
1564 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 $as_executable_p "$ac_dir/$ac_word" || continue
1568 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1569 ac_prog_rejected=yes
1573 echo "$as_me:1573: found $ac_dir/$ac_word" >&5
1577 if test $ac_prog_rejected = yes; then
1578 # We found a bogon in the path, so make sure we never use it.
1579 set dummy $ac_cv_prog_CC
1581 if test $# != 0; then
1582 # We chose a different compiler from the bogus one.
1583 # However, it has the same basename, so the bogon will be chosen
1584 # first if we set CC to just the basename; use the full file name.
1586 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1594 if test -n "$CC"; then
1595 echo "$as_me:1595: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:1598: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1609 echo "$as_me:1609: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 ac_save_IFS=$IFS; IFS=$ac_path_separator
1619 for ac_dir in $ac_dummy; do
1621 test -z "$ac_dir" && ac_dir=.
1622 $as_executable_p "$ac_dir/$ac_word" || continue
1623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1624 echo "$as_me:1624: found $ac_dir/$ac_word" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:1632: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:1635: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1639 test -n "$CC" && break
1642 if test -z "$CC"; then
1646 # Extract the first word of "$ac_prog", so it can be a program name with args.
1647 set dummy $ac_prog; ac_word=$2
1648 echo "$as_me:1648: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 ac_save_IFS=$IFS; IFS=$ac_path_separator
1658 for ac_dir in $ac_dummy; do
1660 test -z "$ac_dir" && ac_dir=.
1661 $as_executable_p "$ac_dir/$ac_word" || continue
1662 ac_cv_prog_ac_ct_CC="$ac_prog"
1663 echo "$as_me:1663: found $ac_dir/$ac_word" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:1671: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:1674: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$ac_ct_CC" && break
1686 test -z "$CC" && { { echo "$as_me:1686: error: no acceptable cc found in \$PATH" >&5
1687 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1688 { (exit 1); exit 1; }; }
1690 # Provide some information about the compiler.
1691 echo "$as_me:1691:" \
1692 "checking for C compiler version" >&5
1693 ac_compiler=`set X $ac_compile; echo $2`
1694 { (eval echo "$as_me:1694: \"$ac_compiler --version </dev/null >&5\"") >&5
1695 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1699 { (eval echo "$as_me:1699: \"$ac_compiler -v </dev/null >&5\"") >&5
1700 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:1704: \"$ac_compiler -V </dev/null >&5\"") >&5
1705 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1710 cat >conftest.$ac_ext <<_ACEOF
1711 #line 1711 "configure"
1712 #include "confdefs.h"
1722 ac_clean_files_save=$ac_clean_files
1723 ac_clean_files="$ac_clean_files a.out a.exe"
1724 # Try to create an executable without -o first, disregard a.out.
1725 # It will help us diagnose broken compilers, and finding out an intuition
1727 echo "$as_me:1727: checking for C compiler default output" >&5
1728 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1729 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730 if { (eval echo "$as_me:1730: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
1735 # Find the output, starting from the most likely. This scheme is
1736 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1738 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1739 ls a.out conftest 2>/dev/null;
1740 ls a.* conftest.* 2>/dev/null`; do
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1743 a.out ) # We found the default executable, but exeext='' is most
1746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1747 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1754 echo "$as_me: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1756 { { echo "$as_me:1756: error: C compiler cannot create executables" >&5
1757 echo "$as_me: error: C compiler cannot create executables" >&2;}
1758 { (exit 77); exit 77; }; }
1761 ac_exeext=$ac_cv_exeext
1762 echo "$as_me:1762: result: $ac_file" >&5
1763 echo "${ECHO_T}$ac_file" >&6
1765 # Check the compiler produces executables we can run. If not, either
1766 # the compiler is broken, or we cross compile.
1767 echo "$as_me:1767: checking whether the C compiler works" >&5
1768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1770 # If not cross compiling, check that we can run a simple program.
1771 if test "$cross_compiling" != yes; then
1772 if { ac_try='./$ac_file'
1773 { (eval echo "$as_me:1773: \"$ac_try\"") >&5
1776 echo "$as_me:1776: \$? = $ac_status" >&5
1777 (exit $ac_status); }; }; then
1780 if test "$cross_compiling" = maybe; then
1783 { { echo "$as_me:1783: error: cannot run C compiled programs.
1784 If you meant to cross compile, use \`--host'." >&5
1785 echo "$as_me: error: cannot run C compiled programs.
1786 If you meant to cross compile, use \`--host'." >&2;}
1787 { (exit 1); exit 1; }; }
1791 echo "$as_me:1791: result: yes" >&5
1792 echo "${ECHO_T}yes" >&6
1794 rm -f a.out a.exe conftest$ac_cv_exeext
1795 ac_clean_files=$ac_clean_files_save
1796 # Check the compiler produces executables we can run. If not, either
1797 # the compiler is broken, or we cross compile.
1798 echo "$as_me:1798: checking whether we are cross compiling" >&5
1799 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1800 echo "$as_me:1800: result: $cross_compiling" >&5
1801 echo "${ECHO_T}$cross_compiling" >&6
1803 echo "$as_me:1803: checking for executable suffix" >&5
1804 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1805 if { (eval echo "$as_me:1805: \"$ac_link\"") >&5
1806 (eval $ac_link) 2>&5
1808 echo "$as_me:1808: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1811 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1812 # work properly (i.e., refer to `conftest.exe'), while it won't with
1814 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1816 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1817 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1824 { { echo "$as_me:1824: error: cannot compute EXEEXT: cannot compile and link" >&5
1825 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1826 { (exit 1); exit 1; }; }
1829 rm -f conftest$ac_cv_exeext
1830 echo "$as_me:1830: result: $ac_cv_exeext" >&5
1831 echo "${ECHO_T}$ac_cv_exeext" >&6
1833 rm -f conftest.$ac_ext
1834 EXEEXT=$ac_cv_exeext
1836 echo "$as_me:1836: checking for object suffix" >&5
1837 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1838 if test "${ac_cv_objext+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 cat >conftest.$ac_ext <<_ACEOF
1842 #line 1842 "configure"
1843 #include "confdefs.h"
1853 rm -f conftest.o conftest.obj
1854 if { (eval echo "$as_me:1854: \"$ac_compile\"") >&5
1855 (eval $ac_compile) 2>&5
1857 echo "$as_me:1857: \$? = $ac_status" >&5
1858 (exit $ac_status); }; then
1859 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1867 echo "$as_me: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 { { echo "$as_me:1869: error: cannot compute OBJEXT: cannot compile" >&5
1870 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1871 { (exit 1); exit 1; }; }
1874 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1876 echo "$as_me:1876: result: $ac_cv_objext" >&5
1877 echo "${ECHO_T}$ac_cv_objext" >&6
1878 OBJEXT=$ac_cv_objext
1880 echo "$as_me:1880: checking whether we are using the GNU C compiler" >&5
1881 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 cat >conftest.$ac_ext <<_ACEOF
1886 #line 1886 "configure"
1887 #include "confdefs.h"
1900 rm -f conftest.$ac_objext
1901 if { (eval echo "$as_me:1901: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); } &&
1906 { ac_try='test -s conftest.$ac_objext'
1907 { (eval echo "$as_me:1907: \"$ac_try\"") >&5
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1922 echo "$as_me:1922: result: $ac_cv_c_compiler_gnu" >&5
1923 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1924 GCC=`test $ac_compiler_gnu = yes && echo yes`
1925 ac_test_CFLAGS=${CFLAGS+set}
1926 ac_save_CFLAGS=$CFLAGS
1928 echo "$as_me:1928: checking whether $CC accepts -g" >&5
1929 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1930 if test "${ac_cv_prog_cc_g+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 cat >conftest.$ac_ext <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:1946: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1949 echo "$as_me:1949: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:1952: \"$ac_try\"") >&5
1955 echo "$as_me:1955: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1965 echo "$as_me:1965: result: $ac_cv_prog_cc_g" >&5
1966 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1967 if test "$ac_test_CFLAGS" = set; then
1968 CFLAGS=$ac_save_CFLAGS
1969 elif test $ac_cv_prog_cc_g = yes; then
1970 if test "$GCC" = yes; then
1976 if test "$GCC" = yes; then
1982 # Some people use a C++ compiler to compile C. Since we use `exit',
1983 # in C++ we need to declare it. In case someone uses the same compiler
1984 # for both compiling C and C++ we need to have the C++ compiler decide
1985 # the declaration of exit, since it's the most demanding environment.
1986 cat >conftest.$ac_ext <<_ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:1992: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -s conftest.$ac_objext'
1998 { (eval echo "$as_me:1998: \"$ac_try\"") >&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 for ac_declaration in \
2005 '#include <stdlib.h>' \
2006 'extern "C" void std::exit (int) throw (); using std::exit;' \
2007 'extern "C" void std::exit (int); using std::exit;' \
2008 'extern "C" void exit (int) throw ();' \
2009 'extern "C" void exit (int);' \
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line 2013 "configure"
2014 #include "confdefs.h"
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:2026: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:2029: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:2032: \"$ac_try\"") >&5
2035 echo "$as_me:2035: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2043 rm -f conftest.$ac_objext conftest.$ac_ext
2044 cat >conftest.$ac_ext <<_ACEOF
2045 #line 2045 "configure"
2046 #include "confdefs.h"
2056 rm -f conftest.$ac_objext
2057 if { (eval echo "$as_me:2057: \"$ac_compile\"") >&5
2058 (eval $ac_compile) 2>&5
2060 echo "$as_me:2060: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:2063: \"$ac_try\"") >&5
2066 echo "$as_me:2066: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2070 echo "$as_me: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 rm -f conftest.$ac_objext conftest.$ac_ext
2076 if test -n "$ac_declaration"; then
2077 echo '#ifdef __cplusplus' >>confdefs.h
2078 echo $ac_declaration >>confdefs.h
2079 echo '#endif' >>confdefs.h
2083 echo "$as_me: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 rm -f conftest.$ac_objext conftest.$ac_ext
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 ac_main_return=return
2095 if test "$GCC" = yes ; then
2096 echo "$as_me:2096: checking version of $CC" >&5
2097 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2098 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2099 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2100 echo "$as_me:2100: result: $GCC_VERSION" >&5
2101 echo "${ECHO_T}$GCC_VERSION" >&6
2105 ac_cpp='$CPP $CPPFLAGS'
2106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 ac_main_return=return
2110 echo "$as_me:2110: checking how to run the C preprocessor" >&5
2111 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2112 # On Suns, sometimes $CPP names a directory.
2113 if test -n "$CPP" && test -d "$CPP"; then
2116 if test -z "$CPP"; then
2117 if test "${ac_cv_prog_CPP+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 # Double quotes because CPP needs to be expanded
2121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2124 for ac_c_preproc_warn_flag in '' yes
2126 # Use a header file that comes with gcc, so configuring glibc
2127 # with a fresh cross-compiler works.
2128 # On the NeXT, cc -E runs the code through the compiler's parser,
2129 # not just through cpp. "Syntax error" is here to catch this case.
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line 2131 "configure"
2132 #include "confdefs.h"
2136 if { (eval echo "$as_me:2136: \"$ac_cpp conftest.$ac_ext\"") >&5
2137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2139 egrep -v '^ *\+' conftest.er1 >conftest.err
2141 cat conftest.err >&5
2142 echo "$as_me:2142: \$? = $ac_status" >&5
2143 (exit $ac_status); } >/dev/null; then
2144 if test -s conftest.err; then
2145 ac_cpp_err=$ac_c_preproc_warn_flag
2152 if test -z "$ac_cpp_err"; then
2155 echo "$as_me: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 # Broken: fails on valid input.
2160 rm -f conftest.err conftest.$ac_ext
2162 # OK, works on sane cases. Now check whether non-existent headers
2163 # can be detected and how.
2164 cat >conftest.$ac_ext <<_ACEOF
2165 #line 2165 "configure"
2166 #include "confdefs.h"
2167 #include <ac_nonexistent.h>
2169 if { (eval echo "$as_me:2169: \"$ac_cpp conftest.$ac_ext\"") >&5
2170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2172 egrep -v '^ *\+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:2175: \$? = $ac_status" >&5
2176 (exit $ac_status); } >/dev/null; then
2177 if test -s conftest.err; then
2178 ac_cpp_err=$ac_c_preproc_warn_flag
2185 if test -z "$ac_cpp_err"; then
2186 # Broken: success on invalid input.
2189 echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 # Passes both tests.
2195 rm -f conftest.err conftest.$ac_ext
2198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2199 rm -f conftest.err conftest.$ac_ext
2200 if $ac_preproc_ok; then
2212 echo "$as_me:2212: result: $CPP" >&5
2213 echo "${ECHO_T}$CPP" >&6
2215 for ac_c_preproc_warn_flag in '' yes
2217 # Use a header file that comes with gcc, so configuring glibc
2218 # with a fresh cross-compiler works.
2219 # On the NeXT, cc -E runs the code through the compiler's parser,
2220 # not just through cpp. "Syntax error" is here to catch this case.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #line 2222 "configure"
2223 #include "confdefs.h"
2227 if { (eval echo "$as_me:2227: \"$ac_cpp conftest.$ac_ext\"") >&5
2228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2230 egrep -v '^ *\+' conftest.er1 >conftest.err
2232 cat conftest.err >&5
2233 echo "$as_me:2233: \$? = $ac_status" >&5
2234 (exit $ac_status); } >/dev/null; then
2235 if test -s conftest.err; then
2236 ac_cpp_err=$ac_c_preproc_warn_flag
2243 if test -z "$ac_cpp_err"; then
2246 echo "$as_me: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 # Broken: fails on valid input.
2251 rm -f conftest.err conftest.$ac_ext
2253 # OK, works on sane cases. Now check whether non-existent headers
2254 # can be detected and how.
2255 cat >conftest.$ac_ext <<_ACEOF
2256 #line 2256 "configure"
2257 #include "confdefs.h"
2258 #include <ac_nonexistent.h>
2260 if { (eval echo "$as_me:2260: \"$ac_cpp conftest.$ac_ext\"") >&5
2261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2263 egrep -v '^ *\+' conftest.er1 >conftest.err
2265 cat conftest.err >&5
2266 echo "$as_me:2266: \$? = $ac_status" >&5
2267 (exit $ac_status); } >/dev/null; then
2268 if test -s conftest.err; then
2269 ac_cpp_err=$ac_c_preproc_warn_flag
2276 if test -z "$ac_cpp_err"; then
2277 # Broken: success on invalid input.
2280 echo "$as_me: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2282 # Passes both tests.
2286 rm -f conftest.err conftest.$ac_ext
2289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2290 rm -f conftest.err conftest.$ac_ext
2291 if $ac_preproc_ok; then
2294 { { echo "$as_me:2294: error: C preprocessor \"$CPP\" fails sanity check" >&5
2295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2296 { (exit 1); exit 1; }; }
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 ac_main_return=return
2306 if test $ac_cv_c_compiler_gnu = yes; then
2307 echo "$as_me:2307: checking whether $CC needs -traditional" >&5
2308 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2309 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 ac_pattern="Autoconf.*'x'"
2313 cat >conftest.$ac_ext <<_ACEOF
2314 #line 2314 "configure"
2315 #include "confdefs.h"
2317 int Autoconf = TIOCGETP;
2319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2320 egrep "$ac_pattern" >/dev/null 2>&1; then
2321 ac_cv_prog_gcc_traditional=yes
2323 ac_cv_prog_gcc_traditional=no
2327 if test $ac_cv_prog_gcc_traditional = no; then
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2332 int Autoconf = TCGETA;
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "$ac_pattern" >/dev/null 2>&1; then
2336 ac_cv_prog_gcc_traditional=yes
2342 echo "$as_me:2342: result: $ac_cv_prog_gcc_traditional" >&5
2343 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2344 if test $ac_cv_prog_gcc_traditional = yes; then
2345 CC="$CC -traditional"
2349 echo "$as_me:2349: checking whether $CC understands -c and -o together" >&5
2350 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2351 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat > conftest.$ac_ext <<CF_EOF
2359 ${cf_cv_main_return:-return}(0);
2362 # We do the test twice because some compilers refuse to overwrite an
2363 # existing .o file with -o, though they will create one.
2364 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2365 if { (eval echo "$as_me:2365: \"$ac_try\"") >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 test -f conftest2.$ac_objext && { (eval echo "$as_me:2370: \"$ac_try\"") >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); };
2376 eval cf_cv_prog_CC_c_o=yes
2378 eval cf_cv_prog_CC_c_o=no
2383 if test $cf_cv_prog_CC_c_o = yes; then
2384 echo "$as_me:2384: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6
2387 echo "$as_me:2387: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2391 echo "$as_me:2391: checking for POSIXized ISC" >&5
2392 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2393 if test -d /etc/conf/kconfig.d &&
2394 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2396 echo "$as_me:2396: result: yes" >&5
2397 echo "${ECHO_T}yes" >&6
2398 ISC=yes # If later tests want to check for ISC.
2400 cat >>confdefs.h <<\EOF
2401 #define _POSIX_SOURCE 1
2404 if test "$GCC" = yes; then
2410 echo "$as_me:2410: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2415 echo "$as_me:2415: checking for ${CC-cc} option to accept ANSI C" >&5
2416 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2417 if test "${cf_cv_ansi_cc+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 cf_save_CFLAGS="$CFLAGS"
2423 cf_save_CPPFLAGS="$CPPFLAGS"
2424 # Don't try gcc -ansi; that turns off useful extensions and
2425 # breaks some systems' header files.
2426 # AIX -qlanglvl=ansi
2427 # Ultrix and OSF/1 -std1
2428 # HP-UX -Aa -D_HPUX_SOURCE
2430 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2431 for cf_arg in "-DCC_HAS_PROTOS" \
2436 "-Aa -D_HPUX_SOURCE" \
2443 cf_new_extra_cppflags=
2445 for cf_add_cflags in $cf_arg
2447 case $cf_fix_cppflags in
2449 case $cf_add_cflags in #(vi
2450 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2451 case $cf_add_cflags in
2453 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2455 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2456 && test -z "${cf_tst_cflags}" \
2457 && cf_fix_cppflags=yes
2459 if test $cf_fix_cppflags = yes ; then
2460 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2462 elif test "${cf_tst_cflags}" = "\"'" ; then
2463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2469 *$cf_add_cflags) #(vi
2472 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2477 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2482 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2484 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2486 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2487 && test -z "${cf_tst_cflags}" \
2488 && cf_fix_cppflags=no
2493 if test -n "$cf_new_cflags" ; then
2495 CFLAGS="$CFLAGS $cf_new_cflags"
2498 if test -n "$cf_new_cppflags" ; then
2500 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2503 if test -n "$cf_new_extra_cppflags" ; then
2505 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line 2509 "configure"
2510 #include "confdefs.h"
2512 #ifndef CC_HAS_PROTOS
2513 #if !defined(__STDC__) || (__STDC__ != 1)
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:2530: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>&5
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:2536: \"$ac_try\"") >&5
2539 echo "$as_me:2539: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 cf_cv_ansi_cc="$cf_arg"; break
2543 echo "$as_me: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2548 CFLAGS="$cf_save_CFLAGS"
2549 CPPFLAGS="$cf_save_CPPFLAGS"
2552 echo "$as_me:2552: result: $cf_cv_ansi_cc" >&5
2553 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2555 if test "$cf_cv_ansi_cc" != "no"; then
2556 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2561 cf_new_extra_cppflags=
2563 for cf_add_cflags in $cf_cv_ansi_cc
2565 case $cf_fix_cppflags in
2567 case $cf_add_cflags in #(vi
2568 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2569 case $cf_add_cflags in
2571 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2573 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2574 && test -z "${cf_tst_cflags}" \
2575 && cf_fix_cppflags=yes
2577 if test $cf_fix_cppflags = yes ; then
2578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2580 elif test "${cf_tst_cflags}" = "\"'" ; then
2581 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2587 *$cf_add_cflags) #(vi
2590 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2595 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2602 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2604 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2605 && test -z "${cf_tst_cflags}" \
2606 && cf_fix_cppflags=no
2611 if test -n "$cf_new_cflags" ; then
2613 CFLAGS="$CFLAGS $cf_new_cflags"
2616 if test -n "$cf_new_cppflags" ; then
2618 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2621 if test -n "$cf_new_extra_cppflags" ; then
2623 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2627 cat >>confdefs.h <<\EOF
2628 #define CC_HAS_PROTOS 1
2634 if test "$cf_cv_ansi_cc" = "no"; then
2635 { { echo "$as_me:2635: error: Your compiler does not appear to recognize prototypes.
2636 You have the following choices:
2637 a. adjust your compiler options
2638 b. get an up-to-date compiler
2639 c. use a wrapper such as unproto" >&5
2640 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2641 You have the following choices:
2642 a. adjust your compiler options
2643 b. get an up-to-date compiler
2644 c. use a wrapper such as unproto" >&2;}
2645 { (exit 1); exit 1; }; }
2648 case $cf_cv_system_name in
2650 CFLAGS="$CFLAGS -Zmt"
2651 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2652 CXXFLAGS="$CXXFLAGS -Zmt"
2653 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2654 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2661 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2662 #define PROG_EXT "$PROG_EXT"
2665 if test "$cross_compiling" = yes ; then
2668 case "$cf_cv_system_name" in #(vi
2669 dragonfly*|freebsd*) #(vi
2670 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2672 *) LDPATH=$PATH:/sbin:/usr/sbin
2673 # Extract the first word of "ldconfig", so it can be a program name with args.
2674 set dummy ldconfig; ac_word=$2
2675 echo "$as_me:2675: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2685 ac_save_IFS=$IFS; IFS=$ac_path_separator
2687 for ac_dir in $ac_dummy; do
2689 test -z "$ac_dir" && ac_dir=.
2690 if $as_executable_p "$ac_dir/$ac_word"; then
2691 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2692 echo "$as_me:2692: found $ac_dir/$ac_word" >&5
2700 LDCONFIG=$ac_cv_path_LDCONFIG
2702 if test -n "$LDCONFIG"; then
2703 echo "$as_me:2703: result: $LDCONFIG" >&5
2704 echo "${ECHO_T}$LDCONFIG" >&6
2706 echo "$as_me:2706: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2714 echo "$as_me:2714: checking if you want to ensure bool is consistent with C++" >&5
2715 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2717 # Check whether --with-cxx or --without-cxx was given.
2718 if test "${with_cxx+set}" = set; then
2720 cf_with_cxx=$withval
2724 echo "$as_me:2724: result: $cf_with_cxx" >&5
2725 echo "${ECHO_T}$cf_with_cxx" >&6
2726 if test "X$cf_with_cxx" = Xno ; then
2730 # with autoconf 2.13, we can change the error to a warning:
2732 ac_cpp='$CXXCPP $CPPFLAGS'
2733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2736 ac_main_return=return
2737 if test -n "$ac_tool_prefix"; then
2738 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742 echo "$as_me:2742: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_prog_CXX+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CXX"; then
2748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2750 ac_save_IFS=$IFS; IFS=$ac_path_separator
2752 for ac_dir in $ac_dummy; do
2754 test -z "$ac_dir" && ac_dir=.
2755 $as_executable_p "$ac_dir/$ac_word" || continue
2756 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2757 echo "$as_me:2757: found $ac_dir/$ac_word" >&5
2764 if test -n "$CXX"; then
2765 echo "$as_me:2765: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2768 echo "$as_me:2768: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 test -n "$CXX" && break
2775 if test -z "$CXX"; then
2777 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo "$as_me:2781: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CXX"; then
2787 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2789 ac_save_IFS=$IFS; IFS=$ac_path_separator
2791 for ac_dir in $ac_dummy; do
2793 test -z "$ac_dir" && ac_dir=.
2794 $as_executable_p "$ac_dir/$ac_word" || continue
2795 ac_cv_prog_ac_ct_CXX="$ac_prog"
2796 echo "$as_me:2796: found $ac_dir/$ac_word" >&5
2802 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2803 if test -n "$ac_ct_CXX"; then
2804 echo "$as_me:2804: result: $ac_ct_CXX" >&5
2805 echo "${ECHO_T}$ac_ct_CXX" >&6
2807 echo "$as_me:2807: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2811 test -n "$ac_ct_CXX" && break
2813 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2818 # Provide some information about the compiler.
2819 echo "$as_me:2819:" \
2820 "checking for C++ compiler version" >&5
2821 ac_compiler=`set X $ac_compile; echo $2`
2822 { (eval echo "$as_me:2822: \"$ac_compiler --version </dev/null >&5\"") >&5
2823 (eval $ac_compiler --version </dev/null >&5) 2>&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827 { (eval echo "$as_me:2827: \"$ac_compiler -v </dev/null >&5\"") >&5
2828 (eval $ac_compiler -v </dev/null >&5) 2>&5
2830 echo "$as_me:2830: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832 { (eval echo "$as_me:2832: \"$ac_compiler -V </dev/null >&5\"") >&5
2833 (eval $ac_compiler -V </dev/null >&5) 2>&5
2835 echo "$as_me:2835: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2838 echo "$as_me:2838: checking whether we are using the GNU C++ compiler" >&5
2839 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2840 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #line 2844 "configure"
2845 #include "confdefs.h"
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:2865: \"$ac_try\"") >&5
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2872 echo "$as_me: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2876 rm -f conftest.$ac_objext conftest.$ac_ext
2877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2880 echo "$as_me:2880: result: $ac_cv_cxx_compiler_gnu" >&5
2881 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2882 GXX=`test $ac_compiler_gnu = yes && echo yes`
2883 ac_test_CXXFLAGS=${CXXFLAGS+set}
2884 ac_save_CXXFLAGS=$CXXFLAGS
2886 echo "$as_me:2886: checking whether $CXX accepts -g" >&5
2887 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2888 if test "${ac_cv_prog_cxx_g+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #line 2892 "configure"
2893 #include "confdefs.h"
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:2904: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>&5
2907 echo "$as_me:2907: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (eval echo "$as_me:2910: \"$ac_try\"") >&5
2913 echo "$as_me:2913: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_prog_cxx_g=yes
2917 echo "$as_me: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2921 rm -f conftest.$ac_objext conftest.$ac_ext
2923 echo "$as_me:2923: result: $ac_cv_prog_cxx_g" >&5
2924 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2925 if test "$ac_test_CXXFLAGS" = set; then
2926 CXXFLAGS=$ac_save_CXXFLAGS
2927 elif test $ac_cv_prog_cxx_g = yes; then
2928 if test "$GXX" = yes; then
2934 if test "$GXX" = yes; then
2940 for ac_declaration in \
2942 '#include <stdlib.h>' \
2943 'extern "C" void std::exit (int) throw (); using std::exit;' \
2944 'extern "C" void std::exit (int); using std::exit;' \
2945 'extern "C" void exit (int) throw ();' \
2946 'extern "C" void exit (int);' \
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line 2950 "configure"
2951 #include "confdefs.h"
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:2963: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:2969: \"$ac_try\"") >&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2980 rm -f conftest.$ac_objext conftest.$ac_ext
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:2994: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:3000: \"$ac_try\"") >&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 rm -f conftest.$ac_objext conftest.$ac_ext
3013 if test -n "$ac_declaration"; then
3014 echo '#ifdef __cplusplus' >>confdefs.h
3015 echo $ac_declaration >>confdefs.h
3016 echo '#endif' >>confdefs.h
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 ac_main_return=return
3026 # autoconf 2.5x removed the error - by hardcoding it to g++.
3027 if test "$CXX" = "g++" ; then
3028 # Extract the first word of "g++", so it can be a program name with args.
3029 set dummy g++; ac_word=$2
3030 echo "$as_me:3030: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_path_CXX+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3040 ac_save_IFS=$IFS; IFS=$ac_path_separator
3042 for ac_dir in $ac_dummy; do
3044 test -z "$ac_dir" && ac_dir=.
3045 if $as_executable_p "$ac_dir/$ac_word"; then
3046 ac_cv_path_CXX="$ac_dir/$ac_word"
3047 echo "$as_me:3047: found $ac_dir/$ac_word" >&5
3057 if test -n "$CXX"; then
3058 echo "$as_me:3058: result: $CXX" >&5
3059 echo "${ECHO_T}$CXX" >&6
3061 echo "$as_me:3061: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3066 if test "$CXX" = "g++" ; then
3067 { echo "$as_me:3067: WARNING: ignoring hardcoded g++" >&5
3068 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3069 cf_with_cxx=no; CXX=""; GXX="";
3074 if test "$GXX" = yes; then
3075 echo "$as_me:3075: checking version of g++" >&5
3076 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3077 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3078 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3079 echo "$as_me:3079: result: $GXX_VERSION" >&5
3080 echo "${ECHO_T}$GXX_VERSION" >&6
3083 case $GXX_VERSION in
3085 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3087 { echo "$as_me:3087: WARNING: templates do not work" >&5
3088 echo "$as_me: WARNING: templates do not work" >&2;}
3092 echo "$as_me:3092: checking if you want to build C++ binding and demo" >&5
3093 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3095 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3096 if test "${with_cxx_binding+set}" = set; then
3097 withval="$with_cxx_binding"
3098 cf_with_cxx_binding=$withval
3100 cf_with_cxx_binding=$cf_with_cxx
3102 echo "$as_me:3102: result: $cf_with_cxx_binding" >&5
3103 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3105 echo "$as_me:3105: checking if you want to build with Ada95" >&5
3106 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3108 # Check whether --with-ada or --without-ada was given.
3109 if test "${with_ada+set}" = set; then
3111 cf_with_ada=$withval
3115 echo "$as_me:3115: result: $cf_with_ada" >&5
3116 echo "${ECHO_T}$cf_with_ada" >&6
3118 echo "$as_me:3118: checking if you want to install manpages" >&5
3119 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3121 # Check whether --with-manpages or --without-manpages was given.
3122 if test "${with_manpages+set}" = set; then
3123 withval="$with_manpages"
3124 cf_with_manpages=$withval
3126 cf_with_manpages=yes
3128 echo "$as_me:3128: result: $cf_with_manpages" >&5
3129 echo "${ECHO_T}$cf_with_manpages" >&6
3131 echo "$as_me:3131: checking if you want to build programs such as tic" >&5
3132 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3134 # Check whether --with-progs or --without-progs was given.
3135 if test "${with_progs+set}" = set; then
3136 withval="$with_progs"
3137 cf_with_progs=$withval
3141 echo "$as_me:3141: result: $cf_with_progs" >&5
3142 echo "${ECHO_T}$cf_with_progs" >&6
3144 echo "$as_me:3144: checking if you wish to install curses.h" >&5
3145 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3147 # Check whether --with-curses-h or --without-curses-h was given.
3148 if test "${with_curses_h+set}" = set; then
3149 withval="$with_curses_h"
3150 with_curses_h=$withval
3154 echo "$as_me:3154: result: $with_curses_h" >&5
3155 echo "${ECHO_T}$with_curses_h" >&6
3157 modules_to_build="ncurses"
3158 if test "X$cf_with_progs" != Xno ; then
3159 modules_to_build="$modules_to_build progs tack"
3161 modules_to_build="$modules_to_build panel menu form"
3163 test "$program_prefix" != NONE &&
3164 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3165 # Use a double $ so make ignores it.
3166 test "$program_suffix" != NONE &&
3167 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3168 # Double any \ or $. echo might interpret backslashes.
3169 # By default was `s,x,x', remove it if useless.
3170 cat <<\_ACEOF >conftest.sed
3171 s/[\\$]/&&/g;s/;s,x,x,$//
3173 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3176 for ac_prog in mawk gawk nawk awk
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 echo "$as_me:3180: checking for $ac_word" >&5
3181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3182 if test "${ac_cv_prog_AWK+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if test -n "$AWK"; then
3186 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3188 ac_save_IFS=$IFS; IFS=$ac_path_separator
3190 for ac_dir in $ac_dummy; do
3192 test -z "$ac_dir" && ac_dir=.
3193 $as_executable_p "$ac_dir/$ac_word" || continue
3194 ac_cv_prog_AWK="$ac_prog"
3195 echo "$as_me:3195: found $ac_dir/$ac_word" >&5
3202 if test -n "$AWK"; then
3203 echo "$as_me:3203: result: $AWK" >&5
3204 echo "${ECHO_T}$AWK" >&6
3206 echo "$as_me:3206: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 test -n "$AWK" && break
3213 test -z "$AWK" && { { echo "$as_me:3213: error: No awk program found" >&5
3214 echo "$as_me: error: No awk program found" >&2;}
3215 { (exit 1); exit 1; }; }
3217 echo "$as_me:3217: checking for egrep" >&5
3218 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3219 if test "${ac_cv_prog_egrep+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3223 then ac_cv_prog_egrep='grep -E'
3224 else ac_cv_prog_egrep='egrep'
3227 echo "$as_me:3227: result: $ac_cv_prog_egrep" >&5
3228 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3229 EGREP=$ac_cv_prog_egrep
3231 test -z "$EGREP" && { { echo "$as_me:3231: error: No egrep program found" >&5
3232 echo "$as_me: error: No egrep program found" >&2;}
3233 { (exit 1); exit 1; }; }
3235 # Find a good install program. We prefer a C program (faster),
3236 # so one script is as good as another. But avoid the broken or
3237 # incompatible versions:
3238 # SysV /etc/install, /usr/sbin/install
3239 # SunOS /usr/etc/install
3240 # IRIX /sbin/install
3242 # AmigaOS /C/install, which installs bootblocks on floppy discs
3243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3246 # ./install, which can be erroneously created by make from ./install.sh.
3247 echo "$as_me:3247: checking for a BSD compatible install" >&5
3248 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3249 if test -z "$INSTALL"; then
3250 if test "${ac_cv_path_install+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_save_IFS=$IFS; IFS=$ac_path_separator
3254 for ac_dir in $PATH; do
3256 # Account for people who put trailing slashes in PATH elements.
3258 / | ./ | .// | /cC/* \
3259 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3262 # OSF1 and SCO ODT 3.0 have their own names for install.
3263 # Don't use installbsd from OSF since it installs stuff as root
3265 for ac_prog in ginstall scoinst install; do
3266 if $as_executable_p "$ac_dir/$ac_prog"; then
3267 if test $ac_prog = install &&
3268 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3269 # AIX install. It has an incompatible calling convention.
3271 elif test $ac_prog = install &&
3272 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3273 # program-specific install script used by HP pwplus--don't use.
3276 ac_cv_path_install="$ac_dir/$ac_prog -c"
3286 if test "${ac_cv_path_install+set}" = set; then
3287 INSTALL=$ac_cv_path_install
3289 # As a last resort, use the slow shell script. We don't cache a
3290 # path for INSTALL within a source directory, because that will
3291 # break other packages using the cache if that directory is
3292 # removed, or if the path is relative.
3293 INSTALL=$ac_install_sh
3296 echo "$as_me:3296: result: $INSTALL" >&5
3297 echo "${ECHO_T}$INSTALL" >&6
3299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3300 # It thinks the first close brace ends the variable substitution.
3301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3311 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3312 test -z "$cf_dir" && cf_dir=.
3313 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3317 for ac_prog in tdlint lint alint
3319 # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 echo "$as_me:3321: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323 if test "${ac_cv_prog_LINT+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test -n "$LINT"; then
3327 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3329 ac_save_IFS=$IFS; IFS=$ac_path_separator
3331 for ac_dir in $ac_dummy; do
3333 test -z "$ac_dir" && ac_dir=.
3334 $as_executable_p "$ac_dir/$ac_word" || continue
3335 ac_cv_prog_LINT="$ac_prog"
3336 echo "$as_me:3336: found $ac_dir/$ac_word" >&5
3342 LINT=$ac_cv_prog_LINT
3343 if test -n "$LINT"; then
3344 echo "$as_me:3344: result: $LINT" >&5
3345 echo "${ECHO_T}$LINT" >&6
3347 echo "$as_me:3347: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3351 test -n "$LINT" && break
3354 echo "$as_me:3354: checking whether ln -s works" >&5
3355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3357 if test "$LN_S" = "ln -s"; then
3358 echo "$as_me:3358: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6
3361 echo "$as_me:3361: result: no, using $LN_S" >&5
3362 echo "${ECHO_T}no, using $LN_S" >&6
3365 echo "$as_me:3365: checking for long file names" >&5
3366 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3367 if test "${ac_cv_sys_long_file_names+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_sys_long_file_names=yes
3371 # Test for long file names in all the places we know might matter:
3372 # . the current directory, where building will happen
3373 # $prefix/lib where we will be installing things
3374 # $exec_prefix/lib likewise
3375 # eval it to expand exec_prefix.
3376 # $TMPDIR if set, where it might want to write temporary files
3377 # if $TMPDIR is not set:
3378 # /tmp where it might want to write temporary files
3381 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3384 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3386 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3387 test -d $ac_dir || continue
3388 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3389 ac_xdir=$ac_dir/cf$$
3390 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3391 ac_tf1=$ac_xdir/conftest9012345
3392 ac_tf2=$ac_xdir/conftest9012346
3393 (echo 1 >$ac_tf1) 2>/dev/null
3394 (echo 2 >$ac_tf2) 2>/dev/null
3395 ac_val=`cat $ac_tf1 2>/dev/null`
3396 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3397 ac_cv_sys_long_file_names=no
3398 rm -rf $ac_xdir 2>/dev/null
3401 rm -rf $ac_xdir 2>/dev/null
3404 echo "$as_me:3404: result: $ac_cv_sys_long_file_names" >&5
3405 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3406 if test $ac_cv_sys_long_file_names = yes; then
3408 cat >>confdefs.h <<\EOF
3409 #define HAVE_LONG_FILE_NAMES 1
3414 # if we find pkg-config, check if we should install the ".pc" files.
3416 echo "$as_me:3416: checking if you want to use pkg-config" >&5
3417 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3419 # Check whether --with-pkg-config or --without-pkg-config was given.
3420 if test "${with_pkg_config+set}" = set; then
3421 withval="$with_pkg_config"
3422 cf_pkg_config=$withval
3426 echo "$as_me:3426: result: $cf_pkg_config" >&5
3427 echo "${ECHO_T}$cf_pkg_config" >&6
3429 case $cf_pkg_config in
3434 # Extract the first word of "pkg-config", so it can be a program name with args.
3435 set dummy pkg-config; ac_word=$2
3436 echo "$as_me:3436: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3446 ac_save_IFS=$IFS; IFS=$ac_path_separator
3448 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if $as_executable_p "$ac_dir/$ac_word"; then
3452 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3453 echo "$as_me:3453: found $ac_dir/$ac_word" >&5
3458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3464 if test -n "$PKG_CONFIG"; then
3465 echo "$as_me:3465: result: $PKG_CONFIG" >&5
3466 echo "${ECHO_T}$PKG_CONFIG" >&6
3468 echo "$as_me:3468: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3478 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3479 if test "$PKG_CONFIG" != none ; then
3481 if test "x$prefix" != xNONE; then
3482 cf_path_syntax="$prefix"
3484 cf_path_syntax="$ac_default_prefix"
3487 case ".$PKG_CONFIG" in #(vi
3488 .\$\(*\)*|.\'*\'*) #(vi
3492 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3495 eval PKG_CONFIG="$PKG_CONFIG"
3496 case ".$PKG_CONFIG" in #(vi
3498 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3503 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3506 { { echo "$as_me:3506: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3507 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3508 { (exit 1); exit 1; }; }
3514 if test "$PKG_CONFIG" != no ; then
3515 echo "$as_me:3515: checking if we should install .pc files for $PKG_CONFIG" >&5
3516 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3518 # Leave this as something that can be overridden in the environment.
3519 if test -z "$PKG_CONFIG_LIBDIR" ; then
3520 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3523 if test -d "$PKG_CONFIG_LIBDIR" ; then
3525 # Check whether --enable-pc-files or --disable-pc-files was given.
3526 if test "${enable_pc_files+set}" = set; then
3527 enableval="$enable_pc_files"
3528 enable_pc_files=$enableval
3532 echo "$as_me:3532: result: $enable_pc_files" >&5
3533 echo "${ECHO_T}$enable_pc_files" >&6
3535 echo "$as_me:3535: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537 { echo "$as_me:3537: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3538 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3543 echo "$as_me:3543: checking if we should assume mixed-case filenames" >&5
3544 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3546 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3547 if test "${enable_mixed_case+set}" = set; then
3548 enableval="$enable_mixed_case"
3549 enable_mixedcase=$enableval
3551 enable_mixedcase=auto
3553 echo "$as_me:3553: result: $enable_mixedcase" >&5
3554 echo "${ECHO_T}$enable_mixedcase" >&6
3555 if test "$enable_mixedcase" = "auto" ; then
3557 echo "$as_me:3557: checking if filesystem supports mixed-case filenames" >&5
3558 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3559 if test "${cf_cv_mixedcase+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test "$cross_compiling" = yes ; then
3564 case $target_alias in #(vi
3565 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3573 rm -f conftest CONFTEST
3575 if test -f CONFTEST ; then
3580 rm -f conftest CONFTEST
3584 echo "$as_me:3584: result: $cf_cv_mixedcase" >&5
3585 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3586 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3587 #define MIXEDCASE_FILENAMES 1
3591 cf_cv_mixedcase=$enable_mixedcase
3592 if test "$enable_mixedcase" = "yes" ; then
3593 cat >>confdefs.h <<\EOF
3594 #define MIXEDCASE_FILENAMES 1
3600 # do this after mixed-case option (tags/TAGS is not as important as tic).
3601 echo "$as_me:3601: checking whether ${MAKE-make} sets \${MAKE}" >&5
3602 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3603 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3604 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 cat >conftest.make <<\EOF
3609 @echo 'ac_maketemp="${MAKE}"'
3611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3612 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3613 if test -n "$ac_maketemp"; then
3614 eval ac_cv_prog_make_${ac_make}_set=yes
3616 eval ac_cv_prog_make_${ac_make}_set=no
3620 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3621 echo "$as_me:3621: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6
3625 echo "$as_me:3625: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 SET_MAKE="MAKE=${MAKE-make}"
3630 # Extract the first word of "ctags", so it can be a program name with args.
3631 set dummy ctags; ac_word=$2
3632 echo "$as_me:3632: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 if test -n "$MAKE_LOWER_TAGS"; then
3638 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3640 ac_save_IFS=$IFS; IFS=$ac_path_separator
3642 for ac_dir in $ac_dummy; do
3644 test -z "$ac_dir" && ac_dir=.
3645 $as_executable_p "$ac_dir/$ac_word" || continue
3646 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3647 echo "$as_me:3647: found $ac_dir/$ac_word" >&5
3651 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3654 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3655 if test -n "$MAKE_LOWER_TAGS"; then
3656 echo "$as_me:3656: result: $MAKE_LOWER_TAGS" >&5
3657 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3659 echo "$as_me:3659: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3663 if test "$cf_cv_mixedcase" = yes ; then
3664 # Extract the first word of "etags", so it can be a program name with args.
3665 set dummy etags; ac_word=$2
3666 echo "$as_me:3666: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -n "$MAKE_UPPER_TAGS"; then
3672 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3674 ac_save_IFS=$IFS; IFS=$ac_path_separator
3676 for ac_dir in $ac_dummy; do
3678 test -z "$ac_dir" && ac_dir=.
3679 $as_executable_p "$ac_dir/$ac_word" || continue
3680 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3681 echo "$as_me:3681: found $ac_dir/$ac_word" >&5
3685 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3688 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3689 if test -n "$MAKE_UPPER_TAGS"; then
3690 echo "$as_me:3690: result: $MAKE_UPPER_TAGS" >&5
3691 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3693 echo "$as_me:3693: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3701 if test "$MAKE_UPPER_TAGS" = yes ; then
3707 if test "$MAKE_LOWER_TAGS" = yes ; then
3713 echo "$as_me:3713: checking for makeflags variable" >&5
3714 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3715 if test "${cf_cv_makeflags+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3722 cat >cf_makeflags.tmp <<CF_EOF
3725 @ echo '.$cf_option'
3727 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3728 case "$cf_result" in
3730 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3731 case "$cf_result" in
3732 .*CC=*) cf_cv_makeflags=
3734 *) cf_cv_makeflags=$cf_option
3740 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3744 rm -f cf_makeflags.tmp
3747 echo "$as_me:3747: result: $cf_cv_makeflags" >&5
3748 echo "${ECHO_T}$cf_cv_makeflags" >&6
3750 if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3753 echo "$as_me:3753: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_prog_RANLIB+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 if test -n "$RANLIB"; then
3759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3761 ac_save_IFS=$IFS; IFS=$ac_path_separator
3763 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 $as_executable_p "$ac_dir/$ac_word" || continue
3767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3768 echo "$as_me:3768: found $ac_dir/$ac_word" >&5
3774 RANLIB=$ac_cv_prog_RANLIB
3775 if test -n "$RANLIB"; then
3776 echo "$as_me:3776: result: $RANLIB" >&5
3777 echo "${ECHO_T}$RANLIB" >&6
3779 echo "$as_me:3779: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3784 if test -z "$ac_cv_prog_RANLIB"; then
3785 ac_ct_RANLIB=$RANLIB
3786 # Extract the first word of "ranlib", so it can be a program name with args.
3787 set dummy ranlib; ac_word=$2
3788 echo "$as_me:3788: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 if test -n "$ac_ct_RANLIB"; then
3794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3796 ac_save_IFS=$IFS; IFS=$ac_path_separator
3798 for ac_dir in $ac_dummy; do
3800 test -z "$ac_dir" && ac_dir=.
3801 $as_executable_p "$ac_dir/$ac_word" || continue
3802 ac_cv_prog_ac_ct_RANLIB="ranlib"
3803 echo "$as_me:3803: found $ac_dir/$ac_word" >&5
3807 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3811 if test -n "$ac_ct_RANLIB"; then
3812 echo "$as_me:3812: result: $ac_ct_RANLIB" >&5
3813 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3815 echo "$as_me:3815: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3819 RANLIB=$ac_ct_RANLIB
3821 RANLIB="$ac_cv_prog_RANLIB"
3824 if test -n "$ac_tool_prefix"; then
3825 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3826 set dummy ${ac_tool_prefix}ld; ac_word=$2
3827 echo "$as_me:3827: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_LD+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if test -n "$LD"; then
3833 ac_cv_prog_LD="$LD" # Let the user override the test.
3835 ac_save_IFS=$IFS; IFS=$ac_path_separator
3837 for ac_dir in $ac_dummy; do
3839 test -z "$ac_dir" && ac_dir=.
3840 $as_executable_p "$ac_dir/$ac_word" || continue
3841 ac_cv_prog_LD="${ac_tool_prefix}ld"
3842 echo "$as_me:3842: found $ac_dir/$ac_word" >&5
3849 if test -n "$LD"; then
3850 echo "$as_me:3850: result: $LD" >&5
3851 echo "${ECHO_T}$LD" >&6
3853 echo "$as_me:3853: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3858 if test -z "$ac_cv_prog_LD"; then
3860 # Extract the first word of "ld", so it can be a program name with args.
3861 set dummy ld; ac_word=$2
3862 echo "$as_me:3862: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if test -n "$ac_ct_LD"; then
3868 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3870 ac_save_IFS=$IFS; IFS=$ac_path_separator
3872 for ac_dir in $ac_dummy; do
3874 test -z "$ac_dir" && ac_dir=.
3875 $as_executable_p "$ac_dir/$ac_word" || continue
3876 ac_cv_prog_ac_ct_LD="ld"
3877 echo "$as_me:3877: found $ac_dir/$ac_word" >&5
3881 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3884 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3885 if test -n "$ac_ct_LD"; then
3886 echo "$as_me:3886: result: $ac_ct_LD" >&5
3887 echo "${ECHO_T}$ac_ct_LD" >&6
3889 echo "$as_me:3889: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}ar; ac_word=$2
3901 echo "$as_me:3901: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_prog_AR+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 if test -n "$AR"; then
3907 ac_cv_prog_AR="$AR" # Let the user override the test.
3909 ac_save_IFS=$IFS; IFS=$ac_path_separator
3911 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 $as_executable_p "$ac_dir/$ac_word" || continue
3915 ac_cv_prog_AR="${ac_tool_prefix}ar"
3916 echo "$as_me:3916: found $ac_dir/$ac_word" >&5
3923 if test -n "$AR"; then
3924 echo "$as_me:3924: result: $AR" >&5
3925 echo "${ECHO_T}$AR" >&6
3927 echo "$as_me:3927: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3932 if test -z "$ac_cv_prog_AR"; then
3934 # Extract the first word of "ar", so it can be a program name with args.
3935 set dummy ar; ac_word=$2
3936 echo "$as_me:3936: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 if test -n "$ac_ct_AR"; then
3942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3944 ac_save_IFS=$IFS; IFS=$ac_path_separator
3946 for ac_dir in $ac_dummy; do
3948 test -z "$ac_dir" && ac_dir=.
3949 $as_executable_p "$ac_dir/$ac_word" || continue
3950 ac_cv_prog_ac_ct_AR="ar"
3951 echo "$as_me:3951: found $ac_dir/$ac_word" >&5
3955 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3959 if test -n "$ac_ct_AR"; then
3960 echo "$as_me:3960: result: $ac_ct_AR" >&5
3961 echo "${ECHO_T}$ac_ct_AR" >&6
3963 echo "$as_me:3963: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3972 if test -n "$ac_tool_prefix"; then
3973 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3974 set dummy ${ac_tool_prefix}ar; ac_word=$2
3975 echo "$as_me:3975: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_prog_AR+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 if test -n "$AR"; then
3981 ac_cv_prog_AR="$AR" # Let the user override the test.
3983 ac_save_IFS=$IFS; IFS=$ac_path_separator
3985 for ac_dir in $ac_dummy; do
3987 test -z "$ac_dir" && ac_dir=.
3988 $as_executable_p "$ac_dir/$ac_word" || continue
3989 ac_cv_prog_AR="${ac_tool_prefix}ar"
3990 echo "$as_me:3990: found $ac_dir/$ac_word" >&5
3997 if test -n "$AR"; then
3998 echo "$as_me:3998: result: $AR" >&5
3999 echo "${ECHO_T}$AR" >&6
4001 echo "$as_me:4001: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -z "$ac_cv_prog_AR"; then
4008 # Extract the first word of "ar", so it can be a program name with args.
4009 set dummy ar; ac_word=$2
4010 echo "$as_me:4010: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if test -n "$ac_ct_AR"; then
4016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4018 ac_save_IFS=$IFS; IFS=$ac_path_separator
4020 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 $as_executable_p "$ac_dir/$ac_word" || continue
4024 ac_cv_prog_ac_ct_AR="ar"
4025 echo "$as_me:4025: found $ac_dir/$ac_word" >&5
4029 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4032 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4033 if test -n "$ac_ct_AR"; then
4034 echo "$as_me:4034: result: $ac_ct_AR" >&5
4035 echo "${ECHO_T}$ac_ct_AR" >&6
4037 echo "$as_me:4037: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4046 echo "$as_me:4046: checking for options to update archives" >&5
4047 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4048 if test "${cf_cv_ar_flags+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 cf_cv_ar_flags=unknown
4053 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4055 rm -f conftest.$ac_cv_objext
4058 cat >conftest.$ac_ext <<EOF
4059 #line 4059 "configure"
4060 int testdata[3] = { 123, 456, 789 };
4062 if { (eval echo "$as_me:4062: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>&5
4065 echo "$as_me:4065: \$? = $ac_status" >&5
4066 (exit $ac_status); } ; then
4067 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4068 if test -f conftest.a ; then
4069 cf_cv_ar_flags=$cf_ar_flags
4073 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4075 echo "${as_me-configure}:4075: testing cannot compile test-program ..." 1>&5