2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101002.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --disable-echo display "compiling" commands
685 --enable-warnings test: turn on gcc compiler warnings
686 --with-dmalloc test: use Gray Watson's dmalloc library
687 --with-dbmalloc test: use Conor Cahill's dbmalloc library
688 --with-valgrind test: use valgrind
689 --disable-leaks test: free permanent memory, analyze leaks
690 --with-curses-dir=DIR directory in which (n)curses is installed
691 --with-5lib use SunOS sysv-libraries
692 --with-ncursesw use wide ncurses-libraries (installed)
693 --with-ncurses use ncurses-libraries (installed)
694 --with-pdcurses compile/link with pdcurses X11 library
695 --with-Xaw3d link with Xaw 3d library
696 --with-neXtaw link with neXT Athena library
697 --with-XawPlus link with Athena-Plus library
698 --with-pkg-config{=path} enable/disable use of pkg-config
699 --with-x use the X Window System
700 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52.20101002. Invocation command line was
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 # Get rid of the leading space.
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
836 # Save into config.log some information that might help in debugging.
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
842 # The following way of writing the cache mishandles newlines in values,
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
918 # Check that the precious variables saved in the cache have kept the same
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
974 ac_main_return=return
976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
977 *c*,-n*) ECHO_N= ECHO_C='
979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 echo "#! $SHELL" >conftest.sh
983 echo "exit 0" >>conftest.sh
985 if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5
986 (PATH=".;."; conftest.sh) 2>&5
988 echo "$as_me:988: \$? = $ac_status" >&5
989 (exit $ac_status); }; then
990 ac_path_separator=';'
994 PATH_SEPARATOR="$ac_path_separator"
997 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
999 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1001 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1005 if test -f $ac_dir/install-sh; then
1007 ac_install_sh="$ac_aux_dir/install-sh -c"
1009 elif test -f $ac_dir/install.sh; then
1011 ac_install_sh="$ac_aux_dir/install.sh -c"
1013 elif test -f $ac_dir/shtool; then
1015 ac_install_sh="$ac_aux_dir/shtool install -c"
1019 if test -z "$ac_aux_dir"; then
1020 { { echo "$as_me:1020: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1022 { (exit 1); exit 1; }; }
1024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1028 # Make sure we can run config.sub.
1029 $ac_config_sub sun4 >/dev/null 2>&1 ||
1030 { { echo "$as_me:1030: error: cannot run $ac_config_sub" >&5
1031 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1032 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: checking build system type" >&5
1035 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1036 if test "${ac_cv_build+set}" = set; then
1037 echo $ECHO_N "(cached) $ECHO_C" >&6
1039 ac_cv_build_alias=$build_alias
1040 test -z "$ac_cv_build_alias" &&
1041 ac_cv_build_alias=`$ac_config_guess`
1042 test -z "$ac_cv_build_alias" &&
1043 { { echo "$as_me:1043: error: cannot guess build type; you must specify one" >&5
1044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1045 { (exit 1); exit 1; }; }
1046 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1047 { { echo "$as_me:1047: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1048 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1049 { (exit 1); exit 1; }; }
1052 echo "$as_me:1052: result: $ac_cv_build" >&5
1053 echo "${ECHO_T}$ac_cv_build" >&6
1055 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1059 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1060 echo "$as_me:1060: checking host system type" >&5
1061 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1062 if test "${ac_cv_host+set}" = set; then
1063 echo $ECHO_N "(cached) $ECHO_C" >&6
1065 ac_cv_host_alias=$host_alias
1066 test -z "$ac_cv_host_alias" &&
1067 ac_cv_host_alias=$ac_cv_build_alias
1068 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1069 { { echo "$as_me:1069: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1070 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1071 { (exit 1); exit 1; }; }
1074 echo "$as_me:1074: result: $ac_cv_host" >&5
1075 echo "${ECHO_T}$ac_cv_host" >&6
1077 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 system_name="$host_os"
1083 system_name="`(uname -s -r) 2>/dev/null`"
1084 if test -z "$system_name" ; then
1085 system_name="`(hostname) 2>/dev/null`"
1088 test -n "$system_name" && cat >>confdefs.h <<EOF
1089 #define SYSTEM_NAME "$system_name"
1092 if test "${cf_cv_system_name+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1095 cf_cv_system_name="$system_name"
1098 test -z "$system_name" && system_name="$cf_cv_system_name"
1099 test -n "$cf_cv_system_name" && echo "$as_me:1099: result: Configuring for $cf_cv_system_name" >&5
1100 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1102 if test ".$system_name" != ".$cf_cv_system_name" ; then
1103 echo "$as_me:1103: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1104 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1105 { { echo "$as_me:1105: error: \"Please remove config.cache and try again.\"" >&5
1106 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1107 { (exit 1); exit 1; }; }
1110 test "$program_prefix" != NONE &&
1111 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1112 # Use a double $ so make ignores it.
1113 test "$program_suffix" != NONE &&
1114 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1115 # Double any \ or $. echo might interpret backslashes.
1116 # By default was `s,x,x', remove it if useless.
1117 cat <<\_ACEOF >conftest.sed
1118 s/[\\$]/&&/g;s/;s,x,x,$//
1120 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1123 echo "$as_me:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1129 cat >conftest.make <<\EOF
1131 @echo 'ac_maketemp="${MAKE}"'
1133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1135 if test -n "$ac_maketemp"; then
1136 eval ac_cv_prog_make_${ac_make}_set=yes
1138 eval ac_cv_prog_make_${ac_make}_set=no
1142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1143 echo "$as_me:1143: result: yes" >&5
1144 echo "${ECHO_T}yes" >&6
1147 echo "$as_me:1147: result: no" >&5
1148 echo "${ECHO_T}no" >&6
1149 SET_MAKE="MAKE=${MAKE-make}"
1153 ac_cpp='$CPP $CPPFLAGS'
1154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1157 ac_main_return=return
1158 if test -n "$ac_tool_prefix"; then
1159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1161 echo "$as_me:1161: checking for $ac_word" >&5
1162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1163 if test "${ac_cv_prog_CC+set}" = set; then
1164 echo $ECHO_N "(cached) $ECHO_C" >&6
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC="$CC" # Let the user override the test.
1169 ac_save_IFS=$IFS; IFS=$ac_path_separator
1171 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 $as_executable_p "$ac_dir/$ac_word" || continue
1175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1176 echo "$as_me:1176: found $ac_dir/$ac_word" >&5
1183 if test -n "$CC"; then
1184 echo "$as_me:1184: result: $CC" >&5
1185 echo "${ECHO_T}$CC" >&6
1187 echo "$as_me:1187: result: no" >&5
1188 echo "${ECHO_T}no" >&6
1192 if test -z "$ac_cv_prog_CC"; then
1194 # Extract the first word of "gcc", so it can be a program name with args.
1195 set dummy gcc; ac_word=$2
1196 echo "$as_me:1196: checking for $ac_word" >&5
1197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1199 echo $ECHO_N "(cached) $ECHO_C" >&6
1201 if test -n "$ac_ct_CC"; then
1202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1204 ac_save_IFS=$IFS; IFS=$ac_path_separator
1206 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 $as_executable_p "$ac_dir/$ac_word" || continue
1210 ac_cv_prog_ac_ct_CC="gcc"
1211 echo "$as_me:1211: found $ac_dir/$ac_word" >&5
1217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1218 if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220 echo "${ECHO_T}$ac_ct_CC" >&6
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1231 if test -z "$CC"; then
1232 if test -n "$ac_tool_prefix"; then
1233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1234 set dummy ${ac_tool_prefix}cc; ac_word=$2
1235 echo "$as_me:1235: checking for $ac_word" >&5
1236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237 if test "${ac_cv_prog_CC+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC="$CC" # Let the user override the test.
1243 ac_save_IFS=$IFS; IFS=$ac_path_separator
1245 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 $as_executable_p "$ac_dir/$ac_word" || continue
1249 ac_cv_prog_CC="${ac_tool_prefix}cc"
1250 echo "$as_me:1250: found $ac_dir/$ac_word" >&5
1257 if test -n "$CC"; then
1258 echo "$as_me:1258: result: $CC" >&5
1259 echo "${ECHO_T}$CC" >&6
1261 echo "$as_me:1261: result: no" >&5
1262 echo "${ECHO_T}no" >&6
1266 if test -z "$ac_cv_prog_CC"; then
1268 # Extract the first word of "cc", so it can be a program name with args.
1269 set dummy cc; ac_word=$2
1270 echo "$as_me:1270: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 if test -n "$ac_ct_CC"; then
1276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1278 ac_save_IFS=$IFS; IFS=$ac_path_separator
1280 for ac_dir in $ac_dummy; do
1282 test -z "$ac_dir" && ac_dir=.
1283 $as_executable_p "$ac_dir/$ac_word" || continue
1284 ac_cv_prog_ac_ct_CC="cc"
1285 echo "$as_me:1285: found $ac_dir/$ac_word" >&5
1291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1292 if test -n "$ac_ct_CC"; then
1293 echo "$as_me:1293: result: $ac_ct_CC" >&5
1294 echo "${ECHO_T}$ac_ct_CC" >&6
1296 echo "$as_me:1296: result: no" >&5
1297 echo "${ECHO_T}no" >&6
1306 if test -z "$CC"; then
1307 # Extract the first word of "cc", so it can be a program name with args.
1308 set dummy cc; ac_word=$2
1309 echo "$as_me:1309: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$CC"; then
1315 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 ac_save_IFS=$IFS; IFS=$ac_path_separator
1320 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 $as_executable_p "$ac_dir/$ac_word" || continue
1324 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1325 ac_prog_rejected=yes
1329 echo "$as_me:1329: found $ac_dir/$ac_word" >&5
1333 if test $ac_prog_rejected = yes; then
1334 # We found a bogon in the path, so make sure we never use it.
1335 set dummy $ac_cv_prog_CC
1337 if test $# != 0; then
1338 # We chose a different compiler from the bogus one.
1339 # However, it has the same basename, so the bogon will be chosen
1340 # first if we set CC to just the basename; use the full file name.
1342 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1350 if test -n "$CC"; then
1351 echo "$as_me:1351: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:1354: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$CC"; then
1360 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1373 ac_save_IFS=$IFS; IFS=$ac_path_separator
1375 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 $as_executable_p "$ac_dir/$ac_word" || continue
1379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1380 echo "$as_me:1380: found $ac_dir/$ac_word" >&5
1387 if test -n "$CC"; then
1388 echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 test -n "$CC" && break
1398 if test -z "$CC"; then
1402 # Extract the first word of "$ac_prog", so it can be a program name with args.
1403 set dummy $ac_prog; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$ac_ct_CC"; then
1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1414 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_ac_ct_CC="$ac_prog"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:1427: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1434 test -n "$ac_ct_CC" && break
1442 test -z "$CC" && { { echo "$as_me:1442: error: no acceptable cc found in \$PATH" >&5
1443 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1444 { (exit 1); exit 1; }; }
1446 # Provide some information about the compiler.
1447 echo "$as_me:1447:" \
1448 "checking for C compiler version" >&5
1449 ac_compiler=`set X $ac_compile; echo $2`
1450 { (eval echo "$as_me:1450: \"$ac_compiler --version </dev/null >&5\"") >&5
1451 (eval $ac_compiler --version </dev/null >&5) 2>&5
1453 echo "$as_me:1453: \$? = $ac_status" >&5
1454 (exit $ac_status); }
1455 { (eval echo "$as_me:1455: \"$ac_compiler -v </dev/null >&5\"") >&5
1456 (eval $ac_compiler -v </dev/null >&5) 2>&5
1458 echo "$as_me:1458: \$? = $ac_status" >&5
1459 (exit $ac_status); }
1460 { (eval echo "$as_me:1460: \"$ac_compiler -V </dev/null >&5\"") >&5
1461 (eval $ac_compiler -V </dev/null >&5) 2>&5
1463 echo "$as_me:1463: \$? = $ac_status" >&5
1464 (exit $ac_status); }
1466 cat >conftest.$ac_ext <<_ACEOF
1467 #line 1467 "configure"
1468 #include "confdefs.h"
1478 ac_clean_files_save=$ac_clean_files
1479 ac_clean_files="$ac_clean_files a.out a.exe"
1480 # Try to create an executable without -o first, disregard a.out.
1481 # It will help us diagnose broken compilers, and finding out an intuition
1483 echo "$as_me:1483: checking for C compiler default output" >&5
1484 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1485 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1486 if { (eval echo "$as_me:1486: \"$ac_link_default\"") >&5
1487 (eval $ac_link_default) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }; then
1491 # Find the output, starting from the most likely. This scheme is
1492 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1494 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1495 ls a.out conftest 2>/dev/null;
1496 ls a.* conftest.* 2>/dev/null`; do
1498 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1499 a.out ) # We found the default executable, but exeext='' is most
1502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1503 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1510 echo "$as_me: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 { { echo "$as_me:1512: error: C compiler cannot create executables" >&5
1513 echo "$as_me: error: C compiler cannot create executables" >&2;}
1514 { (exit 77); exit 77; }; }
1517 ac_exeext=$ac_cv_exeext
1518 echo "$as_me:1518: result: $ac_file" >&5
1519 echo "${ECHO_T}$ac_file" >&6
1521 # Check the compiler produces executables we can run. If not, either
1522 # the compiler is broken, or we cross compile.
1523 echo "$as_me:1523: checking whether the C compiler works" >&5
1524 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1526 # If not cross compiling, check that we can run a simple program.
1527 if test "$cross_compiling" != yes; then
1528 if { ac_try='./$ac_file'
1529 { (eval echo "$as_me:1529: \"$ac_try\"") >&5
1532 echo "$as_me:1532: \$? = $ac_status" >&5
1533 (exit $ac_status); }; }; then
1536 if test "$cross_compiling" = maybe; then
1539 { { echo "$as_me:1539: error: cannot run C compiled programs.
1540 If you meant to cross compile, use \`--host'." >&5
1541 echo "$as_me: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&2;}
1543 { (exit 1); exit 1; }; }
1547 echo "$as_me:1547: result: yes" >&5
1548 echo "${ECHO_T}yes" >&6
1550 rm -f a.out a.exe conftest$ac_cv_exeext
1551 ac_clean_files=$ac_clean_files_save
1552 # Check the compiler produces executables we can run. If not, either
1553 # the compiler is broken, or we cross compile.
1554 echo "$as_me:1554: checking whether we are cross compiling" >&5
1555 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1556 echo "$as_me:1556: result: $cross_compiling" >&5
1557 echo "${ECHO_T}$cross_compiling" >&6
1559 echo "$as_me:1559: checking for executable suffix" >&5
1560 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1561 if { (eval echo "$as_me:1561: \"$ac_link\"") >&5
1562 (eval $ac_link) 2>&5
1564 echo "$as_me:1564: \$? = $ac_status" >&5
1565 (exit $ac_status); }; then
1566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1568 # work properly (i.e., refer to `conftest.exe'), while it won't with
1570 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1580 { { echo "$as_me:1580: error: cannot compute EXEEXT: cannot compile and link" >&5
1581 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1582 { (exit 1); exit 1; }; }
1585 rm -f conftest$ac_cv_exeext
1586 echo "$as_me:1586: result: $ac_cv_exeext" >&5
1587 echo "${ECHO_T}$ac_cv_exeext" >&6
1589 rm -f conftest.$ac_ext
1590 EXEEXT=$ac_cv_exeext
1592 echo "$as_me:1592: checking for object suffix" >&5
1593 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1594 if test "${ac_cv_objext+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1609 rm -f conftest.o conftest.obj
1610 if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1617 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 { { echo "$as_me:1625: error: cannot compute OBJEXT: cannot compile" >&5
1626 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1627 { (exit 1); exit 1; }; }
1630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1632 echo "$as_me:1632: result: $ac_cv_objext" >&5
1633 echo "${ECHO_T}$ac_cv_objext" >&6
1634 OBJEXT=$ac_cv_objext
1636 echo "$as_me:1636: checking whether we are using the GNU C compiler" >&5
1637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1656 rm -f conftest.$ac_objext
1657 if { (eval echo "$as_me:1657: \"$ac_compile\"") >&5
1658 (eval $ac_compile) 2>&5
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:1663: \"$ac_try\"") >&5
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1670 echo "$as_me: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1674 rm -f conftest.$ac_objext conftest.$ac_ext
1675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1678 echo "$as_me:1678: result: $ac_cv_c_compiler_gnu" >&5
1679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1680 GCC=`test $ac_compiler_gnu = yes && echo yes`
1681 ac_test_CFLAGS=${CFLAGS+set}
1682 ac_save_CFLAGS=$CFLAGS
1684 echo "$as_me:1684: checking whether $CC accepts -g" >&5
1685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1686 if test "${ac_cv_prog_cc_g+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 cat >conftest.$ac_ext <<_ACEOF
1690 #line 1690 "configure"
1691 #include "confdefs.h"
1701 rm -f conftest.$ac_objext
1702 if { (eval echo "$as_me:1702: \"$ac_compile\"") >&5
1703 (eval $ac_compile) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); } &&
1707 { ac_try='test -s conftest.$ac_objext'
1708 { (eval echo "$as_me:1708: \"$ac_try\"") >&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }; }; then
1715 echo "$as_me: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1719 rm -f conftest.$ac_objext conftest.$ac_ext
1721 echo "$as_me:1721: result: $ac_cv_prog_cc_g" >&5
1722 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1723 if test "$ac_test_CFLAGS" = set; then
1724 CFLAGS=$ac_save_CFLAGS
1725 elif test $ac_cv_prog_cc_g = yes; then
1726 if test "$GCC" = yes; then
1732 if test "$GCC" = yes; then
1738 # Some people use a C++ compiler to compile C. Since we use `exit',
1739 # in C++ we need to declare it. In case someone uses the same compiler
1740 # for both compiling C and C++ we need to have the C++ compiler decide
1741 # the declaration of exit, since it's the most demanding environment.
1742 cat >conftest.$ac_ext <<_ACEOF
1747 rm -f conftest.$ac_objext
1748 if { (eval echo "$as_me:1748: \"$ac_compile\"") >&5
1749 (eval $ac_compile) 2>&5
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); } &&
1753 { ac_try='test -s conftest.$ac_objext'
1754 { (eval echo "$as_me:1754: \"$ac_try\"") >&5
1757 echo "$as_me:1757: \$? = $ac_status" >&5
1758 (exit $ac_status); }; }; then
1759 for ac_declaration in \
1761 '#include <stdlib.h>' \
1762 'extern "C" void std::exit (int) throw (); using std::exit;' \
1763 'extern "C" void std::exit (int); using std::exit;' \
1764 'extern "C" void exit (int) throw ();' \
1765 'extern "C" void exit (int);' \
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line 1769 "configure"
1770 #include "confdefs.h"
1781 rm -f conftest.$ac_objext
1782 if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1799 rm -f conftest.$ac_objext conftest.$ac_ext
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line 1801 "configure"
1802 #include "confdefs.h"
1812 rm -f conftest.$ac_objext
1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); } &&
1818 { ac_try='test -s conftest.$ac_objext'
1819 { (eval echo "$as_me:1819: \"$ac_try\"") >&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1832 if test -n "$ac_declaration"; then
1833 echo '#ifdef __cplusplus' >>confdefs.h
1834 echo $ac_declaration >>confdefs.h
1835 echo '#endif' >>confdefs.h
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 ac_main_return=return
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 ac_main_return=return
1856 echo "$as_me:1856: checking how to run the C preprocessor" >&5
1857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1858 # On Suns, sometimes $CPP names a directory.
1859 if test -n "$CPP" && test -d "$CPP"; then
1862 if test -z "$CPP"; then
1863 if test "${ac_cv_prog_CPP+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 # Double quotes because CPP needs to be expanded
1867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1870 for ac_c_preproc_warn_flag in '' yes
1872 # Use a header file that comes with gcc, so configuring glibc
1873 # with a fresh cross-compiler works.
1874 # On the NeXT, cc -E runs the code through the compiler's parser,
1875 # not just through cpp. "Syntax error" is here to catch this case.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1882 if { (eval echo "$as_me:1882: \"$ac_cpp conftest.$ac_ext\"") >&5
1883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1885 egrep -v '^ *\+' conftest.er1 >conftest.err
1887 cat conftest.err >&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } >/dev/null; then
1890 if test -s conftest.err; then
1891 ac_cpp_err=$ac_c_preproc_warn_flag
1898 if test -z "$ac_cpp_err"; then
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Broken: fails on valid input.
1906 rm -f conftest.err conftest.$ac_ext
1908 # OK, works on sane cases. Now check whether non-existent headers
1909 # can be detected and how.
1910 cat >conftest.$ac_ext <<_ACEOF
1911 #line 1911 "configure"
1912 #include "confdefs.h"
1913 #include <ac_nonexistent.h>
1915 if { (eval echo "$as_me:1915: \"$ac_cpp conftest.$ac_ext\"") >&5
1916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1918 egrep -v '^ *\+' conftest.er1 >conftest.err
1920 cat conftest.err >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); } >/dev/null; then
1923 if test -s conftest.err; then
1924 ac_cpp_err=$ac_c_preproc_warn_flag
1931 if test -z "$ac_cpp_err"; then
1932 # Broken: success on invalid input.
1935 echo "$as_me: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 # Passes both tests.
1941 rm -f conftest.err conftest.$ac_ext
1944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1945 rm -f conftest.err conftest.$ac_ext
1946 if $ac_preproc_ok; then
1958 echo "$as_me:1958: result: $CPP" >&5
1959 echo "${ECHO_T}$CPP" >&6
1961 for ac_c_preproc_warn_flag in '' yes
1963 # Use a header file that comes with gcc, so configuring glibc
1964 # with a fresh cross-compiler works.
1965 # On the NeXT, cc -E runs the code through the compiler's parser,
1966 # not just through cpp. "Syntax error" is here to catch this case.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1973 if { (eval echo "$as_me:1973: \"$ac_cpp conftest.$ac_ext\"") >&5
1974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1976 egrep -v '^ *\+' conftest.er1 >conftest.err
1978 cat conftest.err >&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } >/dev/null; then
1981 if test -s conftest.err; then
1982 ac_cpp_err=$ac_c_preproc_warn_flag
1989 if test -z "$ac_cpp_err"; then
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Broken: fails on valid input.
1997 rm -f conftest.err conftest.$ac_ext
1999 # OK, works on sane cases. Now check whether non-existent headers
2000 # can be detected and how.
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2004 #include <ac_nonexistent.h>
2006 if { (eval echo "$as_me:2006: \"$ac_cpp conftest.$ac_ext\"") >&5
2007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2009 egrep -v '^ *\+' conftest.er1 >conftest.err
2011 cat conftest.err >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); } >/dev/null; then
2014 if test -s conftest.err; then
2015 ac_cpp_err=$ac_c_preproc_warn_flag
2022 if test -z "$ac_cpp_err"; then
2023 # Broken: success on invalid input.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 # Passes both tests.
2032 rm -f conftest.err conftest.$ac_ext
2035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2036 rm -f conftest.err conftest.$ac_ext
2037 if $ac_preproc_ok; then
2040 { { echo "$as_me:2040: error: C preprocessor \"$CPP\" fails sanity check" >&5
2041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2042 { (exit 1); exit 1; }; }
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 ac_main_return=return
2052 for ac_prog in mawk gawk nawk awk
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:2056: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_AWK+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$AWK"; then
2062 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2064 ac_save_IFS=$IFS; IFS=$ac_path_separator
2066 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 $as_executable_p "$ac_dir/$ac_word" || continue
2070 ac_cv_prog_AWK="$ac_prog"
2071 echo "$as_me:2071: found $ac_dir/$ac_word" >&5
2078 if test -n "$AWK"; then
2079 echo "$as_me:2079: result: $AWK" >&5
2080 echo "${ECHO_T}$AWK" >&6
2082 echo "$as_me:2082: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$AWK" && break
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 echo "$as_me:2101: checking for a BSD compatible install" >&5
2102 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_save_IFS=$IFS; IFS=$ac_path_separator
2108 for ac_dir in $PATH; do
2110 # Account for people who put trailing slashes in PATH elements.
2112 / | ./ | .// | /cC/* \
2113 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2119 for ac_prog in ginstall scoinst install; do
2120 if $as_executable_p "$ac_dir/$ac_prog"; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2125 elif test $ac_prog = install &&
2126 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2130 ac_cv_path_install="$ac_dir/$ac_prog -c"
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2143 # As a last resort, use the slow shell script. We don't cache a
2144 # path for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the path is relative.
2147 INSTALL=$ac_install_sh
2150 echo "$as_me:2150: result: $INSTALL" >&5
2151 echo "${ECHO_T}$INSTALL" >&6
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2165 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2166 test -z "$cf_dir" && cf_dir=.
2167 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2171 for ac_prog in tdlint lint alint splint lclint
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:2175: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_LINT+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$LINT"; then
2181 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2183 ac_save_IFS=$IFS; IFS=$ac_path_separator
2185 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 $as_executable_p "$ac_dir/$ac_word" || continue
2189 ac_cv_prog_LINT="$ac_prog"
2190 echo "$as_me:2190: found $ac_dir/$ac_word" >&5
2196 LINT=$ac_cv_prog_LINT
2197 if test -n "$LINT"; then
2198 echo "$as_me:2198: result: $LINT" >&5
2199 echo "${ECHO_T}$LINT" >&6
2201 echo "$as_me:2201: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$LINT" && break
2208 echo "$as_me:2208: checking if filesystem supports mixed-case filenames" >&5
2209 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2210 if test "${cf_cv_mixedcase+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "$cross_compiling" = yes ; then
2215 case $target_alias in #(vi
2216 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2224 rm -f conftest CONFTEST
2226 if test -f CONFTEST ; then
2231 rm -f conftest CONFTEST
2235 echo "$as_me:2235: result: $cf_cv_mixedcase" >&5
2236 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2237 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2238 #define MIXEDCASE_FILENAMES 1
2241 for ac_prog in exctags ctags
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo "$as_me:2245: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CTAGS+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CTAGS"; then
2251 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2253 ac_save_IFS=$IFS; IFS=$ac_path_separator
2255 for ac_dir in $ac_dummy; do
2257 test -z "$ac_dir" && ac_dir=.
2258 $as_executable_p "$ac_dir/$ac_word" || continue
2259 ac_cv_prog_CTAGS="$ac_prog"
2260 echo "$as_me:2260: found $ac_dir/$ac_word" >&5
2266 CTAGS=$ac_cv_prog_CTAGS
2267 if test -n "$CTAGS"; then
2268 echo "$as_me:2268: result: $CTAGS" >&5
2269 echo "${ECHO_T}$CTAGS" >&6
2271 echo "$as_me:2271: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2275 test -n "$CTAGS" && break
2278 for ac_prog in exetags etags
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:2282: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ETAGS+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 if test -n "$ETAGS"; then
2288 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2292 for ac_dir in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir=.
2295 $as_executable_p "$ac_dir/$ac_word" || continue
2296 ac_cv_prog_ETAGS="$ac_prog"
2297 echo "$as_me:2297: found $ac_dir/$ac_word" >&5
2303 ETAGS=$ac_cv_prog_ETAGS
2304 if test -n "$ETAGS"; then
2305 echo "$as_me:2305: result: $ETAGS" >&5
2306 echo "${ECHO_T}$ETAGS" >&6
2308 echo "$as_me:2308: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2312 test -n "$ETAGS" && break
2315 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2316 set dummy ${CTAGS:-ctags}; ac_word=$2
2317 echo "$as_me:2317: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$MAKE_LOWER_TAGS"; then
2323 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2325 ac_save_IFS=$IFS; IFS=$ac_path_separator
2327 for ac_dir in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir=.
2330 $as_executable_p "$ac_dir/$ac_word" || continue
2331 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2336 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2339 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2340 if test -n "$MAKE_LOWER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_LOWER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 if test "$cf_cv_mixedcase" = yes ; then
2349 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2350 set dummy ${ETAGS:-etags}; ac_word=$2
2351 echo "$as_me:2351: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$MAKE_UPPER_TAGS"; then
2357 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2359 ac_save_IFS=$IFS; IFS=$ac_path_separator
2361 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 $as_executable_p "$ac_dir/$ac_word" || continue
2365 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2366 echo "$as_me:2366: found $ac_dir/$ac_word" >&5
2370 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2373 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2374 if test -n "$MAKE_UPPER_TAGS"; then
2375 echo "$as_me:2375: result: $MAKE_UPPER_TAGS" >&5
2376 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2378 echo "$as_me:2378: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2386 if test "$MAKE_UPPER_TAGS" = yes ; then
2392 if test "$MAKE_LOWER_TAGS" = yes ; then
2398 echo "$as_me:2398: checking if -lm needed for math functions" >&5
2399 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2400 if test "${cf_cv_need_libm+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #line 2405 "configure"
2406 #include "confdefs.h"
2414 double x = rand(); printf("result = %g\n", sin(x))
2419 rm -f conftest.$ac_objext conftest$ac_exeext
2420 if { (eval echo "$as_me:2420: \"$ac_link\"") >&5
2421 (eval $ac_link) 2>&5
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -s conftest$ac_exeext'
2426 { (eval echo "$as_me:2426: \"$ac_try\"") >&5
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2439 echo "$as_me:2439: result: $cf_cv_need_libm" >&5
2440 echo "${ECHO_T}$cf_cv_need_libm" >&6
2441 if test "$cf_cv_need_libm" = yes
2447 CC_SHARED_OPTS=unknown
2448 CPPFLAGS="$CPPFLAGS"
2450 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2451 DFT_UPR_MODEL="NORMAL"
2467 TINFO_ARGS='$(LIBS_CURSES)'
2468 cf_cv_abi_version=""
2469 cf_cv_rel_version=""
2474 echo "$as_me:2474: checking for ${CC:-cc} option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2476 if test "${cf_cv_ansi_cc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cf_save_CFLAGS="$CFLAGS"
2482 cf_save_CPPFLAGS="$CPPFLAGS"
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX -Aa -D_HPUX_SOURCE
2489 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2490 for cf_arg in "-DCC_HAS_PROTOS" \
2495 "-Aa -D_HPUX_SOURCE" \
2502 cf_new_extra_cppflags=
2504 for cf_add_cflags in $cf_arg
2506 case $cf_fix_cppflags in
2508 case $cf_add_cflags in #(vi
2509 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2510 case $cf_add_cflags in
2512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2514 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2515 && test -z "${cf_tst_cflags}" \
2516 && cf_fix_cppflags=yes
2518 if test $cf_fix_cppflags = yes ; then
2519 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2521 elif test "${cf_tst_cflags}" = "\"'" ; then
2522 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2528 *$cf_add_cflags) #(vi
2531 case $cf_add_cflags in #(vi
2533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2535 CPPFLAGS=`echo "$CPPFLAGS" | \
2536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2541 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2546 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2553 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2555 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2556 && test -z "${cf_tst_cflags}" \
2557 && cf_fix_cppflags=no
2562 if test -n "$cf_new_cflags" ; then
2564 CFLAGS="$CFLAGS $cf_new_cflags"
2567 if test -n "$cf_new_cppflags" ; then
2569 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2572 if test -n "$cf_new_extra_cppflags" ; then
2574 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line 2578 "configure"
2579 #include "confdefs.h"
2581 #ifndef CC_HAS_PROTOS
2582 #if !defined(__STDC__) || (__STDC__ != 1)
2591 int test (int i, double x);
2592 struct s1 {int (*f) (int a);};
2593 struct s2 {int (*f) (double a);};
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:2599: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:2602: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:2605: \"$ac_try\"") >&5
2608 echo "$as_me:2608: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 cf_cv_ansi_cc="$cf_arg"; break
2612 echo "$as_me: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 rm -f conftest.$ac_objext conftest.$ac_ext
2617 CFLAGS="$cf_save_CFLAGS"
2618 CPPFLAGS="$cf_save_CPPFLAGS"
2621 echo "$as_me:2621: result: $cf_cv_ansi_cc" >&5
2622 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2624 if test "$cf_cv_ansi_cc" != "no"; then
2625 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2630 cf_new_extra_cppflags=
2632 for cf_add_cflags in $cf_cv_ansi_cc
2634 case $cf_fix_cppflags in
2636 case $cf_add_cflags in #(vi
2637 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2638 case $cf_add_cflags in
2640 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2642 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2643 && test -z "${cf_tst_cflags}" \
2644 && cf_fix_cppflags=yes
2646 if test $cf_fix_cppflags = yes ; then
2647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2649 elif test "${cf_tst_cflags}" = "\"'" ; then
2650 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2656 *$cf_add_cflags) #(vi
2659 case $cf_add_cflags in #(vi
2661 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2663 CPPFLAGS=`echo "$CPPFLAGS" | \
2664 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2665 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2669 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2674 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2679 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2681 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2683 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2684 && test -z "${cf_tst_cflags}" \
2685 && cf_fix_cppflags=no
2690 if test -n "$cf_new_cflags" ; then
2692 CFLAGS="$CFLAGS $cf_new_cflags"
2695 if test -n "$cf_new_cppflags" ; then
2697 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2700 if test -n "$cf_new_extra_cppflags" ; then
2702 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2706 cat >>confdefs.h <<\EOF
2707 #define CC_HAS_PROTOS 1
2713 if test "$cf_cv_ansi_cc" = "no"; then
2714 { { echo "$as_me:2714: error: Your compiler does not appear to recognize prototypes.
2715 You have the following choices:
2716 a. adjust your compiler options
2717 b. get an up-to-date compiler
2718 c. use a wrapper such as unproto" >&5
2719 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2720 You have the following choices:
2721 a. adjust your compiler options
2722 b. get an up-to-date compiler
2723 c. use a wrapper such as unproto" >&2;}
2724 { (exit 1); exit 1; }; }
2727 if test "$GCC" = yes
2729 cat > conftest.i <<EOF
2731 #define GCC_PRINTF 0
2736 #ifndef GCC_NORETURN
2737 #define GCC_NORETURN /* nothing */
2740 #define GCC_UNUSED /* nothing */
2743 if test "$GCC" = yes
2745 { echo "$as_me:2745: checking for $CC __attribute__ directives..." >&5
2746 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2748 "${as_me:-configure}"
2749 #include "confdefs.h"
2750 #include "conftest.h"
2751 #include "conftest.i"
2753 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2755 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2758 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2760 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2762 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2763 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2764 extern void foo(void) GCC_NORETURN;
2765 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2767 cf_printf_attribute=no
2768 cf_scanf_attribute=no
2769 for cf_attribute in scanf printf unused noreturn
2772 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2774 cf_directive="__attribute__(($cf_attribute))"
2775 echo "checking for $CC $cf_directive" 1>&5
2777 case $cf_attribute in #(vi
2779 cf_printf_attribute=yes
2780 cat >conftest.h <<EOF
2781 #define GCC_$cf_ATTRIBUTE 1
2785 cf_scanf_attribute=yes
2786 cat >conftest.h <<EOF
2787 #define GCC_$cf_ATTRIBUTE 1
2791 cat >conftest.h <<EOF
2792 #define GCC_$cf_ATTRIBUTE $cf_directive
2797 if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
2802 test -n "$verbose" && echo "$as_me:2802: result: ... $cf_attribute" >&5
2803 echo "${ECHO_T}... $cf_attribute" >&6
2804 cat conftest.h >>confdefs.h
2805 case $cf_attribute in #(vi
2807 if test "$cf_printf_attribute" = no ; then
2808 cat >>confdefs.h <<EOF
2809 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2812 cat >>confdefs.h <<EOF
2813 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2818 if test "$cf_scanf_attribute" = no ; then
2819 cat >>confdefs.h <<EOF
2820 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2823 cat >>confdefs.h <<EOF
2824 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2832 fgrep define conftest.i >>confdefs.h
2838 cf_POSIX_C_SOURCE=199506L
2841 case $host_os in #(vi
2843 cf_xopen_source="-D_ALL_SOURCE"
2849 cf_xopen_source="-D_APPLE_C_SOURCE"
2852 cf_xopen_source="-D_DARWIN_C_SOURCE"
2854 freebsd*|dragonfly*) #(vi
2855 # 5.x headers associate
2856 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2857 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2858 cf_POSIX_C_SOURCE=200112L
2860 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2863 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2866 cf_xopen_source="-D_HPUX_SOURCE"
2869 cf_xopen_source="-D_SGI_SOURCE"
2871 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2873 echo "$as_me:2873: checking if we must define _GNU_SOURCE" >&5
2874 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2875 if test "${cf_cv_gnu_source+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line 2880 "configure"
2881 #include "confdefs.h"
2882 #include <sys/types.h>
2887 #ifndef _XOPEN_SOURCE
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2912 cat >conftest.$ac_ext <<_ACEOF
2913 #line 2913 "configure"
2914 #include "confdefs.h"
2915 #include <sys/types.h>
2920 #ifdef _XOPEN_SOURCE
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:2928: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>&5
2931 echo "$as_me:2931: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:2934: \"$ac_try\"") >&5
2937 echo "$as_me:2937: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2941 echo "$as_me: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 cf_cv_gnu_source=yes
2945 rm -f conftest.$ac_objext conftest.$ac_ext
2949 rm -f conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:2952: result: $cf_cv_gnu_source" >&5
2953 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2954 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2958 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2961 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2964 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2967 cf_xopen_source="-D_OSF_SOURCE"
2970 cf_xopen_source="-D_QNX_SOURCE"
2973 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2975 solaris2.1[0-9]) #(vi
2976 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2978 solaris2.[1-9]) #(vi
2979 cf_xopen_source="-D__EXTENSIONS__"
2982 echo "$as_me:2982: checking if we should define _XOPEN_SOURCE" >&5
2983 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2984 if test "${cf_cv_xopen_source+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line 2989 "configure"
2990 #include "confdefs.h"
2991 #include <sys/types.h>
2996 #ifndef _XOPEN_SOURCE
3003 rm -f conftest.$ac_objext
3004 if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5
3005 (eval $ac_compile) 2>&5
3007 echo "$as_me:3007: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:3010: \"$ac_try\"") >&5
3013 echo "$as_me:3013: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 cf_cv_xopen_source=no
3017 echo "$as_me: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3020 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line 3022 "configure"
3023 #include "confdefs.h"
3024 #include <sys/types.h>
3029 #ifdef _XOPEN_SOURCE
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:3037: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>&5
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:3043: \"$ac_try\"") >&5
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 cf_cv_xopen_source=no
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3054 rm -f conftest.$ac_objext conftest.$ac_ext
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3061 echo "$as_me:3061: result: $cf_cv_xopen_source" >&5
3062 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3063 if test "$cf_cv_xopen_source" != no ; then
3065 CFLAGS=`echo "$CFLAGS" | \
3066 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3067 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3069 CPPFLAGS=`echo "$CPPFLAGS" | \
3070 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3071 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3073 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3078 cf_new_extra_cppflags=
3080 for cf_add_cflags in $cf_temp_xopen_source
3082 case $cf_fix_cppflags in
3084 case $cf_add_cflags in #(vi
3085 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3086 case $cf_add_cflags in
3088 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3090 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3091 && test -z "${cf_tst_cflags}" \
3092 && cf_fix_cppflags=yes
3094 if test $cf_fix_cppflags = yes ; then
3095 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3097 elif test "${cf_tst_cflags}" = "\"'" ; then
3098 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3104 *$cf_add_cflags) #(vi
3107 case $cf_add_cflags in #(vi
3109 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3111 CPPFLAGS=`echo "$CPPFLAGS" | \
3112 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3113 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3117 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3122 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3127 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3129 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3131 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3132 && test -z "${cf_tst_cflags}" \
3133 && cf_fix_cppflags=no
3138 if test -n "$cf_new_cflags" ; then
3140 CFLAGS="$CFLAGS $cf_new_cflags"
3143 if test -n "$cf_new_cppflags" ; then
3145 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3148 if test -n "$cf_new_extra_cppflags" ; then
3150 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3155 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3157 cf_save_CFLAGS="$CFLAGS"
3158 cf_save_CPPFLAGS="$CPPFLAGS"
3160 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3161 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3162 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3164 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3165 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3166 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3168 echo "$as_me:3168: checking if we should define _POSIX_C_SOURCE" >&5
3169 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3170 if test "${cf_cv_posix_c_source+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 echo "${as_me:-configure}:3174: testing if the symbol is already defined go no further ..." 1>&5
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line 3177 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3184 #ifndef _POSIX_C_SOURCE
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:3192: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:3195: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (eval echo "$as_me:3198: \"$ac_try\"") >&5
3201 echo "$as_me:3201: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 cf_cv_posix_c_source=no
3205 echo "$as_me: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3207 cf_want_posix_source=no
3208 case .$cf_POSIX_C_SOURCE in #(vi
3210 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3213 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3214 cf_want_posix_source=yes
3217 cf_want_posix_source=yes
3220 if test "$cf_want_posix_source" = yes ; then
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line 3222 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3229 #ifdef _POSIX_SOURCE
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:3237: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>&5
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:3243: \"$ac_try\"") >&5
3246 echo "$as_me:3246: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3250 echo "$as_me: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3257 echo "${as_me:-configure}:3257: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3259 CFLAGS="$cf_trim_CFLAGS"
3260 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3262 echo "${as_me:-configure}:3262: testing if the second compile does not leave our definition intact error ..." 1>&5
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line 3265 "configure"
3266 #include "confdefs.h"
3267 #include <sys/types.h>
3272 #ifndef _POSIX_C_SOURCE
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:3280: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3283 echo "$as_me:3283: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:3286: \"$ac_try\"") >&5
3289 echo "$as_me:3289: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 cf_cv_posix_c_source=no
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3298 CFLAGS="$cf_save_CFLAGS"
3299 CPPFLAGS="$cf_save_CPPFLAGS"
3302 rm -f conftest.$ac_objext conftest.$ac_ext
3305 echo "$as_me:3305: result: $cf_cv_posix_c_source" >&5
3306 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3308 if test "$cf_cv_posix_c_source" != no ; then
3309 CFLAGS="$cf_trim_CFLAGS"
3310 CPPFLAGS="$cf_trim_CPPFLAGS"
3315 cf_new_extra_cppflags=
3317 for cf_add_cflags in $cf_cv_posix_c_source
3319 case $cf_fix_cppflags in
3321 case $cf_add_cflags in #(vi
3322 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3323 case $cf_add_cflags in
3325 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3327 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3328 && test -z "${cf_tst_cflags}" \
3329 && cf_fix_cppflags=yes
3331 if test $cf_fix_cppflags = yes ; then
3332 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3334 elif test "${cf_tst_cflags}" = "\"'" ; then
3335 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3341 *$cf_add_cflags) #(vi
3344 case $cf_add_cflags in #(vi
3346 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3348 CPPFLAGS=`echo "$CPPFLAGS" | \
3349 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3350 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3354 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3359 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3364 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3366 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3368 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3369 && test -z "${cf_tst_cflags}" \
3370 && cf_fix_cppflags=no
3375 if test -n "$cf_new_cflags" ; then
3377 CFLAGS="$CFLAGS $cf_new_cflags"
3380 if test -n "$cf_new_cppflags" ; then
3382 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3385 if test -n "$cf_new_extra_cppflags" ; then
3387 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3395 if test -n "$cf_xopen_source" ; then
3400 cf_new_extra_cppflags=
3402 for cf_add_cflags in $cf_xopen_source
3404 case $cf_fix_cppflags in
3406 case $cf_add_cflags in #(vi
3407 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3408 case $cf_add_cflags in
3410 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3412 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3413 && test -z "${cf_tst_cflags}" \
3414 && cf_fix_cppflags=yes
3416 if test $cf_fix_cppflags = yes ; then
3417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3419 elif test "${cf_tst_cflags}" = "\"'" ; then
3420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3426 *$cf_add_cflags) #(vi
3429 case $cf_add_cflags in #(vi
3431 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3433 CPPFLAGS=`echo "$CPPFLAGS" | \
3434 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3435 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3439 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3444 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3449 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3453 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3454 && test -z "${cf_tst_cflags}" \
3455 && cf_fix_cppflags=no
3460 if test -n "$cf_new_cflags" ; then
3462 CFLAGS="$CFLAGS $cf_new_cflags"
3465 if test -n "$cf_new_cppflags" ; then
3467 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3470 if test -n "$cf_new_extra_cppflags" ; then
3472 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3477 echo "$as_me:3477: checking for $CC option to accept ANSI C" >&5
3478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 ac_cv_prog_cc_stdc=no
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line 3485 "configure"
3486 #include "confdefs.h"
3489 #include <sys/types.h>
3490 #include <sys/stat.h>
3491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3492 struct buf { int x; };
3493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3494 static char *e (p, i)
3500 static char *f (char * (*g) (char **, int), char **p, ...)
3505 s = g (p, va_arg (v,int));
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523 # Don't try gcc -ansi; that turns off useful extensions and
3524 # breaks some systems' header files.
3525 # AIX -qlanglvl=ansi
3526 # Ultrix and OSF/1 -std1
3527 # HP-UX 10.20 and later -Ae
3528 # HP-UX older versions -Aa -D_HPUX_SOURCE
3529 # SVR4 -Xc -D__EXTENSIONS__
3530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 CC="$ac_save_CC $ac_arg"
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>&5
3537 echo "$as_me:3537: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:3540: \"$ac_try\"") >&5
3543 echo "$as_me:3543: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_cc_stdc=$ac_arg
3548 echo "$as_me: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 rm -f conftest.$ac_objext
3553 rm -f conftest.$ac_ext conftest.$ac_objext
3558 case "x$ac_cv_prog_cc_stdc" in
3560 echo "$as_me:3560: result: none needed" >&5
3561 echo "${ECHO_T}none needed" >&6 ;;
3563 echo "$as_me:3563: result: $ac_cv_prog_cc_stdc" >&5
3564 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3565 CC="$CC $ac_cv_prog_cc_stdc" ;;
3568 echo "$as_me:3568: checking for an ANSI C-conforming const" >&5
3569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3570 if test "${ac_cv_c_const+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 cat >conftest.$ac_ext <<_ACEOF
3574 #line 3574 "configure"
3575 #include "confdefs.h"
3580 /* FIXME: Include the comments suggested by Paul. */
3582 /* Ultrix mips cc rejects this. */
3583 typedef int charset[2];
3585 /* SunOS 4.1.1 cc rejects this. */
3586 char const *const *ccp;
3588 /* NEC SVR4.0.2 mips cc rejects this. */
3589 struct point {int x, y;};
3590 static struct point const zero = {0,0};
3591 /* AIX XL C 1.02.0.0 rejects this.
3592 It does not let you subtract one const X* pointer from another in
3593 an arm of an if-expression whose if-part is not a constant
3595 const char *g = "string";
3596 ccp = &g + (g ? g-g : 0);
3597 /* HPUX 7.0 cc rejects these. */
3600 ccp = (char const *const *) p;
3601 { /* SCO 3.2v4 cc rejects this. */
3603 char const *s = 0 ? (char *) 0 : (char const *) 0;
3607 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3609 const int *foo = &x[0];
3612 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3613 typedef const int *iptr;
3617 { /* AIX XL C 1.02.0.0 rejects this saying
3618 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3619 struct s { int j; const int *ap[3]; };
3620 struct s *b; b->j = 5;
3622 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3631 rm -f conftest.$ac_objext
3632 if { (eval echo "$as_me:3632: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>&5
3635 echo "$as_me:3635: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -s conftest.$ac_objext'
3638 { (eval echo "$as_me:3638: \"$ac_try\"") >&5
3641 echo "$as_me:3641: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3645 echo "$as_me: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3649 rm -f conftest.$ac_objext conftest.$ac_ext
3651 echo "$as_me:3651: result: $ac_cv_c_const" >&5
3652 echo "${ECHO_T}$ac_cv_c_const" >&6
3653 if test $ac_cv_c_const = no; then
3655 cat >>confdefs.h <<\EOF
3661 echo "$as_me:3661: checking for signal global datatype" >&5
3662 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3663 if test "${cf_cv_sig_atomic_t+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 "volatile sig_atomic_t" \
3672 cat >conftest.$ac_ext <<_ACEOF
3673 #line 3673 "configure"
3674 #include "confdefs.h"
3676 #include <sys/types.h>
3682 static void handler(int sig)
3689 signal(SIGINT, handler);
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:3696: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3699 echo "$as_me:3699: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:3702: \"$ac_try\"") >&5
3705 echo "$as_me:3705: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 cf_cv_sig_atomic_t=$cf_type
3709 echo "$as_me: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 cf_cv_sig_atomic_t=no
3713 rm -f conftest.$ac_objext conftest.$ac_ext
3714 test "$cf_cv_sig_atomic_t" != no && break
3719 echo "$as_me:3719: result: $cf_cv_sig_atomic_t" >&5
3720 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3721 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3722 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3725 echo "$as_me:3725: checking if you want to see long compiling messages" >&5
3726 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3728 # Check whether --enable-echo or --disable-echo was given.
3729 if test "${enable_echo+set}" = set; then
3730 enableval="$enable_echo"
3731 test "$enableval" != no && enableval=yes
3732 if test "$enableval" != "yes" ; then
3735 ECHO_LD='@echo linking $@;'
3736 RULE_CC='@echo compiling $<'
3737 SHOW_CC='@echo compiling $@'
3759 echo "$as_me:3759: result: $enableval" >&5
3760 echo "${ECHO_T}$enableval" >&6
3763 if test "$GCC" = yes ; then
3764 echo "$as_me:3764: checking version of $CC" >&5
3765 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3766 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3767 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3768 echo "$as_me:3768: result: $GCC_VERSION" >&5
3769 echo "${ECHO_T}$GCC_VERSION" >&6
3772 if ( test "$GCC" = yes || test "$GXX" = yes )
3774 echo "$as_me:3774: checking if you want to turn on gcc warnings" >&5
3775 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3777 # Check whether --enable-warnings or --disable-warnings was given.
3778 if test "${enable_warnings+set}" = set; then
3779 enableval="$enable_warnings"
3780 test "$enableval" != yes && enableval=no
3781 if test "$enableval" != "no" ; then
3791 echo "$as_me:3791: result: $with_warnings" >&5
3792 echo "${ECHO_T}$with_warnings" >&6
3793 if test "$with_warnings" = "yes"
3796 if test "$GCC" = yes
3798 cat > conftest.i <<EOF
3800 #define GCC_PRINTF 0
3805 #ifndef GCC_NORETURN
3806 #define GCC_NORETURN /* nothing */
3809 #define GCC_UNUSED /* nothing */
3812 if test "$GCC" = yes
3814 { echo "$as_me:3814: checking for $CC __attribute__ directives..." >&5
3815 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3817 "${as_me:-configure}"
3818 #include "confdefs.h"
3819 #include "conftest.h"
3820 #include "conftest.i"
3822 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3824 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3827 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3829 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3831 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3832 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3833 extern void foo(void) GCC_NORETURN;
3834 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3836 cf_printf_attribute=no
3837 cf_scanf_attribute=no
3838 for cf_attribute in scanf printf unused noreturn
3841 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3843 cf_directive="__attribute__(($cf_attribute))"
3844 echo "checking for $CC $cf_directive" 1>&5
3846 case $cf_attribute in #(vi
3848 cf_printf_attribute=yes
3849 cat >conftest.h <<EOF
3850 #define GCC_$cf_ATTRIBUTE 1
3854 cf_scanf_attribute=yes
3855 cat >conftest.h <<EOF
3856 #define GCC_$cf_ATTRIBUTE 1
3860 cat >conftest.h <<EOF
3861 #define GCC_$cf_ATTRIBUTE $cf_directive
3866 if { (eval echo "$as_me:3866: \"$ac_compile\"") >&5
3867 (eval $ac_compile) 2>&5
3869 echo "$as_me:3869: \$? = $ac_status" >&5
3870 (exit $ac_status); }; then
3871 test -n "$verbose" && echo "$as_me:3871: result: ... $cf_attribute" >&5
3872 echo "${ECHO_T}... $cf_attribute" >&6
3873 cat conftest.h >>confdefs.h
3874 case $cf_attribute in #(vi
3876 if test "$cf_printf_attribute" = no ; then
3877 cat >>confdefs.h <<EOF
3878 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3881 cat >>confdefs.h <<EOF
3882 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3887 if test "$cf_scanf_attribute" = no ; then
3888 cat >>confdefs.h <<EOF
3889 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3892 cat >>confdefs.h <<EOF
3893 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3901 fgrep define conftest.i >>confdefs.h
3908 if test "$GCC" = yes ; then
3911 echo "$as_me:3911: checking if this is really Intel C compiler" >&5
3912 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3913 cf_save_CFLAGS="$CFLAGS"
3914 CFLAGS="$CFLAGS -no-gcc"
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line 3916 "configure"
3917 #include "confdefs.h"
3923 #ifdef __INTEL_COMPILER
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:3933: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>&5
3936 echo "$as_me:3936: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:3939: \"$ac_try\"") >&5
3942 echo "$as_me:3942: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3945 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 rm -f conftest.$ac_objext conftest.$ac_ext
3952 CFLAGS="$cf_save_CFLAGS"
3953 echo "$as_me:3953: result: $INTEL_COMPILER" >&5
3954 echo "${ECHO_T}$INTEL_COMPILER" >&6
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3960 "${as_me:-configure}"
3961 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3964 if test "$INTEL_COMPILER" = yes
3966 # The "-wdXXX" options suppress warnings:
3967 # remark #1419: external declaration in primary source file
3968 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3969 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3970 # remark #193: zero&n