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"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
231 -help | --help | --hel | --he | -h)
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers | -V)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
627 --x-includes=DIR X include files are in DIR
628 --x-libraries=DIR X library files are in DIR
631 --build=BUILD configure for building on BUILD [guessed]
632 --host=HOST build programs to run on HOST [BUILD]
636 if test -n "$ac_init_help"; then
641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
648 --disable-echo display "compiling" commands
649 --enable-warnings test: turn on gcc compiler warnings
650 --with-dmalloc test: use Gray Watson's dmalloc library
651 --with-dbmalloc test: use Conor Cahill's dbmalloc library
652 --with-valgrind test: use valgrind
653 --disable-leaks test: free permanent memory, analyze leaks
654 --disable-widec disable checks for wide-character functions
655 --with-curses-dir=DIR directory in which (n)curses is installed
656 --with-ncursesw use wide ncurses-libraries (installed)
657 --with-ncurses use ncurses-libraries (installed)
658 --with-pdcurses compile/link with pdcurses X11 library
659 --with-curses-colr compile/link with HPUX 10.x color-curses
660 --with-curses-5lib compile/link with SunOS 5lib curses
661 --with-Xaw3d link with Xaw 3d library
662 --with-neXtaw link with neXT Athena library
663 --with-XawPlus link with Athena-Plus library
664 --with-pkg-config{=path} enable/disable use of pkg-config
665 --with-x use the X Window System
666 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
668 Some influential environment variables:
669 CC C compiler command
670 CFLAGS C compiler flags
671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
672 nonstandard directory <lib dir>
673 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
674 headers in a nonstandard directory <include dir>
677 Use these variables to override the choices made by `configure' or to help
678 it to find libraries and programs with nonstandard names/locations.
683 if test "$ac_init_help" = "recursive"; then
684 # If there are subdirs, report their specific --help.
686 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
688 # A "../" for each directory in /$ac_subdir.
689 ac_dots=`echo $ac_subdir |
690 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
693 .) # No --srcdir option. We are building in place.
694 ac_sub_srcdir=$srcdir ;;
695 [\\/]* | ?:[\\/]* ) # Absolute path.
696 ac_sub_srcdir=$srcdir/$ac_subdir ;;
698 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
701 # Check for guested configure; otherwise get Cygnus style configure.
702 if test -f $ac_sub_srcdir/configure.gnu; then
704 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
705 elif test -f $ac_sub_srcdir/configure; then
707 $SHELL $ac_sub_srcdir/configure --help=recursive
708 elif test -f $ac_sub_srcdir/configure.ac ||
709 test -f $ac_sub_srcdir/configure.in; then
713 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
719 test -n "$ac_init_help" && exit 0
720 if $ac_init_version; then
723 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
724 Free Software Foundation, Inc.
725 This configure script is free software; the Free Software Foundation
726 gives unlimited permission to copy, distribute and modify it.
732 This file contains any messages produced by compilers while
733 running configure, to aid debugging if configure makes a mistake.
735 It was created by $as_me, which was
736 generated by GNU Autoconf 2.52.20101002. Invocation command line was
747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
754 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
757 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
759 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
760 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
761 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
762 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
776 # Keep a trace of the command line.
777 # Strip out --no-create and --no-recursion so they do not pile up.
778 # Also quote any args containing shell meta-characters.
784 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
785 | --no-cr | --no-c) ;;
786 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
787 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
788 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
789 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
790 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
795 # Get rid of the leading space.
798 # When interrupted or exit'd, cleanup temporary files, and complete
799 # config.log. We remove comments because anyway the quotes in there
800 # would cause problems or look ugly.
802 # Save into config.log some information that might help in debugging.
804 echo "## ----------------- ##" >&5
805 echo "## Cache variables. ##" >&5
806 echo "## ----------------- ##" >&5
808 # The following way of writing the cache mishandles newlines in values,
811 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
814 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
819 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
823 sed "/^$/d" confdefs.h >conftest.log
824 if test -s conftest.log; then
826 echo "## ------------ ##" >&5
827 echo "## confdefs.h. ##" >&5
828 echo "## ------------ ##" >&5
833 test "$ac_signal" != 0 &&
834 echo "$as_me: caught signal $ac_signal" >&5
835 echo "$as_me: exit $exit_status" >&5
836 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
839 for ac_signal in 1 2 13 15; do
840 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
844 # confdefs.h avoids OS command line length limits that DEFS can exceed.
845 rm -rf conftest* confdefs.h
846 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
849 # Let the site file select an alternate cache file if it wants to.
850 # Prefer explicitly selected file to automatically selected ones.
851 if test -z "$CONFIG_SITE"; then
852 if test "x$prefix" != xNONE; then
853 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
858 for ac_site_file in $CONFIG_SITE; do
859 if test -r "$ac_site_file"; then
860 { echo "$as_me:860: loading site script $ac_site_file" >&5
861 echo "$as_me: loading site script $ac_site_file" >&6;}
862 cat "$ac_site_file" >&5
867 if test -r "$cache_file"; then
868 # Some versions of bash will fail to source /dev/null (special
869 # files actually), so we avoid doing that.
870 if test -f "$cache_file"; then
871 { echo "$as_me:871: loading cache $cache_file" >&5
872 echo "$as_me: loading cache $cache_file" >&6;}
874 [\\/]* | ?:[\\/]* ) . $cache_file;;
879 { echo "$as_me:879: creating cache $cache_file" >&5
880 echo "$as_me: creating cache $cache_file" >&6;}
884 # Check that the precious variables saved in the cache have kept the same
886 ac_cache_corrupted=false
887 for ac_var in `(set) 2>&1 |
888 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
890 eval ac_new_set=\$ac_env_${ac_var}_set
891 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
892 eval ac_new_val="\$ac_env_${ac_var}_value"
893 case $ac_old_set,$ac_new_set in
895 { echo "$as_me:895: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
896 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
897 ac_cache_corrupted=: ;;
899 { echo "$as_me:899: error: \`$ac_var' was not set in the previous run" >&5
900 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
901 ac_cache_corrupted=: ;;
904 if test "x$ac_old_val" != "x$ac_new_val"; then
905 { echo "$as_me:905: error: \`$ac_var' has changed since the previous run:" >&5
906 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
907 { echo "$as_me:907: former value: $ac_old_val" >&5
908 echo "$as_me: former value: $ac_old_val" >&2;}
909 { echo "$as_me:909: current value: $ac_new_val" >&5
910 echo "$as_me: current value: $ac_new_val" >&2;}
914 # Pass precious variables to config.status. It doesn't matter if
915 # we pass some twice (in addition to the command line arguments).
916 if test "$ac_new_set" = set; then
918 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
919 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
920 ac_configure_args="$ac_configure_args '$ac_arg'"
922 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
927 if $ac_cache_corrupted; then
928 { echo "$as_me:928: error: changes in the environment can compromise the build" >&5
929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
930 { { echo "$as_me:930: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
932 { (exit 1); exit 1; }; }
936 ac_cpp='$CPP $CPPFLAGS'
937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
940 ac_main_return=return
942 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 *c*,-n*) ECHO_N= ECHO_C='
945 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
948 echo "#! $SHELL" >conftest.sh
949 echo "exit 0" >>conftest.sh
951 if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 (PATH=".;."; conftest.sh) 2>&5
954 echo "$as_me:954: \$? = $ac_status" >&5
955 (exit $ac_status); }; then
956 ac_path_separator=';'
960 PATH_SEPARATOR="$ac_path_separator"
963 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
965 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
967 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
971 if test -f $ac_dir/install-sh; then
973 ac_install_sh="$ac_aux_dir/install-sh -c"
975 elif test -f $ac_dir/install.sh; then
977 ac_install_sh="$ac_aux_dir/install.sh -c"
979 elif test -f $ac_dir/shtool; then
981 ac_install_sh="$ac_aux_dir/shtool install -c"
985 if test -z "$ac_aux_dir"; then
986 { { echo "$as_me:986: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
987 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
988 { (exit 1); exit 1; }; }
990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
992 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
994 # Make sure we can run config.sub.
995 $ac_config_sub sun4 >/dev/null 2>&1 ||
996 { { echo "$as_me:996: error: cannot run $ac_config_sub" >&5
997 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
998 { (exit 1); exit 1; }; }
1000 echo "$as_me:1000: checking build system type" >&5
1001 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1002 if test "${ac_cv_build+set}" = set; then
1003 echo $ECHO_N "(cached) $ECHO_C" >&6
1005 ac_cv_build_alias=$build_alias
1006 test -z "$ac_cv_build_alias" &&
1007 ac_cv_build_alias=`$ac_config_guess`
1008 test -z "$ac_cv_build_alias" &&
1009 { { echo "$as_me:1009: error: cannot guess build type; you must specify one" >&5
1010 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1011 { (exit 1); exit 1; }; }
1012 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1013 { { echo "$as_me:1013: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1014 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1015 { (exit 1); exit 1; }; }
1018 echo "$as_me:1018: result: $ac_cv_build" >&5
1019 echo "${ECHO_T}$ac_cv_build" >&6
1021 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1026 echo "$as_me:1026: checking host system type" >&5
1027 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1028 if test "${ac_cv_host+set}" = set; then
1029 echo $ECHO_N "(cached) $ECHO_C" >&6
1031 ac_cv_host_alias=$host_alias
1032 test -z "$ac_cv_host_alias" &&
1033 ac_cv_host_alias=$ac_cv_build_alias
1034 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1037 { (exit 1); exit 1; }; }
1040 echo "$as_me:1040: result: $ac_cv_host" >&5
1041 echo "${ECHO_T}$ac_cv_host" >&6
1043 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 system_name="$host_os"
1049 system_name="`(uname -s -r) 2>/dev/null`"
1050 if test -z "$system_name" ; then
1051 system_name="`(hostname) 2>/dev/null`"
1054 test -n "$system_name" && cat >>confdefs.h <<EOF
1055 #define SYSTEM_NAME "$system_name"
1058 if test "${cf_cv_system_name+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 cf_cv_system_name="$system_name"
1064 test -z "$system_name" && system_name="$cf_cv_system_name"
1065 test -n "$cf_cv_system_name" && echo "$as_me:1065: result: Configuring for $cf_cv_system_name" >&5
1066 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1068 if test ".$system_name" != ".$cf_cv_system_name" ; then
1069 echo "$as_me:1069: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1070 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1071 { { echo "$as_me:1071: error: \"Please remove config.cache and try again.\"" >&5
1072 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1073 { (exit 1); exit 1; }; }
1076 test "$program_prefix" != NONE &&
1077 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1078 # Use a double $ so make ignores it.
1079 test "$program_suffix" != NONE &&
1080 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1081 # Double any \ or $. echo might interpret backslashes.
1082 # By default was `s,x,x', remove it if useless.
1083 cat <<\_ACEOF >conftest.sed
1084 s/[\\$]/&&/g;s/;s,x,x,$//
1086 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1089 echo "$as_me:1089: checking whether ${MAKE-make} sets \${MAKE}" >&5
1090 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1091 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1092 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1095 cat >conftest.make <<\EOF
1097 @echo 'ac_maketemp="${MAKE}"'
1099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1100 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1101 if test -n "$ac_maketemp"; then
1102 eval ac_cv_prog_make_${ac_make}_set=yes
1104 eval ac_cv_prog_make_${ac_make}_set=no
1108 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1109 echo "$as_me:1109: result: yes" >&5
1110 echo "${ECHO_T}yes" >&6
1113 echo "$as_me:1113: result: no" >&5
1114 echo "${ECHO_T}no" >&6
1115 SET_MAKE="MAKE=${MAKE-make}"
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1123 ac_main_return=return
1124 if test -n "$ac_tool_prefix"; then
1125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1127 echo "$as_me:1127: checking for $ac_word" >&5
1128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129 if test "${ac_cv_prog_CC+set}" = set; then
1130 echo $ECHO_N "(cached) $ECHO_C" >&6
1132 if test -n "$CC"; then
1133 ac_cv_prog_CC="$CC" # Let the user override the test.
1135 ac_save_IFS=$IFS; IFS=$ac_path_separator
1137 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 $as_executable_p "$ac_dir/$ac_word" || continue
1141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1142 echo "$as_me:1142: found $ac_dir/$ac_word" >&5
1149 if test -n "$CC"; then
1150 echo "$as_me:1150: result: $CC" >&5
1151 echo "${ECHO_T}$CC" >&6
1153 echo "$as_me:1153: result: no" >&5
1154 echo "${ECHO_T}no" >&6
1158 if test -z "$ac_cv_prog_CC"; then
1160 # Extract the first word of "gcc", so it can be a program name with args.
1161 set dummy gcc; ac_word=$2
1162 echo "$as_me:1162: checking for $ac_word" >&5
1163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1165 echo $ECHO_N "(cached) $ECHO_C" >&6
1167 if test -n "$ac_ct_CC"; then
1168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1170 ac_save_IFS=$IFS; IFS=$ac_path_separator
1172 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 $as_executable_p "$ac_dir/$ac_word" || continue
1176 ac_cv_prog_ac_ct_CC="gcc"
1177 echo "$as_me:1177: found $ac_dir/$ac_word" >&5
1183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1184 if test -n "$ac_ct_CC"; then
1185 echo "$as_me:1185: result: $ac_ct_CC" >&5
1186 echo "${ECHO_T}$ac_ct_CC" >&6
1188 echo "$as_me:1188: result: no" >&5
1189 echo "${ECHO_T}no" >&6
1197 if test -z "$CC"; then
1198 if test -n "$ac_tool_prefix"; then
1199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1200 set dummy ${ac_tool_prefix}cc; ac_word=$2
1201 echo "$as_me:1201: checking for $ac_word" >&5
1202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1203 if test "${ac_cv_prog_CC+set}" = set; then
1204 echo $ECHO_N "(cached) $ECHO_C" >&6
1206 if test -n "$CC"; then
1207 ac_cv_prog_CC="$CC" # Let the user override the test.
1209 ac_save_IFS=$IFS; IFS=$ac_path_separator
1211 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 $as_executable_p "$ac_dir/$ac_word" || continue
1215 ac_cv_prog_CC="${ac_tool_prefix}cc"
1216 echo "$as_me:1216: found $ac_dir/$ac_word" >&5
1223 if test -n "$CC"; then
1224 echo "$as_me:1224: result: $CC" >&5
1225 echo "${ECHO_T}$CC" >&6
1227 echo "$as_me:1227: result: no" >&5
1228 echo "${ECHO_T}no" >&6
1232 if test -z "$ac_cv_prog_CC"; then
1234 # Extract the first word of "cc", so it can be a program name with args.
1235 set dummy cc; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1241 if test -n "$ac_ct_CC"; then
1242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1244 ac_save_IFS=$IFS; IFS=$ac_path_separator
1246 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 $as_executable_p "$ac_dir/$ac_word" || continue
1250 ac_cv_prog_ac_ct_CC="cc"
1251 echo "$as_me:1251: found $ac_dir/$ac_word" >&5
1257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1258 if test -n "$ac_ct_CC"; then
1259 echo "$as_me:1259: result: $ac_ct_CC" >&5
1260 echo "${ECHO_T}$ac_ct_CC" >&6
1262 echo "$as_me:1262: result: no" >&5
1263 echo "${ECHO_T}no" >&6
1272 if test -z "$CC"; then
1273 # Extract the first word of "cc", so it can be a program name with args.
1274 set dummy cc; ac_word=$2
1275 echo "$as_me:1275: checking for $ac_word" >&5
1276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1277 if test "${ac_cv_prog_CC+set}" = set; then
1278 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1284 ac_save_IFS=$IFS; IFS=$ac_path_separator
1286 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 $as_executable_p "$ac_dir/$ac_word" || continue
1290 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1291 ac_prog_rejected=yes
1295 echo "$as_me:1295: found $ac_dir/$ac_word" >&5
1299 if test $ac_prog_rejected = yes; then
1300 # We found a bogon in the path, so make sure we never use it.
1301 set dummy $ac_cv_prog_CC
1303 if test $# != 0; then
1304 # We chose a different compiler from the bogus one.
1305 # However, it has the same basename, so the bogon will be chosen
1306 # first if we set CC to just the basename; use the full file name.
1308 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1316 if test -n "$CC"; then
1317 echo "$as_me:1317: result: $CC" >&5
1318 echo "${ECHO_T}$CC" >&6
1320 echo "$as_me:1320: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1325 if test -z "$CC"; then
1326 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1331 echo "$as_me:1331: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1339 ac_save_IFS=$IFS; IFS=$ac_path_separator
1341 for ac_dir in $ac_dummy; do
1343 test -z "$ac_dir" && ac_dir=.
1344 $as_executable_p "$ac_dir/$ac_word" || continue
1345 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1346 echo "$as_me:1346: found $ac_dir/$ac_word" >&5
1353 if test -n "$CC"; then
1354 echo "$as_me:1354: result: $CC" >&5
1355 echo "${ECHO_T}$CC" >&6
1357 echo "$as_me:1357: result: no" >&5
1358 echo "${ECHO_T}no" >&6
1361 test -n "$CC" && break
1364 if test -z "$CC"; then
1368 # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:1370: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 if test -n "$ac_ct_CC"; then
1376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1378 ac_save_IFS=$IFS; IFS=$ac_path_separator
1380 for ac_dir in $ac_dummy; do
1382 test -z "$ac_dir" && ac_dir=.
1383 $as_executable_p "$ac_dir/$ac_word" || continue
1384 ac_cv_prog_ac_ct_CC="$ac_prog"
1385 echo "$as_me:1385: found $ac_dir/$ac_word" >&5
1391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392 if test -n "$ac_ct_CC"; then
1393 echo "$as_me:1393: result: $ac_ct_CC" >&5
1394 echo "${ECHO_T}$ac_ct_CC" >&6
1396 echo "$as_me:1396: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$ac_ct_CC" && break
1408 test -z "$CC" && { { echo "$as_me:1408: error: no acceptable cc found in \$PATH" >&5
1409 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1410 { (exit 1); exit 1; }; }
1412 # Provide some information about the compiler.
1413 echo "$as_me:1413:" \
1414 "checking for C compiler version" >&5
1415 ac_compiler=`set X $ac_compile; echo $2`
1416 { (eval echo "$as_me:1416: \"$ac_compiler --version </dev/null >&5\"") >&5
1417 (eval $ac_compiler --version </dev/null >&5) 2>&5
1419 echo "$as_me:1419: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1421 { (eval echo "$as_me:1421: \"$ac_compiler -v </dev/null >&5\"") >&5
1422 (eval $ac_compiler -v </dev/null >&5) 2>&5
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1426 { (eval echo "$as_me:1426: \"$ac_compiler -V </dev/null >&5\"") >&5
1427 (eval $ac_compiler -V </dev/null >&5) 2>&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }
1432 cat >conftest.$ac_ext <<_ACEOF
1433 #line 1433 "configure"
1434 #include "confdefs.h"
1444 ac_clean_files_save=$ac_clean_files
1445 ac_clean_files="$ac_clean_files a.out a.exe"
1446 # Try to create an executable without -o first, disregard a.out.
1447 # It will help us diagnose broken compilers, and finding out an intuition
1449 echo "$as_me:1449: checking for C compiler default output" >&5
1450 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1452 if { (eval echo "$as_me:1452: \"$ac_link_default\"") >&5
1453 (eval $ac_link_default) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }; then
1457 # Find the output, starting from the most likely. This scheme is
1458 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1460 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1461 ls a.out conftest 2>/dev/null;
1462 ls a.* conftest.* 2>/dev/null`; do
1464 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1465 a.out ) # We found the default executable, but exeext='' is most
1468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1469 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1476 echo "$as_me: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 { { echo "$as_me:1478: error: C compiler cannot create executables" >&5
1479 echo "$as_me: error: C compiler cannot create executables" >&2;}
1480 { (exit 77); exit 77; }; }
1483 ac_exeext=$ac_cv_exeext
1484 echo "$as_me:1484: result: $ac_file" >&5
1485 echo "${ECHO_T}$ac_file" >&6
1487 # Check the compiler produces executables we can run. If not, either
1488 # the compiler is broken, or we cross compile.
1489 echo "$as_me:1489: checking whether the C compiler works" >&5
1490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1492 # If not cross compiling, check that we can run a simple program.
1493 if test "$cross_compiling" != yes; then
1494 if { ac_try='./$ac_file'
1495 { (eval echo "$as_me:1495: \"$ac_try\"") >&5
1498 echo "$as_me:1498: \$? = $ac_status" >&5
1499 (exit $ac_status); }; }; then
1502 if test "$cross_compiling" = maybe; then
1505 { { echo "$as_me:1505: error: cannot run C compiled programs.
1506 If you meant to cross compile, use \`--host'." >&5
1507 echo "$as_me: error: cannot run C compiled programs.
1508 If you meant to cross compile, use \`--host'." >&2;}
1509 { (exit 1); exit 1; }; }
1513 echo "$as_me:1513: result: yes" >&5
1514 echo "${ECHO_T}yes" >&6
1516 rm -f a.out a.exe conftest$ac_cv_exeext
1517 ac_clean_files=$ac_clean_files_save
1518 # Check the compiler produces executables we can run. If not, either
1519 # the compiler is broken, or we cross compile.
1520 echo "$as_me:1520: checking whether we are cross compiling" >&5
1521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1522 echo "$as_me:1522: result: $cross_compiling" >&5
1523 echo "${ECHO_T}$cross_compiling" >&6
1525 echo "$as_me:1525: checking for executable suffix" >&5
1526 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1527 if { (eval echo "$as_me:1527: \"$ac_link\"") >&5
1528 (eval $ac_link) 2>&5
1530 echo "$as_me:1530: \$? = $ac_status" >&5
1531 (exit $ac_status); }; then
1532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1534 # work properly (i.e., refer to `conftest.exe'), while it won't with
1536 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1538 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1546 { { echo "$as_me:1546: error: cannot compute EXEEXT: cannot compile and link" >&5
1547 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1548 { (exit 1); exit 1; }; }
1551 rm -f conftest$ac_cv_exeext
1552 echo "$as_me:1552: result: $ac_cv_exeext" >&5
1553 echo "${ECHO_T}$ac_cv_exeext" >&6
1555 rm -f conftest.$ac_ext
1556 EXEEXT=$ac_cv_exeext
1558 echo "$as_me:1558: checking for object suffix" >&5
1559 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1560 if test "${ac_cv_objext+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 cat >conftest.$ac_ext <<_ACEOF
1564 #line 1564 "configure"
1565 #include "confdefs.h"
1575 rm -f conftest.o conftest.obj
1576 if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5
1577 (eval $ac_compile) 2>&5
1579 echo "$as_me:1579: \$? = $ac_status" >&5
1580 (exit $ac_status); }; then
1581 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1584 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1589 echo "$as_me: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1591 { { echo "$as_me:1591: error: cannot compute OBJEXT: cannot compile" >&5
1592 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1593 { (exit 1); exit 1; }; }
1596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1598 echo "$as_me:1598: result: $ac_cv_objext" >&5
1599 echo "${ECHO_T}$ac_cv_objext" >&6
1600 OBJEXT=$ac_cv_objext
1602 echo "$as_me:1602: checking whether we are using the GNU C compiler" >&5
1603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 cat >conftest.$ac_ext <<_ACEOF
1608 #line 1608 "configure"
1609 #include "confdefs.h"
1622 rm -f conftest.$ac_objext
1623 if { (eval echo "$as_me:1623: \"$ac_compile\"") >&5
1624 (eval $ac_compile) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); } &&
1628 { ac_try='test -s conftest.$ac_objext'
1629 { (eval echo "$as_me:1629: \"$ac_try\"") >&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }; }; then
1636 echo "$as_me: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1640 rm -f conftest.$ac_objext conftest.$ac_ext
1641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1644 echo "$as_me:1644: result: $ac_cv_c_compiler_gnu" >&5
1645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1646 GCC=`test $ac_compiler_gnu = yes && echo yes`
1647 ac_test_CFLAGS=${CFLAGS+set}
1648 ac_save_CFLAGS=$CFLAGS
1650 echo "$as_me:1650: checking whether $CC accepts -g" >&5
1651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1652 if test "${ac_cv_prog_cc_g+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 cat >conftest.$ac_ext <<_ACEOF
1656 #line 1656 "configure"
1657 #include "confdefs.h"
1667 rm -f conftest.$ac_objext
1668 if { (eval echo "$as_me:1668: \"$ac_compile\"") >&5
1669 (eval $ac_compile) 2>&5
1671 echo "$as_me:1671: \$? = $ac_status" >&5
1672 (exit $ac_status); } &&
1673 { ac_try='test -s conftest.$ac_objext'
1674 { (eval echo "$as_me:1674: \"$ac_try\"") >&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; }; then
1681 echo "$as_me: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1685 rm -f conftest.$ac_objext conftest.$ac_ext
1687 echo "$as_me:1687: result: $ac_cv_prog_cc_g" >&5
1688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1689 if test "$ac_test_CFLAGS" = set; then
1690 CFLAGS=$ac_save_CFLAGS
1691 elif test $ac_cv_prog_cc_g = yes; then
1692 if test "$GCC" = yes; then
1698 if test "$GCC" = yes; then
1704 # Some people use a C++ compiler to compile C. Since we use `exit',
1705 # in C++ we need to declare it. In case someone uses the same compiler
1706 # for both compiling C and C++ we need to have the C++ compiler decide
1707 # the declaration of exit, since it's the most demanding environment.
1708 cat >conftest.$ac_ext <<_ACEOF
1713 rm -f conftest.$ac_objext
1714 if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1715 (eval $ac_compile) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); } &&
1719 { ac_try='test -s conftest.$ac_objext'
1720 { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }; }; then
1725 for ac_declaration in \
1727 '#include <stdlib.h>' \
1728 'extern "C" void std::exit (int) throw (); using std::exit;' \
1729 'extern "C" void std::exit (int); using std::exit;' \
1730 'extern "C" void exit (int) throw ();' \
1731 'extern "C" void exit (int);' \
1734 cat >conftest.$ac_ext <<_ACEOF
1735 #line 1735 "configure"
1736 #include "confdefs.h"
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
1761 echo "$as_me: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1765 rm -f conftest.$ac_objext conftest.$ac_ext
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1798 if test -n "$ac_declaration"; then
1799 echo '#ifdef __cplusplus' >>confdefs.h
1800 echo $ac_declaration >>confdefs.h
1801 echo '#endif' >>confdefs.h
1805 echo "$as_me: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 rm -f conftest.$ac_objext conftest.$ac_ext
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 ac_main_return=return
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 ac_main_return=return
1822 echo "$as_me:1822: checking how to run the C preprocessor" >&5
1823 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1824 # On Suns, sometimes $CPP names a directory.
1825 if test -n "$CPP" && test -d "$CPP"; then
1828 if test -z "$CPP"; then
1829 if test "${ac_cv_prog_CPP+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 # Double quotes because CPP needs to be expanded
1833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1836 for ac_c_preproc_warn_flag in '' yes
1838 # Use a header file that comes with gcc, so configuring glibc
1839 # with a fresh cross-compiler works.
1840 # On the NeXT, cc -E runs the code through the compiler's parser,
1841 # not just through cpp. "Syntax error" is here to catch this case.
1842 cat >conftest.$ac_ext <<_ACEOF
1843 #line 1843 "configure"
1844 #include "confdefs.h"
1848 if { (eval echo "$as_me:1848: \"$ac_cpp conftest.$ac_ext\"") >&5
1849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1851 egrep -v '^ *\+' conftest.er1 >conftest.err
1853 cat conftest.err >&5
1854 echo "$as_me:1854: \$? = $ac_status" >&5
1855 (exit $ac_status); } >/dev/null; then
1856 if test -s conftest.err; then
1857 ac_cpp_err=$ac_c_preproc_warn_flag
1864 if test -z "$ac_cpp_err"; then
1867 echo "$as_me: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 # Broken: fails on valid input.
1872 rm -f conftest.err conftest.$ac_ext
1874 # OK, works on sane cases. Now check whether non-existent headers
1875 # can be detected and how.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879 #include <ac_nonexistent.h>
1881 if { (eval echo "$as_me:1881: \"$ac_cpp conftest.$ac_ext\"") >&5
1882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1884 egrep -v '^ *\+' conftest.er1 >conftest.err
1886 cat conftest.err >&5
1887 echo "$as_me:1887: \$? = $ac_status" >&5
1888 (exit $ac_status); } >/dev/null; then
1889 if test -s conftest.err; then
1890 ac_cpp_err=$ac_c_preproc_warn_flag
1897 if test -z "$ac_cpp_err"; then
1898 # Broken: success on invalid input.
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Passes both tests.
1907 rm -f conftest.err conftest.$ac_ext
1910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1911 rm -f conftest.err conftest.$ac_ext
1912 if $ac_preproc_ok; then
1924 echo "$as_me:1924: result: $CPP" >&5
1925 echo "${ECHO_T}$CPP" >&6
1927 for ac_c_preproc_warn_flag in '' yes
1929 # Use a header file that comes with gcc, so configuring glibc
1930 # with a fresh cross-compiler works.
1931 # On the NeXT, cc -E runs the code through the compiler's parser,
1932 # not just through cpp. "Syntax error" is here to catch this case.
1933 cat >conftest.$ac_ext <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1939 if { (eval echo "$as_me:1939: \"$ac_cpp conftest.$ac_ext\"") >&5
1940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1942 egrep -v '^ *\+' conftest.er1 >conftest.err
1944 cat conftest.err >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); } >/dev/null; then
1947 if test -s conftest.err; then
1948 ac_cpp_err=$ac_c_preproc_warn_flag
1955 if test -z "$ac_cpp_err"; then
1958 echo "$as_me: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 # Broken: fails on valid input.
1963 rm -f conftest.err conftest.$ac_ext
1965 # OK, works on sane cases. Now check whether non-existent headers
1966 # can be detected and how.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1970 #include <ac_nonexistent.h>
1972 if { (eval echo "$as_me:1972: \"$ac_cpp conftest.$ac_ext\"") >&5
1973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1975 egrep -v '^ *\+' conftest.er1 >conftest.err
1977 cat conftest.err >&5
1978 echo "$as_me:1978: \$? = $ac_status" >&5
1979 (exit $ac_status); } >/dev/null; then
1980 if test -s conftest.err; then
1981 ac_cpp_err=$ac_c_preproc_warn_flag
1988 if test -z "$ac_cpp_err"; then
1989 # Broken: success on invalid input.
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Passes both tests.
1998 rm -f conftest.err conftest.$ac_ext
2001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2002 rm -f conftest.err conftest.$ac_ext
2003 if $ac_preproc_ok; then
2006 { { echo "$as_me:2006: error: C preprocessor \"$CPP\" fails sanity check" >&5
2007 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2008 { (exit 1); exit 1; }; }
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 ac_main_return=return
2018 for ac_prog in mawk gawk nawk awk
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:2022: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_AWK+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$AWK"; then
2028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2030 ac_save_IFS=$IFS; IFS=$ac_path_separator
2032 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 $as_executable_p "$ac_dir/$ac_word" || continue
2036 ac_cv_prog_AWK="$ac_prog"
2037 echo "$as_me:2037: found $ac_dir/$ac_word" >&5
2044 if test -n "$AWK"; then
2045 echo "$as_me:2045: result: $AWK" >&5
2046 echo "${ECHO_T}$AWK" >&6
2048 echo "$as_me:2048: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$AWK" && break
2055 # Find a good install program. We prefer a C program (faster),
2056 # so one script is as good as another. But avoid the broken or
2057 # incompatible versions:
2058 # SysV /etc/install, /usr/sbin/install
2059 # SunOS /usr/etc/install
2060 # IRIX /sbin/install
2062 # AmigaOS /C/install, which installs bootblocks on floppy discs
2063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2066 # ./install, which can be erroneously created by make from ./install.sh.
2067 echo "$as_me:2067: checking for a BSD compatible install" >&5
2068 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2069 if test -z "$INSTALL"; then
2070 if test "${ac_cv_path_install+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_save_IFS=$IFS; IFS=$ac_path_separator
2074 for ac_dir in $PATH; do
2076 # Account for people who put trailing slashes in PATH elements.
2078 / | ./ | .// | /cC/* \
2079 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2082 # OSF1 and SCO ODT 3.0 have their own names for install.
2083 # Don't use installbsd from OSF since it installs stuff as root
2085 for ac_prog in ginstall scoinst install; do
2086 if $as_executable_p "$ac_dir/$ac_prog"; then
2087 if test $ac_prog = install &&
2088 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2089 # AIX install. It has an incompatible calling convention.
2091 elif test $ac_prog = install &&
2092 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2093 # program-specific install script used by HP pwplus--don't use.
2096 ac_cv_path_install="$ac_dir/$ac_prog -c"
2106 if test "${ac_cv_path_install+set}" = set; then
2107 INSTALL=$ac_cv_path_install
2109 # As a last resort, use the slow shell script. We don't cache a
2110 # path for INSTALL within a source directory, because that will
2111 # break other packages using the cache if that directory is
2112 # removed, or if the path is relative.
2113 INSTALL=$ac_install_sh
2116 echo "$as_me:2116: result: $INSTALL" >&5
2117 echo "${ECHO_T}$INSTALL" >&6
2119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2120 # It thinks the first close brace ends the variable substitution.
2121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2131 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2132 test -z "$cf_dir" && cf_dir=.
2133 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2137 for ac_prog in tdlint lint alint splint lclint
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140 set dummy $ac_prog; ac_word=$2
2141 echo "$as_me:2141: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_LINT+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$LINT"; then
2147 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2149 ac_save_IFS=$IFS; IFS=$ac_path_separator
2151 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 $as_executable_p "$ac_dir/$ac_word" || continue
2155 ac_cv_prog_LINT="$ac_prog"
2156 echo "$as_me:2156: found $ac_dir/$ac_word" >&5
2162 LINT=$ac_cv_prog_LINT
2163 if test -n "$LINT"; then
2164 echo "$as_me:2164: result: $LINT" >&5
2165 echo "${ECHO_T}$LINT" >&6
2167 echo "$as_me:2167: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2171 test -n "$LINT" && break
2174 echo "$as_me:2174: checking if filesystem supports mixed-case filenames" >&5
2175 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2176 if test "${cf_cv_mixedcase+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test "$cross_compiling" = yes ; then
2181 case $target_alias in #(vi
2182 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2190 rm -f conftest CONFTEST
2192 if test -f CONFTEST ; then
2197 rm -f conftest CONFTEST
2201 echo "$as_me:2201: result: $cf_cv_mixedcase" >&5
2202 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2203 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2204 #define MIXEDCASE_FILENAMES 1
2207 for ac_prog in exctags ctags
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 echo "$as_me:2211: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CTAGS+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CTAGS"; then
2217 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2219 ac_save_IFS=$IFS; IFS=$ac_path_separator
2221 for ac_dir in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir=.
2224 $as_executable_p "$ac_dir/$ac_word" || continue
2225 ac_cv_prog_CTAGS="$ac_prog"
2226 echo "$as_me:2226: found $ac_dir/$ac_word" >&5
2232 CTAGS=$ac_cv_prog_CTAGS
2233 if test -n "$CTAGS"; then
2234 echo "$as_me:2234: result: $CTAGS" >&5
2235 echo "${ECHO_T}$CTAGS" >&6
2237 echo "$as_me:2237: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$CTAGS" && break
2244 for ac_prog in exetags etags
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 echo "$as_me:2248: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_ETAGS+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$ETAGS"; then
2254 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2256 ac_save_IFS=$IFS; IFS=$ac_path_separator
2258 for ac_dir in $ac_dummy; do
2260 test -z "$ac_dir" && ac_dir=.
2261 $as_executable_p "$ac_dir/$ac_word" || continue
2262 ac_cv_prog_ETAGS="$ac_prog"
2263 echo "$as_me:2263: found $ac_dir/$ac_word" >&5
2269 ETAGS=$ac_cv_prog_ETAGS
2270 if test -n "$ETAGS"; then
2271 echo "$as_me:2271: result: $ETAGS" >&5
2272 echo "${ECHO_T}$ETAGS" >&6
2274 echo "$as_me:2274: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$ETAGS" && break
2281 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2282 set dummy ${CTAGS:-ctags}; ac_word=$2
2283 echo "$as_me:2283: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$MAKE_LOWER_TAGS"; then
2289 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2291 ac_save_IFS=$IFS; IFS=$ac_path_separator
2293 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 $as_executable_p "$ac_dir/$ac_word" || continue
2297 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2298 echo "$as_me:2298: found $ac_dir/$ac_word" >&5
2302 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2305 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2306 if test -n "$MAKE_LOWER_TAGS"; then
2307 echo "$as_me:2307: result: $MAKE_LOWER_TAGS" >&5
2308 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2310 echo "$as_me:2310: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2314 if test "$cf_cv_mixedcase" = yes ; then
2315 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2316 set dummy ${ETAGS:-etags}; 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_UPPER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$MAKE_UPPER_TAGS"; then
2323 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_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_UPPER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2336 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2339 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2340 if test -n "$MAKE_UPPER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_UPPER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2352 if test "$MAKE_UPPER_TAGS" = yes ; then
2358 if test "$MAKE_LOWER_TAGS" = yes ; then
2364 echo "$as_me:2364: checking if -lm needed for math functions" >&5
2365 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2366 if test "${cf_cv_need_libm+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line 2371 "configure"
2372 #include "confdefs.h"
2380 double x = rand(); printf("result = %g\n", sin(x))
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:2386: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2389 echo "$as_me:2389: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest$ac_exeext'
2392 { (eval echo "$as_me:2392: \"$ac_try\"") >&5
2395 echo "$as_me:2395: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2405 echo "$as_me:2405: result: $cf_cv_need_libm" >&5
2406 echo "${ECHO_T}$cf_cv_need_libm" >&6
2407 if test "$cf_cv_need_libm" = yes
2415 CC_SHARED_OPTS=unknown
2416 CPPFLAGS="$CPPFLAGS"
2418 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2419 DFT_UPR_MODEL="NORMAL"
2436 TINFO_LIBS='$(LIBS_CURSES)'
2437 cf_cv_abi_version=""
2438 cf_cv_rel_version=""
2443 # This should have been defined by AC_PROG_CC
2446 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2447 # into CC. This will not help with broken scripts that wrap the compiler with
2448 # options, but eliminates a more common category of user confusion.
2449 echo "$as_me:2449: checking \$CC variable" >&5
2450 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2453 echo "$as_me:2453: result: broken" >&5
2454 echo "${ECHO_T}broken" >&6
2455 { echo "$as_me:2455: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2456 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2458 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2459 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2464 cf_new_extra_cppflags=
2466 for cf_add_cflags in $cf_flags
2468 case $cf_fix_cppflags in
2470 case $cf_add_cflags in #(vi
2471 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2472 case $cf_add_cflags in
2474 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2476 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2477 && test -z "${cf_tst_cflags}" \
2478 && cf_fix_cppflags=yes
2480 if test $cf_fix_cppflags = yes ; then
2481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2483 elif test "${cf_tst_cflags}" = "\"'" ; then
2484 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2490 *$cf_add_cflags) #(vi
2493 case $cf_add_cflags in #(vi
2495 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2497 CPPFLAGS=`echo "$CPPFLAGS" | \
2498 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2499 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2503 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2508 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2513 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2515 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2517 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2518 && test -z "${cf_tst_cflags}" \
2519 && cf_fix_cppflags=no
2524 if test -n "$cf_new_cflags" ; then
2526 CFLAGS="$CFLAGS $cf_new_cflags"
2529 if test -n "$cf_new_cppflags" ; then
2531 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2534 if test -n "$cf_new_extra_cppflags" ; then
2536 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2541 echo "$as_me:2541: result: ok" >&5
2542 echo "${ECHO_T}ok" >&6
2546 echo "$as_me:2546: checking for ${CC:-cc} option to accept ANSI C" >&5
2547 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2548 if test "${cf_cv_ansi_cc+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 cf_save_CFLAGS="$CFLAGS"
2554 cf_save_CPPFLAGS="$CPPFLAGS"
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX -qlanglvl=ansi
2558 # Ultrix and OSF/1 -std1
2559 # HP-UX -Aa -D_HPUX_SOURCE
2561 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2562 for cf_arg in "-DCC_HAS_PROTOS" \
2567 "-Aa -D_HPUX_SOURCE" \
2574 cf_new_extra_cppflags=
2576 for cf_add_cflags in $cf_arg
2578 case $cf_fix_cppflags in
2580 case $cf_add_cflags in #(vi
2581 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2582 case $cf_add_cflags in
2584 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2586 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2587 && test -z "${cf_tst_cflags}" \
2588 && cf_fix_cppflags=yes
2590 if test $cf_fix_cppflags = yes ; then
2591 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2593 elif test "${cf_tst_cflags}" = "\"'" ; then
2594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2600 *$cf_add_cflags) #(vi
2603 case $cf_add_cflags in #(vi
2605 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2607 CPPFLAGS=`echo "$CPPFLAGS" | \
2608 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2609 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2613 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2618 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2623 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2625 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2627 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2628 && test -z "${cf_tst_cflags}" \
2629 && cf_fix_cppflags=no
2634 if test -n "$cf_new_cflags" ; then
2636 CFLAGS="$CFLAGS $cf_new_cflags"
2639 if test -n "$cf_new_cppflags" ; then
2641 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2644 if test -n "$cf_new_extra_cppflags" ; then
2646 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line 2650 "configure"
2651 #include "confdefs.h"
2653 #ifndef CC_HAS_PROTOS
2654 #if !defined(__STDC__) || (__STDC__ != 1)
2663 int test (int i, double x);
2664 struct s1 {int (*f) (int a);};
2665 struct s2 {int (*f) (double a);};
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:2671: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>&5
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:2677: \"$ac_try\"") >&5
2680 echo "$as_me:2680: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 cf_cv_ansi_cc="$cf_arg"; break
2684 echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 rm -f conftest.$ac_objext conftest.$ac_ext
2689 CFLAGS="$cf_save_CFLAGS"
2690 CPPFLAGS="$cf_save_CPPFLAGS"
2693 echo "$as_me:2693: result: $cf_cv_ansi_cc" >&5
2694 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2696 if test "$cf_cv_ansi_cc" != "no"; then
2697 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2702 cf_new_extra_cppflags=
2704 for cf_add_cflags in $cf_cv_ansi_cc
2706 case $cf_fix_cppflags in
2708 case $cf_add_cflags in #(vi
2709 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2710 case $cf_add_cflags in
2712 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2714 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2715 && test -z "${cf_tst_cflags}" \
2716 && cf_fix_cppflags=yes
2718 if test $cf_fix_cppflags = yes ; then
2719 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2721 elif test "${cf_tst_cflags}" = "\"'" ; then
2722 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2728 *$cf_add_cflags) #(vi
2731 case $cf_add_cflags in #(vi
2733 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2735 CPPFLAGS=`echo "$CPPFLAGS" | \
2736 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2737 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2741 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2746 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2751 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2753 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2755 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2756 && test -z "${cf_tst_cflags}" \
2757 && cf_fix_cppflags=no
2762 if test -n "$cf_new_cflags" ; then
2764 CFLAGS="$CFLAGS $cf_new_cflags"
2767 if test -n "$cf_new_cppflags" ; then
2769 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2772 if test -n "$cf_new_extra_cppflags" ; then
2774 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2778 cat >>confdefs.h <<\EOF
2779 #define CC_HAS_PROTOS 1
2785 if test "$cf_cv_ansi_cc" = "no"; then
2786 { { echo "$as_me:2786: error: Your compiler does not appear to recognize prototypes.
2787 You have the following choices:
2788 a. adjust your compiler options
2789 b. get an up-to-date compiler
2790 c. use a wrapper such as unproto" >&5
2791 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2792 You have the following choices:
2793 a. adjust your compiler options
2794 b. get an up-to-date compiler
2795 c. use a wrapper such as unproto" >&2;}
2796 { (exit 1); exit 1; }; }
2799 if test "$GCC" = yes
2801 cat > conftest.i <<EOF
2803 #define GCC_PRINTF 0
2808 #ifndef GCC_NORETURN
2809 #define GCC_NORETURN /* nothing */
2812 #define GCC_UNUSED /* nothing */
2815 if test "$GCC" = yes
2817 { echo "$as_me:2817: checking for $CC __attribute__ directives..." >&5
2818 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2820 "${as_me:-configure}"
2821 #include "confdefs.h"
2822 #include "conftest.h"
2823 #include "conftest.i"
2825 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2827 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2830 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2832 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2834 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2835 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2836 extern void foo(void) GCC_NORETURN;
2837 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2839 cf_printf_attribute=no
2840 cf_scanf_attribute=no
2841 for cf_attribute in scanf printf unused noreturn
2844 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2846 cf_directive="__attribute__(($cf_attribute))"
2847 echo "checking for $CC $cf_directive" 1>&5
2849 case $cf_attribute in #(vi
2851 cf_printf_attribute=yes
2852 cat >conftest.h <<EOF
2853 #define GCC_$cf_ATTRIBUTE 1
2857 cf_scanf_attribute=yes
2858 cat >conftest.h <<EOF
2859 #define GCC_$cf_ATTRIBUTE 1
2863 cat >conftest.h <<EOF
2864 #define GCC_$cf_ATTRIBUTE $cf_directive
2869 if { (eval echo "$as_me:2869: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>&5
2872 echo "$as_me:2872: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 test -n "$verbose" && echo "$as_me:2874: result: ... $cf_attribute" >&5
2875 echo "${ECHO_T}... $cf_attribute" >&6
2876 cat conftest.h >>confdefs.h
2877 case $cf_attribute in #(vi
2879 if test "$cf_printf_attribute" = no ; then
2880 cat >>confdefs.h <<EOF
2881 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2884 cat >>confdefs.h <<EOF
2885 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2890 if test "$cf_scanf_attribute" = no ; then
2891 cat >>confdefs.h <<EOF
2892 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2895 cat >>confdefs.h <<EOF
2896 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2904 fgrep define conftest.i >>confdefs.h
2910 cf_POSIX_C_SOURCE=199506L
2913 case $host_os in #(vi
2915 cf_xopen_source="-D_ALL_SOURCE"
2921 cf_xopen_source="-D_APPLE_C_SOURCE"
2924 cf_xopen_source="-D_DARWIN_C_SOURCE"
2926 freebsd*|dragonfly*) #(vi
2927 # 5.x headers associate
2928 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2929 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2930 cf_POSIX_C_SOURCE=200112L
2932 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2935 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2938 cf_xopen_source="-D_HPUX_SOURCE"
2941 cf_xopen_source="-D_SGI_SOURCE"
2943 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2945 echo "$as_me:2945: checking if we must define _GNU_SOURCE" >&5
2946 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2947 if test "${cf_cv_gnu_source+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line 2952 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2959 #ifndef _XOPEN_SOURCE
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:2967: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:2973: \"$ac_try\"") >&5
2976 echo "$as_me:2976: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 echo "$as_me: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2992 #ifdef _XOPEN_SOURCE
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:3000: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (eval echo "$as_me:3006: \"$ac_try\"") >&5
3009 echo "$as_me:3009: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 cf_cv_gnu_source=yes
3017 rm -f conftest.$ac_objext conftest.$ac_ext
3021 rm -f conftest.$ac_objext conftest.$ac_ext
3024 echo "$as_me:3024: result: $cf_cv_gnu_source" >&5
3025 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3026 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3030 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
3033 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3036 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3039 cf_xopen_source="-D_OSF_SOURCE"
3042 cf_xopen_source="-D_QNX_SOURCE"
3045 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3047 solaris2.1[0-9]) #(vi
3048 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3050 solaris2.[1-9]) #(vi
3051 cf_xopen_source="-D__EXTENSIONS__"
3054 echo "$as_me:3054: checking if we should define _XOPEN_SOURCE" >&5
3055 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3056 if test "${cf_cv_xopen_source+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3068 #ifndef _XOPEN_SOURCE
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:3076: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>&5
3079 echo "$as_me:3079: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:3082: \"$ac_try\"") >&5
3085 echo "$as_me:3085: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 cf_cv_xopen_source=no
3089 echo "$as_me: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3092 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line 3094 "configure"
3095 #include "confdefs.h"
3096 #include <sys/types.h>
3101 #ifdef _XOPEN_SOURCE
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:3109: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>&5
3112 echo "$as_me:3112: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (eval echo "$as_me:3115: \"$ac_try\"") >&5
3118 echo "$as_me:3118: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 cf_cv_xopen_source=no
3122 echo "$as_me: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3126 rm -f conftest.$ac_objext conftest.$ac_ext
3130 rm -f conftest.$ac_objext conftest.$ac_ext
3133 echo "$as_me:3133: result: $cf_cv_xopen_source" >&5
3134 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3135 if test "$cf_cv_xopen_source" != no ; then
3137 CFLAGS=`echo "$CFLAGS" | \
3138 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3139 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3141 CPPFLAGS=`echo "$CPPFLAGS" | \
3142 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3143 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3145 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3150 cf_new_extra_cppflags=
3152 for cf_add_cflags in $cf_temp_xopen_source
3154 case $cf_fix_cppflags in
3156 case $cf_add_cflags in #(vi
3157 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3158 case $cf_add_cflags in
3160 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3162 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3163 && test -z "${cf_tst_cflags}" \
3164 && cf_fix_cppflags=yes
3166 if test $cf_fix_cppflags = yes ; then
3167 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3169 elif test "${cf_tst_cflags}" = "\"'" ; then
3170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3176 *$cf_add_cflags) #(vi
3179 case $cf_add_cflags in #(vi
3181 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3183 CPPFLAGS=`echo "$CPPFLAGS" | \
3184 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3185 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3189 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3194 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3199 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3201 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3203 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3204 && test -z "${cf_tst_cflags}" \
3205 && cf_fix_cppflags=no
3210 if test -n "$cf_new_cflags" ; then
3212 CFLAGS="$CFLAGS $cf_new_cflags"
3215 if test -n "$cf_new_cppflags" ; then
3217 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3220 if test -n "$cf_new_extra_cppflags" ; then
3222 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3227 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3229 cf_save_CFLAGS="$CFLAGS"
3230 cf_save_CPPFLAGS="$CPPFLAGS"
3232 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3233 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3234 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3236 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3237 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3238 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3240 echo "$as_me:3240: checking if we should define _POSIX_C_SOURCE" >&5
3241 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3242 if test "${cf_cv_posix_c_source+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 echo "${as_me:-configure}:3246: testing if the symbol is already defined go no further ..." 1>&5
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line 3249 "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3256 #ifndef _POSIX_C_SOURCE
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:3264: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:3270: \"$ac_try\"") >&5
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 cf_cv_posix_c_source=no
3277 echo "$as_me: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 cf_want_posix_source=no
3280 case .$cf_POSIX_C_SOURCE in #(vi
3282 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3285 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3286 cf_want_posix_source=yes
3289 cf_want_posix_source=yes
3292 if test "$cf_want_posix_source" = yes ; then
3293 cat >conftest.$ac_ext <<_ACEOF
3294 #line 3294 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3301 #ifdef _POSIX_SOURCE
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:3309: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:3312: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:3315: \"$ac_try\"") >&5
3318 echo "$as_me:3318: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3322 echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3326 rm -f conftest.$ac_objext conftest.$ac_ext
3329 echo "${as_me:-configure}:3329: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3331 CFLAGS="$cf_trim_CFLAGS"
3332 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3334 echo "${as_me:-configure}:3334: testing if the second compile does not leave our definition intact error ..." 1>&5
3336 cat >conftest.$ac_ext <<_ACEOF
3337 #line 3337 "configure"
3338 #include "confdefs.h"
3339 #include <sys/types.h>
3344 #ifndef _POSIX_C_SOURCE
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:3352: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:3355: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:3358: \"$ac_try\"") >&5
3361 echo "$as_me:3361: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 cf_cv_posix_c_source=no
3369 rm -f conftest.$ac_objext conftest.$ac_ext
3370 CFLAGS="$cf_save_CFLAGS"
3371 CPPFLAGS="$cf_save_CPPFLAGS"
3374 rm -f conftest.$ac_objext conftest.$ac_ext
3377 echo "$as_me:3377: result: $cf_cv_posix_c_source" >&5
3378 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3380 if test "$cf_cv_posix_c_source" != no ; then
3381 CFLAGS="$cf_trim_CFLAGS"
3382 CPPFLAGS="$cf_trim_CPPFLAGS"
3387 cf_new_extra_cppflags=
3389 for cf_add_cflags in $cf_cv_posix_c_source
3391 case $cf_fix_cppflags in
3393 case $cf_add_cflags in #(vi
3394 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3395 case $cf_add_cflags in
3397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3399 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3400 && test -z "${cf_tst_cflags}" \
3401 && cf_fix_cppflags=yes
3403 if test $cf_fix_cppflags = yes ; then
3404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3406 elif test "${cf_tst_cflags}" = "\"'" ; then
3407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3413 *$cf_add_cflags) #(vi
3416 case $cf_add_cflags in #(vi
3418 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3420 CPPFLAGS=`echo "$CPPFLAGS" | \
3421 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3422 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3426 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3431 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3436 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3438 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3440 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3441 && test -z "${cf_tst_cflags}" \
3442 && cf_fix_cppflags=no
3447 if test -n "$cf_new_cflags" ; then
3449 CFLAGS="$CFLAGS $cf_new_cflags"
3452 if test -n "$cf_new_cppflags" ; then
3454 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3457 if test -n "$cf_new_extra_cppflags" ; then
3459 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3467 if test -n "$cf_xopen_source" ; then
3472 cf_new_extra_cppflags=
3474 for cf_add_cflags in $cf_xopen_source
3476 case $cf_fix_cppflags in
3478 case $cf_add_cflags in #(vi
3479 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3480 case $cf_add_cflags in
3482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3484 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3485 && test -z "${cf_tst_cflags}" \
3486 && cf_fix_cppflags=yes
3488 if test $cf_fix_cppflags = yes ; then
3489 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3491 elif test "${cf_tst_cflags}" = "\"'" ; then
3492 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3498 *$cf_add_cflags) #(vi
3501 case $cf_add_cflags in #(vi
3503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3505 CPPFLAGS=`echo "$CPPFLAGS" | \
3506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3511 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3516 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3521 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3523 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3525 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3526 && test -z "${cf_tst_cflags}" \
3527 && cf_fix_cppflags=no
3532 if test -n "$cf_new_cflags" ; then
3534 CFLAGS="$CFLAGS $cf_new_cflags"
3537 if test -n "$cf_new_cppflags" ; then
3539 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3542 if test -n "$cf_new_extra_cppflags" ; then
3544 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3549 echo "$as_me:3549: checking for $CC option to accept ANSI C" >&5
3550 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3551 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_cv_prog_cc_stdc=no
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #line 3557 "configure"
3558 #include "confdefs.h"
3561 #include <sys/types.h>
3562 #include <sys/stat.h>
3563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3564 struct buf { int x; };
3565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3566 static char *e (p, i)
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3577 s = g (p, va_arg (v,int));
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 # Don't try gcc -ansi; that turns off useful extensions and
3596 # breaks some systems' header files.
3597 # AIX -qlanglvl=ansi
3598 # Ultrix and OSF/1 -std1
3599 # HP-UX 10.20 and later -Ae
3600 # HP-UX older versions -Aa -D_HPUX_SOURCE
3601 # SVR4 -Xc -D__EXTENSIONS__
3602 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 CC="$ac_save_CC $ac_arg"
3605 rm -f conftest.$ac_objext
3606 if { (eval echo "$as_me:3606: \"$ac_compile\"") >&5
3607 (eval $ac_compile) 2>&5
3609 echo "$as_me:3609: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:3612: \"$ac_try\"") >&5
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_prog_cc_stdc=$ac_arg
3620 echo "$as_me: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 rm -f conftest.$ac_objext
3625 rm -f conftest.$ac_ext conftest.$ac_objext
3630 case "x$ac_cv_prog_cc_stdc" in
3632 echo "$as_me:3632: result: none needed" >&5
3633 echo "${ECHO_T}none needed" >&6 ;;
3635 echo "$as_me:3635: result: $ac_cv_prog_cc_stdc" >&5
3636 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3637 CC="$CC $ac_cv_prog_cc_stdc" ;;
3640 echo "$as_me:3640: checking for an ANSI C-conforming const" >&5
3641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3642 if test "${ac_cv_c_const+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line 3646 "configure"
3647 #include "confdefs.h"
3652 /* FIXME: Include the comments suggested by Paul. */
3654 /* Ultrix mips cc rejects this. */
3655 typedef int charset[2];
3657 /* SunOS 4.1.1 cc rejects this. */
3658 char const *const *ccp;
3660 /* NEC SVR4.0.2 mips cc rejects this. */
3661 struct point {int x, y;};
3662 static struct point const zero = {0,0};
3663 /* AIX XL C 1.02.0.0 rejects this.
3664 It does not let you subtract one const X* pointer from another in
3665 an arm of an if-expression whose if-part is not a constant
3667 const char *g = "string";
3668 ccp = &g + (g ? g-g : 0);
3669 /* HPUX 7.0 cc rejects these. */
3672 ccp = (char const *const *) p;
3673 { /* SCO 3.2v4 cc rejects this. */
3675 char const *s = 0 ? (char *) 0 : (char const *) 0;
3679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3681 const int *foo = &x[0];
3684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3685 typedef const int *iptr;
3689 { /* AIX XL C 1.02.0.0 rejects this saying
3690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3691 struct s { int j; const int *ap[3]; };
3692 struct s *b; b->j = 5;
3694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:3704: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:3707: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:3710: \"$ac_try\"") >&5
3713 echo "$as_me:3713: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3721 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:3723: result: $ac_cv_c_const" >&5
3724 echo "${ECHO_T}$ac_cv_c_const" >&6
3725 if test $ac_cv_c_const = no; then
3727 cat >>confdefs.h <<\EOF
3733 echo "$as_me:3733: checking for signal global datatype" >&5
3734 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3735 if test "${cf_cv_sig_atomic_t+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 "volatile sig_atomic_t" \
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3748 #include <sys/types.h>
3754 static void handler(int sig)
3761 signal(SIGINT, handler);
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 cf_cv_sig_atomic_t=$cf_type
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 cf_cv_sig_atomic_t=no
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3786 test "$cf_cv_sig_atomic_t" != no && break
3791 echo "$as_me:3791: result: $cf_cv_sig_atomic_t" >&5
3792 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3793 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3794 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3797 echo "$as_me:3797: checking if you want to see long compiling messages" >&5
3798 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3800 # Check whether --enable-echo or --disable-echo was given.
3801 if test "${enable_echo+set}" = set; then
3802 enableval="$enable_echo"
3803 test "$enableval" != no && enableval=yes
3804 if test "$enableval" != "yes" ; then
3807 ECHO_LD='@echo linking $@;'
3808 RULE_CC='@echo compiling $<'
3809 SHOW_CC='@echo compiling $@'
3831 echo "$as_me:3831: result: $enableval" >&5
3832 echo "${ECHO_T}$enableval" >&6
3835 if test "$GCC" = yes ; then
3836 echo "$as_me:3836: checking version of $CC" >&5
3837 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3838 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3839 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3840 echo "$as_me:3840: result: $GCC_VERSION" >&5
3841 echo "${ECHO_T}$GCC_VERSION" >&6
3844 if ( test "$GCC" = yes || test "$GXX" = yes )
3846 echo "$as_me:3846: checking if you want to turn on gcc warnings" >&5
3847 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3849 # Check whether --enable-warnings or --disable-warnings was given.
3850 if test "${enable_warnings+set}" = set; then
3851 enableval="$enable_warnings"
3852 test "$enableval" != yes && enableval=no
3853 if test "$enableval" != "no" ; then
3863 echo "$as_me:3863: result: $with_warnings" >&5
3864 echo "${ECHO_T}$with_warnings" >&6
3865 if test "$with_warnings" = "yes"
3868 if test "$GCC" = yes
3870 cat > conftest.i <<EOF
3872 #define GCC_PRINTF 0
3877 #ifndef GCC_NORETURN
3878 #define GCC_NORETURN /* nothing */
3881 #define GCC_UNUSED /* nothing */
3884 if test "$GCC" = yes
3886 { echo "$as_me:3886: checking for $CC __attribute__ directives..." >&5
3887 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3889 "${as_me:-configure}"
3890 #include "confdefs.h"
3891 #include "conftest.h"
3892 #include "conftest.i"
3894 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3896 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3899 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3901 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3903 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3904 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3905 extern void foo(void) GCC_NORETURN;
3906 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3908 cf_printf_attribute=no
3909 cf_scanf_attribute=no
3910 for cf_attribute in scanf printf unused noreturn
3913 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3915 cf_directive="__attribute__(($cf_attribute))"
3916 echo "checking for $CC $cf_directive" 1>&5
3918 case $cf_attribute in #(vi
3920 cf_printf_attribute=yes
3921 cat >conftest.h <<EOF
3922 #define GCC_$cf_ATTRIBUTE 1
3926 cf_scanf_attribute=yes
3927 cat >conftest.h <<EOF
3928 #define GCC_$cf_ATTRIBUTE 1
3932 cat >conftest.h <<EOF
3933 #define GCC_$cf_ATTRIBUTE $cf_directive
3938 if { (eval echo "$as_me:3938: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>&5
3941 echo "$as_me:3941: \$? = $ac_status" >&5
3942 (exit $ac_status); }; then
3943 test -n "$verbose" && echo "$as_me:3943: result: ... $cf_attribute" >&5
3944 echo "${ECHO_T}... $cf_attribute" >&6
3945 cat conftest.h >>confdefs.h
3946 case $cf_attribute in #(vi
3948 if test "$cf_printf_attribute" = no ; then
3949 cat >>confdefs.h <<EOF
3950 #define GCC_PRINTFLIKE(fmt,var) /* nothing */