2 # From configure.in Revision: 1.78 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200802.
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="gen/gen.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
617 # Report the --help message.
619 if test "$ac_init_help" = "long"; then
620 # Omit some internal or obsolete options to make the list less imposing.
621 # This message is too long to be a string in the A/UX 3.1 sh.
623 \`configure' configures this package to adapt to many kinds of systems.
625 Usage: $0 [OPTION]... [VAR=VALUE]...
627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
628 VAR=VALUE. See below for descriptions of some of the useful variables.
630 Defaults for the options are specified in brackets.
633 -h, --help display this help and exit
634 --help=short display options specific to this package
635 --help=recursive display the short help of all the included packages
636 -V, --version display version information and exit
637 -q, --quiet, --silent do not print \`checking...' messages
638 --cache-file=FILE cache test results in FILE [disabled]
639 -C, --config-cache alias for \`--cache-file=config.cache'
640 -n, --no-create do not create output files
641 --srcdir=DIR find the sources in DIR [configure dir or \`..']
646 Installation directories:
647 --prefix=PREFIX install architecture-independent files in PREFIX
649 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
652 By default, \`make install' will install all the files in
653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
655 for instance \`--prefix=\$HOME'.
657 For better control, use the options below.
659 Fine tuning of the installation directories:
660 --bindir=DIR user executables [EPREFIX/bin]
661 --sbindir=DIR system admin executables [EPREFIX/sbin]
662 --libexecdir=DIR program executables [EPREFIX/libexec]
663 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
665 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
666 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
667 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
668 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
669 --libdir=DIR object code libraries [EPREFIX/lib]
670 --includedir=DIR C header files [PREFIX/include]
671 --oldincludedir=DIR C header files for non-gcc [/usr/include]
672 --infodir=DIR info documentation [DATAROOTDIR/info]
673 --mandir=DIR man documentation [DATAROOTDIR/man]
679 --program-prefix=PREFIX prepend PREFIX to installed program names
680 --program-suffix=SUFFIX append SUFFIX to installed program names
681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
684 --build=BUILD configure for building on BUILD [guessed]
685 --host=HOST build programs to run on HOST [BUILD]
686 --target=TARGET configure for building compilers for TARGET [HOST]
690 if test -n "$ac_init_help"; then
695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-system-type=XXX test: override derived host system-type
704 --disable-stripping do not strip (debug info) installed executables
705 --with-pkg-config{=path} enable/disable use of pkg-config
706 --with-pkg-config-libdir=XXX use given directory for installing pc-files
707 --without-tests suppress build with test-programs
708 --enable-mixed-case tic should assume mixed-case filenames
709 --with-install-prefix prefixes actual install-location ($DESTDIR)
710 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
711 --with-build-cc=XXX the build C compiler ($BUILD_CC)
712 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
713 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
714 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
715 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
716 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
717 Options to Specify the Libraries Built/Used:
718 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
719 --with-curses-dir=DIR directory in which (n)curses is installed
720 --enable-widec compile with wide-char/UTF-8 code
721 --with-lib-prefix override library-prefix
722 --with-shlib-version=X Specify rel or abi version for shared libs
723 --enable-rpath-link link sample programs with rpath option
724 Fine-Tuning Your Configuration:
725 --enable-broken_linker compile with broken-linker support code
726 --disable-largefile omit support for large files
727 --with-rcs-ids compile-in RCS identifiers
729 --disable-ext-funcs disable function-extensions
730 --enable-const compile with extra/non-standard const
732 --without-develop disable development options
734 --with-pthread use POSIX thread library
735 --enable-weak-symbols enable weak-symbols for pthreads
736 --enable-reentrant compile with experimental reentrant code
737 --with-wrap-prefix=XXX override prefix used for public variables
738 Testing/development Options:
739 --disable-echo do not display "compiling" commands
740 --enable-warnings build: turn on GCC compiler warnings
741 --enable-warnings test: turn on gcc compiler warnings
742 --enable-assertions test: turn on generation of assertion code
743 --enable-expanded test: generate functions for certain macros
744 --disable-macros test: use functions rather than macros
745 --with-trace test: add trace() function to all models of ncurses
746 --disable-gnat-projects test: disable GNAT projects even if usable
747 Ada95 Binding Options:
748 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
749 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
750 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
751 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
752 --with-ada-libname=XXX override default Ada library-name
754 Some influential environment variables:
755 CC C compiler command
756 CFLAGS C compiler flags
757 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
758 nonstandard directory <lib dir>
759 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
760 headers in a nonstandard directory <include dir>
763 Use these variables to override the choices made by `configure' or to help
764 it to find libraries and programs with nonstandard names/locations.
769 if test "$ac_init_help" = "recursive"; then
770 # If there are subdirs, report their specific --help.
772 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
774 # A "../" for each directory in /$ac_subdir.
775 ac_dots=`echo $ac_subdir |
776 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
779 .) # No --srcdir option. We are building in place.
780 ac_sub_srcdir=$srcdir ;;
781 [\\/]* | ?:[\\/]* ) # Absolute path.
782 ac_sub_srcdir=$srcdir/$ac_subdir ;;
784 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
787 # Check for guested configure; otherwise get Cygnus style configure.
788 if test -f $ac_sub_srcdir/configure.gnu; then
790 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
791 elif test -f $ac_sub_srcdir/configure; then
793 $SHELL $ac_sub_srcdir/configure --help=recursive
794 elif test -f $ac_sub_srcdir/configure.ac ||
795 test -f $ac_sub_srcdir/configure.in; then
799 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
805 test -n "$ac_init_help" && exit 0
806 if $ac_init_version; then
809 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
810 Free Software Foundation, Inc.
811 This configure script is free software; the Free Software Foundation
812 gives unlimited permission to copy, distribute and modify it.
818 This file contains any messages produced by compilers while
819 running configure, to aid debugging if configure makes a mistake.
821 It was created by $as_me, which was
822 generated by GNU Autoconf 2.52.20200802. Invocation command line was
833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
840 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
842 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
843 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
845 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
846 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
847 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
848 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
862 # Keep a trace of the command line.
863 # Strip out --no-create and --no-recursion so they do not pile up.
864 # Also quote any args containing shell meta-characters.
870 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
871 | --no-cr | --no-c) ;;
872 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
873 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
874 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
875 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
876 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
878 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
881 # Get rid of the leading space.
884 # When interrupted or exit'd, cleanup temporary files, and complete
885 # config.log. We remove comments because anyway the quotes in there
886 # would cause problems or look ugly.
888 # Save into config.log some information that might help in debugging.
890 echo "## ----------------- ##" >&5
891 echo "## Cache variables. ##" >&5
892 echo "## ----------------- ##" >&5
894 # The following way of writing the cache mishandles newlines in values,
897 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
900 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
905 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
909 sed "/^$/d" confdefs.h >conftest.log
910 if test -s conftest.log; then
912 echo "## ------------ ##" >&5
913 echo "## confdefs.h. ##" >&5
914 echo "## ------------ ##" >&5
919 test "$ac_signal" != 0 &&
920 echo "$as_me: caught signal $ac_signal" >&5
921 echo "$as_me: exit $exit_status" >&5
922 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
925 for ac_signal in 1 2 13 15; do
926 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
931 rm -rf conftest* confdefs.h
932 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
935 # Let the site file select an alternate cache file if it wants to.
936 # Prefer explicitly selected file to automatically selected ones.
937 if test -z "$CONFIG_SITE"; then
938 if test "x$prefix" != xNONE; then
939 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
941 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
944 for ac_site_file in $CONFIG_SITE; do
945 if test -r "$ac_site_file"; then
946 { echo "$as_me:946: loading site script $ac_site_file" >&5
947 echo "$as_me: loading site script $ac_site_file" >&6;}
948 cat "$ac_site_file" >&5
953 if test -r "$cache_file"; then
954 # Some versions of bash will fail to source /dev/null (special
955 # files actually), so we avoid doing that.
956 if test -f "$cache_file"; then
957 { echo "$as_me:957: loading cache $cache_file" >&5
958 echo "$as_me: loading cache $cache_file" >&6;}
960 [\\/]* | ?:[\\/]* ) . $cache_file;;
965 { echo "$as_me:965: creating cache $cache_file" >&5
966 echo "$as_me: creating cache $cache_file" >&6;}
970 # Check that the precious variables saved in the cache have kept the same
972 ac_cache_corrupted=false
973 for ac_var in `(set) 2>&1 |
974 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
976 eval ac_new_set=\$ac_env_${ac_var}_set
977 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
978 eval ac_new_val="\$ac_env_${ac_var}_value"
979 case $ac_old_set,$ac_new_set in
981 { echo "$as_me:981: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
982 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
983 ac_cache_corrupted=: ;;
985 { echo "$as_me:985: error: \`$ac_var' was not set in the previous run" >&5
986 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
987 ac_cache_corrupted=: ;;
990 if test "x$ac_old_val" != "x$ac_new_val"; then
991 { echo "$as_me:991: error: \`$ac_var' has changed since the previous run:" >&5
992 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
993 { echo "$as_me:993: former value: $ac_old_val" >&5
994 echo "$as_me: former value: $ac_old_val" >&2;}
995 { echo "$as_me:995: current value: $ac_new_val" >&5
996 echo "$as_me: current value: $ac_new_val" >&2;}
1000 # Pass precious variables to config.status. It doesn't matter if
1001 # we pass some twice (in addition to the command line arguments).
1002 if test "$ac_new_set" = set; then
1004 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1006 ac_configure_args="$ac_configure_args '$ac_arg'"
1008 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1013 if $ac_cache_corrupted; then
1014 { echo "$as_me:1014: error: changes in the environment can compromise the build" >&5
1015 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1016 { { echo "$as_me:1016: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1017 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1018 { (exit 1); exit 1; }; }
1022 ac_cpp='$CPP $CPPFLAGS'
1023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1026 ac_main_return=return
1028 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1029 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1034 echo "#! $SHELL" >conftest.sh
1035 echo "exit 0" >>conftest.sh
1036 chmod +x conftest.sh
1037 if { (echo "$as_me:1037: PATH=\".;.\"; conftest.sh") >&5
1038 (PATH=".;."; conftest.sh) 2>&5
1040 echo "$as_me:1040: \$? = $ac_status" >&5
1041 (exit $ac_status); }; then
1042 ac_path_separator=';'
1046 PATH_SEPARATOR="$ac_path_separator"
1049 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1054 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1055 if test -f $ac_dir/install-sh; then
1057 ac_install_sh="$ac_aux_dir/install-sh -c"
1059 elif test -f $ac_dir/install.sh; then
1061 ac_install_sh="$ac_aux_dir/install.sh -c"
1063 elif test -f $ac_dir/shtool; then
1065 ac_install_sh="$ac_aux_dir/shtool install -c"
1069 if test -z "$ac_aux_dir"; then
1070 { { echo "$as_me:1070: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1071 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1072 { (exit 1); exit 1; }; }
1074 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1075 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1076 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1078 # Make sure we can run config.sub.
1079 $ac_config_sub sun4 >/dev/null 2>&1 ||
1080 { { echo "$as_me:1080: error: cannot run $ac_config_sub" >&5
1081 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1082 { (exit 1); exit 1; }; }
1084 echo "$as_me:1084: checking build system type" >&5
1085 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1086 if test "${ac_cv_build+set}" = set; then
1087 echo $ECHO_N "(cached) $ECHO_C" >&6
1089 ac_cv_build_alias=$build_alias
1090 test -z "$ac_cv_build_alias" &&
1091 ac_cv_build_alias=`$ac_config_guess`
1092 test -z "$ac_cv_build_alias" &&
1093 { { echo "$as_me:1093: error: cannot guess build type; you must specify one" >&5
1094 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1095 { (exit 1); exit 1; }; }
1096 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1097 { { echo "$as_me:1097: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1098 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1099 { (exit 1); exit 1; }; }
1102 echo "$as_me:1102: result: $ac_cv_build" >&5
1103 echo "${ECHO_T}$ac_cv_build" >&6
1105 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1109 echo "$as_me:1109: checking host system type" >&5
1110 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1111 if test "${ac_cv_host+set}" = set; then
1112 echo $ECHO_N "(cached) $ECHO_C" >&6
1114 ac_cv_host_alias=$host_alias
1115 test -z "$ac_cv_host_alias" &&
1116 ac_cv_host_alias=$ac_cv_build_alias
1117 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1118 { { echo "$as_me:1118: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1119 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1120 { (exit 1); exit 1; }; }
1123 echo "$as_me:1123: result: $ac_cv_host" >&5
1124 echo "${ECHO_T}$ac_cv_host" >&6
1126 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1127 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1128 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1130 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1131 echo "$as_me:1131: checking target system type" >&5
1132 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1133 if test "${ac_cv_target+set}" = set; then
1134 echo $ECHO_N "(cached) $ECHO_C" >&6
1136 ac_cv_target_alias=$target_alias
1137 test "x$ac_cv_target_alias" = "x" &&
1138 ac_cv_target_alias=$ac_cv_host_alias
1139 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1140 { { echo "$as_me:1140: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1141 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1142 { (exit 1); exit 1; }; }
1145 echo "$as_me:1145: result: $ac_cv_target" >&5
1146 echo "${ECHO_T}$ac_cv_target" >&6
1147 target=$ac_cv_target
1148 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1149 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1150 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1152 # The aliases save the names the user supplied, while $host etc.
1153 # will get canonicalized.
1154 test -n "$target_alias" &&
1155 test "$program_prefix$program_suffix$program_transform_name" = \
1157 program_prefix=${target_alias}-
1158 system_name="$host_os"
1160 system_name="`(uname -s -r) 2>/dev/null`"
1161 if test -z "$system_name" ; then
1162 system_name="`(hostname) 2>/dev/null`"
1165 test -n "$system_name" &&
1166 cat >>confdefs.h <<EOF
1167 #define SYSTEM_NAME "$system_name"
1170 if test "${cf_cv_system_name+set}" = set; then
1171 echo $ECHO_N "(cached) $ECHO_C" >&6
1173 cf_cv_system_name="$system_name"
1176 test -z "$system_name" && system_name="$cf_cv_system_name"
1177 test -n "$cf_cv_system_name" && echo "$as_me:1177: result: Configuring for $cf_cv_system_name" >&5
1178 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1180 if test ".$system_name" != ".$cf_cv_system_name" ; then
1181 echo "$as_me:1181: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1182 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1183 { { echo "$as_me:1183: error: \"Please remove config.cache and try again.\"" >&5
1184 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1185 { (exit 1); exit 1; }; }
1188 # Check whether --with-system-type or --without-system-type was given.
1189 if test "${with_system_type+set}" = set; then
1190 withval="$with_system_type"
1191 { echo "$as_me:1191: WARNING: overriding system type to $withval" >&5
1192 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1193 cf_cv_system_name=$withval
1198 ### Save the given $CFLAGS to allow user-override.
1199 cf_user_CFLAGS="$CFLAGS"
1201 ### Default install-location
1203 echo "$as_me:1203: checking for prefix" >&5
1204 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1205 if test "x$prefix" = "xNONE" ; then
1206 case "$cf_cv_system_name" in
1207 # non-vendor systems don't have a conflict
1208 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1211 (*) prefix=$ac_default_prefix
1215 echo "$as_me:1215: result: $prefix" >&5
1216 echo "${ECHO_T}$prefix" >&6
1218 if test "x$prefix" = "xNONE" ; then
1219 echo "$as_me:1219: checking for default include-directory" >&5
1220 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1221 test -n "$verbose" && echo 1>&6
1224 $includedir/ncurses \
1226 $prefix/include/ncurses \
1227 /usr/local/include \
1228 /usr/local/include/ncurses \
1230 /usr/include/ncurses
1232 cf_dir=`eval echo $cf_symbol`
1233 if test -f $cf_dir/curses.h ; then
1234 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1235 includedir="$cf_symbol"
1236 test -n "$verbose" && echo $ac_n " found " 1>&6
1240 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1242 echo "$as_me:1242: result: $includedir" >&5
1243 echo "${ECHO_T}$includedir" >&6
1246 ### Checks for programs.
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253 ac_main_return=return
1254 if test -n "$ac_tool_prefix"; then
1255 for ac_prog in gnatgcc gcc cc
1257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1281 if test -n "$CC"; then
1282 echo "$as_me:1282: result: $CC" >&5
1283 echo "${ECHO_T}$CC" >&6
1285 echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1289 test -n "$CC" && break
1292 if test -z "$CC"; then
1294 for ac_prog in gnatgcc gcc cc
1296 # Extract the first word of "$ac_prog", so it can be a program name with args.
1297 set dummy $ac_prog; ac_word=$2
1298 echo "$as_me:1298: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 if test -n "$ac_ct_CC"; then
1304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1306 ac_save_IFS=$IFS; IFS=$ac_path_separator
1308 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 $as_executable_p "$ac_dir/$ac_word" || continue
1312 ac_cv_prog_ac_ct_CC="$ac_prog"
1313 echo "$as_me:1313: found $ac_dir/$ac_word" >&5
1319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1320 if test -n "$ac_ct_CC"; then
1321 echo "$as_me:1321: result: $ac_ct_CC" >&5
1322 echo "${ECHO_T}$ac_ct_CC" >&6
1324 echo "$as_me:1324: result: no" >&5
1325 echo "${ECHO_T}no" >&6
1328 test -n "$ac_ct_CC" && break
1334 test -z "$CC" && { { echo "$as_me:1334: error: no acceptable cc found in \$PATH" >&5
1335 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1336 { (exit 1); exit 1; }; }
1338 # Provide some information about the compiler.
1339 echo "$as_me:1339:" \
1340 "checking for C compiler version" >&5
1341 ac_compiler=`set X $ac_compile; echo $2`
1342 { (eval echo "$as_me:1342: \"$ac_compiler --version </dev/null >&5\"") >&5
1343 (eval $ac_compiler --version </dev/null >&5) 2>&5
1345 echo "$as_me:1345: \$? = $ac_status" >&5
1346 (exit $ac_status); }
1347 { (eval echo "$as_me:1347: \"$ac_compiler -v </dev/null >&5\"") >&5
1348 (eval $ac_compiler -v </dev/null >&5) 2>&5
1350 echo "$as_me:1350: \$? = $ac_status" >&5
1351 (exit $ac_status); }
1352 { (eval echo "$as_me:1352: \"$ac_compiler -V </dev/null >&5\"") >&5
1353 (eval $ac_compiler -V </dev/null >&5) 2>&5
1355 echo "$as_me:1355: \$? = $ac_status" >&5
1356 (exit $ac_status); }
1358 cat >conftest.$ac_ext <<_ACEOF
1359 #line 1359 "configure"
1360 #include "confdefs.h"
1370 ac_clean_files_save=$ac_clean_files
1371 ac_clean_files="$ac_clean_files a.out a.exe"
1372 # Try to create an executable without -o first, disregard a.out.
1373 # It will help us diagnose broken compilers, and finding out an intuition
1375 echo "$as_me:1375: checking for C compiler default output" >&5
1376 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1377 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1378 if { (eval echo "$as_me:1378: \"$ac_link_default\"") >&5
1379 (eval $ac_link_default) 2>&5
1381 echo "$as_me:1381: \$? = $ac_status" >&5
1382 (exit $ac_status); }; then
1383 # Find the output, starting from the most likely. This scheme is
1384 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1386 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1387 ls a.out conftest 2>/dev/null;
1388 ls a.* conftest.* 2>/dev/null`; do
1390 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1391 a.out ) # We found the default executable, but exeext='' is most
1394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1395 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1402 echo "$as_me: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1404 { { echo "$as_me:1404: error: C compiler cannot create executables" >&5
1405 echo "$as_me: error: C compiler cannot create executables" >&2;}
1406 { (exit 77); exit 77; }; }
1409 ac_exeext=$ac_cv_exeext
1410 echo "$as_me:1410: result: $ac_file" >&5
1411 echo "${ECHO_T}$ac_file" >&6
1413 # Check the compiler produces executables we can run. If not, either
1414 # the compiler is broken, or we cross compile.
1415 echo "$as_me:1415: checking whether the C compiler works" >&5
1416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1418 # If not cross compiling, check that we can run a simple program.
1419 if test "$cross_compiling" != yes; then
1420 if { ac_try='./$ac_file'
1421 { (eval echo "$as_me:1421: \"$ac_try\"") >&5
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }; }; then
1428 if test "$cross_compiling" = maybe; then
1431 { { echo "$as_me:1431: error: cannot run C compiled programs.
1432 If you meant to cross compile, use \`--host'." >&5
1433 echo "$as_me: error: cannot run C compiled programs.
1434 If you meant to cross compile, use \`--host'." >&2;}
1435 { (exit 1); exit 1; }; }
1439 echo "$as_me:1439: result: yes" >&5
1440 echo "${ECHO_T}yes" >&6
1442 rm -f a.out a.exe conftest$ac_cv_exeext
1443 ac_clean_files=$ac_clean_files_save
1444 # Check the compiler produces executables we can run. If not, either
1445 # the compiler is broken, or we cross compile.
1446 echo "$as_me:1446: checking whether we are cross compiling" >&5
1447 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1448 echo "$as_me:1448: result: $cross_compiling" >&5
1449 echo "${ECHO_T}$cross_compiling" >&6
1451 echo "$as_me:1451: checking for executable suffix" >&5
1452 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1453 if { (eval echo "$as_me:1453: \"$ac_link\"") >&5
1454 (eval $ac_link) 2>&5
1456 echo "$as_me:1456: \$? = $ac_status" >&5
1457 (exit $ac_status); }; then
1458 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1459 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1460 # work properly (i.e., refer to `conftest.exe'), while it won't with
1462 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1464 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1472 { { echo "$as_me:1472: error: cannot compute EXEEXT: cannot compile and link" >&5
1473 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1474 { (exit 1); exit 1; }; }
1477 rm -f conftest$ac_cv_exeext
1478 echo "$as_me:1478: result: $ac_cv_exeext" >&5
1479 echo "${ECHO_T}$ac_cv_exeext" >&6
1481 rm -f conftest.$ac_ext
1482 EXEEXT=$ac_cv_exeext
1484 echo "$as_me:1484: checking for object suffix" >&5
1485 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1486 if test "${ac_cv_objext+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 cat >conftest.$ac_ext <<_ACEOF
1490 #line 1490 "configure"
1491 #include "confdefs.h"
1501 rm -f conftest.o conftest.obj
1502 if { (eval echo "$as_me:1502: \"$ac_compile\"") >&5
1503 (eval $ac_compile) 2>&5
1505 echo "$as_me:1505: \$? = $ac_status" >&5
1506 (exit $ac_status); }; then
1507 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1509 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1515 echo "$as_me: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1517 { { echo "$as_me:1517: error: cannot compute OBJEXT: cannot compile" >&5
1518 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1519 { (exit 1); exit 1; }; }
1522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1524 echo "$as_me:1524: result: $ac_cv_objext" >&5
1525 echo "${ECHO_T}$ac_cv_objext" >&6
1526 OBJEXT=$ac_cv_objext
1528 echo "$as_me:1528: checking whether we are using the GNU C compiler" >&5
1529 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 cat >conftest.$ac_ext <<_ACEOF
1534 #line 1534 "configure"
1535 #include "confdefs.h"
1548 rm -f conftest.$ac_objext
1549 if { (eval echo "$as_me:1549: \"$ac_compile\"") >&5
1550 (eval $ac_compile) 2>&5
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit $ac_status); } &&
1554 { ac_try='test -s conftest.$ac_objext'
1555 { (eval echo "$as_me:1555: \"$ac_try\"") >&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; }; then
1562 echo "$as_me: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1566 rm -f conftest.$ac_objext conftest.$ac_ext
1567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1570 echo "$as_me:1570: result: $ac_cv_c_compiler_gnu" >&5
1571 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1572 GCC=`test $ac_compiler_gnu = yes && echo yes`
1573 ac_test_CFLAGS=${CFLAGS+set}
1574 ac_save_CFLAGS=$CFLAGS
1576 echo "$as_me:1576: checking whether $CC accepts -g" >&5
1577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1578 if test "${ac_cv_prog_cc_g+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 cat >conftest.$ac_ext <<_ACEOF
1582 #line 1582 "configure"
1583 #include "confdefs.h"
1593 rm -f conftest.$ac_objext
1594 if { (eval echo "$as_me:1594: \"$ac_compile\"") >&5
1595 (eval $ac_compile) 2>&5
1597 echo "$as_me:1597: \$? = $ac_status" >&5
1598 (exit $ac_status); } &&
1599 { ac_try='test -s conftest.$ac_objext'
1600 { (eval echo "$as_me:1600: \"$ac_try\"") >&5
1603 echo "$as_me:1603: \$? = $ac_status" >&5
1604 (exit $ac_status); }; }; then
1607 echo "$as_me: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1611 rm -f conftest.$ac_objext conftest.$ac_ext
1613 echo "$as_me:1613: result: $ac_cv_prog_cc_g" >&5
1614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1615 if test "$ac_test_CFLAGS" = set; then
1616 CFLAGS=$ac_save_CFLAGS
1617 elif test $ac_cv_prog_cc_g = yes; then
1618 if test "$GCC" = yes; then
1624 if test "$GCC" = yes; then
1630 # Some people use a C++ compiler to compile C. Since we use `exit',
1631 # in C++ we need to declare it. In case someone uses the same compiler
1632 # for both compiling C and C++ we need to have the C++ compiler decide
1633 # the declaration of exit, since it's the most demanding environment.
1634 cat >conftest.$ac_ext <<_ACEOF
1639 rm -f conftest.$ac_objext
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); } &&
1645 { ac_try='test -s conftest.$ac_objext'
1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1651 for ac_declaration in \
1653 '#include <stdlib.h>' \
1654 'extern "C" void std::exit (int) throw (); using std::exit;' \
1655 'extern "C" void std::exit (int); using std::exit;' \
1656 'extern "C" void exit (int) throw ();' \
1657 'extern "C" void exit (int);' \
1660 cat >conftest.$ac_ext <<_ACEOF
1661 #line 1661 "configure"
1662 #include "confdefs.h"
1673 rm -f conftest.$ac_objext
1674 if { (eval echo "$as_me:1674: \"$ac_compile\"") >&5
1675 (eval $ac_compile) 2>&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); } &&
1679 { ac_try='test -s conftest.$ac_objext'
1680 { (eval echo "$as_me:1680: \"$ac_try\"") >&5
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); }; }; then
1687 echo "$as_me: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1691 rm -f conftest.$ac_objext conftest.$ac_ext
1692 cat >conftest.$ac_ext <<_ACEOF
1693 #line 1693 "configure"
1694 #include "confdefs.h"
1704 rm -f conftest.$ac_objext
1705 if { (eval echo "$as_me:1705: \"$ac_compile\"") >&5
1706 (eval $ac_compile) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); } &&
1710 { ac_try='test -s conftest.$ac_objext'
1711 { (eval echo "$as_me:1711: \"$ac_try\"") >&5
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); }; }; then
1718 echo "$as_me: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1724 if test -n "$ac_declaration"; then
1725 echo '#ifdef __cplusplus' >>confdefs.h
1726 echo $ac_declaration >>confdefs.h
1727 echo '#endif' >>confdefs.h
1731 echo "$as_me: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1734 rm -f conftest.$ac_objext conftest.$ac_ext
1736 ac_cpp='$CPP $CPPFLAGS'
1737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1740 ac_main_return=return
1743 if test "$GCC" = yes ; then
1744 echo "$as_me:1744: checking version of $CC" >&5
1745 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1746 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.].*//'`"
1747 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1748 echo "$as_me:1748: result: $GCC_VERSION" >&5
1749 echo "${ECHO_T}$GCC_VERSION" >&6
1754 if test "$GCC" = yes ; then
1757 echo "$as_me:1757: checking if this is really Intel C compiler" >&5
1758 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1759 cf_save_CFLAGS="$CFLAGS"
1760 CFLAGS="$CFLAGS -no-gcc"
1761 cat >conftest.$ac_ext <<_ACEOF
1762 #line 1762 "configure"
1763 #include "confdefs.h"
1769 #ifdef __INTEL_COMPILER
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1791 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1794 echo "$as_me: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 rm -f conftest.$ac_objext conftest.$ac_ext
1798 CFLAGS="$cf_save_CFLAGS"
1799 echo "$as_me:1799: result: $INTEL_COMPILER" >&5
1800 echo "${ECHO_T}$INTEL_COMPILER" >&6
1807 if test "$GCC" = yes ; then
1808 echo "$as_me:1808: checking if this is really Clang C compiler" >&5
1809 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1810 cf_save_CFLAGS="$CFLAGS"
1811 CFLAGS="$CFLAGS -Qunused-arguments"
1812 cat >conftest.$ac_ext <<_ACEOF
1813 #line 1813 "configure"
1814 #include "confdefs.h"
1829 rm -f conftest.$ac_objext
1830 if { (eval echo "$as_me:1830: \"$ac_compile\"") >&5
1831 (eval $ac_compile) 2>&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); } &&
1835 { ac_try='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:1836: \"$ac_try\"") >&5
1839 echo "$as_me:1839: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1842 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
1845 echo "$as_me: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 rm -f conftest.$ac_objext conftest.$ac_ext
1849 CFLAGS="$cf_save_CFLAGS"
1850 echo "$as_me:1850: result: $CLANG_COMPILER" >&5
1851 echo "${ECHO_T}$CLANG_COMPILER" >&6
1854 if test "x$CLANG_COMPILER" = "xyes" ; then
1856 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
1857 CFLAGS="${CFLAGS}-Wno-error=implicit-function-declaration"
1861 echo "$as_me:1861: checking for $CC option to accept ANSI C" >&5
1862 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1863 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 ac_cv_prog_cc_stdc=no
1868 cat >conftest.$ac_ext <<_ACEOF
1869 #line 1869 "configure"
1870 #include "confdefs.h"
1873 #include <sys/types.h>
1874 #include <sys/stat.h>
1875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1876 struct buf { int x; };
1877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1878 static char *e (p, i)
1884 static char *f (char * (*g) (char **, int), char **p, ...)
1889 s = g (p, va_arg (v,int));
1893 int test (int i, double x);
1894 struct s1 {int (*f) (int a);};
1895 struct s2 {int (*f) (double a);};
1896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1907 # Don't try gcc -ansi; that turns off useful extensions and
1908 # breaks some systems' header files.
1909 # AIX -qlanglvl=ansi
1910 # Ultrix and OSF/1 -std1
1911 # HP-UX 10.20 and later -Ae
1912 # HP-UX older versions -Aa -D_HPUX_SOURCE
1913 # SVR4 -Xc -D__EXTENSIONS__
1914 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1916 CC="$ac_save_CC $ac_arg"
1917 rm -f conftest.$ac_objext
1918 if { (eval echo "$as_me:1918: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:1924: \"$ac_try\"") >&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1929 ac_cv_prog_cc_stdc=$ac_arg
1932 echo "$as_me: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 rm -f conftest.$ac_objext
1937 rm -f conftest.$ac_ext conftest.$ac_objext
1942 case "x$ac_cv_prog_cc_stdc" in
1944 echo "$as_me:1944: result: none needed" >&5
1945 echo "${ECHO_T}none needed" >&6 ;;
1947 echo "$as_me:1947: result: $ac_cv_prog_cc_stdc" >&5
1948 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1949 CC="$CC $ac_cv_prog_cc_stdc" ;;
1952 # This should have been defined by AC_PROG_CC
1955 echo "$as_me:1955: checking \$CFLAGS variable" >&5
1956 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
1959 echo "$as_me:1959: result: broken" >&5
1960 echo "${ECHO_T}broken" >&6
1961 { echo "$as_me:1961: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
1962 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
1965 for cf_arg in $cf_flags
1971 cf_new_extra_cppflags=
1973 for cf_add_cflags in $cf_arg
1975 case $cf_fix_cppflags in
1977 case $cf_add_cflags in
1978 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1979 case $cf_add_cflags in
1981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1983 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1984 && test -z "${cf_tst_cflags}" \
1985 && cf_fix_cppflags=yes
1987 if test $cf_fix_cppflags = yes ; then
1989 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1990 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1993 elif test "${cf_tst_cflags}" = "\"'" ; then
1995 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1996 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2006 case $cf_add_cflags in
2008 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2010 CPPFLAGS=`echo "$CPPFLAGS" | \
2011 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2012 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2017 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2018 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2025 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2026 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2033 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2034 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2036 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2038 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2039 && test -z "${cf_tst_cflags}" \
2040 && cf_fix_cppflags=no
2045 if test -n "$cf_new_cflags" ; then
2047 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2048 CFLAGS="${CFLAGS}$cf_new_cflags"
2052 if test -n "$cf_new_cppflags" ; then
2054 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2055 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2059 if test -n "$cf_new_extra_cppflags" ; then
2061 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2062 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2069 echo "$as_me:2069: result: ok" >&5
2070 echo "${ECHO_T}ok" >&6
2074 echo "$as_me:2074: checking \$CC variable" >&5
2075 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2078 echo "$as_me:2078: result: broken" >&5
2079 echo "${ECHO_T}broken" >&6
2080 { echo "$as_me:2080: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2081 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2083 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2084 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2086 for cf_arg in $cf_flags
2094 cf_new_extra_cppflags=
2096 for cf_add_cflags in $cf_arg
2098 case $cf_fix_cppflags in
2100 case $cf_add_cflags in
2101 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2102 case $cf_add_cflags in
2104 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2106 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2107 && test -z "${cf_tst_cflags}" \
2108 && cf_fix_cppflags=yes
2110 if test $cf_fix_cppflags = yes ; then
2112 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2113 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2116 elif test "${cf_tst_cflags}" = "\"'" ; then
2118 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2119 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2129 case $cf_add_cflags in
2131 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2133 CPPFLAGS=`echo "$CPPFLAGS" | \
2134 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2135 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2140 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2141 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2148 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2149 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2156 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2157 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2159 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2161 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2162 && test -z "${cf_tst_cflags}" \
2163 && cf_fix_cppflags=no
2168 if test -n "$cf_new_cflags" ; then
2170 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2171 CFLAGS="${CFLAGS}$cf_new_cflags"
2175 if test -n "$cf_new_cppflags" ; then
2177 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2178 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2182 if test -n "$cf_new_extra_cppflags" ; then
2184 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2185 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2195 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2197 echo "${as_me:-configure}:2197: testing resulting CC: '$CC' ..." 1>&5
2199 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2201 echo "${as_me:-configure}:2201: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2203 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2205 echo "${as_me:-configure}:2205: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2209 echo "$as_me:2209: result: ok" >&5
2210 echo "${ECHO_T}ok" >&6
2215 ac_cpp='$CPP $CPPFLAGS'
2216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219 ac_main_return=return
2220 echo "$as_me:2220: checking how to run the C preprocessor" >&5
2221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2222 # On Suns, sometimes $CPP names a directory.
2223 if test -n "$CPP" && test -d "$CPP"; then
2226 if test -z "$CPP"; then
2227 if test "${ac_cv_prog_CPP+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 # Double quotes because CPP needs to be expanded
2231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2234 for ac_c_preproc_warn_flag in '' yes
2236 # Use a header file that comes with gcc, so configuring glibc
2237 # with a fresh cross-compiler works.
2238 # On the NeXT, cc -E runs the code through the compiler's parser,
2239 # not just through cpp. "Syntax error" is here to catch this case.
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #line 2241 "configure"
2242 #include "confdefs.h"
2246 if { (eval echo "$as_me:2246: \"$ac_cpp conftest.$ac_ext\"") >&5
2247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2249 egrep -v '^ *\+' conftest.er1 >conftest.err
2251 cat conftest.err >&5
2252 echo "$as_me:2252: \$? = $ac_status" >&5
2253 (exit $ac_status); } >/dev/null; then
2254 if test -s conftest.err; then
2255 ac_cpp_err=$ac_c_preproc_warn_flag
2262 if test -z "$ac_cpp_err"; then
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 # Broken: fails on valid input.
2270 rm -f conftest.err conftest.$ac_ext
2272 # OK, works on sane cases. Now check whether non-existent headers
2273 # can be detected and how.
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line 2275 "configure"
2276 #include "confdefs.h"
2277 #include <ac_nonexistent.h>
2279 if { (eval echo "$as_me:2279: \"$ac_cpp conftest.$ac_ext\"") >&5
2280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2282 egrep -v '^ *\+' conftest.er1 >conftest.err
2284 cat conftest.err >&5
2285 echo "$as_me:2285: \$? = $ac_status" >&5
2286 (exit $ac_status); } >/dev/null; then
2287 if test -s conftest.err; then
2288 ac_cpp_err=$ac_c_preproc_warn_flag
2295 if test -z "$ac_cpp_err"; then
2296 # Broken: success on invalid input.
2299 echo "$as_me: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 # Passes both tests.
2305 rm -f conftest.err conftest.$ac_ext
2308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2309 rm -f conftest.err conftest.$ac_ext
2310 if $ac_preproc_ok; then
2322 echo "$as_me:2322: result: $CPP" >&5
2323 echo "${ECHO_T}$CPP" >&6
2325 for ac_c_preproc_warn_flag in '' yes
2327 # Use a header file that comes with gcc, so configuring glibc
2328 # with a fresh cross-compiler works.
2329 # On the NeXT, cc -E runs the code through the compiler's parser,
2330 # not just through cpp. "Syntax error" is here to catch this case.
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line 2332 "configure"
2333 #include "confdefs.h"
2337 if { (eval echo "$as_me:2337: \"$ac_cpp conftest.$ac_ext\"") >&5
2338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2340 egrep -v '^ *\+' conftest.er1 >conftest.err
2342 cat conftest.err >&5
2343 echo "$as_me:2343: \$? = $ac_status" >&5
2344 (exit $ac_status); } >/dev/null; then
2345 if test -s conftest.err; then
2346 ac_cpp_err=$ac_c_preproc_warn_flag
2353 if test -z "$ac_cpp_err"; then
2356 echo "$as_me: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 # Broken: fails on valid input.
2361 rm -f conftest.err conftest.$ac_ext
2363 # OK, works on sane cases. Now check whether non-existent headers
2364 # can be detected and how.
2365 cat >conftest.$ac_ext <<_ACEOF
2366 #line 2366 "configure"
2367 #include "confdefs.h"
2368 #include <ac_nonexistent.h>
2370 if { (eval echo "$as_me:2370: \"$ac_cpp conftest.$ac_ext\"") >&5
2371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373 egrep -v '^ *\+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:2376: \$? = $ac_status" >&5
2377 (exit $ac_status); } >/dev/null; then
2378 if test -s conftest.err; then
2379 ac_cpp_err=$ac_c_preproc_warn_flag
2386 if test -z "$ac_cpp_err"; then
2387 # Broken: success on invalid input.
2390 echo "$as_me: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2392 # Passes both tests.
2396 rm -f conftest.err conftest.$ac_ext
2399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2400 rm -f conftest.err conftest.$ac_ext
2401 if $ac_preproc_ok; then
2404 { { echo "$as_me:2404: error: C preprocessor \"$CPP\" fails sanity check" >&5
2405 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2406 { (exit 1); exit 1; }; }
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 ac_main_return=return
2416 if test $ac_cv_c_compiler_gnu = yes; then
2417 echo "$as_me:2417: checking whether $CC needs -traditional" >&5
2418 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2419 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_pattern="Autoconf.*'x'"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 #line 2424 "configure"
2425 #include "confdefs.h"
2427 int Autoconf = TIOCGETP;
2429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2430 egrep "$ac_pattern" >/dev/null 2>&1; then
2431 ac_cv_prog_gcc_traditional=yes
2433 ac_cv_prog_gcc_traditional=no
2437 if test $ac_cv_prog_gcc_traditional = no; then
2438 cat >conftest.$ac_ext <<_ACEOF
2439 #line 2439 "configure"
2440 #include "confdefs.h"
2442 int Autoconf = TCGETA;
2444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2445 egrep "$ac_pattern" >/dev/null 2>&1; then
2446 ac_cv_prog_gcc_traditional=yes
2452 echo "$as_me:2452: result: $ac_cv_prog_gcc_traditional" >&5
2453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2454 if test $ac_cv_prog_gcc_traditional = yes; then
2455 CC="$CC -traditional"
2459 echo "$as_me:2459: checking whether $CC understands -c and -o together" >&5
2460 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2461 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 cat > conftest.$ac_ext <<CF_EOF
2468 ${cf_cv_main_return:-return}(0);
2471 # We do the test twice because some compilers refuse to overwrite an
2472 # existing .o file with -o, though they will create one.
2473 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2474 if { (eval echo "$as_me:2474: \"$ac_try\"") >&5
2477 echo "$as_me:2477: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 test -f conftest2.$ac_objext && { (eval echo "$as_me:2479: \"$ac_try\"") >&5
2482 echo "$as_me:2482: \$? = $ac_status" >&5
2483 (exit $ac_status); };
2485 eval cf_cv_prog_CC_c_o=yes
2487 eval cf_cv_prog_CC_c_o=no
2492 if test $cf_cv_prog_CC_c_o = yes; then
2493 echo "$as_me:2493: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6
2496 echo "$as_me:2496: result: no" >&5
2497 echo "${ECHO_T}no" >&6
2500 test "$program_prefix" != NONE &&
2501 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2502 # Use a double $ so make ignores it.
2503 test "$program_suffix" != NONE &&
2504 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2505 # Double any \ or $. echo might interpret backslashes.
2506 # By default was `s,x,x', remove it if useless.
2507 cat <<\_ACEOF >conftest.sed
2508 s/[\\$]/&&/g;s/;s,x,x,$//
2510 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2513 for ac_prog in mawk gawk nawk awk
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 echo "$as_me:2517: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519 if test "${ac_cv_prog_AWK+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$AWK"; then
2523 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2525 ac_save_IFS=$IFS; IFS=$ac_path_separator
2527 for ac_dir in $ac_dummy; do
2529 test -z "$ac_dir" && ac_dir=.
2530 $as_executable_p "$ac_dir/$ac_word" || continue
2531 ac_cv_prog_AWK="$ac_prog"
2532 echo "$as_me:2532: found $ac_dir/$ac_word" >&5
2539 if test -n "$AWK"; then
2540 echo "$as_me:2540: result: $AWK" >&5
2541 echo "${ECHO_T}$AWK" >&6
2543 echo "$as_me:2543: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$AWK" && break
2550 test -z "$AWK" && { { echo "$as_me:2550: error: No awk program found" >&5
2551 echo "$as_me: error: No awk program found" >&2;}
2552 { (exit 1); exit 1; }; }
2554 echo "$as_me:2554: checking for egrep" >&5
2555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2556 if test "${ac_cv_prog_egrep+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2560 then ac_cv_prog_egrep='grep -E'
2561 else ac_cv_prog_egrep='egrep'
2564 echo "$as_me:2564: result: $ac_cv_prog_egrep" >&5
2565 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2566 EGREP=$ac_cv_prog_egrep
2568 test -z "$EGREP" && { { echo "$as_me:2568: error: No egrep program found" >&5
2569 echo "$as_me: error: No egrep program found" >&2;}
2570 { (exit 1); exit 1; }; }
2572 # Find a good install program. We prefer a C program (faster),
2573 # so one script is as good as another. But avoid the broken or
2574 # incompatible versions:
2575 # SysV /etc/install, /usr/sbin/install
2576 # SunOS /usr/etc/install
2577 # IRIX /sbin/install
2579 # AmigaOS /C/install, which installs bootblocks on floppy discs
2580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583 # ./install, which can be erroneously created by make from ./install.sh.
2584 echo "$as_me:2584: checking for a BSD compatible install" >&5
2585 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2586 if test -z "$INSTALL"; then
2587 if test "${ac_cv_path_install+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 ac_save_IFS=$IFS; IFS=$ac_path_separator
2591 for ac_dir in $PATH; do
2593 # Account for people who put trailing slashes in PATH elements.
2595 / | ./ | .// | /cC/* \
2596 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2599 # OSF1 and SCO ODT 3.0 have their own names for install.
2600 # Don't use installbsd from OSF since it installs stuff as root
2602 for ac_prog in ginstall scoinst install; do
2603 if $as_executable_p "$ac_dir/$ac_prog"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2608 elif test $ac_prog = install &&
2609 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2613 ac_cv_path_install="$ac_dir/$ac_prog -c"
2623 if test "${ac_cv_path_install+set}" = set; then
2624 INSTALL=$ac_cv_path_install
2626 # As a last resort, use the slow shell script. We don't cache a
2627 # path for INSTALL within a source directory, because that will
2628 # break other packages using the cache if that directory is
2629 # removed, or if the path is relative.
2630 INSTALL=$ac_install_sh
2633 echo "$as_me:2633: result: $INSTALL" >&5
2634 echo "${ECHO_T}$INSTALL" >&6
2636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2637 # It thinks the first close brace ends the variable substitution.
2638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2644 echo "$as_me:2644: checking whether ln -s works" >&5
2645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2647 if test "$LN_S" = "ln -s"; then
2648 echo "$as_me:2648: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2651 echo "$as_me:2651: result: no, using $LN_S" >&5
2652 echo "${ECHO_T}no, using $LN_S" >&6
2655 echo "$as_me:2655: checking if $LN_S -f options work" >&5
2656 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2658 rm -f conf$$.src conf$$dst
2660 echo first >conf$$.src
2661 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2666 rm -f conf$$.dst conf$$src
2667 echo "$as_me:2667: result: $cf_prog_ln_sf" >&5
2668 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2670 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # ./install, which can be erroneously created by make from ./install.sh.
2684 echo "$as_me:2684: checking for a BSD compatible install" >&5
2685 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 ac_save_IFS=$IFS; IFS=$ac_path_separator
2691 for ac_dir in $PATH; do
2693 # Account for people who put trailing slashes in PATH elements.
2695 / | ./ | .// | /cC/* \
2696 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2702 for ac_prog in ginstall scoinst install; do
2703 if $as_executable_p "$ac_dir/$ac_prog"; then
2704 if test $ac_prog = install &&
2705 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2706 # AIX install. It has an incompatible calling convention.
2708 elif test $ac_prog = install &&
2709 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2710 # program-specific install script used by HP pwplus--don't use.
2713 ac_cv_path_install="$ac_dir/$ac_prog -c"
2723 if test "${ac_cv_path_install+set}" = set; then
2724 INSTALL=$ac_cv_path_install
2726 # As a last resort, use the slow shell script. We don't cache a
2727 # path for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the path is relative.
2730 INSTALL=$ac_install_sh
2733 echo "$as_me:2733: result: $INSTALL" >&5
2734 echo "${ECHO_T}$INSTALL" >&6
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2748 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2749 test -z "$cf_dir" && cf_dir=.
2750 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2754 echo "$as_me:2754: checking if you want to install stripped executables" >&5
2755 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2757 # Check whether --enable-stripping or --disable-stripping was given.
2758 if test "${enable_stripping+set}" = set; then
2759 enableval="$enable_stripping"
2760 test "$enableval" != no && enableval=yes
2761 if test "$enableval" != "yes" ; then
2771 echo "$as_me:2771: result: $with_stripping" >&5
2772 echo "${ECHO_T}$with_stripping" >&6
2774 if test "$with_stripping" = yes
2781 : ${INSTALL:=install}
2782 echo "$as_me:2782: checking if install accepts -p option" >&5
2783 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2784 if test "${cf_cv_install_p+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2794 if test -f conftest.out/conftest.in
2796 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2797 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2798 if test -s conftest.err
2813 echo "$as_me:2813: result: $cf_cv_install_p" >&5
2814 echo "${ECHO_T}$cf_cv_install_p" >&6
2816 echo "$as_me:2816: checking if install needs to be told about ownership" >&5
2817 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2818 case `$ac_config_guess` in
2827 echo "$as_me:2827: result: $with_install_o" >&5
2828 echo "${ECHO_T}$with_install_o" >&6
2829 if test "x$with_install_o" = xyes
2831 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
2836 echo "$as_me:2836: checking for long file names" >&5
2837 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2838 if test "${ac_cv_sys_long_file_names+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 ac_cv_sys_long_file_names=yes
2842 # Test for long file names in all the places we know might matter:
2843 # . the current directory, where building will happen
2844 # $prefix/lib where we will be installing things
2845 # $exec_prefix/lib likewise
2846 # eval it to expand exec_prefix.
2847 # $TMPDIR if set, where it might want to write temporary files
2848 # if $TMPDIR is not set:
2849 # /tmp where it might want to write temporary files
2852 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2855 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2857 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2858 test -d $ac_dir || continue
2859 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2860 ac_xdir=$ac_dir/cf$$
2861 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2862 ac_tf1=$ac_xdir/conftest9012345
2863 ac_tf2=$ac_xdir/conftest9012346
2864 (echo 1 >$ac_tf1) 2>/dev/null
2865 (echo 2 >$ac_tf2) 2>/dev/null
2866 ac_val=`cat $ac_tf1 2>/dev/null`
2867 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2868 ac_cv_sys_long_file_names=no
2869 rm -rf $ac_xdir 2>/dev/null
2872 rm -rf $ac_xdir 2>/dev/null
2875 echo "$as_me:2875: result: $ac_cv_sys_long_file_names" >&5
2876 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2877 if test $ac_cv_sys_long_file_names = yes; then
2879 cat >>confdefs.h <<\EOF
2880 #define HAVE_LONG_FILE_NAMES 1
2885 # if we find pkg-config, check if we should install the ".pc" files.
2887 echo "$as_me:2887: checking if you want to use pkg-config" >&5
2888 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2890 # Check whether --with-pkg-config or --without-pkg-config was given.
2891 if test "${with_pkg_config+set}" = set; then
2892 withval="$with_pkg_config"
2893 cf_pkg_config=$withval
2897 echo "$as_me:2897: result: $cf_pkg_config" >&5
2898 echo "${ECHO_T}$cf_pkg_config" >&6
2900 case $cf_pkg_config in
2906 if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2908 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2909 echo "$as_me:2909: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2919 ac_save_IFS=$IFS; IFS=$ac_path_separator
2921 for ac_dir in $ac_dummy; do
2923 test -z "$ac_dir" && ac_dir=.
2924 if $as_executable_p "$ac_dir/$ac_word"; then
2925 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2926 echo "$as_me:2926: found $ac_dir/$ac_word" >&5
2934 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2936 if test -n "$PKG_CONFIG"; then
2937 echo "$as_me:2937: result: $PKG_CONFIG" >&5
2938 echo "${ECHO_T}$PKG_CONFIG" >&6
2940 echo "$as_me:2940: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2945 if test -z "$ac_cv_path_PKG_CONFIG"; then
2946 ac_pt_PKG_CONFIG=$PKG_CONFIG
2947 # Extract the first word of "pkg-config", so it can be a program name with args.
2948 set dummy pkg-config; ac_word=$2
2949 echo "$as_me:2949: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2951 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 case $ac_pt_PKG_CONFIG in
2956 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2959 ac_save_IFS=$IFS; IFS=$ac_path_separator
2961 for ac_dir in $ac_dummy; do
2963 test -z "$ac_dir" && ac_dir=.
2964 if $as_executable_p "$ac_dir/$ac_word"; then
2965 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2966 echo "$as_me:2966: found $ac_dir/$ac_word" >&5
2971 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2975 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2977 if test -n "$ac_pt_PKG_CONFIG"; then
2978 echo "$as_me:2978: result: $ac_pt_PKG_CONFIG" >&5
2979 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2981 echo "$as_me:2981: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 PKG_CONFIG=$ac_pt_PKG_CONFIG
2987 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2996 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2997 if test "$PKG_CONFIG" != none ; then
2999 if test "x$prefix" != xNONE; then
3000 cf_path_syntax="$prefix"
3002 cf_path_syntax="$ac_default_prefix"
3005 case ".$PKG_CONFIG" in
3010 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3012 (.\${*prefix}*|.\${*dir}*)
3013 eval PKG_CONFIG="$PKG_CONFIG"
3014 case ".$PKG_CONFIG" in
3016 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3021 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3024 { { echo "$as_me:3024: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3025 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3026 { (exit 1); exit 1; }; }
3030 elif test "x$cf_pkg_config" != xno ; then
3031 { echo "$as_me:3031: WARNING: pkg-config is not installed" >&5
3032 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3037 echo "$as_me:3037: checking for pkg-config library directory" >&5
3038 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3041 echo "$as_me:3041: checking for $PKG_CONFIG library directory" >&5
3042 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3046 PKG_CONFIG_LIBDIR=no
3048 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3049 if test "${with_pkg_config_libdir+set}" = set; then
3050 withval="$with_pkg_config_libdir"
3051 PKG_CONFIG_LIBDIR=$withval
3053 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3056 case x$PKG_CONFIG_LIBDIR in
3060 # Look for the library directory using the same prefix as the executable
3061 if test "x$PKG_CONFIG" = xnone
3065 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3068 # If you don't like using the default architecture, you have to specify the
3069 # intended library directory and corresponding compiler/linker options.
3071 # This case allows for Debian's 2014-flavor of multiarch, along with the
3072 # most common variations before that point. Some other variants spell the
3073 # directory differently, e.g., "pkg-config", and put it in unusual places.
3074 # pkg-config has always been poorly standardized, which is ironic...
3075 case x`(arch) 2>/dev/null` in
3078 $cf_path/lib/*64-linux-gnu \
3086 $cf_path/lib/*-linux-gnu \
3094 test -n "$verbose" && echo " list..." 1>&6
3096 echo "${as_me:-configure}:3096: testing list... ..." 1>&5
3098 for cf_config in $cf_search_path
3100 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3102 echo "${as_me:-configure}:3102: testing checking $cf_config/pkgconfig ..." 1>&5
3104 if test -d $cf_config/pkgconfig
3106 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3107 echo "$as_me:3107: checking done" >&5
3108 echo $ECHO_N "checking done... $ECHO_C" >&6
3117 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3118 echo "$as_me:3118: result: $PKG_CONFIG_LIBDIR" >&5
3119 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3122 echo "$as_me:3122: checking if you want to build test-programs" >&5
3123 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3125 # Check whether --with-tests or --without-tests was given.
3126 if test "${with_tests+set}" = set; then
3127 withval="$with_tests"
3128 cf_with_tests=$withval
3132 echo "$as_me:3132: result: $cf_with_tests" >&5
3133 echo "${ECHO_T}$cf_with_tests" >&6
3135 echo "$as_me:3135: checking if we should assume mixed-case filenames" >&5
3136 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3138 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3139 if test "${enable_mixed_case+set}" = set; then
3140 enableval="$enable_mixed_case"
3141 enable_mixedcase=$enableval
3143 enable_mixedcase=auto
3145 echo "$as_me:3145: result: $enable_mixedcase" >&5
3146 echo "${ECHO_T}$enable_mixedcase" >&6
3147 if test "$enable_mixedcase" = "auto" ; then
3149 echo "$as_me:3149: checking if filesystem supports mixed-case filenames" >&5
3150 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3151 if test "${cf_cv_mixedcase+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 if test "$cross_compiling" = yes ; then
3156 case $target_alias in
3157 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3165 rm -f conftest CONFTEST
3167 if test -f CONFTEST ; then
3172 rm -f conftest CONFTEST
3176 echo "$as_me:3176: result: $cf_cv_mixedcase" >&5
3177 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3178 test "$cf_cv_mixedcase" = yes &&
3179 cat >>confdefs.h <<\EOF
3180 #define MIXEDCASE_FILENAMES 1
3184 cf_cv_mixedcase=$enable_mixedcase
3185 if test "$enable_mixedcase" = "yes" ; then
3186 cat >>confdefs.h <<\EOF
3187 #define MIXEDCASE_FILENAMES 1
3193 # do this after mixed-case option (tags/TAGS is not as important as tic).
3194 echo "$as_me:3194: checking whether ${MAKE-make} sets \${MAKE}" >&5
3195 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3196 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3197 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 cat >conftest.make <<\EOF
3202 @echo 'ac_maketemp="${MAKE}"'
3204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3205 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3206 if test -n "$ac_maketemp"; then
3207 eval ac_cv_prog_make_${ac_make}_set=yes
3209 eval ac_cv_prog_make_${ac_make}_set=no
3213 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3214 echo "$as_me:3214: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3218 echo "$as_me:3218: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 SET_MAKE="MAKE=${MAKE-make}"
3223 for ac_prog in exctags ctags
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy $ac_prog; ac_word=$2
3227 echo "$as_me:3227: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_CTAGS+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$CTAGS"; then
3233 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3235 ac_save_IFS=$IFS; IFS=$ac_path_separator
3237 for ac_dir in $ac_dummy; do
3239 test -z "$ac_dir" && ac_dir=.
3240 $as_executable_p "$ac_dir/$ac_word" || continue
3241 ac_cv_prog_CTAGS="$ac_prog"
3242 echo "$as_me:3242: found $ac_dir/$ac_word" >&5
3248 CTAGS=$ac_cv_prog_CTAGS
3249 if test -n "$CTAGS"; then
3250 echo "$as_me:3250: result: $CTAGS" >&5
3251 echo "${ECHO_T}$CTAGS" >&6
3253 echo "$as_me:3253: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3257 test -n "$CTAGS" && break
3260 for ac_prog in exetags etags
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 echo "$as_me:3264: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266 if test "${ac_cv_prog_ETAGS+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 if test -n "$ETAGS"; then
3270 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3272 ac_save_IFS=$IFS; IFS=$ac_path_separator
3274 for ac_dir in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir=.
3277 $as_executable_p "$ac_dir/$ac_word" || continue
3278 ac_cv_prog_ETAGS="$ac_prog"
3279 echo "$as_me:3279: found $ac_dir/$ac_word" >&5
3285 ETAGS=$ac_cv_prog_ETAGS
3286 if test -n "$ETAGS"; then
3287 echo "$as_me:3287: result: $ETAGS" >&5
3288 echo "${ECHO_T}$ETAGS" >&6
3290 echo "$as_me:3290: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 test -n "$ETAGS" && break
3297 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3298 set dummy ${CTAGS:-ctags}; ac_word=$2
3299 echo "$as_me:3299: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 if test -n "$MAKE_LOWER_TAGS"; then
3305 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3307 ac_save_IFS=$IFS; IFS=$ac_path_separator
3309 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 $as_executable_p "$ac_dir/$ac_word" || continue
3313 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3314 echo "$as_me:3314: found $ac_dir/$ac_word" >&5
3318 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3321 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3322 if test -n "$MAKE_LOWER_TAGS"; then
3323 echo "$as_me:3323: result: $MAKE_LOWER_TAGS" >&5
3324 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3326 echo "$as_me:3326: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3330 if test "$cf_cv_mixedcase" = yes ; then
3331 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3332 set dummy ${ETAGS:-etags}; ac_word=$2
3333 echo "$as_me:3333: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 if test -n "$MAKE_UPPER_TAGS"; then
3339 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3341 ac_save_IFS=$IFS; IFS=$ac_path_separator
3343 for ac_dir in $ac_dummy; do
3345 test -z "$ac_dir" && ac_dir=.
3346 $as_executable_p "$ac_dir/$ac_word" || continue
3347 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3348 echo "$as_me:3348: found $ac_dir/$ac_word" >&5
3352 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3355 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3356 if test -n "$MAKE_UPPER_TAGS"; then
3357 echo "$as_me:3357: result: $MAKE_UPPER_TAGS" >&5
3358 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3360 echo "$as_me:3360: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3368 if test "$MAKE_UPPER_TAGS" = yes ; then
3374 if test "$MAKE_LOWER_TAGS" = yes ; then
3380 echo "$as_me:3380: checking for makeflags variable" >&5
3381 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3382 if test "${cf_cv_makeflags+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3389 cat >cf_makeflags.tmp <<CF_EOF
3392 @ echo '.$cf_option'
3394 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3395 case "$cf_result" in
3397 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3398 case "$cf_result" in
3399 (.*CC=*) cf_cv_makeflags=
3401 (*) cf_cv_makeflags=$cf_option
3410 echo "${as_me:-configure}:3410: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
3415 rm -f cf_makeflags.tmp
3418 echo "$as_me:3418: result: $cf_cv_makeflags" >&5
3419 echo "${ECHO_T}$cf_cv_makeflags" >&6
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3424 echo "$as_me:3424: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_RANLIB+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -n "$RANLIB"; then
3430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3432 ac_save_IFS=$IFS; IFS=$ac_path_separator
3434 for ac_dir in $ac_dummy; do
3436 test -z "$ac_dir" && ac_dir=.
3437 $as_executable_p "$ac_dir/$ac_word" || continue
3438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439 echo "$as_me:3439: found $ac_dir/$ac_word" >&5
3445 RANLIB=$ac_cv_prog_RANLIB
3446 if test -n "$RANLIB"; then
3447 echo "$as_me:3447: result: $RANLIB" >&5
3448 echo "${ECHO_T}$RANLIB" >&6
3450 echo "$as_me:3450: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3455 if test -z "$ac_cv_prog_RANLIB"; then
3456 ac_ct_RANLIB=$RANLIB
3457 # Extract the first word of "ranlib", so it can be a program name with args.
3458 set dummy ranlib; ac_word=$2
3459 echo "$as_me:3459: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if test -n "$ac_ct_RANLIB"; then
3465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3467 ac_save_IFS=$IFS; IFS=$ac_path_separator
3469 for ac_dir in $ac_dummy; do
3471 test -z "$ac_dir" && ac_dir=.
3472 $as_executable_p "$ac_dir/$ac_word" || continue
3473 ac_cv_prog_ac_ct_RANLIB="ranlib"
3474 echo "$as_me:3474: found $ac_dir/$ac_word" >&5
3478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3482 if test -n "$ac_ct_RANLIB"; then
3483 echo "$as_me:3483: result: $ac_ct_RANLIB" >&5
3484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3486 echo "$as_me:3486: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3490 RANLIB=$ac_ct_RANLIB
3492 RANLIB="$ac_cv_prog_RANLIB"
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}ld; ac_word=$2
3498 echo "$as_me:3498: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_LD+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -n "$LD"; then
3504 ac_cv_prog_LD="$LD" # Let the user override the test.
3506 ac_save_IFS=$IFS; IFS=$ac_path_separator
3508 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 $as_executable_p "$ac_dir/$ac_word" || continue
3512 ac_cv_prog_LD="${ac_tool_prefix}ld"
3513 echo "$as_me:3513: found $ac_dir/$ac_word" >&5
3520 if test -n "$LD"; then
3521 echo "$as_me:3521: result: $LD" >&5
3522 echo "${ECHO_T}$LD" >&6
3524 echo "$as_me:3524: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3529 if test -z "$ac_cv_prog_LD"; then
3531 # Extract the first word of "ld", so it can be a program name with args.
3532 set dummy ld; ac_word=$2
3533 echo "$as_me:3533: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test -n "$ac_ct_LD"; then
3539 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3541 ac_save_IFS=$IFS; IFS=$ac_path_separator
3543 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 $as_executable_p "$ac_dir/$ac_word" || continue
3547 ac_cv_prog_ac_ct_LD="ld"
3548 echo "$as_me:3548: found $ac_dir/$ac_word" >&5
3552 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3555 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3556 if test -n "$ac_ct_LD"; then
3557 echo "$as_me:3557: result: $ac_ct_LD" >&5
3558 echo "${ECHO_T}$ac_ct_LD" >&6
3560 echo "$as_me:3560: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3571 set dummy ${ac_tool_prefix}ar; ac_word=$2
3572 echo "$as_me:3572: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_AR+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test -n "$AR"; then
3578 ac_cv_prog_AR="$AR" # Let the user override the test.
3580 ac_save_IFS=$IFS; IFS=$ac_path_separator
3582 for ac_dir in $ac_dummy; do
3584 test -z "$ac_dir" && ac_dir=.
3585 $as_executable_p "$ac_dir/$ac_word" || continue
3586 ac_cv_prog_AR="${ac_tool_prefix}ar"
3587 echo "$as_me:3587: found $ac_dir/$ac_word" >&5
3594 if test -n "$AR"; then
3595 echo "$as_me:3595: result: $AR" >&5
3596 echo "${ECHO_T}$AR" >&6
3598 echo "$as_me:3598: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3603 if test -z "$ac_cv_prog_AR"; then
3605 # Extract the first word of "ar", so it can be a program name with args.
3606 set dummy ar; ac_word=$2
3607 echo "$as_me:3607: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$ac_ct_AR"; then
3613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3615 ac_save_IFS=$IFS; IFS=$ac_path_separator
3617 for ac_dir in $ac_dummy; do
3619 test -z "$ac_dir" && ac_dir=.
3620 $as_executable_p "$ac_dir/$ac_word" || continue
3621 ac_cv_prog_ac_ct_AR="ar"
3622 echo "$as_me:3622: found $ac_dir/$ac_word" >&5
3626 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3630 if test -n "$ac_ct_AR"; then
3631 echo "$as_me:3631: result: $ac_ct_AR" >&5
3632 echo "${ECHO_T}$ac_ct_AR" >&6
3634 echo "$as_me:3634: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}ar; ac_word=$2
3646 echo "$as_me:3646: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_AR+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 if test -n "$AR"; then
3652 ac_cv_prog_AR="$AR" # Let the user override the test.
3654 ac_save_IFS=$IFS; IFS=$ac_path_separator
3656 for ac_dir in $ac_dummy; do
3658 test -z "$ac_dir" && ac_dir=.
3659 $as_executable_p "$ac_dir/$ac_word" || continue
3660 ac_cv_prog_AR="${ac_tool_prefix}ar"
3661 echo "$as_me:3661: found $ac_dir/$ac_word" >&5
3668 if test -n "$AR"; then
3669 echo "$as_me:3669: result: $AR" >&5
3670 echo "${ECHO_T}$AR" >&6
3672 echo "$as_me:3672: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3677 if test -z "$ac_cv_prog_AR"; then
3679 # Extract the first word of "ar", so it can be a program name with args.
3680 set dummy ar; ac_word=$2
3681 echo "$as_me:3681: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if test -n "$ac_ct_AR"; then
3687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3689 ac_save_IFS=$IFS; IFS=$ac_path_separator
3691 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 $as_executable_p "$ac_dir/$ac_word" || continue
3695 ac_cv_prog_ac_ct_AR="ar"
3696 echo "$as_me:3696: found $ac_dir/$ac_word" >&5
3700 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3704 if test -n "$ac_ct_AR"; then
3705 echo "$as_me:3705: result: $ac_ct_AR" >&5
3706 echo "${ECHO_T}$ac_ct_AR" >&6
3708 echo "$as_me:3708: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3717 echo "$as_me:3717: checking for options to update archives" >&5
3718 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3719 if test "${cf_cv_ar_flags+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 case $cf_cv_system_name in
3726 cat >mk_static_lib.sh <<-EOF
3731 exec \$MSVC_BIN -out:"\$out" \$@
3733 chmod +x mk_static_lib.sh
3734 AR=`pwd`/mk_static_lib.sh
3737 cf_cv_ar_flags=unknown
3738 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3741 # check if $ARFLAGS already contains this choice
3742 if test "x$ARFLAGS" != "x" ; then
3743 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3744 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3750 rm -f conftest.$ac_cv_objext
3753 cat >conftest.$ac_ext <<EOF
3754 #line 3754 "configure"
3755 int testdata[3] = { 123, 456, 789 };
3757 if { (eval echo "$as_me:3757: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>&5
3760 echo "$as_me:3760: \$? = $ac_status" >&5
3761 (exit $ac_status); } ; then
3762 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3763 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3764 if test -f conftest.a ; then
3765 cf_cv_ar_flags=$cf_ar_flags
3769 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3771 echo "${as_me:-configure}:3771: testing cannot compile test-program ..." 1>&5
3776 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3781 echo "$as_me:3781: result: $cf_cv_ar_flags" >&5
3782 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3784 if test -n "$ARFLAGS" ; then
3785 if test -n "$cf_cv_ar_flags" ; then
3786 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3789 ARFLAGS=$cf_cv_ar_flags
3792 echo "$as_me:3792: checking for PATH separator" >&5
3793 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3794 case $cf_cv_system_name in
3795 (os2*) PATH_SEPARATOR=';' ;;
3796 (*) ${PATH_SEPARATOR:=':'} ;;
3799 echo "$as_me:3799: result: $PATH_SEPARATOR" >&5
3800 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3802 echo "$as_me:3802: checking if you have specified an install-prefix" >&5
3803 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3805 # Check whether --with-install-prefix or --without-install-prefix was given.
3806 if test "${with_install_prefix+set}" = set; then
3807 withval="$with_install_prefix"
3811 (*) DESTDIR="$withval"
3815 echo "$as_me:3815: result: $DESTDIR" >&5
3816 echo "${ECHO_T}$DESTDIR" >&6
3818 ###############################################################################
3820 # If we're cross-compiling, allow the user to override the tools and their
3821 # options. The configure script is oriented toward identifying the host
3822 # compiler, etc., but we need a build compiler to generate parts of the source.
3824 if test "$cross_compiling" = yes ; then
3826 # defaults that we might want to override
3827 : ${BUILD_CFLAGS:=''}
3828 : ${BUILD_CPPFLAGS:=''}
3829 : ${BUILD_LDFLAGS:=''}
3831 : ${BUILD_EXEEXT:='$x'}
3832 : ${BUILD_OBJEXT:='o'}
3834 # Check whether --with-build-cc or --without-build-cc was given.
3835 if test "${with_build_cc+set}" = set; then
3836 withval="$with_build_cc"
3839 for ac_prog in gcc clang c99 c89 cc cl
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 echo "$as_me:3843: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$BUILD_CC"; then
3849 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3851 ac_save_IFS=$IFS; IFS=$ac_path_separator
3853 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 $as_executable_p "$ac_dir/$ac_word" || continue
3857 ac_cv_prog_BUILD_CC="$ac_prog"
3858 echo "$as_me:3858: found $ac_dir/$ac_word" >&5
3864 BUILD_CC=$ac_cv_prog_BUILD_CC
3865 if test -n "$BUILD_CC"; then
3866 echo "$as_me:3866: result: $BUILD_CC" >&5
3867 echo "${ECHO_T}$BUILD_CC" >&6
3869 echo "$as_me:3869: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 test -n "$BUILD_CC" && break
3875 test -n "$BUILD_CC" || BUILD_CC="none"
3878 echo "$as_me:3878: checking for native build C compiler" >&5
3879 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3880 echo "$as_me:3880: result: $BUILD_CC" >&5
3881 echo "${ECHO_T}$BUILD_CC" >&6
3883 echo "$as_me:3883: checking for native build C preprocessor" >&5
3884 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3886 # Check whether --with-build-cpp or --without-build-cpp was given.
3887 if test "${with_build_cpp+set}" = set; then
3888 withval="$with_build_cpp"
3889 BUILD_CPP="$withval"
3891 BUILD_CPP='${BUILD_CC} -E'
3893 echo "$as_me:3893: result: $BUILD_CPP" >&5
3894 echo "${ECHO_T}$BUILD_CPP" >&6
3896 echo "$as_me:3896: checking for native build C flags" >&5
3897 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3899 # Check whether --with-build-cflags or --without-build-cflags was given.
3900 if test "${with_build_cflags+set}" = set; then
3901 withval="$with_build_cflags"
3902 BUILD_CFLAGS="$withval"
3904 echo "$as_me:3904: result: $BUILD_CFLAGS" >&5
3905 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3907 echo "$as_me:3907: checking for native build C preprocessor-flags" >&5
3908 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3910 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3911 if test "${with_build_cppflags+set}" = set; then
3912 withval="$with_build_cppflags"
3913 BUILD_CPPFLAGS="$withval"
3915 echo "$as_me:3915: result: $BUILD_CPPFLAGS" >&5
3916 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3918 echo "$as_me:3918: checking for native build linker-flags" >&5
3919 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3921 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3922 if test "${with_build_ldflags+set}" = set; then
3923 withval="$with_build_ldflags"
3924 BUILD_LDFLAGS="$withval"
3926 echo "$as_me:3926: result: $BUILD_LDFLAGS" >&5
3927 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3929 echo "$as_me:3929: checking for native build linker-libraries" >&5
3930 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3932 # Check whether --with-build-libs or --without-build-libs was given.
3933 if test "${with_build_libs+set}" = set; then
3934 withval="$with_build_libs"
3935 BUILD_LIBS="$withval"
3937 echo "$as_me:3937: result: $BUILD_LIBS" >&5
3938 echo "${ECHO_T}$BUILD_LIBS" >&6
3940 # this assumes we're on Unix.
3944 : ${BUILD_CC:='${CC}'}
3946 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3947 { { echo "$as_me:3947: error: Cross-build requires two compilers.
3948 Use --with-build-cc to specify the native compiler." >&5
3949 echo "$as_me: error: Cross-build requires two compilers.
3950 Use --with-build-cc to specify the native compiler." >&2;}
3951 { (exit 1); exit 1; }; }
3955 : ${BUILD_CC:='${CC}'}
3956 : ${BUILD_CPP:='${CPP}'}
3957 : ${BUILD_CFLAGS:='${CFLAGS}'}
3958 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3959 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3960 : ${BUILD_LIBS:='${LIBS}'}
3961 : ${BUILD_EXEEXT:='$x'}
3962 : ${BUILD_OBJEXT:='o'}
3965 ###############################################################################
3967 ### Options to allow the user to specify the set of libraries which are used.
3968 ### Use "--without-normal --with-shared" to allow the default model to be
3969 ### shared, for example.
3972 echo "$as_me:3972: checking if you want to build shared C-objects" >&5
3973 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3975 # Check whether --with-shared or --without-shared was given.
3976 if test "${with_shared+set}" = set; then
3977 withval="$with_shared"
3978 with_shared=$withval
3982 echo "$as_me:3982: result: $with_shared" >&5
3983 echo "${ECHO_T}$with_shared" >&6
3984 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3986 echo "$as_me:3986: checking for specified models" >&5
3987 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3988 test -z "$cf_list_models" && cf_list_models=normal
3989 echo "$as_me:3989: result: $cf_list_models" >&5
3990 echo "${ECHO_T}$cf_list_models" >&6
3992 ### Use the first model as the default, and save its suffix for use in building
3993 ### up test-applications.
3994 echo "$as_me:3994: checking for default model" >&5
3995 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3996 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3997 echo "$as_me:3997: result: $DFT_LWR_MODEL" >&5
3998 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4000 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4002 echo "$as_me:4002: checking for specific curses-directory" >&5
4003 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4005 # Check whether --with-curses-dir or --without-curses-dir was given.
4006 if test "${with_curses_dir+set}" = set; then
4007 withval="$with_curses_dir"
4008 cf_cv_curses_dir=$withval
4012 echo "$as_me:4012: result: $cf_cv_curses_dir" >&5
4013 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4015 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4018 if test "x$prefix" != xNONE; then
4019 cf_path_syntax="$prefix"
4021 cf_path_syntax="$ac_default_prefix"
4029 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4031 (.\${*prefix}*|.\${*dir}*)
4032 eval withval="$withval"
4035 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4040 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4043 { { echo "$as_me:4043: error: expected a pathname, not \"$withval\"" >&5
4044 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4045 { (exit 1); exit 1; }; }
4049 if test -d "$cf_cv_curses_dir"
4052 if test -n "$cf_cv_curses_dir/include" ; then
4053 for cf_add_incdir in $cf_cv_curses_dir/include
4055 while test $cf_add_incdir != /usr/include
4057 if test -d $cf_add_incdir
4060 if test -n "$CFLAGS$CPPFLAGS" ; then
4061 # a loop is needed to ensure we can add subdirs of existing dirs
4062 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4063 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4064 cf_have_incdir=yes; break
4069 if test "$cf_have_incdir" = no ; then
4070 if test "$cf_add_incdir" = /usr/local/include ; then
4071 if test "$GCC" = yes
4073 cf_save_CPPFLAGS=$CPPFLAGS
4075 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4076 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line 4079 "configure"
4080 #include "confdefs.h"
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:4091: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>&5
4094 echo "$as_me:4094: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:4097: \"$ac_try\"") >&5
4100 echo "$as_me:4100: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 CPPFLAGS=$cf_save_CPPFLAGS
4114 if test "$cf_have_incdir" = no ; then
4115 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4117 echo "${as_me:-configure}:4117: testing adding $cf_add_incdir to include-path ..." 1>&5
4119 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4121 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4122 test "$cf_top_incdir" = "$cf_add_incdir" && break
4123 cf_add_incdir="$cf_top_incdir"
4134 if test -n "$cf_cv_curses_dir/lib" ; then
4135 for cf_add_libdir in $cf_cv_curses_dir/lib
4137 if test $cf_add_libdir = /usr/lib ; then
4139 elif test -d $cf_add_libdir
4142 if test -n "$LDFLAGS$LIBS" ; then
4143 # a loop is needed to ensure we can add subdirs of existing dirs
4144 for cf_test_libdir in $LDFLAGS $LIBS ; do
4145 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4146 cf_have_libdir=yes; break
4150 if test "$cf_have_libdir" = no ; then
4151 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4153 echo "${as_me:-configure}:4153: testing adding $cf_add_libdir to library-path ..." 1>&5
4155 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4164 cf_ncuconfig_root=ncurses
4165 cf_have_ncuconfig=no
4167 if test "x${PKG_CONFIG:=none}" != xnone; then
4168 echo "$as_me:4168: checking pkg-config for $cf_ncuconfig_root" >&5
4169 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
4170 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
4171 echo "$as_me:4171: result: yes" >&5
4172 echo "${ECHO_T}yes" >&6
4174 echo "$as_me:4174: checking if the $cf_ncuconfig_root package files work" >&5
4175 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
4176 cf_have_ncuconfig=unknown
4178 cf_save_CFLAGS="$CFLAGS"
4179 cf_save_CPPFLAGS="$CPPFLAGS"
4180 cf_save_LIBS="$LIBS"
4182 cf_pkg_cflags=`$PKG_CONFIG --cflags $cf_ncuconfig_root`
4183 cf_pkg_libs=`$PKG_CONFIG --libs $cf_ncuconfig_root`
4185 # while -W for passing linker flags is prevalent, it is not "standard".
4186 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
4187 # incompatible _and_ non-standard -W option which gives an error. Work
4188 # around that pitfall.
4189 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
4195 cf_new_extra_cppflags=
4197 for cf_add_cflags in $cf_pkg_cflags
4199 case $cf_fix_cppflags in
4201 case $cf_add_cflags in
4202 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4203 case $cf_add_cflags in
4205 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4207 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4208 && test -z "${cf_tst_cflags}" \
4209 && cf_fix_cppflags=yes
4211 if test $cf_fix_cppflags = yes ; then
4213 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4214 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4217 elif test "${cf_tst_cflags}" = "\"'" ; then
4219 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4220 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4230 case $cf_add_cflags in
4232 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4234 CPPFLAGS=`echo "$CPPFLAGS" | \
4235 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4236 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4241 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4242 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4249 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4250 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4257 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4258 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4260 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4262 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4263 && test -z "${cf_tst_cflags}" \
4264 && cf_fix_cppflags=no
4269 if test -n "$cf_new_cflags" ; then
4271 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4272 CFLAGS="${CFLAGS}$cf_new_cflags"
4276 if test -n "$cf_new_cppflags" ; then
4278 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4279 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4283 if test -n "$cf_new_extra_cppflags" ; then
4285 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4286 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4293 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
4295 for cf_add_1lib in $cf_add_0lib; do
4296 for cf_add_2lib in $cf_add_libs; do
4297 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
4302 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
4306 cat >conftest.$ac_ext <<_ACEOF
4307 #line 4307 "configure"
4308 #include "confdefs.h"
4309 #include <${cf_cv_ncurses_header:-curses.h}>
4313 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:4319: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>&5
4322 echo "$as_me:4322: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -s conftest$ac_exeext'
4325 { (eval echo "$as_me:4325: \"$ac_try\"") >&5
4328 echo "$as_me:4328: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 if test "$cross_compiling" = yes; then
4331 cf_test_ncuconfig=maybe
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #line 4334 "configure"
4335 #include "confdefs.h"
4336 #include <${cf_cv_ncurses_header:-curses.h}>
4338 { char *xx = curses_version(); return (xx == 0); }
4340 rm -f conftest$ac_exeext
4341 if { (eval echo "$as_me:4341: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>&5
4344 echo "$as_me:4344: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (eval echo "$as_me:4346: \"$ac_try\"") >&5
4349 echo "$as_me:4349: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 cf_test_ncuconfig=yes
4353 echo "$as_me: program exited with status $ac_status" >&5
4354 echo "$as_me: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4356 cf_test_ncuconfig=no
4358 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4361 echo "$as_me: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4363 cf_test_ncuconfig=no
4365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4367 CFLAGS="$cf_save_CFLAGS"
4368 CPPFLAGS="$cf_save_CPPFLAGS"
4369 LIBS="$cf_save_LIBS"
4371 if test "x$cf_test_ncuconfig" != xyes; then
4372 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
4373 cf_pkg_cflags="$cf_temp"
4374 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
4375 cf_pkg_libs="$cf_temp"
4383 cf_new_extra_cppflags=
4385 for cf_add_cflags in $cf_pkg_cflags
4387 case $cf_fix_cppflags in
4389 case $cf_add_cflags in
4390 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4391 case $cf_add_cflags in
4393 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4395 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4396 && test -z "${cf_tst_cflags}" \
4397 && cf_fix_cppflags=yes
4399 if test $cf_fix_cppflags = yes ; then
4401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4405 elif test "${cf_tst_cflags}" = "\"'" ; then
4407 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4408 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4418 case $cf_add_cflags in
4420 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4422 CPPFLAGS=`echo "$CPPFLAGS" | \
4423 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4424 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4429 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4430 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4437 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4438 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4445 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4446 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4450 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4451 && test -z "${cf_tst_cflags}" \
4452 && cf_fix_cppflags=no
4457 if test -n "$cf_new_cflags" ; then
4459 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4460 CFLAGS="${CFLAGS}$cf_new_cflags"
4464 if test -n "$cf_new_cppflags" ; then
4466 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4467 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4471 if test -n "$cf_new_extra_cppflags" ; then
4473 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4474 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4481 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
4483 for cf_add_1lib in $cf_add_0lib; do
4484 for cf_add_2lib in $cf_add_libs; do
4485 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
4490 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
4494 cat >conftest.$ac_ext <<_ACEOF
4495 #line 4495 "configure"
4496 #include "confdefs.h"
4497 #include <${cf_cv_ncurses_header:-curses.h}>
4501 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:4507: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:4510: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:4513: \"$ac_try\"") >&5
4516 echo "$as_me:4516: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 if test "$cross_compiling" = yes; then
4519 cf_have_ncuconfig=maybe
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line 4522 "configure"
4523 #include "confdefs.h"
4524 #include <${cf_cv_ncurses_header:-curses.h}>
4526 { char *xx = curses_version(); return (xx == 0); }
4528 rm -f conftest$ac_exeext
4529 if { (eval echo "$as_me:4529: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4532 echo "$as_me:4532: \$? = $ac_status" >&5
4533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4534 { (eval echo "$as_me:4534: \"$ac_try\"") >&5
4537 echo "$as_me:4537: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 cf_have_ncuconfig=yes
4541 echo "$as_me: program exited with status $ac_status" >&5
4542 echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 cf_have_ncuconfig=no
4546 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4551 cf_have_ncuconfig=no
4553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4554 echo "$as_me:4554: result: $cf_have_ncuconfig" >&5
4555 echo "${ECHO_T}$cf_have_ncuconfig" >&6
4556 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
4557 if test "$cf_have_ncuconfig" != "yes"
4559 CPPFLAGS="$cf_save_CPPFLAGS"
4560 LIBS="$cf_save_LIBS"
4561 NCURSES_CONFIG_PKG=none
4564 cat >>confdefs.h <<\EOF
4568 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
4570 echo "$as_me:4570: checking for terminfo header" >&5
4571 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4572 if test "${cf_cv_term_header+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 case ${cf_cv_ncurses_header} in
4577 (*/ncurses.h|*/ncursesw.h)
4578 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4581 cf_term_header=term.h
4585 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4587 cat >conftest.$ac_ext <<_ACEOF
4588 #line 4588 "configure"
4589 #include "confdefs.h"
4591 #include <${cf_cv_ncurses_header:-curses.h}>
4597 int x = auto_left_margin; (void)x
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>&5
4606 echo "$as_me:4606: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:4609: \"$ac_try\"") >&5
4612 echo "$as_me:4612: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4615 cf_cv_term_header="$cf_test"
4617 echo "$as_me: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 cf_cv_term_header=unknown
4623 rm -f conftest.$ac_objext conftest.$ac_ext
4624 test "$cf_cv_term_header" != unknown && break
4628 echo "$as_me:4628: result: $cf_cv_term_header" >&5
4629 echo "${ECHO_T}$cf_cv_term_header" >&6
4631 # Set definitions to allow ifdef'ing to accommodate subdirectories
4633 case $cf_cv_term_header in
4636 cat >>confdefs.h <<\EOF
4637 #define HAVE_TERM_H 1
4643 case $cf_cv_term_header in
4646 cat >>confdefs.h <<\EOF
4647 #define HAVE_NCURSES_TERM_H 1
4653 cat >>confdefs.h <<\EOF
4654 #define HAVE_NCURSESW_TERM_H 1
4663 echo "$as_me:4663: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4665 NCURSES_CONFIG_PKG=none
4668 NCURSES_CONFIG_PKG=none
4671 if test "x$cf_have_ncuconfig" = "xno"; then