2 # From configure.in Revision: 1.700 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200111.
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 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
615 ac_env_CXX_set=${CXX+set}
616 ac_env_CXX_value=$CXX
617 ac_cv_env_CXX_set=${CXX+set}
618 ac_cv_env_CXX_value=$CXX
619 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
620 ac_env_CXXFLAGS_value=$CXXFLAGS
621 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
623 ac_env_CXXCPP_set=${CXXCPP+set}
624 ac_env_CXXCPP_value=$CXXCPP
625 ac_cv_env_CXXCPP_set=${CXXCPP+set}
626 ac_cv_env_CXXCPP_value=$CXXCPP
629 # Report the --help message.
631 if test "$ac_init_help" = "long"; then
632 # Omit some internal or obsolete options to make the list less imposing.
633 # This message is too long to be a string in the A/UX 3.1 sh.
635 \`configure' configures this package to adapt to many kinds of systems.
637 Usage: $0 [OPTION]... [VAR=VALUE]...
639 To assign environment variables (e.g., CC, CFLAGS...), specify them as
640 VAR=VALUE. See below for descriptions of some of the useful variables.
642 Defaults for the options are specified in brackets.
645 -h, --help display this help and exit
646 --help=short display options specific to this package
647 --help=recursive display the short help of all the included packages
648 -V, --version display version information and exit
649 -q, --quiet, --silent do not print \`checking...' messages
650 --cache-file=FILE cache test results in FILE [disabled]
651 -C, --config-cache alias for \`--cache-file=config.cache'
652 -n, --no-create do not create output files
653 --srcdir=DIR find the sources in DIR [configure dir or \`..']
658 Installation directories:
659 --prefix=PREFIX install architecture-independent files in PREFIX
661 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 By default, \`make install' will install all the files in
665 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
666 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
667 for instance \`--prefix=\$HOME'.
669 For better control, use the options below.
671 Fine tuning of the installation directories:
672 --bindir=DIR user executables [EPREFIX/bin]
673 --sbindir=DIR system admin executables [EPREFIX/sbin]
674 --libexecdir=DIR program executables [EPREFIX/libexec]
675 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
676 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
677 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
678 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
679 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
680 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
681 --libdir=DIR object code libraries [EPREFIX/lib]
682 --includedir=DIR C header files [PREFIX/include]
683 --oldincludedir=DIR C header files for non-gcc [/usr/include]
684 --infodir=DIR info documentation [DATAROOTDIR/info]
685 --mandir=DIR man documentation [DATAROOTDIR/man]
691 --program-prefix=PREFIX prepend PREFIX to installed program names
692 --program-suffix=SUFFIX append SUFFIX to installed program names
693 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
696 --build=BUILD configure for building on BUILD [guessed]
697 --host=HOST build programs to run on HOST [BUILD]
698 --target=TARGET configure for building compilers for TARGET [HOST]
702 if test -n "$ac_init_help"; then
707 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
708 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
714 --with-rel-version=XXX override derived release version
715 --with-abi-version=XXX override derived ABI version
716 --with-system-type=XXX test: override derived host system-type
717 --without-ada suppress check for Ada compiler, don't build demo
718 --without-cxx do not adjust ncurses bool to match C++
719 --without-cxx-binding do not build C++ binding and demo
720 --disable-db-install suppress install of terminal database
721 --without-manpages suppress install of manpages
722 --without-progs suppress build/install with programs (e.g., tic)
723 --without-tack suppress build/install with tack program
724 --without-tests suppress build/install with test-programs
725 --without-curses-h install curses.h as ncurses.h only
726 --with-config-suffix=X suffixes ncursesXX-config file
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-pkg-config-libdir=XXX use given directory for installing pc-files
729 --enable-pc-files generate and install .pc files for pkg-config
730 --with-pc-suffix suffixes pc-files
731 --enable-mixed-case tic should assume mixed-case filenames
732 --with-install-prefix prefixes actual install-location ($DESTDIR)
733 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
734 --with-build-cc=XXX the build C compiler ($BUILD_CC)
735 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
736 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
737 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
738 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
739 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
740 Options to Specify the Libraries Built/Used:
741 --disable-libtool-version enable to use libtool's incompatible naming scheme
742 --with-libtool generate libraries with libtool
743 --with-shared generate shared-libraries
744 --with-normal generate normal-libraries (default)
745 --with-debug generate debug-libraries (default)
746 --with-profile generate profile-libraries
747 --with-cxx-shared generate C++ shared-libraries
748 --with-lib-prefix override library-prefix
749 --with-termlib generate separate terminfo library
750 --with-ticlib generate separate tic library
751 --enable-rpath use rpath option when generating shared libraries
752 --disable-relink relink shared libraries during install
753 --with-shlib-version=X Specify rel or abi version for shared libs
754 --with-libtool-opts=XXX specify additional libtool options
755 --with-export-syms=XXX limit exported symbols using libtool
756 --with-versioned-syms=X markup versioned symbols using ld
757 --with-gpm use Alessandro Rubini's GPM library
758 --without-dlsym do not use dlsym() to load GPM dynamically
759 --with-pcre2 use PCRE2 for regular-expressions
760 --with-sysmouse use sysmouse (FreeBSD console)
761 --disable-lib-suffixes disable library suffixes
762 --disable-rpath-hack don't add rpath options for additional libraries
763 Fine-Tuning Your Configuration:
764 --with-extra-suffix=X append extra suffix to header/library paths
765 --disable-overwrite put headers in subdir, omit link to -lcurses
766 --disable-database do not use terminfo, only fallbacks/termcap
767 --with-database=XXX specify terminfo source to install
768 --with-hashed-db specify hashed-database library
769 --with-fallbacks=XXX specify list of fallback terminal descriptions
770 --with-tic-path=XXX specify path of tic for fallbacks
771 --with-infocmp-path=XXX specify path of infocmp for fallbacks
772 --without-xterm-new specify if xterm terminfo should be old version
773 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
774 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
775 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
776 --disable-big-core assume machine has little memory
777 --disable-big-strings assume compiler has only standard-size strings
778 --enable-termcap compile in termcap fallback support
779 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
780 --enable-getcap fast termcap load, no xrefs to terminfo
781 --enable-getcap-cache cache translated termcaps in ~/.terminfo
782 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
783 --disable-root-environ restrict environment when running as root
784 --enable-symlinks make tic use symbolic links not hard links
785 --enable-broken_linker compile with broken-linker support code
786 --enable-bsdpad recognize BSD-style prefix padding
787 --enable-widec compile with wide-char/UTF-8 code
788 --disable-lp64 allow chtype to be long (ignore _LP64)
789 --disable-largefile omit support for large files
790 --disable-tparm-varargs compile tparm() without varargs interface
791 --disable-tic-depends link tic library without explicit dependency on ncurses library
792 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
793 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
794 --with-bool=TYPE override fallback type of bool variable
795 --with-caps=alt compile with alternate Caps file
796 --with-chtype=TYPE override type of chtype
797 --with-ospeed=TYPE override type of ospeed variable
798 --with-mmask-t=TYPE override type of mmask_t
799 --with-ccharw-max=XXX override size CCHARW_MAX
800 --enable-signed-char compile using signed Boolean's in term.h
801 --with-tparm-arg=TYPE override parameter type of tparm
802 --with-rcs-ids compile-in RCS identifiers
803 Options to Specify How Manpages are Installed:
804 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
805 optionally formatted/catonly, e.g., gzip,formatted
806 --with-manpage-renames specify manpage-renaming
807 --with-manpage-aliases specify manpage-aliases using .so
808 --with-manpage-symlinks specify manpage-aliases using symlinks
809 --with-manpage-tbl specify manpage processing with tbl
811 --disable-ext-funcs disable function-extensions
812 --enable-sp-funcs enable SCREEN-extensions
813 --enable-term-driver enable terminal-driver
814 --enable-const compile with extra/non-standard const
815 --enable-ext-colors compile for 256-color support
816 --enable-ext-mouse compile for extended mouse-encoding
817 --enable-ext-putwin compile with extended putwin/screendump
818 --enable-no-padding compile with $NCURSES_NO_PADDING code
819 --enable-sigwinch compile with SIGWINCH handler
820 --enable-tcap-names compile with user-definable terminal capabilities
822 --with-pthread use POSIX thread library
823 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
824 --enable-weak-symbols enable weak-symbols for pthreads
825 --enable-reentrant compile with reentrant code
826 --enable-opaque-curses make curses WINDOW, etc., "opaque"
827 --enable-opaque-form make form-library structures "opaque"
828 --enable-opaque-menu make menu-library structures "opaque"
829 --enable-opaque-panel make panel-library structures "opaque"
830 --with-wrap-prefix=XXX override prefix used for public variables
832 --without-develop disable development options
833 --enable-hard-tabs compile with hard-tabs code
834 --enable-xmc-glitch compile with support for xmc (magic-cookie)
836 --disable-assumed-color do not assume anything about default-colors
837 --disable-hashmap compile without hashmap scrolling-optimization
838 --enable-colorfgbg compile-in experimental $COLORFGBG code
839 --enable-interop compile-in interop bindings
840 --enable-safe-sprintf compile with experimental safe-sprintf code
841 --disable-scroll-hints compile without scroll-hints code
842 --enable-wgetch-events compile with wgetch-events code
843 Testing/development Options:
844 --disable-echo do not display "compiling" commands
845 --disable-stripping do not strip (debug info) installed executables
846 --enable-warnings build: turn on GCC compiler warnings
847 --enable-string-hacks work around bogus compiler/loader warnings
848 --enable-assertions test: turn on generation of assertion code
849 --with-dmalloc test: use Gray Watson's dmalloc library
850 --with-dbmalloc test: use Conor Cahill's dbmalloc library
851 --with-valgrind test: use valgrind
852 --disable-leaks test: free permanent memory, analyze leaks
853 --enable-expanded test: generate functions for certain macros
854 --disable-macros test: use functions rather than macros
855 --with-trace test: add trace() function to all models of ncurses
856 --disable-gnat-projects test: disable GNAT projects even if usable
858 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
859 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
860 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
861 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
862 --with-ada-libname=XXX override default Ada library-name
863 --with-form-libname=XXX override form basename of library
864 --with-menu-libname=XXX override menu basename of library
865 --with-panel-libname=XXX override panel basename of library
866 --with-cxx-libname=XXX override ncurses++ basename of library
868 Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
876 CXX C++ compiler command
877 CXXFLAGS C++ compiler flags
878 CXXCPP C++ preprocessor
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
889 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
891 # A "../" for each directory in /$ac_subdir.
892 ac_dots=`echo $ac_subdir |
893 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
896 .) # No --srcdir option. We are building in place.
897 ac_sub_srcdir=$srcdir ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_sub_srcdir=$srcdir/$ac_subdir ;;
901 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
904 # Check for guested configure; otherwise get Cygnus style configure.
905 if test -f $ac_sub_srcdir/configure.gnu; then
907 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
908 elif test -f $ac_sub_srcdir/configure; then
910 $SHELL $ac_sub_srcdir/configure --help=recursive
911 elif test -f $ac_sub_srcdir/configure.ac ||
912 test -f $ac_sub_srcdir/configure.in; then
916 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
922 test -n "$ac_init_help" && exit 0
923 if $ac_init_version; then
926 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
927 Free Software Foundation, Inc.
928 This configure script is free software; the Free Software Foundation
929 gives unlimited permission to copy, distribute and modify it.
935 This file contains any messages produced by compilers while
936 running configure, to aid debugging if configure makes a mistake.
938 It was created by $as_me, which was
939 generated by GNU Autoconf 2.52.20200111. Invocation command line was
950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
962 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 # Keep a trace of the command line.
980 # Strip out --no-create and --no-recursion so they do not pile up.
981 # Also quote any args containing shell meta-characters.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c) ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
991 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
992 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
993 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
995 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
998 # Get rid of the leading space.
1001 # When interrupted or exit'd, cleanup temporary files, and complete
1002 # config.log. We remove comments because anyway the quotes in there
1003 # would cause problems or look ugly.
1004 trap 'exit_status=$?
1005 # Save into config.log some information that might help in debugging.
1007 echo "## ----------------- ##" >&5
1008 echo "## Cache variables. ##" >&5
1009 echo "## ----------------- ##" >&5
1011 # The following way of writing the cache mishandles newlines in values,
1014 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1017 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1026 sed "/^$/d" confdefs.h >conftest.log
1027 if test -s conftest.log; then
1029 echo "## ------------ ##" >&5
1030 echo "## confdefs.h. ##" >&5
1031 echo "## ------------ ##" >&5
1033 cat conftest.log >&5
1036 test "$ac_signal" != 0 &&
1037 echo "$as_me: caught signal $ac_signal" >&5
1038 echo "$as_me: exit $exit_status" >&5
1039 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1042 for ac_signal in 1 2 13 15; do
1043 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1048 rm -rf conftest* confdefs.h
1049 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1052 # Let the site file select an alternate cache file if it wants to.
1053 # Prefer explicitly selected file to automatically selected ones.
1054 if test -z "$CONFIG_SITE"; then
1055 if test "x$prefix" != xNONE; then
1056 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1058 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1061 for ac_site_file in $CONFIG_SITE; do
1062 if test -r "$ac_site_file"; then
1063 { echo "$as_me:1063: loading site script $ac_site_file" >&5
1064 echo "$as_me: loading site script $ac_site_file" >&6;}
1065 cat "$ac_site_file" >&5
1070 if test -r "$cache_file"; then
1071 # Some versions of bash will fail to source /dev/null (special
1072 # files actually), so we avoid doing that.
1073 if test -f "$cache_file"; then
1074 { echo "$as_me:1074: loading cache $cache_file" >&5
1075 echo "$as_me: loading cache $cache_file" >&6;}
1077 [\\/]* | ?:[\\/]* ) . $cache_file;;
1078 *) . ./$cache_file;;
1082 { echo "$as_me:1082: creating cache $cache_file" >&5
1083 echo "$as_me: creating cache $cache_file" >&6;}
1087 # Check that the precious variables saved in the cache have kept the same
1089 ac_cache_corrupted=false
1090 for ac_var in `(set) 2>&1 |
1091 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1093 eval ac_new_set=\$ac_env_${ac_var}_set
1094 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1095 eval ac_new_val="\$ac_env_${ac_var}_value"
1096 case $ac_old_set,$ac_new_set in
1098 { echo "$as_me:1098: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1099 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1100 ac_cache_corrupted=: ;;
1102 { echo "$as_me:1102: error: \`$ac_var' was not set in the previous run" >&5
1103 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1104 ac_cache_corrupted=: ;;
1107 if test "x$ac_old_val" != "x$ac_new_val"; then
1108 { echo "$as_me:1108: error: \`$ac_var' has changed since the previous run:" >&5
1109 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1110 { echo "$as_me:1110: former value: $ac_old_val" >&5
1111 echo "$as_me: former value: $ac_old_val" >&2;}
1112 { echo "$as_me:1112: current value: $ac_new_val" >&5
1113 echo "$as_me: current value: $ac_new_val" >&2;}
1114 ac_cache_corrupted=:
1117 # Pass precious variables to config.status. It doesn't matter if
1118 # we pass some twice (in addition to the command line arguments).
1119 if test "$ac_new_set" = set; then
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1123 ac_configure_args="$ac_configure_args '$ac_arg'"
1125 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1130 if $ac_cache_corrupted; then
1131 { echo "$as_me:1131: error: changes in the environment can compromise the build" >&5
1132 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1133 { { echo "$as_me:1133: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1134 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1135 { (exit 1); exit 1; }; }
1139 ac_cpp='$CPP $CPPFLAGS'
1140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1143 ac_main_return=return
1145 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1146 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1148 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1149 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1151 echo "#! $SHELL" >conftest.sh
1152 echo "exit 0" >>conftest.sh
1153 chmod +x conftest.sh
1154 if { (echo "$as_me:1154: PATH=\".;.\"; conftest.sh") >&5
1155 (PATH=".;."; conftest.sh) 2>&5
1157 echo "$as_me:1157: \$? = $ac_status" >&5
1158 (exit $ac_status); }; then
1159 ac_path_separator=';'
1163 PATH_SEPARATOR="$ac_path_separator"
1166 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1170 echo "$as_me:1170: checking for egrep" >&5
1171 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1172 if test "${ac_cv_prog_egrep+set}" = set; then
1173 echo $ECHO_N "(cached) $ECHO_C" >&6
1175 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1176 then ac_cv_prog_egrep='grep -E'
1177 else ac_cv_prog_egrep='egrep'
1180 echo "$as_me:1180: result: $ac_cv_prog_egrep" >&5
1181 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1182 EGREP=$ac_cv_prog_egrep
1184 test -z "$EGREP" && { { echo "$as_me:1184: error: No egrep program found" >&5
1185 echo "$as_me: error: No egrep program found" >&2;}
1186 { (exit 1); exit 1; }; }
1188 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1189 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1190 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1191 cf_cv_abi_version=${NCURSES_MAJOR}
1192 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1193 cf_cv_timestamp=`date`
1194 echo "$as_me:1194: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1195 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1197 if test -f $srcdir/VERSION ; then
1198 echo "$as_me:1198: checking for package version" >&5
1199 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1201 # if there are not enough fields, cut returns the last one...
1202 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1203 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1204 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1206 # this is how CF_BUNDLED_INTL uses $VERSION:
1207 VERSION="$cf_field1"
1209 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1210 test -z "$VERSION_MAJOR" && { { echo "$as_me:1210: error: missing major-version" >&5
1211 echo "$as_me: error: missing major-version" >&2;}
1212 { (exit 1); exit 1; }; }
1214 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1215 test -z "$VERSION_MINOR" && { { echo "$as_me:1215: error: missing minor-version" >&5
1216 echo "$as_me: error: missing minor-version" >&2;}
1217 { (exit 1); exit 1; }; }
1219 echo "$as_me:1219: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1220 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1222 echo "$as_me:1222: checking for package patch date" >&5
1223 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1224 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1225 case .$VERSION_PATCH in
1227 { { echo "$as_me:1227: error: missing patch-date $VERSION_PATCH" >&5
1228 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1229 { (exit 1); exit 1; }; }
1231 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1234 { { echo "$as_me:1234: error: illegal patch-date $VERSION_PATCH" >&5
1235 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1236 { (exit 1); exit 1; }; }
1239 echo "$as_me:1239: result: $VERSION_PATCH" >&5
1240 echo "${ECHO_T}$VERSION_PATCH" >&6
1242 { { echo "$as_me:1242: error: did not find $srcdir/VERSION" >&5
1243 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1244 { (exit 1); exit 1; }; }
1247 # show the actual data that we have for versions:
1248 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1250 echo "${as_me:-configure}:1250: testing ABI VERSION $VERSION ..." 1>&5
1252 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1254 echo "${as_me:-configure}:1254: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1256 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1258 echo "${as_me:-configure}:1258: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1260 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1262 echo "${as_me:-configure}:1262: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1267 cat >>confdefs.h <<EOF
1268 #define PACKAGE "$PACKAGE"
1271 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1273 cat >>confdefs.h <<EOF
1274 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1277 cat >>confdefs.h <<EOF
1278 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1281 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1283 # Check whether --with-rel-version or --without-rel-version was given.
1284 if test "${with_rel_version+set}" = set; then
1285 withval="$with_rel_version"
1286 { echo "$as_me:1286: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1287 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1288 cf_cv_rel_version=$withval
1291 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1292 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1294 if test -n "$NCURSES_MAJOR" ; then
1295 case $NCURSES_MAJOR in
1299 { { echo "$as_me:1299: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1300 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1301 { (exit 1); exit 1; }; }
1305 { { echo "$as_me:1305: error: Release major-version value is empty" >&5
1306 echo "$as_me: error: Release major-version value is empty" >&2;}
1307 { (exit 1); exit 1; }; }
1310 if test -n "$NCURSES_MINOR" ; then
1311 case $NCURSES_MINOR in
1315 { { echo "$as_me:1315: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1316 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1317 { (exit 1); exit 1; }; }
1321 { { echo "$as_me:1321: error: Release minor-version value is empty" >&5
1322 echo "$as_me: error: Release minor-version value is empty" >&2;}
1323 { (exit 1); exit 1; }; }
1326 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1328 # Check whether --with-abi-version or --without-abi-version was given.
1329 if test "${with_abi_version+set}" = set; then
1330 withval="$with_abi_version"
1332 if test "x$cf_cv_abi_version" != "x$withval"
1334 { echo "$as_me:1334: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1335 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1336 case $cf_cv_rel_version in
1338 cf_cv_rel_version=$withval.0
1341 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1345 cf_cv_abi_version=$withval
1348 if test -n "$cf_cv_abi_version" ; then
1349 case $cf_cv_abi_version in
1353 { { echo "$as_me:1353: error: ABI version is not a number: $cf_cv_abi_version" >&5
1354 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1355 { (exit 1); exit 1; }; }
1359 { { echo "$as_me:1359: error: ABI version value is empty" >&5
1360 echo "$as_me: error: ABI version value is empty" >&2;}
1361 { (exit 1); exit 1; }; }
1364 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1366 case $cf_cv_rel_version in
1368 cf_cv_rel_version=$with_abi_version.0
1374 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1375 if test -f $ac_dir/install-sh; then
1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 elif test -f $ac_dir/install.sh; then
1381 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 elif test -f $ac_dir/shtool; then
1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1389 if test -z "$ac_aux_dir"; then
1390 { { echo "$as_me:1390: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1392 { (exit 1); exit 1; }; }
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:1400: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1404 echo "$as_me:1404: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:1413: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:1417: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:1422: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 echo "$as_me:1429: checking host system type" >&5
1430 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1431 if test "${ac_cv_host+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_host_alias=$host_alias
1435 test -z "$ac_cv_host_alias" &&
1436 ac_cv_host_alias=$ac_cv_build_alias
1437 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1438 { { echo "$as_me:1438: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:1443: result: $ac_cv_host" >&5
1444 echo "${ECHO_T}$ac_cv_host" >&6
1446 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1451 echo "$as_me:1451: checking target system type" >&5
1452 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1453 if test "${ac_cv_target+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 ac_cv_target_alias=$target_alias
1457 test "x$ac_cv_target_alias" = "x" &&
1458 ac_cv_target_alias=$ac_cv_host_alias
1459 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1460 { { echo "$as_me:1460: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1462 { (exit 1); exit 1; }; }
1465 echo "$as_me:1465: result: $ac_cv_target" >&5
1466 echo "${ECHO_T}$ac_cv_target" >&6
1467 target=$ac_cv_target
1468 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1469 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1470 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1477 program_prefix=${target_alias}-
1478 system_name="$host_os"
1480 system_name="`(uname -s -r) 2>/dev/null`"
1481 if test -z "$system_name" ; then
1482 system_name="`(hostname) 2>/dev/null`"
1485 test -n "$system_name" &&
1486 cat >>confdefs.h <<EOF
1487 #define SYSTEM_NAME "$system_name"
1490 if test "${cf_cv_system_name+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 cf_cv_system_name="$system_name"
1496 test -z "$system_name" && system_name="$cf_cv_system_name"
1497 test -n "$cf_cv_system_name" && echo "$as_me:1497: result: Configuring for $cf_cv_system_name" >&5
1498 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1500 if test ".$system_name" != ".$cf_cv_system_name" ; then
1501 echo "$as_me:1501: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1502 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1503 { { echo "$as_me:1503: error: \"Please remove config.cache and try again.\"" >&5
1504 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1505 { (exit 1); exit 1; }; }
1508 # Check whether --with-system-type or --without-system-type was given.
1509 if test "${with_system_type+set}" = set; then
1510 withval="$with_system_type"
1511 { echo "$as_me:1511: WARNING: overriding system type to $withval" >&5
1512 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1513 cf_cv_system_name=$withval
1518 ### Save the given $CFLAGS to allow user-override.
1519 cf_user_CFLAGS="$CFLAGS"
1521 ### Default install-location
1523 echo "$as_me:1523: checking for prefix" >&5
1524 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1525 if test "x$prefix" = "xNONE" ; then
1526 case "$cf_cv_system_name" in
1527 # non-vendor systems don't have a conflict
1528 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1531 (*) prefix=$ac_default_prefix
1535 echo "$as_me:1535: result: $prefix" >&5
1536 echo "${ECHO_T}$prefix" >&6
1538 if test "x$prefix" = "xNONE" ; then
1539 echo "$as_me:1539: checking for default include-directory" >&5
1540 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1541 test -n "$verbose" && echo 1>&6
1544 $includedir/ncurses \
1546 $prefix/include/ncurses \
1547 /usr/local/include \
1548 /usr/local/include/ncurses \
1550 /usr/include/ncurses
1552 cf_dir=`eval echo $cf_symbol`
1553 if test -f $cf_dir/curses.h ; then
1554 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1555 includedir="$cf_symbol"
1556 test -n "$verbose" && echo $ac_n " found " 1>&6
1560 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1562 echo "$as_me:1562: result: $includedir" >&5
1563 echo "${ECHO_T}$includedir" >&6
1566 ### Defaults for ncurses ABI
1568 case x$cf_cv_abi_version in
1570 cf_dft_ext_colors=yes
1571 cf_dft_ext_const=yes
1572 cf_dft_ext_mouse=yes
1573 cf_dft_ext_putwin=yes
1574 cf_dft_ext_spfuncs=yes
1575 cf_dft_filter_syms=yes
1576 cf_dft_chtype=uint32_t
1577 cf_dft_mmask_t=uint32_t
1579 cf_dft_tparm_arg=intptr_t
1580 cf_dft_with_lp64=yes
1583 cf_dft_ext_colors=no
1586 cf_dft_ext_putwin=no
1587 cf_dft_ext_spfuncs=no
1588 cf_dft_filter_syms=no
1592 cf_dft_tparm_arg=long
1597 ### Checks for programs.
1599 # Check whether --with-ada or --without-ada was given.
1600 if test "${with_ada+set}" = set; then
1602 cf_with_ada=$withval
1607 if test "x$cf_with_ada" = xyes
1609 cf_prog_cc="gnatgcc gcc cc"
1615 ac_cpp='$CPP $CPPFLAGS'
1616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1619 ac_main_return=return
1620 if test -n "$ac_tool_prefix"; then
1621 for ac_prog in $cf_prog_cc
1623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625 echo "$as_me:1625: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1633 ac_save_IFS=$IFS; IFS=$ac_path_separator
1635 for ac_dir in $ac_dummy; do
1637 test -z "$ac_dir" && ac_dir=.
1638 $as_executable_p "$ac_dir/$ac_word" || continue
1639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1640 echo "$as_me:1640: found $ac_dir/$ac_word" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:1648: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:1651: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$CC" && break
1658 if test -z "$CC"; then
1660 for ac_prog in $cf_prog_cc
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:1664: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 ac_save_IFS=$IFS; IFS=$ac_path_separator
1674 for ac_dir in $ac_dummy; do
1676 test -z "$ac_dir" && ac_dir=.
1677 $as_executable_p "$ac_dir/$ac_word" || continue
1678 ac_cv_prog_ac_ct_CC="$ac_prog"
1679 echo "$as_me:1679: found $ac_dir/$ac_word" >&5
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:1687: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1690 echo "$as_me:1690: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$ac_ct_CC" && break
1700 test -z "$CC" && { { echo "$as_me:1700: error: no acceptable cc found in \$PATH" >&5
1701 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1702 { (exit 1); exit 1; }; }
1704 # Provide some information about the compiler.
1705 echo "$as_me:1705:" \
1706 "checking for C compiler version" >&5
1707 ac_compiler=`set X $ac_compile; echo $2`
1708 { (eval echo "$as_me:1708: \"$ac_compiler --version </dev/null >&5\"") >&5
1709 (eval $ac_compiler --version </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -v </dev/null >&5\"") >&5
1714 (eval $ac_compiler -v </dev/null >&5) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1718 { (eval echo "$as_me:1718: \"$ac_compiler -V </dev/null >&5\"") >&5
1719 (eval $ac_compiler -V </dev/null >&5) 2>&5
1721 echo "$as_me:1721: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #line 1725 "configure"
1726 #include "confdefs.h"
1736 ac_clean_files_save=$ac_clean_files
1737 ac_clean_files="$ac_clean_files a.out a.exe"
1738 # Try to create an executable without -o first, disregard a.out.
1739 # It will help us diagnose broken compilers, and finding out an intuition
1741 echo "$as_me:1741: checking for C compiler default output" >&5
1742 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1743 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1744 if { (eval echo "$as_me:1744: \"$ac_link_default\"") >&5
1745 (eval $ac_link_default) 2>&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); }; then
1749 # Find the output, starting from the most likely. This scheme is
1750 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1752 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1753 ls a.out conftest 2>/dev/null;
1754 ls a.* conftest.* 2>/dev/null`; do
1756 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1757 a.out ) # We found the default executable, but exeext='' is most
1760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1761 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1768 echo "$as_me: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 { { echo "$as_me:1770: error: C compiler cannot create executables" >&5
1771 echo "$as_me: error: C compiler cannot create executables" >&2;}
1772 { (exit 77); exit 77; }; }
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:1776: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:1781: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:1787: \"$ac_try\"") >&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 if test "$cross_compiling" = maybe; then
1797 { { echo "$as_me:1797: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&2;}
1801 { (exit 1); exit 1; }; }
1805 echo "$as_me:1805: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1808 rm -f a.out a.exe conftest$ac_cv_exeext
1809 ac_clean_files=$ac_clean_files_save
1810 # Check the compiler produces executables we can run. If not, either
1811 # the compiler is broken, or we cross compile.
1812 echo "$as_me:1812: checking whether we are cross compiling" >&5
1813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1814 echo "$as_me:1814: result: $cross_compiling" >&5
1815 echo "${ECHO_T}$cross_compiling" >&6
1817 echo "$as_me:1817: checking for executable suffix" >&5
1818 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1819 if { (eval echo "$as_me:1819: \"$ac_link\"") >&5
1820 (eval $ac_link) 2>&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; then
1824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1826 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 { { echo "$as_me:1838: error: cannot compute EXEEXT: cannot compile and link" >&5
1839 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1840 { (exit 1); exit 1; }; }
1843 rm -f conftest$ac_cv_exeext
1844 echo "$as_me:1844: result: $ac_cv_exeext" >&5
1845 echo "${ECHO_T}$ac_cv_exeext" >&6
1847 rm -f conftest.$ac_ext
1848 EXEEXT=$ac_cv_exeext
1850 echo "$as_me:1850: checking for object suffix" >&5
1851 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1852 if test "${ac_cv_objext+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line 1856 "configure"
1857 #include "confdefs.h"
1867 rm -f conftest.o conftest.obj
1868 if { (eval echo "$as_me:1868: \"$ac_compile\"") >&5
1869 (eval $ac_compile) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1876 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1881 echo "$as_me: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 { { echo "$as_me:1883: error: cannot compute OBJEXT: cannot compile" >&5
1884 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1885 { (exit 1); exit 1; }; }
1888 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1890 echo "$as_me:1890: result: $ac_cv_objext" >&5
1891 echo "${ECHO_T}$ac_cv_objext" >&6
1892 OBJEXT=$ac_cv_objext
1894 echo "$as_me:1894: checking whether we are using the GNU C compiler" >&5
1895 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1896 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 cat >conftest.$ac_ext <<_ACEOF
1900 #line 1900 "configure"
1901 #include "confdefs.h"
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:1915: \"$ac_compile\"") >&5
1916 (eval $ac_compile) 2>&5
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); } &&
1920 { ac_try='test -s conftest.$ac_objext'
1921 { (eval echo "$as_me:1921: \"$ac_try\"") >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1928 echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1932 rm -f conftest.$ac_objext conftest.$ac_ext
1933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1936 echo "$as_me:1936: result: $ac_cv_c_compiler_gnu" >&5
1937 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1938 GCC=`test $ac_compiler_gnu = yes && echo yes`
1939 ac_test_CFLAGS=${CFLAGS+set}
1940 ac_save_CFLAGS=$CFLAGS
1942 echo "$as_me:1942: checking whether $CC accepts -g" >&5
1943 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1944 if test "${ac_cv_prog_cc_g+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line 1948 "configure"
1949 #include "confdefs.h"
1959 rm -f conftest.$ac_objext
1960 if { (eval echo "$as_me:1960: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); } &&
1965 { ac_try='test -s conftest.$ac_objext'
1966 { (eval echo "$as_me:1966: \"$ac_try\"") >&5
1969 echo "$as_me:1969: \$? = $ac_status" >&5
1970 (exit $ac_status); }; }; then
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1979 echo "$as_me:1979: result: $ac_cv_prog_cc_g" >&5
1980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1981 if test "$ac_test_CFLAGS" = set; then
1982 CFLAGS=$ac_save_CFLAGS
1983 elif test $ac_cv_prog_cc_g = yes; then
1984 if test "$GCC" = yes; then
1990 if test "$GCC" = yes; then
1996 # Some people use a C++ compiler to compile C. Since we use `exit',
1997 # in C++ we need to declare it. In case someone uses the same compiler
1998 # for both compiling C and C++ we need to have the C++ compiler decide
1999 # the declaration of exit, since it's the most demanding environment.
2000 cat >conftest.$ac_ext <<_ACEOF
2005 rm -f conftest.$ac_objext
2006 if { (eval echo "$as_me:2006: \"$ac_compile\"") >&5
2007 (eval $ac_compile) 2>&5
2009 echo "$as_me:2009: \$? = $ac_status" >&5
2010 (exit $ac_status); } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:2012: \"$ac_try\"") >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 for ac_declaration in \
2019 '#include <stdlib.h>' \
2020 'extern "C" void std::exit (int) throw (); using std::exit;' \
2021 'extern "C" void std::exit (int); using std::exit;' \
2022 'extern "C" void exit (int) throw ();' \
2023 'extern "C" void exit (int);' \
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line 2027 "configure"
2028 #include "confdefs.h"
2039 rm -f conftest.$ac_objext
2040 if { (eval echo "$as_me:2040: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -s conftest.$ac_objext'
2046 { (eval echo "$as_me:2046: \"$ac_try\"") >&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); }; }; then
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2058 cat >conftest.$ac_ext <<_ACEOF
2059 #line 2059 "configure"
2060 #include "confdefs.h"
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:2071: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2074 echo "$as_me:2074: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:2077: \"$ac_try\"") >&5
2080 echo "$as_me:2080: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 rm -f conftest.$ac_objext conftest.$ac_ext
2090 if test -n "$ac_declaration"; then
2091 echo '#ifdef __cplusplus' >>confdefs.h
2092 echo $ac_declaration >>confdefs.h
2093 echo '#endif' >>confdefs.h
2097 echo "$as_me: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 ac_main_return=return
2109 if test "$GCC" = yes ; then
2110 echo "$as_me:2110: checking version of $CC" >&5
2111 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2112 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2113 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2114 echo "$as_me:2114: result: $GCC_VERSION" >&5
2115 echo "${ECHO_T}$GCC_VERSION" >&6
2120 if test "$GCC" = yes ; then
2123 echo "$as_me:2123: checking if this is really Intel C compiler" >&5
2124 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2125 cf_save_CFLAGS="$CFLAGS"
2126 CFLAGS="$CFLAGS -no-gcc"
2127 cat >conftest.$ac_ext <<_ACEOF
2128 #line 2128 "configure"
2129 #include "confdefs.h"
2135 #ifdef __INTEL_COMPILER
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2157 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2163 rm -f conftest.$ac_objext conftest.$ac_ext
2164 CFLAGS="$cf_save_CFLAGS"
2165 echo "$as_me:2165: result: $INTEL_COMPILER" >&5
2166 echo "${ECHO_T}$INTEL_COMPILER" >&6
2173 if test "$GCC" = yes ; then
2174 echo "$as_me:2174: checking if this is really Clang C compiler" >&5
2175 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2176 cf_save_CFLAGS="$CFLAGS"
2177 CFLAGS="$CFLAGS -Qunused-arguments"
2178 cat >conftest.$ac_ext <<_ACEOF
2179 #line 2179 "configure"
2180 #include "confdefs.h"
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:2196: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2199 echo "$as_me:2199: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:2202: \"$ac_try\"") >&5
2205 echo "$as_me:2205: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2208 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 rm -f conftest.$ac_objext conftest.$ac_ext
2215 CFLAGS="$cf_save_CFLAGS"
2216 echo "$as_me:2216: result: $CLANG_COMPILER" >&5
2217 echo "${ECHO_T}$CLANG_COMPILER" >&6
2220 echo "$as_me:2220: checking for $CC option to accept ANSI C" >&5
2221 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2222 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 ac_cv_prog_cc_stdc=no
2227 cat >conftest.$ac_ext <<_ACEOF
2228 #line 2228 "configure"
2229 #include "confdefs.h"
2232 #include <sys/types.h>
2233 #include <sys/stat.h>
2234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2235 struct buf { int x; };
2236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2237 static char *e (p, i)
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2248 s = g (p, va_arg (v,int));
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX -qlanglvl=ansi
2269 # Ultrix and OSF/1 -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions -Aa -D_HPUX_SOURCE
2272 # SVR4 -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2275 CC="$ac_save_CC $ac_arg"
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:2277: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>&5
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:2283: \"$ac_try\"") >&5
2286 echo "$as_me:2286: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 ac_cv_prog_cc_stdc=$ac_arg
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 rm -f conftest.$ac_objext
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2301 case "x$ac_cv_prog_cc_stdc" in
2303 echo "$as_me:2303: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2306 echo "$as_me:2306: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308 CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 # This should have been defined by AC_PROG_CC
2314 echo "$as_me:2314: checking \$CFLAGS variable" >&5
2315 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2318 echo "$as_me:2318: result: broken" >&5
2319 echo "${ECHO_T}broken" >&6
2320 { echo "$as_me:2320: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2321 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2324 for cf_arg in $cf_flags
2330 cf_new_extra_cppflags=
2332 for cf_add_cflags in $cf_arg
2334 case $cf_fix_cppflags in
2336 case $cf_add_cflags in
2337 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2338 case $cf_add_cflags in
2340 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2342 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2343 && test -z "${cf_tst_cflags}" \
2344 && cf_fix_cppflags=yes
2346 if test $cf_fix_cppflags = yes ; then
2348 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2349 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2352 elif test "${cf_tst_cflags}" = "\"'" ; then
2354 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2355 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2365 case $cf_add_cflags in
2367 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2369 CPPFLAGS=`echo "$CPPFLAGS" | \
2370 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2371 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2376 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2377 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2384 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2385 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2392 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2393 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2395 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2397 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2398 && test -z "${cf_tst_cflags}" \
2399 && cf_fix_cppflags=no
2404 if test -n "$cf_new_cflags" ; then
2406 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2407 CFLAGS="${CFLAGS}$cf_new_cflags"
2411 if test -n "$cf_new_cppflags" ; then
2413 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2414 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2418 if test -n "$cf_new_extra_cppflags" ; then
2420 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2421 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2428 echo "$as_me:2428: result: ok" >&5
2429 echo "${ECHO_T}ok" >&6
2433 echo "$as_me:2433: checking \$CC variable" >&5
2434 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2437 echo "$as_me:2437: result: broken" >&5
2438 echo "${ECHO_T}broken" >&6
2439 { echo "$as_me:2439: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2440 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2442 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2443 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2445 for cf_arg in $cf_flags
2453 cf_new_extra_cppflags=
2455 for cf_add_cflags in $cf_arg
2457 case $cf_fix_cppflags in
2459 case $cf_add_cflags in
2460 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2461 case $cf_add_cflags in
2463 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2465 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2466 && test -z "${cf_tst_cflags}" \
2467 && cf_fix_cppflags=yes
2469 if test $cf_fix_cppflags = yes ; then
2471 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2472 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2475 elif test "${cf_tst_cflags}" = "\"'" ; then
2477 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2478 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2488 case $cf_add_cflags in
2490 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2492 CPPFLAGS=`echo "$CPPFLAGS" | \
2493 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2494 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2499 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2500 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2507 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2508 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2515 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2516 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2518 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2520 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2521 && test -z "${cf_tst_cflags}" \
2522 && cf_fix_cppflags=no
2527 if test -n "$cf_new_cflags" ; then
2529 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2530 CFLAGS="${CFLAGS}$cf_new_cflags"
2534 if test -n "$cf_new_cppflags" ; then
2536 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2537 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2541 if test -n "$cf_new_extra_cppflags" ; then
2543 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2544 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2554 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2556 echo "${as_me:-configure}:2556: testing resulting CC: '$CC' ..." 1>&5
2558 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2560 echo "${as_me:-configure}:2560: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2562 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2564 echo "${as_me:-configure}:2564: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2568 echo "$as_me:2568: result: ok" >&5
2569 echo "${ECHO_T}ok" >&6
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 ac_main_return=return
2579 echo "$as_me:2579: checking how to run the C preprocessor" >&5
2580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2581 # On Suns, sometimes $CPP names a directory.
2582 if test -n "$CPP" && test -d "$CPP"; then
2585 if test -z "$CPP"; then
2586 if test "${ac_cv_prog_CPP+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 # Double quotes because CPP needs to be expanded
2590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2593 for ac_c_preproc_warn_flag in '' yes
2595 # Use a header file that comes with gcc, so configuring glibc
2596 # with a fresh cross-compiler works.
2597 # On the NeXT, cc -E runs the code through the compiler's parser,
2598 # not just through cpp. "Syntax error" is here to catch this case.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line 2600 "configure"
2601 #include "confdefs.h"
2605 if { (eval echo "$as_me:2605: \"$ac_cpp conftest.$ac_ext\"") >&5
2606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2608 egrep -v '^ *\+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); } >/dev/null; then
2613 if test -s conftest.err; then
2614 ac_cpp_err=$ac_c_preproc_warn_flag
2621 if test -z "$ac_cpp_err"; then
2624 echo "$as_me: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2626 # Broken: fails on valid input.
2629 rm -f conftest.err conftest.$ac_ext
2631 # OK, works on sane cases. Now check whether non-existent headers
2632 # can be detected and how.
2633 cat >conftest.$ac_ext <<_ACEOF
2634 #line 2634 "configure"
2635 #include "confdefs.h"
2636 #include <ac_nonexistent.h>
2638 if { (eval echo "$as_me:2638: \"$ac_cpp conftest.$ac_ext\"") >&5
2639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2641 egrep -v '^ *\+' conftest.er1 >conftest.err
2643 cat conftest.err >&5
2644 echo "$as_me:2644: \$? = $ac_status" >&5
2645 (exit $ac_status); } >/dev/null; then
2646 if test -s conftest.err; then
2647 ac_cpp_err=$ac_c_preproc_warn_flag
2654 if test -z "$ac_cpp_err"; then
2655 # Broken: success on invalid input.
2658 echo "$as_me: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2660 # Passes both tests.
2664 rm -f conftest.err conftest.$ac_ext
2667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2668 rm -f conftest.err conftest.$ac_ext
2669 if $ac_preproc_ok; then
2681 echo "$as_me:2681: result: $CPP" >&5
2682 echo "${ECHO_T}$CPP" >&6
2684 for ac_c_preproc_warn_flag in '' yes
2686 # Use a header file that comes with gcc, so configuring glibc
2687 # with a fresh cross-compiler works.
2688 # On the NeXT, cc -E runs the code through the compiler's parser,
2689 # not just through cpp. "Syntax error" is here to catch this case.
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2696 if { (eval echo "$as_me:2696: \"$ac_cpp conftest.$ac_ext\"") >&5
2697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2699 egrep -v '^ *\+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:2702: \$? = $ac_status" >&5
2703 (exit $ac_status); } >/dev/null; then
2704 if test -s conftest.err; then
2705 ac_cpp_err=$ac_c_preproc_warn_flag
2712 if test -z "$ac_cpp_err"; then
2715 echo "$as_me: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 # Broken: fails on valid input.
2720 rm -f conftest.err conftest.$ac_ext
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.$ac_ext <<_ACEOF
2725 #line 2725 "configure"
2726 #include "confdefs.h"
2727 #include <ac_nonexistent.h>
2729 if { (eval echo "$as_me:2729: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 egrep -v '^ *\+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 echo "$as_me:2735: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2745 if test -z "$ac_cpp_err"; then
2746 # Broken: success on invalid input.
2749 echo "$as_me: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 # Passes both tests.
2755 rm -f conftest.err conftest.$ac_ext
2758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2759 rm -f conftest.err conftest.$ac_ext
2760 if $ac_preproc_ok; then
2763 { { echo "$as_me:2763: error: C preprocessor \"$CPP\" fails sanity check" >&5
2764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2765 { (exit 1); exit 1; }; }
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 ac_main_return=return
2775 if test $ac_cv_c_compiler_gnu = yes; then
2776 echo "$as_me:2776: checking whether $CC needs -traditional" >&5
2777 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2778 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 ac_pattern="Autoconf.*'x'"
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line 2783 "configure"
2784 #include "confdefs.h"
2786 int Autoconf = TIOCGETP;
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789 egrep "$ac_pattern" >/dev/null 2>&1; then
2790 ac_cv_prog_gcc_traditional=yes
2792 ac_cv_prog_gcc_traditional=no
2796 if test $ac_cv_prog_gcc_traditional = no; then
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #line 2798 "configure"
2799 #include "confdefs.h"
2801 int Autoconf = TCGETA;
2803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2804 egrep "$ac_pattern" >/dev/null 2>&1; then
2805 ac_cv_prog_gcc_traditional=yes
2811 echo "$as_me:2811: result: $ac_cv_prog_gcc_traditional" >&5
2812 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2813 if test $ac_cv_prog_gcc_traditional = yes; then
2814 CC="$CC -traditional"
2818 echo "$as_me:2818: checking whether $CC understands -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2820 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 cat > conftest.$ac_ext <<CF_EOF
2827 ${cf_cv_main_return:-return}(0);
2830 # We do the test twice because some compilers refuse to overwrite an
2831 # existing .o file with -o, though they will create one.
2832 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2833 if { (eval echo "$as_me:2833: \"$ac_try\"") >&5
2836 echo "$as_me:2836: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 test -f conftest2.$ac_objext && { (eval echo "$as_me:2838: \"$ac_try\"") >&5
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit $ac_status); };
2844 eval cf_cv_prog_CC_c_o=yes
2846 eval cf_cv_prog_CC_c_o=no
2851 if test $cf_cv_prog_CC_c_o = yes; then
2852 echo "$as_me:2852: result: yes" >&5
2853 echo "${ECHO_T}yes" >&6
2855 echo "$as_me:2855: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2859 if test "$cross_compiling" = yes ; then
2862 case "$cf_cv_system_name" in
2863 (dragonfly*|mirbsd*|freebsd*)
2864 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2866 (*) LDPATH=$PATH:/sbin:/usr/sbin
2867 # Extract the first word of "ldconfig", so it can be a program name with args.
2868 set dummy ldconfig; ac_word=$2
2869 echo "$as_me:2869: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2879 ac_save_IFS=$IFS; IFS=$ac_path_separator
2881 for ac_dir in $ac_dummy; do
2883 test -z "$ac_dir" && ac_dir=.
2884 if $as_executable_p "$ac_dir/$ac_word"; then
2885 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2886 echo "$as_me:2886: found $ac_dir/$ac_word" >&5
2894 LDCONFIG=$ac_cv_path_LDCONFIG
2896 if test -n "$LDCONFIG"; then
2897 echo "$as_me:2897: result: $LDCONFIG" >&5
2898 echo "${ECHO_T}$LDCONFIG" >&6
2900 echo "$as_me:2900: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2908 echo "$as_me:2908: checking if you want to ensure bool is consistent with C++" >&5
2909 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2911 # Check whether --with-cxx or --without-cxx was given.
2912 if test "${with_cxx+set}" = set; then
2914 cf_with_cxx=$withval
2918 echo "$as_me:2918: result: $cf_with_cxx" >&5
2919 echo "${ECHO_T}$cf_with_cxx" >&6
2920 if test "X$cf_with_cxx" = Xno ; then
2924 # with autoconf 2.13, we can change the error to a warning:
2926 ac_cpp='$CXXCPP $CPPFLAGS'
2927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2930 ac_main_return=return
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 echo "$as_me:2936: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_CXX+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$CXX"; then
2942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2944 ac_save_IFS=$IFS; IFS=$ac_path_separator
2946 for ac_dir in $ac_dummy; do
2948 test -z "$ac_dir" && ac_dir=.
2949 $as_executable_p "$ac_dir/$ac_word" || continue
2950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2951 echo "$as_me:2951: found $ac_dir/$ac_word" >&5
2958 if test -n "$CXX"; then
2959 echo "$as_me:2959: result: $CXX" >&5
2960 echo "${ECHO_T}$CXX" >&6
2962 echo "$as_me:2962: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2966 test -n "$CXX" && break
2969 if test -z "$CXX"; then
2971 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 echo "$as_me:2975: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 if test -n "$ac_ct_CXX"; then
2981 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2983 ac_save_IFS=$IFS; IFS=$ac_path_separator
2985 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 $as_executable_p "$ac_dir/$ac_word" || continue
2989 ac_cv_prog_ac_ct_CXX="$ac_prog"
2990 echo "$as_me:2990: found $ac_dir/$ac_word" >&5
2996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2997 if test -n "$ac_ct_CXX"; then
2998 echo "$as_me:2998: result: $ac_ct_CXX" >&5
2999 echo "${ECHO_T}$ac_ct_CXX" >&6
3001 echo "$as_me:3001: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 test -n "$ac_ct_CXX" && break
3007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3012 # Provide some information about the compiler.
3013 echo "$as_me:3013:" \
3014 "checking for C++ compiler version" >&5
3015 ac_compiler=`set X $ac_compile; echo $2`
3016 { (eval echo "$as_me:3016: \"$ac_compiler --version </dev/null >&5\"") >&5
3017 (eval $ac_compiler --version </dev/null >&5) 2>&5
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit $ac_status); }
3021 { (eval echo "$as_me:3021: \"$ac_compiler -v </dev/null >&5\"") >&5
3022 (eval $ac_compiler -v </dev/null >&5) 2>&5
3024 echo "$as_me:3024: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 { (eval echo "$as_me:3026: \"$ac_compiler -V </dev/null >&5\"") >&5
3027 (eval $ac_compiler -V </dev/null >&5) 2>&5
3029 echo "$as_me:3029: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3032 echo "$as_me:3032: checking whether we are using the GNU C++ compiler" >&5
3033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 cat >conftest.$ac_ext <<_ACEOF
3038 #line 3038 "configure"
3039 #include "confdefs.h"
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:3053: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>&5
3056 echo "$as_me:3056: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:3059: \"$ac_try\"") >&5
3062 echo "$as_me:3062: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3070 rm -f conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3074 echo "$as_me:3074: result: $ac_cv_cxx_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3076 GXX=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CXXFLAGS=${CXXFLAGS+set}
3078 ac_save_CXXFLAGS=$CXXFLAGS
3080 echo "$as_me:3080: checking whether $CXX accepts -g" >&5
3081 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3082 if test "${ac_cv_prog_cxx_g+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line 3086 "configure"
3087 #include "confdefs.h"
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3101 echo "$as_me:3101: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:3104: \"$ac_try\"") >&5
3107 echo "$as_me:3107: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 ac_cv_prog_cxx_g=yes
3111 echo "$as_me: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3117 echo "$as_me:3117: result: $ac_cv_prog_cxx_g" >&5
3118 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3119 if test "$ac_test_CXXFLAGS" = set; then
3120 CXXFLAGS=$ac_save_CXXFLAGS
3121 elif test $ac_cv_prog_cxx_g = yes; then
3122 if test "$GXX" = yes; then
3128 if test "$GXX" = yes; then
3134 for ac_declaration in \
3136 '#include <stdlib.h>' \
3137 'extern "C" void std::exit (int) throw (); using std::exit;' \
3138 'extern "C" void std::exit (int); using std::exit;' \
3139 'extern "C" void exit (int) throw ();' \
3140 'extern "C" void exit (int);' \
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line 3144 "configure"
3145 #include "confdefs.h"
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:3157: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3160 echo "$as_me:3160: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:3163: \"$ac_try\"") >&5
3166 echo "$as_me:3166: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3170 echo "$as_me: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3174 rm -f conftest.$ac_objext conftest.$ac_ext
3175 cat >conftest.$ac_ext <<_ACEOF
3176 #line 3176 "configure"
3177 #include "confdefs.h"
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:3188: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>&5
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:3194: \"$ac_try\"") >&5
3197 echo "$as_me:3197: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3207 if test -n "$ac_declaration"; then
3208 echo '#ifdef __cplusplus' >>confdefs.h
3209 echo $ac_declaration >>confdefs.h
3210 echo '#endif' >>confdefs.h
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 ac_main_return=return
3221 ac_cpp='$CXXCPP $CPPFLAGS'
3222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3225 ac_main_return=return
3227 if test "x$cf_with_cxx" != xno
3229 # Several of the C++ configurations do not work, particularly when
3230 # cross-compiling (20140913 -TD)
3231 echo "$as_me:3231: checking if $CXX works" >&5
3232 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3234 save_CPPFLAGS="$CPPFLAGS"
3235 eval cf_includedir=${includedir}
3236 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3238 cat >conftest.$ac_ext <<_ACEOF
3239 #line 3239 "configure"
3240 #include "confdefs.h"
3249 printf("Hello world!\n")
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:3256: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>&5
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -s conftest.$ac_objext'
3262 { (eval echo "$as_me:3262: \"$ac_try\"") >&5
3265 echo "$as_me:3265: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3273 rm -f conftest.$ac_objext conftest.$ac_ext
3274 CPPFLAGS="$save_CPPFLAGS"
3276 echo "$as_me:3276: result: $cf_cxx_works" >&5
3277 echo "${ECHO_T}$cf_cxx_works" >&6
3278 if test "x$cf_cxx_works" = xno
3280 { echo "$as_me:3280: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3281 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3282 cf_with_cxx=no; CXX=""; GXX="";
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 ac_main_return=return
3292 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3293 if test "$CXX" = "g++" ; then
3294 # Extract the first word of "g++", so it can be a program name with args.
3295 set dummy g++; ac_word=$2
3296 echo "$as_me:3296: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CXX+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3306 ac_save_IFS=$IFS; IFS=$ac_path_separator
3308 for ac_dir in $ac_dummy; do
3310 test -z "$ac_dir" && ac_dir=.
3311 if $as_executable_p "$ac_dir/$ac_word"; then
3312 ac_cv_path_CXX="$ac_dir/$ac_word"
3313 echo "$as_me:3313: found $ac_dir/$ac_word" >&5
3323 if test -n "$CXX"; then
3324 echo "$as_me:3324: result: $CXX" >&5
3325 echo "${ECHO_T}$CXX" >&6
3327 echo "$as_me:3327: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3334 { echo "$as_me:3334: WARNING: You don't have any C++ compiler, too bad" >&5
3335 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3336 cf_with_cxx=no; CXX=""; GXX="";
3342 if test "$GXX" = yes; then
3343 echo "$as_me:3343: checking version of ${CXX:-g++}" >&5
3344 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3345 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3346 if test -z "$GXX_VERSION"
3351 echo "$as_me:3351: result: $GXX_VERSION" >&5
3352 echo "${ECHO_T}$GXX_VERSION" >&6
3355 case $GXX_VERSION in
3357 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3359 { echo "$as_me:3359: WARNING: templates do not work" >&5
3360 echo "$as_me: WARNING: templates do not work" >&2;}
3364 echo "$as_me:3364: checking if you want to build C++ binding and demo" >&5
3365 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3367 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3368 if test "${with_cxx_binding+set}" = set; then
3369 withval="$with_cxx_binding"
3370 cf_with_cxx_binding=$withval
3372 cf_with_cxx_binding=$cf_with_cxx
3374 echo "$as_me:3374: result: $cf_with_cxx_binding" >&5
3375 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3377 echo "$as_me:3377: checking if you want to build with Ada" >&5
3378 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3379 echo "$as_me:3379: result: $cf_with_ada" >&5
3380 echo "${ECHO_T}$cf_with_ada" >&6
3382 echo "$as_me:3382: checking if you want to install terminal database" >&5
3383 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3385 # Check whether --enable-db-install or --disable-db-install was given.
3386 if test "${enable_db_install+set}" = set; then
3387 enableval="$enable_db_install"
3388 cf_with_db_install=$enableval
3390 cf_with_db_install=yes
3392 echo "$as_me:3392: result: $cf_with_db_install" >&5
3393 echo "${ECHO_T}$cf_with_db_install" >&6
3395 echo "$as_me:3395: checking if you want to install manpages" >&5
3396 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3398 # Check whether --with-manpages or --without-manpages was given.
3399 if test "${with_manpages+set}" = set; then
3400 withval="$with_manpages"
3401 cf_with_manpages=$withval
3403 cf_with_manpages=yes
3405 echo "$as_me:3405: result: $cf_with_manpages" >&5
3406 echo "${ECHO_T}$cf_with_manpages" >&6
3408 echo "$as_me:3408: checking if you want to build programs such as tic" >&5
3409 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3411 # Check whether --with-progs or --without-progs was given.
3412 if test "${with_progs+set}" = set; then
3413 withval="$with_progs"
3414 cf_with_progs=$withval
3418 echo "$as_me:3418: result: $cf_with_progs" >&5
3419 echo "${ECHO_T}$cf_with_progs" >&6
3421 if test -f $srcdir/tack/tack.h; then
3422 if test "x$cross_compiling" = xyes ; then
3423 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3425 echo "${as_me:-configure}:3425: testing ignoring tack because we are cross-compiling ..." 1>&5
3429 echo "$as_me:3429: checking if you want to build the tack program" >&5
3430 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3432 # Check whether --with-tack or --without-tack was given.
3433 if test "${with_tack+set}" = set; then
3434 withval="$with_tack"
3435 cf_with_tack=$withval
3437 cf_with_tack=$cf_with_progs
3439 echo "$as_me:3439: result: $cf_with_tack" >&5
3440 echo "${ECHO_T}$cf_with_tack" >&6
3446 echo "$as_me:3446: checking if you want to build test-programs" >&5
3447 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3449 # Check whether --with-tests or --without-tests was given.
3450 if test "${with_tests+set}" = set; then
3451 withval="$with_tests"
3452 cf_with_tests=$withval
3456 echo "$as_me:3456: result: $cf_with_tests" >&5
3457 echo "${ECHO_T}$cf_with_tests" >&6
3459 echo "$as_me:3459: checking if you wish to install curses.h" >&5
3460 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3462 # Check whether --with-curses-h or --without-curses-h was given.
3463 if test "${with_curses_h+set}" = set; then
3464 withval="$with_curses_h"
3465 with_curses_h=$withval
3469 echo "$as_me:3469: result: $with_curses_h" >&5
3470 echo "${ECHO_T}$with_curses_h" >&6
3472 modules_to_build="ncurses"
3473 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3474 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3475 modules_to_build="$modules_to_build panel menu form"
3477 test "$program_prefix" != NONE &&
3478 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3479 # Use a double $ so make ignores it.
3480 test "$program_suffix" != NONE &&
3481 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3482 # Double any \ or $. echo might interpret backslashes.
3483 # By default was `s,x,x', remove it if useless.
3484 cat <<\_ACEOF >conftest.sed
3485 s/[\\$]/&&/g;s/;s,x,x,$//
3487 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3490 for ac_prog in mawk gawk nawk awk
3492 # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 echo "$as_me:3494: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496 if test "${ac_cv_prog_AWK+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 if test -n "$AWK"; then
3500 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3502 ac_save_IFS=$IFS; IFS=$ac_path_separator
3504 for ac_dir in $ac_dummy; do
3506 test -z "$ac_dir" && ac_dir=.
3507 $as_executable_p "$ac_dir/$ac_word" || continue
3508 ac_cv_prog_AWK="$ac_prog"
3509 echo "$as_me:3509: found $ac_dir/$ac_word" >&5
3516 if test -n "$AWK"; then
3517 echo "$as_me:3517: result: $AWK" >&5
3518 echo "${ECHO_T}$AWK" >&6
3520 echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 test -n "$AWK" && break
3527 test -z "$AWK" && { { echo "$as_me:3527: error: No awk program found" >&5
3528 echo "$as_me: error: No awk program found" >&2;}
3529 { (exit 1); exit 1; }; }
3531 echo "$as_me:3531: checking for egrep" >&5
3532 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3533 if test "${ac_cv_prog_egrep+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3537 then ac_cv_prog_egrep='grep -E'
3538 else ac_cv_prog_egrep='egrep'
3541 echo "$as_me:3541: result: $ac_cv_prog_egrep" >&5
3542 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3543 EGREP=$ac_cv_prog_egrep
3545 test -z "$EGREP" && { { echo "$as_me:3545: error: No egrep program found" >&5
3546 echo "$as_me: error: No egrep program found" >&2;}
3547 { (exit 1); exit 1; }; }
3549 # Find a good install program. We prefer a C program (faster),
3550 # so one script is as good as another. But avoid the broken or
3551 # incompatible versions:
3552 # SysV /etc/install, /usr/sbin/install
3553 # SunOS /usr/etc/install
3554 # IRIX /sbin/install
3556 # AmigaOS /C/install, which installs bootblocks on floppy discs
3557 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3560 # ./install, which can be erroneously created by make from ./install.sh.
3561 echo "$as_me:3561: checking for a BSD compatible install" >&5
3562 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3563 if test -z "$INSTALL"; then
3564 if test "${ac_cv_path_install+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 ac_save_IFS=$IFS; IFS=$ac_path_separator
3568 for ac_dir in $PATH; do
3570 # Account for people who put trailing slashes in PATH elements.
3572 / | ./ | .// | /cC/* \
3573 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3576 # OSF1 and SCO ODT 3.0 have their own names for install.
3577 # Don't use installbsd from OSF since it installs stuff as root
3579 for ac_prog in ginstall scoinst install; do
3580 if $as_executable_p "$ac_dir/$ac_prog"; then
3581 if test $ac_prog = install &&
3582 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3583 # AIX install. It has an incompatible calling convention.
3585 elif test $ac_prog = install &&
3586 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3587 # program-specific install script used by HP pwplus--don't use.
3590 ac_cv_path_install="$ac_dir/$ac_prog -c"
3600 if test "${ac_cv_path_install+set}" = set; then
3601 INSTALL=$ac_cv_path_install
3603 # As a last resort, use the slow shell script. We don't cache a
3604 # path for INSTALL within a source directory, because that will
3605 # break other packages using the cache if that directory is
3606 # removed, or if the path is relative.
3607 INSTALL=$ac_install_sh
3610 echo "$as_me:3610: result: $INSTALL" >&5
3611 echo "${ECHO_T}$INSTALL" >&6
3613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3614 # It thinks the first close brace ends the variable substitution.
3615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3625 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3626 test -z "$cf_dir" && cf_dir=.
3627 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3631 for ac_prog in lint cppcheck splint
3633 # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 echo "$as_me:3635: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_LINT+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$LINT"; then
3641 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3643 ac_save_IFS=$IFS; IFS=$ac_path_separator
3645 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 $as_executable_p "$ac_dir/$ac_word" || continue
3649 ac_cv_prog_LINT="$ac_prog"
3650 echo "$as_me:3650: found $ac_dir/$ac_word" >&5
3656 LINT=$ac_cv_prog_LINT
3657 if test -n "$LINT"; then
3658 echo "$as_me:3658: result: $LINT" >&5
3659 echo "${ECHO_T}$LINT" >&6
3661 echo "$as_me:3661: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3665 test -n "$LINT" && break
3669 (xcppcheck|x*/cppcheck)
3670 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3674 echo "$as_me:3674: checking whether ln -s works" >&5
3675 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3677 if test "$LN_S" = "ln -s"; then
3678 echo "$as_me:3678: result: yes" >&5
3679 echo "${ECHO_T}yes" >&6
3681 echo "$as_me:3681: result: no, using $LN_S" >&5
3682 echo "${ECHO_T}no, using $LN_S" >&6
3685 echo "$as_me:3685: checking if $LN_S -f options work" >&5
3686 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3688 rm -f conf$$.src conf$$dst
3690 echo first >conf$$.src
3691 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3696 rm -f conf$$.dst conf$$src
3697 echo "$as_me:3697: result: $cf_prog_ln_sf" >&5
3698 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3700 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3702 echo "$as_me:3702: checking for long file names" >&5
3703 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3704 if test "${ac_cv_sys_long_file_names+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_sys_long_file_names=yes
3708 # Test for long file names in all the places we know might matter:
3709 # . the current directory, where building will happen
3710 # $prefix/lib where we will be installing things
3711 # $exec_prefix/lib likewise
3712 # eval it to expand exec_prefix.
3713 # $TMPDIR if set, where it might want to write temporary files
3714 # if $TMPDIR is not set:
3715 # /tmp where it might want to write temporary files
3718 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3721 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3723 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3724 test -d $ac_dir || continue
3725 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3726 ac_xdir=$ac_dir/cf$$
3727 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3728 ac_tf1=$ac_xdir/conftest9012345
3729 ac_tf2=$ac_xdir/conftest9012346
3730 (echo 1 >$ac_tf1) 2>/dev/null
3731 (echo 2 >$ac_tf2) 2>/dev/null
3732 ac_val=`cat $ac_tf1 2>/dev/null`
3733 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3734 ac_cv_sys_long_file_names=no
3735 rm -rf $ac_xdir 2>/dev/null
3738 rm -rf $ac_xdir 2>/dev/null
3741 echo "$as_me:3741: result: $ac_cv_sys_long_file_names" >&5
3742 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3743 if test $ac_cv_sys_long_file_names = yes; then
3745 cat >>confdefs.h <<\EOF
3746 #define HAVE_LONG_FILE_NAMES 1
3751 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3752 # of package conflict.
3755 # Check whether --with-config-suffix or --without-config-suffix was given.
3756 if test "${with_config_suffix+set}" = set; then
3757 withval="$with_config_suffix"
3760 { echo "$as_me:3760: WARNING: expected a value for config-suffix option" >&5
3761 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3763 (*) cf_config_suffix="$withval"
3768 # If we find pkg-config, check if we should install the ".pc" files.
3770 echo "$as_me:3770: checking if you want to use pkg-config" >&5
3771 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3773 # Check whether --with-pkg-config or --without-pkg-config was given.
3774 if test "${with_pkg_config+set}" = set; then
3775 withval="$with_pkg_config"
3776 cf_pkg_config=$withval
3780 echo "$as_me:3780: result: $cf_pkg_config" >&5
3781 echo "${ECHO_T}$cf_pkg_config" >&6
3783 case $cf_pkg_config in
3789 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3792 echo "$as_me:3792: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3802 ac_save_IFS=$IFS; IFS=$ac_path_separator
3804 for ac_dir in $ac_dummy; do
3806 test -z "$ac_dir" && ac_dir=.
3807 if $as_executable_p "$ac_dir/$ac_word"; then
3808 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3809 echo "$as_me:3809: found $ac_dir/$ac_word" >&5
3817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3819 if test -n "$PKG_CONFIG"; then
3820 echo "$as_me:3820: result: $PKG_CONFIG" >&5
3821 echo "${ECHO_T}$PKG_CONFIG" >&6
3823 echo "$as_me:3823: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3828 if test -z "$ac_cv_path_PKG_CONFIG"; then
3829 ac_pt_PKG_CONFIG=$PKG_CONFIG
3830 # Extract the first word of "pkg-config", so it can be a program name with args.
3831 set dummy pkg-config; ac_word=$2
3832 echo "$as_me:3832: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 case $ac_pt_PKG_CONFIG in
3839 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3842 ac_save_IFS=$IFS; IFS=$ac_path_separator
3844 for ac_dir in $ac_dummy; do
3846 test -z "$ac_dir" && ac_dir=.
3847 if $as_executable_p "$ac_dir/$ac_word"; then
3848 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3849 echo "$as_me:3849: found $ac_dir/$ac_word" >&5
3854 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3858 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3860 if test -n "$ac_pt_PKG_CONFIG"; then
3861 echo "$as_me:3861: result: $ac_pt_PKG_CONFIG" >&5
3862 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3864 echo "$as_me:3864: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3868 PKG_CONFIG=$ac_pt_PKG_CONFIG
3870 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3879 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3880 if test "$PKG_CONFIG" != none ; then
3882 if test "x$prefix" != xNONE; then
3883 cf_path_syntax="$prefix"
3885 cf_path_syntax="$ac_default_prefix"
3888 case ".$PKG_CONFIG" in
3893 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3895 (.\${*prefix}*|.\${*dir}*)
3896 eval PKG_CONFIG="$PKG_CONFIG"
3897 case ".$PKG_CONFIG" in
3899 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3904 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3907 { { echo "$as_me:3907: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3908 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3909 { (exit 1); exit 1; }; }
3913 elif test "x$cf_pkg_config" != xno ; then
3914 { echo "$as_me:3914: WARNING: pkg-config is not installed" >&5
3915 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3920 echo "$as_me:3920: checking for pkg-config library directory" >&5
3921 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3924 echo "$as_me:3924: checking for $PKG_CONFIG library directory" >&5
3925 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3929 PKG_CONFIG_LIBDIR=no
3931 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3932 if test "${with_pkg_config_libdir+set}" = set; then
3933 withval="$with_pkg_config_libdir"
3934 PKG_CONFIG_LIBDIR=$withval
3936 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3939 case x$PKG_CONFIG_LIBDIR in
3943 # Look for the library directory using the same prefix as the executable
3944 if test "x$PKG_CONFIG" = xnone
3948 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3951 # If you don't like using the default architecture, you have to specify the
3952 # intended library directory and corresponding compiler/linker options.
3954 # This case allows for Debian's 2014-flavor of multiarch, along with the
3955 # most common variations before that point. Some other variants spell the
3956 # directory differently, e.g., "pkg-config", and put it in unusual places.
3957 # pkg-config has always been poorly standardized, which is ironic...
3958 case x`(arch) 2>/dev/null` in
3961 $cf_path/lib/*64-linux-gnu \
3969 $cf_path/lib/*-linux-gnu \
3977 test -n "$verbose" && echo " list..." 1>&6
3979 echo "${as_me:-configure}:3979: testing list... ..." 1>&5
3981 for cf_config in $cf_search_path
3983 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3985 echo "${as_me:-configure}:3985: testing checking $cf_config/pkgconfig ..." 1>&5
3987 if test -d $cf_config/pkgconfig
3989 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3990 echo "$as_me:3990: checking done" >&5
3991 echo $ECHO_N "checking done... $ECHO_C" >&6
4000 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4001 echo "$as_me:4001: result: $PKG_CONFIG_LIBDIR" >&5
4002 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4005 if test "x$PKG_CONFIG" != xnone
4007 echo "$as_me:4007: checking if we should install .pc files for $PKG_CONFIG" >&5
4008 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4010 echo "$as_me:4010: checking if we should install .pc files" >&5
4011 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4014 # Check whether --enable-pc-files or --disable-pc-files was given.
4015 if test "${enable_pc_files+set}" = set; then
4016 enableval="$enable_pc_files"
4017 enable_pc_files=$enableval
4021 echo "$as_me:4021: result: $enable_pc_files" >&5
4022 echo "${ECHO_T}$enable_pc_files" >&6
4024 if test "x$enable_pc_files" != xno
4027 case "x$PKG_CONFIG_LIBDIR" in
4029 { echo "$as_me:4029: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4030 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4034 if test "x$prefix" != xNONE; then
4035 cf_path_syntax="$prefix"
4037 cf_path_syntax="$ac_default_prefix"
4040 case ".$PKG_CONFIG_LIBDIR" in
4045 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4047 (.\${*prefix}*|.\${*dir}*)
4048 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4049 case ".$PKG_CONFIG_LIBDIR" in
4051 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4056 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4059 { { echo "$as_me:4059: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4060 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4061 { (exit 1); exit 1; }; }
4071 if test -z "$MAKE_PC_FILES"
4073 echo "$as_me:4073: checking for suffix to add to pc-files" >&5
4074 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4076 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4077 if test "${with_pc_suffix+set}" = set; then
4078 withval="$with_pc_suffix"
4083 (*) PC_MODULE_SUFFIX="$withval"
4087 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4088 echo "$as_me:4088: result: $PC_MODULE_SUFFIX" >&5
4089 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4090 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4094 echo "$as_me:4094: checking if we should assume mixed-case filenames" >&5
4095 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4097 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4098 if test "${enable_mixed_case+set}" = set; then
4099 enableval="$enable_mixed_case"
4100 enable_mixedcase=$enableval
4102 enable_mixedcase=auto
4104 echo "$as_me:4104: result: $enable_mixedcase" >&5
4105 echo "${ECHO_T}$enable_mixedcase" >&6
4106 if test "$enable_mixedcase" = "auto" ; then
4108 echo "$as_me:4108: checking if filesystem supports mixed-case filenames" >&5
4109 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4110 if test "${cf_cv_mixedcase+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test "$cross_compiling" = yes ; then
4115 case $target_alias in
4116 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4124 rm -f conftest CONFTEST
4126 if test -f CONFTEST ; then
4131 rm -f conftest CONFTEST
4135 echo "$as_me:4135: result: $cf_cv_mixedcase" >&5
4136 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4137 test "$cf_cv_mixedcase" = yes &&
4138 cat >>confdefs.h <<\EOF
4139 #define MIXEDCASE_FILENAMES 1
4143 cf_cv_mixedcase=$enable_mixedcase
4144 if test "x$enable_mixedcase" = "xyes" ; then
4146 cat >>confdefs.h <<\EOF
4147 #define MIXEDCASE_FILENAMES 1
4153 # do this after mixed-case option (tags/TAGS is not as important as tic).
4154 echo "$as_me:4154: checking whether ${MAKE-make} sets \${MAKE}" >&5
4155 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4156 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4157 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.make <<\EOF
4162 @echo 'ac_maketemp="${MAKE}"'
4164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4165 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4166 if test -n "$ac_maketemp"; then
4167 eval ac_cv_prog_make_${ac_make}_set=yes
4169 eval ac_cv_prog_make_${ac_make}_set=no
4173 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4174 echo "$as_me:4174: result: yes" >&5
4175 echo "${ECHO_T}yes" >&6
4178 echo "$as_me:4178: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4180 SET_MAKE="MAKE=${MAKE-make}"
4183 for ac_prog in exctags ctags
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 echo "$as_me:4187: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_CTAGS+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -n "$CTAGS"; then
4193 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4195 ac_save_IFS=$IFS; IFS=$ac_path_separator
4197 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 $as_executable_p "$ac_dir/$ac_word" || continue
4201 ac_cv_prog_CTAGS="$ac_prog"
4202 echo "$as_me:4202: found $ac_dir/$ac_word" >&5
4208 CTAGS=$ac_cv_prog_CTAGS
4209 if test -n "$CTAGS"; then
4210 echo "$as_me:4210: result: $CTAGS" >&5
4211 echo "${ECHO_T}$CTAGS" >&6
4213 echo "$as_me:4213: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4217 test -n "$CTAGS" && break
4220 for ac_prog in exetags etags
4222 # Extract the first word of "$ac_prog", so it can be a program name with args.
4223 set dummy $ac_prog; ac_word=$2
4224 echo "$as_me:4224: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_ETAGS+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test -n "$ETAGS"; then
4230 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4232 ac_save_IFS=$IFS; IFS=$ac_path_separator
4234 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 $as_executable_p "$ac_dir/$ac_word" || continue
4238 ac_cv_prog_ETAGS="$ac_prog"
4239 echo "$as_me:4239: found $ac_dir/$ac_word" >&5
4245 ETAGS=$ac_cv_prog_ETAGS
4246 if test -n "$ETAGS"; then
4247 echo "$as_me:4247: result: $ETAGS" >&5
4248 echo "${ECHO_T}$ETAGS" >&6
4250 echo "$as_me:4250: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4254 test -n "$ETAGS" && break
4257 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4258 set dummy ${CTAGS:-ctags}; ac_word=$2
4259 echo "$as_me:4259: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$MAKE_LOWER_TAGS"; then
4265 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4267 ac_save_IFS=$IFS; IFS=$ac_path_separator
4269 for ac_dir in $ac_dummy; do
4271 test -z "$ac_dir" && ac_dir=.
4272 $as_executable_p "$ac_dir/$ac_word" || continue
4273 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4274 echo "$as_me:4274: found $ac_dir/$ac_word" >&5
4278 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4281 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4282 if test -n "$MAKE_LOWER_TAGS"; then
4283 echo "$as_me:4283: result: $MAKE_LOWER_TAGS" >&5
4284 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4286 echo "$as_me:4286: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4290 if test "$cf_cv_mixedcase" = yes ; then
4291 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4292 set dummy ${ETAGS:-etags}; ac_word=$2
4293 echo "$as_me:4293: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -n "$MAKE_UPPER_TAGS"; then
4299 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4301 ac_save_IFS=$IFS; IFS=$ac_path_separator
4303 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 $as_executable_p "$ac_dir/$ac_word" || continue
4307 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4308 echo "$as_me:4308: found $ac_dir/$ac_word" >&5
4312 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4315 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4316 if test -n "$MAKE_UPPER_TAGS"; then
4317 echo "$as_me:4317: result: $MAKE_UPPER_TAGS" >&5
4318 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4320 echo "$as_me:4320: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4328 if test "$MAKE_UPPER_TAGS" = yes ; then
4334 if test "$MAKE_LOWER_TAGS" = yes ; then
4340 echo "$as_me:4340: checking for makeflags variable" >&5
4341 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4342 if test "${cf_cv_makeflags+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4349 cat >cf_makeflags.tmp <<CF_EOF
4352 @ echo '.$cf_option'
4354 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4355 case "$cf_result" in
4357 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4358 case "$cf_result" in
4359 (.*CC=*) cf_cv_makeflags=
4361 (*) cf_cv_makeflags=$cf_option
4370 echo "${as_me:-configure}:4370: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4375 rm -f cf_makeflags.tmp
4378 echo "$as_me:4378: result: $cf_cv_makeflags" >&5
4379 echo "${ECHO_T}$cf_cv_makeflags" >&6
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384 echo "$as_me:4384: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 ac_save_IFS=$IFS; IFS=$ac_path_separator
4394 for ac_dir in $ac_dummy; do
4396 test -z "$ac_dir" && ac_dir=.
4397 $as_executable_p "$ac_dir/$ac_word" || continue
4398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4399 echo "$as_me:4399: found $ac_dir/$ac_word" >&5
4405 RANLIB=$ac_cv_prog_RANLIB
4406 if test -n "$RANLIB"; then
4407 echo "$as_me:4407: result: $RANLIB" >&5
4408 echo "${ECHO_T}$RANLIB" >&6
4410 echo "$as_me:4410: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4415 if test -z "$ac_cv_prog_RANLIB"; then
4416 ac_ct_RANLIB=$RANLIB
4417 # Extract the first word of "ranlib", so it can be a program name with args.
4418 set dummy ranlib; ac_word=$2
4419 echo "$as_me:4419: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$ac_ct_RANLIB"; then
4425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4427 ac_save_IFS=$IFS; IFS=$ac_path_separator
4429 for ac_dir in $ac_dummy; do
4431 test -z "$ac_dir" && ac_dir=.
4432 $as_executable_p "$ac_dir/$ac_word" || continue
4433 ac_cv_prog_ac_ct_RANLIB="ranlib"
4434 echo "$as_me:4434: found $ac_dir/$ac_word" >&5
4438 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4441 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4442 if test -n "$ac_ct_RANLIB"; then
4443 echo "$as_me:4443: result: $ac_ct_RANLIB" >&5
4444 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4446 echo "$as_me:4446: result: no" >&5
4447 echo "${ECHO_T}no" >&6
4450 RANLIB=$ac_ct_RANLIB
4452 RANLIB="$ac_cv_prog_RANLIB"
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ld; ac_word=$2
4458 echo "$as_me:4458: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4460 if test "${ac_cv_prog_LD+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 if test -n "$LD"; then
4464 ac_cv_prog_LD="$LD" # Let the user override the test.
4466 ac_save_IFS=$IFS; IFS=$ac_path_separator
4468 for ac_dir in $ac_dummy; do
4470 test -z "$ac_dir" && ac_dir=.
4471 $as_executable_p "$ac_dir/$ac_word" || continue
4472 ac_cv_prog_LD="${ac_tool_prefix}ld"
4473 echo "$as_me:4473: found $ac_dir/$ac_word" >&5
4480 if test -n "$LD"; then
4481 echo "$as_me:4481: result: $LD" >&5
4482 echo "${ECHO_T}$LD" >&6
4484 echo "$as_me:4484: result: no" >&5
4485 echo "${ECHO_T}no" >&6
4489 if test -z "$ac_cv_prog_LD"; then
4491 # Extract the first word of "ld", so it can be a program name with args.
4492 set dummy ld; ac_word=$2
4493 echo "$as_me:4493: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$ac_ct_LD"; then
4499 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4501 ac_save_IFS=$IFS; IFS=$ac_path_separator
4503 for ac_dir in $ac_dummy; do
4505 test -z "$ac_dir" && ac_dir=.
4506 $as_executable_p "$ac_dir/$ac_word" || continue
4507 ac_cv_prog_ac_ct_LD="ld"
4508 echo "$as_me:4508: found $ac_dir/$ac_word" >&5
4512 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4515 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4516 if test -n "$ac_ct_LD"; then
4517 echo "$as_me:4517: result: $ac_ct_LD" >&5
4518 echo "${ECHO_T}$ac_ct_LD" >&6
4520 echo "$as_me:4520: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4531 set dummy ${ac_tool_prefix}ar; ac_word=$2
4532 echo "$as_me:4532: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_prog_AR+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 if test -n "$AR"; then
4538 ac_cv_prog_AR="$AR" # Let the user override the test.
4540 ac_save_IFS=$IFS; IFS=$ac_path_separator
4542 for ac_dir in $ac_dummy; do
4544 test -z "$ac_dir" && ac_dir=.
4545 $as_executable_p "$ac_dir/$ac_word" || continue
4546 ac_cv_prog_AR="${ac_tool_prefix}ar"
4547 echo "$as_me:4547: found $ac_dir/$ac_word" >&5
4554 if test -n "$AR"; then
4555 echo "$as_me:4555: result: $AR" >&5
4556 echo "${ECHO_T}$AR" >&6
4558 echo "$as_me:4558: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4563 if test -z "$ac_cv_prog_AR"; then
4565 # Extract the first word of "ar", so it can be a program name with args.
4566 set dummy ar; ac_word=$2
4567 echo "$as_me:4567: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$ac_ct_AR"; then
4573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4575 ac_save_IFS=$IFS; IFS=$ac_path_separator
4577 for ac_dir in $ac_dummy; do
4579 test -z "$ac_dir" && ac_dir=.
4580 $as_executable_p "$ac_dir/$ac_word" || continue
4581 ac_cv_prog_ac_ct_AR="ar"
4582 echo "$as_me:4582: found $ac_dir/$ac_word" >&5
4586 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4590 if test -n "$ac_ct_AR"; then
4591 echo "$as_me:4591: result: $ac_ct_AR" >&5
4592 echo "${ECHO_T}$ac_ct_AR" >&6
4594 echo "$as_me:4594: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4605 set dummy ${ac_tool_prefix}nm; ac_word=$2
4606 echo "$as_me:4606: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_NM+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$NM"; then
4612 ac_cv_prog_NM="$NM" # Let the user override the test.
4614 ac_save_IFS=$IFS; IFS=$ac_path_separator
4616 for ac_dir in $ac_dummy; do
4618 test -z "$ac_dir" && ac_dir=.
4619 $as_executable_p "$ac_dir/$ac_word" || continue
4620 ac_cv_prog_NM="${ac_tool_prefix}nm"
4621 echo "$as_me:4621: found $ac_dir/$ac_word" >&5
4628 if test -n "$NM"; then
4629 echo "$as_me:4629: result: $NM" >&5
4630 echo "${ECHO_T}$NM" >&6
4632 echo "$as_me:4632: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4637 if test -z "$ac_cv_prog_NM"; then
4639 # Extract the first word of "nm", so it can be a program name with args.
4640 set dummy nm; ac_word=$2
4641 echo "$as_me:4641: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$ac_ct_NM"; then
4647 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4649 ac_save_IFS=$IFS; IFS=$ac_path_separator
4651 for ac_dir in $ac_dummy; do
4653 test -z "$ac_dir" && ac_dir=.
4654 $as_executable_p "$ac_dir/$ac_word" || continue
4655 ac_cv_prog_ac_ct_NM="nm"
4656 echo "$as_me:4656: found $ac_dir/$ac_word" >&5
4660 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4663 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4664 if test -n "$ac_ct_NM"; then
4665 echo "$as_me:4665: result: $ac_ct_NM" >&5
4666 echo "${ECHO_T}$ac_ct_NM" >&6
4668 echo "$as_me:4668: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4679 set dummy ${ac_tool_prefix}ar; ac_word=$2
4680 echo "$as_me:4680: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4682 if test "${ac_cv_prog_AR+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 if test -n "$AR"; then
4686 ac_cv_prog_AR="$AR" # Let the user override the test.
4688 ac_save_IFS=$IFS; IFS=$ac_path_separator
4690 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 $as_executable_p "$ac_dir/$ac_word" || continue
4694 ac_cv_prog_AR="${ac_tool_prefix}ar"
4695 echo "$as_me:4695: found $ac_dir/$ac_word" >&5
4702 if test -n "$AR"; then
4703 echo "$as_me:4703: result: $AR" >&5
4704 echo "${ECHO_T}$AR" >&6
4706 echo "$as_me:4706: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4711 if test -z "$ac_cv_prog_AR"; then
4713 # Extract the first word of "ar", so it can be a program name with args.
4714 set dummy ar; ac_word=$2
4715 echo "$as_me:4715: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4717 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test -n "$ac_ct_AR"; then
4721 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4723 ac_save_IFS=$IFS; IFS=$ac_path_separator
4725 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 $as_executable_p "$ac_dir/$ac_word" || continue
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:4730: found $ac_dir/$ac_word" >&5
4734 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4738 if test -n "$ac_ct_AR"; then
4739 echo "$as_me:4739: result: $ac_ct_AR" >&5
4740 echo "${ECHO_T}$ac_ct_AR" >&6
4742 echo "$as_me:4742: result: no" >&5
4743 echo "${ECHO_T}no" >&6
4751 echo "$as_me:4751: checking for options to update archives" >&5
4752 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4753 if test "${cf_cv_ar_flags+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 cf_cv_ar_flags=unknown
4758 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4761 # check if $ARFLAGS already contains this choice
4762 if test "x$ARFLAGS" != "x" ; then
4763 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4764 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4770 rm -f conftest.$ac_cv_objext
4773 cat >conftest.$ac_ext <<EOF
4774 #line 4774 "configure"
4775 int testdata[3] = { 123, 456, 789 };
4777 if { (eval echo "$as_me:4777: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4780 echo "$as_me:4780: \$? = $ac_status" >&5
4781 (exit $ac_status); } ; then
4782 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4783 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4784 if test -f conftest.a ; then
4785 cf_cv_ar_flags=$cf_ar_flags
4789 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4791 echo "${as_me:-configure}:4791: testing cannot compile test-program ..." 1>&5
4796 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4799 echo "$as_me:4799: result: $cf_cv_ar_flags" >&5
4800 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4802 if test -n "$ARFLAGS" ; then
4803 if test -n "$cf_cv_ar_flags" ; then
4804 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4807 ARFLAGS=$cf_cv_ar_flags
4810 echo "$as_me:4810: checking if you have specified an install-prefix" >&5
4811 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4813 # Check whether --with-install-prefix or --without-install-prefix was given.
4814 if test "${with_install_prefix+set}" = set; then
4815 withval="$with_install_prefix"
4819 (*) DESTDIR="$withval"
4823 echo "$as_me:4823: result: $DESTDIR" >&5
4824 echo "${ECHO_T}$DESTDIR" >&6
4826 ###############################################################################
4828 # If we're cross-compiling, allow the user to override the tools and their