2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20120811.
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 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
657 --disable-echo display "compiling" commands
658 --enable-warnings test: turn on gcc compiler warnings
659 --with-dmalloc test: use Gray Watson's dmalloc library
660 --with-dbmalloc test: use Conor Cahill's dbmalloc library
661 --with-valgrind test: use valgrind
662 --disable-leaks test: free permanent memory, analyze leaks
663 --disable-widec disable checks for wide-character functions
664 --with-curses-dir=DIR directory in which (n)curses is installed
665 --with-ncursesw use wide ncurses-libraries
666 --with-ncurses use ncurses-libraries
667 --with-pdcurses compile/link with pdcurses X11 library
668 --with-curses-colr compile/link with HPUX 10.x color-curses
669 --with-curses-5lib compile/link with SunOS 5lib curses
670 --with-Xaw3d link with Xaw 3d library
671 --with-neXtaw link with neXT Athena library
672 --with-XawPlus link with Athena-Plus library
673 --with-pkg-config{=path} enable/disable use of pkg-config
674 --with-x use the X Window System
675 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
676 --disable-rpath-hack don't add rpath options for additional libraries
678 Some influential environment variables:
679 CC C compiler command
680 CFLAGS C compiler flags
681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
682 nonstandard directory <lib dir>
683 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
684 headers in a nonstandard directory <include dir>
687 Use these variables to override the choices made by `configure' or to help
688 it to find libraries and programs with nonstandard names/locations.
693 if test "$ac_init_help" = "recursive"; then
694 # If there are subdirs, report their specific --help.
696 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
698 # A "../" for each directory in /$ac_subdir.
699 ac_dots=`echo $ac_subdir |
700 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
703 .) # No --srcdir option. We are building in place.
704 ac_sub_srcdir=$srcdir ;;
705 [\\/]* | ?:[\\/]* ) # Absolute path.
706 ac_sub_srcdir=$srcdir/$ac_subdir ;;
708 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
711 # Check for guested configure; otherwise get Cygnus style configure.
712 if test -f $ac_sub_srcdir/configure.gnu; then
714 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
715 elif test -f $ac_sub_srcdir/configure; then
717 $SHELL $ac_sub_srcdir/configure --help=recursive
718 elif test -f $ac_sub_srcdir/configure.ac ||
719 test -f $ac_sub_srcdir/configure.in; then
723 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
729 test -n "$ac_init_help" && exit 0
730 if $ac_init_version; then
733 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
734 Free Software Foundation, Inc.
735 This configure script is free software; the Free Software Foundation
736 gives unlimited permission to copy, distribute and modify it.
742 This file contains any messages produced by compilers while
743 running configure, to aid debugging if configure makes a mistake.
745 It was created by $as_me, which was
746 generated by GNU Autoconf 2.52.20120811. Invocation command line was
757 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
758 uname -m = `(uname -m) 2>/dev/null || echo unknown`
759 uname -r = `(uname -r) 2>/dev/null || echo unknown`
760 uname -s = `(uname -s) 2>/dev/null || echo unknown`
761 uname -v = `(uname -v) 2>/dev/null || echo unknown`
763 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
764 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
766 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
767 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
768 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
769 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
770 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
771 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
772 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
786 # Keep a trace of the command line.
787 # Strip out --no-create and --no-recursion so they do not pile up.
788 # Also quote any args containing shell meta-characters.
794 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
795 | --no-cr | --no-c) ;;
796 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
797 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
798 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
799 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
800 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
802 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
805 # Get rid of the leading space.
808 # When interrupted or exit'd, cleanup temporary files, and complete
809 # config.log. We remove comments because anyway the quotes in there
810 # would cause problems or look ugly.
812 # Save into config.log some information that might help in debugging.
814 echo "## ----------------- ##" >&5
815 echo "## Cache variables. ##" >&5
816 echo "## ----------------- ##" >&5
818 # The following way of writing the cache mishandles newlines in values,
821 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
824 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
829 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
833 sed "/^$/d" confdefs.h >conftest.log
834 if test -s conftest.log; then
836 echo "## ------------ ##" >&5
837 echo "## confdefs.h. ##" >&5
838 echo "## ------------ ##" >&5
843 test "$ac_signal" != 0 &&
844 echo "$as_me: caught signal $ac_signal" >&5
845 echo "$as_me: exit $exit_status" >&5
846 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
849 for ac_signal in 1 2 13 15; do
850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
855 rm -rf conftest* confdefs.h
856 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
859 # Let the site file select an alternate cache file if it wants to.
860 # Prefer explicitly selected file to automatically selected ones.
861 if test -z "$CONFIG_SITE"; then
862 if test "x$prefix" != xNONE; then
863 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
865 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
868 for ac_site_file in $CONFIG_SITE; do
869 if test -r "$ac_site_file"; then
870 { echo "$as_me:870: loading site script $ac_site_file" >&5
871 echo "$as_me: loading site script $ac_site_file" >&6;}
872 cat "$ac_site_file" >&5
877 if test -r "$cache_file"; then
878 # Some versions of bash will fail to source /dev/null (special
879 # files actually), so we avoid doing that.
880 if test -f "$cache_file"; then
881 { echo "$as_me:881: loading cache $cache_file" >&5
882 echo "$as_me: loading cache $cache_file" >&6;}
884 [\\/]* | ?:[\\/]* ) . $cache_file;;
889 { echo "$as_me:889: creating cache $cache_file" >&5
890 echo "$as_me: creating cache $cache_file" >&6;}
894 # Check that the precious variables saved in the cache have kept the same
896 ac_cache_corrupted=false
897 for ac_var in `(set) 2>&1 |
898 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
899 eval ac_old_set=\$ac_cv_env_${ac_var}_set
900 eval ac_new_set=\$ac_env_${ac_var}_set
901 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
902 eval ac_new_val="\$ac_env_${ac_var}_value"
903 case $ac_old_set,$ac_new_set in
905 { echo "$as_me:905: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
906 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
907 ac_cache_corrupted=: ;;
909 { echo "$as_me:909: error: \`$ac_var' was not set in the previous run" >&5
910 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
911 ac_cache_corrupted=: ;;
914 if test "x$ac_old_val" != "x$ac_new_val"; then
915 { echo "$as_me:915: error: \`$ac_var' has changed since the previous run:" >&5
916 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
917 { echo "$as_me:917: former value: $ac_old_val" >&5
918 echo "$as_me: former value: $ac_old_val" >&2;}
919 { echo "$as_me:919: current value: $ac_new_val" >&5
920 echo "$as_me: current value: $ac_new_val" >&2;}
924 # Pass precious variables to config.status. It doesn't matter if
925 # we pass some twice (in addition to the command line arguments).
926 if test "$ac_new_set" = set; then
928 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
929 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
930 ac_configure_args="$ac_configure_args '$ac_arg'"
932 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
937 if $ac_cache_corrupted; then
938 { echo "$as_me:938: error: changes in the environment can compromise the build" >&5
939 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
940 { { echo "$as_me:940: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
941 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
942 { (exit 1); exit 1; }; }
946 ac_cpp='$CPP $CPPFLAGS'
947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
950 ac_main_return=return
952 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
953 *c*,-n*) ECHO_N= ECHO_C='
955 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
956 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
958 echo "#! $SHELL" >conftest.sh
959 echo "exit 0" >>conftest.sh
961 if { (echo "$as_me:961: PATH=\".;.\"; conftest.sh") >&5
962 (PATH=".;."; conftest.sh) 2>&5
964 echo "$as_me:964: \$? = $ac_status" >&5
965 (exit $ac_status); }; then
966 ac_path_separator=';'
970 PATH_SEPARATOR="$ac_path_separator"
973 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
975 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
977 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
980 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
981 if test -f $ac_dir/install-sh; then
983 ac_install_sh="$ac_aux_dir/install-sh -c"
985 elif test -f $ac_dir/install.sh; then
987 ac_install_sh="$ac_aux_dir/install.sh -c"
989 elif test -f $ac_dir/shtool; then
991 ac_install_sh="$ac_aux_dir/shtool install -c"
995 if test -z "$ac_aux_dir"; then
996 { { echo "$as_me:996: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
997 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
998 { (exit 1); exit 1; }; }
1000 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1001 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1002 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1004 # Make sure we can run config.sub.
1005 $ac_config_sub sun4 >/dev/null 2>&1 ||
1006 { { echo "$as_me:1006: error: cannot run $ac_config_sub" >&5
1007 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1008 { (exit 1); exit 1; }; }
1010 echo "$as_me:1010: checking build system type" >&5
1011 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1012 if test "${ac_cv_build+set}" = set; then
1013 echo $ECHO_N "(cached) $ECHO_C" >&6
1015 ac_cv_build_alias=$build_alias
1016 test -z "$ac_cv_build_alias" &&
1017 ac_cv_build_alias=`$ac_config_guess`
1018 test -z "$ac_cv_build_alias" &&
1019 { { echo "$as_me:1019: error: cannot guess build type; you must specify one" >&5
1020 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1021 { (exit 1); exit 1; }; }
1022 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1023 { { echo "$as_me:1023: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1024 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1025 { (exit 1); exit 1; }; }
1028 echo "$as_me:1028: result: $ac_cv_build" >&5
1029 echo "${ECHO_T}$ac_cv_build" >&6
1031 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1032 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1033 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1036 echo "$as_me:1036: checking host system type" >&5
1037 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1038 if test "${ac_cv_host+set}" = set; then
1039 echo $ECHO_N "(cached) $ECHO_C" >&6
1041 ac_cv_host_alias=$host_alias
1042 test -z "$ac_cv_host_alias" &&
1043 ac_cv_host_alias=$ac_cv_build_alias
1044 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1045 { { echo "$as_me:1045: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1046 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1047 { (exit 1); exit 1; }; }
1050 echo "$as_me:1050: result: $ac_cv_host" >&5
1051 echo "${ECHO_T}$ac_cv_host" >&6
1053 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 system_name="$host_os"
1059 system_name="`(uname -s -r) 2>/dev/null`"
1060 if test -z "$system_name" ; then
1061 system_name="`(hostname) 2>/dev/null`"
1064 test -n "$system_name" && cat >>confdefs.h <<EOF
1065 #define SYSTEM_NAME "$system_name"
1068 if test "${cf_cv_system_name+set}" = set; then
1069 echo $ECHO_N "(cached) $ECHO_C" >&6
1071 cf_cv_system_name="$system_name"
1074 test -z "$system_name" && system_name="$cf_cv_system_name"
1075 test -n "$cf_cv_system_name" && echo "$as_me:1075: result: Configuring for $cf_cv_system_name" >&5
1076 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1078 if test ".$system_name" != ".$cf_cv_system_name" ; then
1079 echo "$as_me:1079: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1080 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1081 { { echo "$as_me:1081: error: \"Please remove config.cache and try again.\"" >&5
1082 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1083 { (exit 1); exit 1; }; }
1086 test "$program_prefix" != NONE &&
1087 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1088 # Use a double $ so make ignores it.
1089 test "$program_suffix" != NONE &&
1090 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1091 # Double any \ or $. echo might interpret backslashes.
1092 # By default was `s,x,x', remove it if useless.
1093 cat <<\_ACEOF >conftest.sed
1094 s/[\\$]/&&/g;s/;s,x,x,$//
1096 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1099 echo "$as_me:1099: checking whether ${MAKE-make} sets \${MAKE}" >&5
1100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1103 echo $ECHO_N "(cached) $ECHO_C" >&6
1105 cat >conftest.make <<\EOF
1107 @echo 'ac_maketemp="${MAKE}"'
1109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1111 if test -n "$ac_maketemp"; then
1112 eval ac_cv_prog_make_${ac_make}_set=yes
1114 eval ac_cv_prog_make_${ac_make}_set=no
1118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1119 echo "$as_me:1119: result: yes" >&5
1120 echo "${ECHO_T}yes" >&6
1123 echo "$as_me:1123: result: no" >&5
1124 echo "${ECHO_T}no" >&6
1125 SET_MAKE="MAKE=${MAKE-make}"
1129 ac_cpp='$CPP $CPPFLAGS'
1130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1133 ac_main_return=return
1134 if test -n "$ac_tool_prefix"; then
1135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1137 echo "$as_me:1137: checking for $ac_word" >&5
1138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1139 if test "${ac_cv_prog_CC+set}" = set; then
1140 echo $ECHO_N "(cached) $ECHO_C" >&6
1142 if test -n "$CC"; then
1143 ac_cv_prog_CC="$CC" # Let the user override the test.
1145 ac_save_IFS=$IFS; IFS=$ac_path_separator
1147 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 $as_executable_p "$ac_dir/$ac_word" || continue
1151 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1152 echo "$as_me:1152: found $ac_dir/$ac_word" >&5
1159 if test -n "$CC"; then
1160 echo "$as_me:1160: result: $CC" >&5
1161 echo "${ECHO_T}$CC" >&6
1163 echo "$as_me:1163: result: no" >&5
1164 echo "${ECHO_T}no" >&6
1168 if test -z "$ac_cv_prog_CC"; then
1170 # Extract the first word of "gcc", so it can be a program name with args.
1171 set dummy gcc; ac_word=$2
1172 echo "$as_me:1172: checking for $ac_word" >&5
1173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1175 echo $ECHO_N "(cached) $ECHO_C" >&6
1177 if test -n "$ac_ct_CC"; then
1178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1180 ac_save_IFS=$IFS; IFS=$ac_path_separator
1182 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 $as_executable_p "$ac_dir/$ac_word" || continue
1186 ac_cv_prog_ac_ct_CC="gcc"
1187 echo "$as_me:1187: found $ac_dir/$ac_word" >&5
1193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1194 if test -n "$ac_ct_CC"; then
1195 echo "$as_me:1195: result: $ac_ct_CC" >&5
1196 echo "${ECHO_T}$ac_ct_CC" >&6
1198 echo "$as_me:1198: result: no" >&5
1199 echo "${ECHO_T}no" >&6
1207 if test -z "$CC"; then
1208 if test -n "$ac_tool_prefix"; then
1209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1210 set dummy ${ac_tool_prefix}cc; ac_word=$2
1211 echo "$as_me:1211: checking for $ac_word" >&5
1212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1213 if test "${ac_cv_prog_CC+set}" = set; then
1214 echo $ECHO_N "(cached) $ECHO_C" >&6
1216 if test -n "$CC"; then
1217 ac_cv_prog_CC="$CC" # Let the user override the test.
1219 ac_save_IFS=$IFS; IFS=$ac_path_separator
1221 for ac_dir in $ac_dummy; do
1223 test -z "$ac_dir" && ac_dir=.
1224 $as_executable_p "$ac_dir/$ac_word" || continue
1225 ac_cv_prog_CC="${ac_tool_prefix}cc"
1226 echo "$as_me:1226: found $ac_dir/$ac_word" >&5
1233 if test -n "$CC"; then
1234 echo "$as_me:1234: result: $CC" >&5
1235 echo "${ECHO_T}$CC" >&6
1237 echo "$as_me:1237: result: no" >&5
1238 echo "${ECHO_T}no" >&6
1242 if test -z "$ac_cv_prog_CC"; then
1244 # Extract the first word of "cc", so it can be a program name with args.
1245 set dummy cc; ac_word=$2
1246 echo "$as_me:1246: checking for $ac_word" >&5
1247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 if test -n "$ac_ct_CC"; then
1252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1254 ac_save_IFS=$IFS; IFS=$ac_path_separator
1256 for ac_dir in $ac_dummy; do
1258 test -z "$ac_dir" && ac_dir=.
1259 $as_executable_p "$ac_dir/$ac_word" || continue
1260 ac_cv_prog_ac_ct_CC="cc"
1261 echo "$as_me:1261: found $ac_dir/$ac_word" >&5
1267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1268 if test -n "$ac_ct_CC"; then
1269 echo "$as_me:1269: result: $ac_ct_CC" >&5
1270 echo "${ECHO_T}$ac_ct_CC" >&6
1272 echo "$as_me:1272: result: no" >&5
1273 echo "${ECHO_T}no" >&6
1282 if test -z "$CC"; then
1283 # Extract the first word of "cc", so it can be a program name with args.
1284 set dummy cc; ac_word=$2
1285 echo "$as_me:1285: checking for $ac_word" >&5
1286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287 if test "${ac_cv_prog_CC+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 if test -n "$CC"; then
1291 ac_cv_prog_CC="$CC" # Let the user override the test.
1294 ac_save_IFS=$IFS; IFS=$ac_path_separator
1296 for ac_dir in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir=.
1299 $as_executable_p "$ac_dir/$ac_word" || continue
1300 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1301 ac_prog_rejected=yes
1305 echo "$as_me:1305: found $ac_dir/$ac_word" >&5
1309 if test $ac_prog_rejected = yes; then
1310 # We found a bogon in the path, so make sure we never use it.
1311 set dummy $ac_cv_prog_CC
1313 if test $# != 0; then
1314 # We chose a different compiler from the bogus one.
1315 # However, it has the same basename, so the bogon will be chosen
1316 # first if we set CC to just the basename; use the full file name.
1318 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1326 if test -n "$CC"; then
1327 echo "$as_me:1327: result: $CC" >&5
1328 echo "${ECHO_T}$CC" >&6
1330 echo "$as_me:1330: result: no" >&5
1331 echo "${ECHO_T}no" >&6
1335 if test -z "$CC"; then
1336 if test -n "$ac_tool_prefix"; then
1339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1341 echo "$as_me:1341: checking for $ac_word" >&5
1342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1343 if test "${ac_cv_prog_CC+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 if test -n "$CC"; then
1347 ac_cv_prog_CC="$CC" # Let the user override the test.
1349 ac_save_IFS=$IFS; IFS=$ac_path_separator
1351 for ac_dir in $ac_dummy; do
1353 test -z "$ac_dir" && ac_dir=.
1354 $as_executable_p "$ac_dir/$ac_word" || continue
1355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1356 echo "$as_me:1356: found $ac_dir/$ac_word" >&5
1363 if test -n "$CC"; then
1364 echo "$as_me:1364: result: $CC" >&5
1365 echo "${ECHO_T}$CC" >&6
1367 echo "$as_me:1367: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1371 test -n "$CC" && break
1374 if test -z "$CC"; then
1378 # Extract the first word of "$ac_prog", so it can be a program name with args.
1379 set dummy $ac_prog; ac_word=$2
1380 echo "$as_me:1380: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 if test -n "$ac_ct_CC"; then
1386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1388 ac_save_IFS=$IFS; IFS=$ac_path_separator
1390 for ac_dir in $ac_dummy; do
1392 test -z "$ac_dir" && ac_dir=.
1393 $as_executable_p "$ac_dir/$ac_word" || continue
1394 ac_cv_prog_ac_ct_CC="$ac_prog"
1395 echo "$as_me:1395: found $ac_dir/$ac_word" >&5
1401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1402 if test -n "$ac_ct_CC"; then
1403 echo "$as_me:1403: result: $ac_ct_CC" >&5
1404 echo "${ECHO_T}$ac_ct_CC" >&6
1406 echo "$as_me:1406: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 test -n "$ac_ct_CC" && break
1418 test -z "$CC" && { { echo "$as_me:1418: error: no acceptable cc found in \$PATH" >&5
1419 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1420 { (exit 1); exit 1; }; }
1422 # Provide some information about the compiler.
1423 echo "$as_me:1423:" \
1424 "checking for C compiler version" >&5
1425 ac_compiler=`set X $ac_compile; echo $2`
1426 { (eval echo "$as_me:1426: \"$ac_compiler --version </dev/null >&5\"") >&5
1427 (eval $ac_compiler --version </dev/null >&5) 2>&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }
1431 { (eval echo "$as_me:1431: \"$ac_compiler -v </dev/null >&5\"") >&5
1432 (eval $ac_compiler -v </dev/null >&5) 2>&5
1434 echo "$as_me:1434: \$? = $ac_status" >&5
1435 (exit $ac_status); }
1436 { (eval echo "$as_me:1436: \"$ac_compiler -V </dev/null >&5\"") >&5
1437 (eval $ac_compiler -V </dev/null >&5) 2>&5
1439 echo "$as_me:1439: \$? = $ac_status" >&5
1440 (exit $ac_status); }
1442 cat >conftest.$ac_ext <<_ACEOF
1443 #line 1443 "configure"
1444 #include "confdefs.h"
1454 ac_clean_files_save=$ac_clean_files
1455 ac_clean_files="$ac_clean_files a.out a.exe"
1456 # Try to create an executable without -o first, disregard a.out.
1457 # It will help us diagnose broken compilers, and finding out an intuition
1459 echo "$as_me:1459: checking for C compiler default output" >&5
1460 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1461 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1462 if { (eval echo "$as_me:1462: \"$ac_link_default\"") >&5
1463 (eval $ac_link_default) 2>&5
1465 echo "$as_me:1465: \$? = $ac_status" >&5
1466 (exit $ac_status); }; then
1467 # Find the output, starting from the most likely. This scheme is
1468 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1470 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1471 ls a.out conftest 2>/dev/null;
1472 ls a.* conftest.* 2>/dev/null`; do
1474 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1475 a.out ) # We found the default executable, but exeext='' is most
1478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1479 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1486 echo "$as_me: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 { { echo "$as_me:1488: error: C compiler cannot create executables" >&5
1489 echo "$as_me: error: C compiler cannot create executables" >&2;}
1490 { (exit 77); exit 77; }; }
1493 ac_exeext=$ac_cv_exeext
1494 echo "$as_me:1494: result: $ac_file" >&5
1495 echo "${ECHO_T}$ac_file" >&6
1497 # Check the compiler produces executables we can run. If not, either
1498 # the compiler is broken, or we cross compile.
1499 echo "$as_me:1499: checking whether the C compiler works" >&5
1500 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1501 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1502 # If not cross compiling, check that we can run a simple program.
1503 if test "$cross_compiling" != yes; then
1504 if { ac_try='./$ac_file'
1505 { (eval echo "$as_me:1505: \"$ac_try\"") >&5
1508 echo "$as_me:1508: \$? = $ac_status" >&5
1509 (exit $ac_status); }; }; then
1512 if test "$cross_compiling" = maybe; then
1515 { { echo "$as_me:1515: error: cannot run C compiled programs.
1516 If you meant to cross compile, use \`--host'." >&5
1517 echo "$as_me: error: cannot run C compiled programs.
1518 If you meant to cross compile, use \`--host'." >&2;}
1519 { (exit 1); exit 1; }; }
1523 echo "$as_me:1523: result: yes" >&5
1524 echo "${ECHO_T}yes" >&6
1526 rm -f a.out a.exe conftest$ac_cv_exeext
1527 ac_clean_files=$ac_clean_files_save
1528 # Check the compiler produces executables we can run. If not, either
1529 # the compiler is broken, or we cross compile.
1530 echo "$as_me:1530: checking whether we are cross compiling" >&5
1531 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1532 echo "$as_me:1532: result: $cross_compiling" >&5
1533 echo "${ECHO_T}$cross_compiling" >&6
1535 echo "$as_me:1535: checking for executable suffix" >&5
1536 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1537 if { (eval echo "$as_me:1537: \"$ac_link\"") >&5
1538 (eval $ac_link) 2>&5
1540 echo "$as_me:1540: \$? = $ac_status" >&5
1541 (exit $ac_status); }; then
1542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1544 # work properly (i.e., refer to `conftest.exe'), while it won't with
1546 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1548 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1556 { { echo "$as_me:1556: error: cannot compute EXEEXT: cannot compile and link" >&5
1557 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1558 { (exit 1); exit 1; }; }
1561 rm -f conftest$ac_cv_exeext
1562 echo "$as_me:1562: result: $ac_cv_exeext" >&5
1563 echo "${ECHO_T}$ac_cv_exeext" >&6
1565 rm -f conftest.$ac_ext
1566 EXEEXT=$ac_cv_exeext
1568 echo "$as_me:1568: checking for object suffix" >&5
1569 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1570 if test "${ac_cv_objext+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 cat >conftest.$ac_ext <<_ACEOF
1574 #line 1574 "configure"
1575 #include "confdefs.h"
1585 rm -f conftest.o conftest.obj
1586 if { (eval echo "$as_me:1586: \"$ac_compile\"") >&5
1587 (eval $ac_compile) 2>&5
1589 echo "$as_me:1589: \$? = $ac_status" >&5
1590 (exit $ac_status); }; then
1591 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1593 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1599 echo "$as_me: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1601 { { echo "$as_me:1601: error: cannot compute OBJEXT: cannot compile" >&5
1602 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1603 { (exit 1); exit 1; }; }
1606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1608 echo "$as_me:1608: result: $ac_cv_objext" >&5
1609 echo "${ECHO_T}$ac_cv_objext" >&6
1610 OBJEXT=$ac_cv_objext
1612 echo "$as_me:1612: checking whether we are using the GNU C compiler" >&5
1613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 cat >conftest.$ac_ext <<_ACEOF
1618 #line 1618 "configure"
1619 #include "confdefs.h"
1632 rm -f conftest.$ac_objext
1633 if { (eval echo "$as_me:1633: \"$ac_compile\"") >&5
1634 (eval $ac_compile) 2>&5
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); } &&
1638 { ac_try='test -s conftest.$ac_objext'
1639 { (eval echo "$as_me:1639: \"$ac_try\"") >&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); }; }; then
1646 echo "$as_me: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1650 rm -f conftest.$ac_objext conftest.$ac_ext
1651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1654 echo "$as_me:1654: result: $ac_cv_c_compiler_gnu" >&5
1655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1656 GCC=`test $ac_compiler_gnu = yes && echo yes`
1657 ac_test_CFLAGS=${CFLAGS+set}
1658 ac_save_CFLAGS=$CFLAGS
1660 echo "$as_me:1660: checking whether $CC accepts -g" >&5
1661 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1662 if test "${ac_cv_prog_cc_g+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 cat >conftest.$ac_ext <<_ACEOF
1666 #line 1666 "configure"
1667 #include "confdefs.h"
1677 rm -f conftest.$ac_objext
1678 if { (eval echo "$as_me:1678: \"$ac_compile\"") >&5
1679 (eval $ac_compile) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); } &&
1683 { ac_try='test -s conftest.$ac_objext'
1684 { (eval echo "$as_me:1684: \"$ac_try\"") >&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); }; }; then
1691 echo "$as_me: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1695 rm -f conftest.$ac_objext conftest.$ac_ext
1697 echo "$as_me:1697: result: $ac_cv_prog_cc_g" >&5
1698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1699 if test "$ac_test_CFLAGS" = set; then
1700 CFLAGS=$ac_save_CFLAGS
1701 elif test $ac_cv_prog_cc_g = yes; then
1702 if test "$GCC" = yes; then
1708 if test "$GCC" = yes; then
1714 # Some people use a C++ compiler to compile C. Since we use `exit',
1715 # in C++ we need to declare it. In case someone uses the same compiler
1716 # for both compiling C and C++ we need to have the C++ compiler decide
1717 # the declaration of exit, since it's the most demanding environment.
1718 cat >conftest.$ac_ext <<_ACEOF
1723 rm -f conftest.$ac_objext
1724 if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
1725 (eval $ac_compile) 2>&5
1727 echo "$as_me:1727: \$? = $ac_status" >&5
1728 (exit $ac_status); } &&
1729 { ac_try='test -s conftest.$ac_objext'
1730 { (eval echo "$as_me:1730: \"$ac_try\"") >&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); }; }; then
1735 for ac_declaration in \
1737 '#include <stdlib.h>' \
1738 'extern "C" void std::exit (int) throw (); using std::exit;' \
1739 'extern "C" void std::exit (int); using std::exit;' \
1740 'extern "C" void exit (int) throw ();' \
1741 'extern "C" void exit (int);' \
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line 1745 "configure"
1746 #include "confdefs.h"
1757 rm -f conftest.$ac_objext
1758 if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759 (eval $ac_compile) 2>&5
1761 echo "$as_me:1761: \$? = $ac_status" >&5
1762 (exit $ac_status); } &&
1763 { ac_try='test -s conftest.$ac_objext'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1771 echo "$as_me: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1775 rm -f conftest.$ac_objext conftest.$ac_ext
1776 cat >conftest.$ac_ext <<_ACEOF
1777 #line 1777 "configure"
1778 #include "confdefs.h"
1788 rm -f conftest.$ac_objext
1789 if { (eval echo "$as_me:1789: \"$ac_compile\"") >&5
1790 (eval $ac_compile) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); } &&
1794 { ac_try='test -s conftest.$ac_objext'
1795 { (eval echo "$as_me:1795: \"$ac_try\"") >&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); }; }; then
1802 echo "$as_me: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 rm -f conftest.$ac_objext conftest.$ac_ext
1808 if test -n "$ac_declaration"; then
1809 echo '#ifdef __cplusplus' >>confdefs.h
1810 echo $ac_declaration >>confdefs.h
1811 echo '#endif' >>confdefs.h
1815 echo "$as_me: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1818 rm -f conftest.$ac_objext conftest.$ac_ext
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 ac_main_return=return
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_main_return=return
1832 echo "$as_me:1832: checking how to run the C preprocessor" >&5
1833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1834 # On Suns, sometimes $CPP names a directory.
1835 if test -n "$CPP" && test -d "$CPP"; then
1838 if test -z "$CPP"; then
1839 if test "${ac_cv_prog_CPP+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 # Double quotes because CPP needs to be expanded
1843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1846 for ac_c_preproc_warn_flag in '' yes
1848 # Use a header file that comes with gcc, so configuring glibc
1849 # with a fresh cross-compiler works.
1850 # On the NeXT, cc -E runs the code through the compiler's parser,
1851 # not just through cpp. "Syntax error" is here to catch this case.
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line 1853 "configure"
1854 #include "confdefs.h"
1858 if { (eval echo "$as_me:1858: \"$ac_cpp conftest.$ac_ext\"") >&5
1859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1861 egrep -v '^ *\+' conftest.er1 >conftest.err
1863 cat conftest.err >&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); } >/dev/null; then
1866 if test -s conftest.err; then
1867 ac_cpp_err=$ac_c_preproc_warn_flag
1874 if test -z "$ac_cpp_err"; then
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 # Broken: fails on valid input.
1882 rm -f conftest.err conftest.$ac_ext
1884 # OK, works on sane cases. Now check whether non-existent headers
1885 # can be detected and how.
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1889 #include <ac_nonexistent.h>
1891 if { (eval echo "$as_me:1891: \"$ac_cpp conftest.$ac_ext\"") >&5
1892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1894 egrep -v '^ *\+' conftest.er1 >conftest.err
1896 cat conftest.err >&5
1897 echo "$as_me:1897: \$? = $ac_status" >&5
1898 (exit $ac_status); } >/dev/null; then
1899 if test -s conftest.err; then
1900 ac_cpp_err=$ac_c_preproc_warn_flag
1907 if test -z "$ac_cpp_err"; then
1908 # Broken: success on invalid input.
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1913 # Passes both tests.
1917 rm -f conftest.err conftest.$ac_ext
1920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1921 rm -f conftest.err conftest.$ac_ext
1922 if $ac_preproc_ok; then
1934 echo "$as_me:1934: result: $CPP" >&5
1935 echo "${ECHO_T}$CPP" >&6
1937 for ac_c_preproc_warn_flag in '' yes
1939 # Use a header file that comes with gcc, so configuring glibc
1940 # with a fresh cross-compiler works.
1941 # On the NeXT, cc -E runs the code through the compiler's parser,
1942 # not just through cpp. "Syntax error" is here to catch this case.
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line 1944 "configure"
1945 #include "confdefs.h"
1949 if { (eval echo "$as_me:1949: \"$ac_cpp conftest.$ac_ext\"") >&5
1950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1952 egrep -v '^ *\+' conftest.er1 >conftest.err
1954 cat conftest.err >&5
1955 echo "$as_me:1955: \$? = $ac_status" >&5
1956 (exit $ac_status); } >/dev/null; then
1957 if test -s conftest.err; then
1958 ac_cpp_err=$ac_c_preproc_warn_flag
1965 if test -z "$ac_cpp_err"; then
1968 echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1970 # Broken: fails on valid input.
1973 rm -f conftest.err conftest.$ac_ext
1975 # OK, works on sane cases. Now check whether non-existent headers
1976 # can be detected and how.
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #line 1978 "configure"
1979 #include "confdefs.h"
1980 #include <ac_nonexistent.h>
1982 if { (eval echo "$as_me:1982: \"$ac_cpp conftest.$ac_ext\"") >&5
1983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1985 egrep -v '^ *\+' conftest.er1 >conftest.err
1987 cat conftest.err >&5
1988 echo "$as_me:1988: \$? = $ac_status" >&5
1989 (exit $ac_status); } >/dev/null; then
1990 if test -s conftest.err; then
1991 ac_cpp_err=$ac_c_preproc_warn_flag
1998 if test -z "$ac_cpp_err"; then
1999 # Broken: success on invalid input.
2002 echo "$as_me: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2004 # Passes both tests.
2008 rm -f conftest.err conftest.$ac_ext
2011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2012 rm -f conftest.err conftest.$ac_ext
2013 if $ac_preproc_ok; then
2016 { { echo "$as_me:2016: error: C preprocessor \"$CPP\" fails sanity check" >&5
2017 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2018 { (exit 1); exit 1; }; }
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026 ac_main_return=return
2028 for ac_prog in mawk gawk nawk awk
2030 # Extract the first word of "$ac_prog", so it can be a program name with args.
2031 set dummy $ac_prog; ac_word=$2
2032 echo "$as_me:2032: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_AWK+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$AWK"; then
2038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2040 ac_save_IFS=$IFS; IFS=$ac_path_separator
2042 for ac_dir in $ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 $as_executable_p "$ac_dir/$ac_word" || continue
2046 ac_cv_prog_AWK="$ac_prog"
2047 echo "$as_me:2047: found $ac_dir/$ac_word" >&5
2054 if test -n "$AWK"; then
2055 echo "$as_me:2055: result: $AWK" >&5
2056 echo "${ECHO_T}$AWK" >&6
2058 echo "$as_me:2058: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$AWK" && break
2065 # Find a good install program. We prefer a C program (faster),
2066 # so one script is as good as another. But avoid the broken or
2067 # incompatible versions:
2068 # SysV /etc/install, /usr/sbin/install
2069 # SunOS /usr/etc/install
2070 # IRIX /sbin/install
2072 # AmigaOS /C/install, which installs bootblocks on floppy discs
2073 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2074 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2075 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2076 # ./install, which can be erroneously created by make from ./install.sh.
2077 echo "$as_me:2077: checking for a BSD compatible install" >&5
2078 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2079 if test -z "$INSTALL"; then
2080 if test "${ac_cv_path_install+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 ac_save_IFS=$IFS; IFS=$ac_path_separator
2084 for ac_dir in $PATH; do
2086 # Account for people who put trailing slashes in PATH elements.
2088 / | ./ | .// | /cC/* \
2089 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2092 # OSF1 and SCO ODT 3.0 have their own names for install.
2093 # Don't use installbsd from OSF since it installs stuff as root
2095 for ac_prog in ginstall scoinst install; do
2096 if $as_executable_p "$ac_dir/$ac_prog"; then
2097 if test $ac_prog = install &&
2098 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2101 elif test $ac_prog = install &&
2102 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2106 ac_cv_path_install="$ac_dir/$ac_prog -c"
2116 if test "${ac_cv_path_install+set}" = set; then
2117 INSTALL=$ac_cv_path_install
2119 # As a last resort, use the slow shell script. We don't cache a
2120 # path for INSTALL within a source directory, because that will
2121 # break other packages using the cache if that directory is
2122 # removed, or if the path is relative.
2123 INSTALL=$ac_install_sh
2126 echo "$as_me:2126: result: $INSTALL" >&5
2127 echo "${ECHO_T}$INSTALL" >&6
2129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2130 # It thinks the first close brace ends the variable substitution.
2131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2141 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2142 test -z "$cf_dir" && cf_dir=.
2143 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2147 for ac_prog in tdlint lint alint splint lclint
2149 # Extract the first word of "$ac_prog", so it can be a program name with args.
2150 set dummy $ac_prog; ac_word=$2
2151 echo "$as_me:2151: checking for $ac_word" >&5
2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2153 if test "${ac_cv_prog_LINT+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test -n "$LINT"; then
2157 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2159 ac_save_IFS=$IFS; IFS=$ac_path_separator
2161 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 $as_executable_p "$ac_dir/$ac_word" || continue
2165 ac_cv_prog_LINT="$ac_prog"
2166 echo "$as_me:2166: found $ac_dir/$ac_word" >&5
2172 LINT=$ac_cv_prog_LINT
2173 if test -n "$LINT"; then
2174 echo "$as_me:2174: result: $LINT" >&5
2175 echo "${ECHO_T}$LINT" >&6
2177 echo "$as_me:2177: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2181 test -n "$LINT" && break
2184 echo "$as_me:2184: checking if filesystem supports mixed-case filenames" >&5
2185 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2186 if test "${cf_cv_mixedcase+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test "$cross_compiling" = yes ; then
2191 case $target_alias in #(vi
2192 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2200 rm -f conftest CONFTEST
2202 if test -f CONFTEST ; then
2207 rm -f conftest CONFTEST
2211 echo "$as_me:2211: result: $cf_cv_mixedcase" >&5
2212 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2213 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2214 #define MIXEDCASE_FILENAMES 1
2217 for ac_prog in exctags ctags
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo "$as_me:2221: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CTAGS+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CTAGS"; then
2227 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2229 ac_save_IFS=$IFS; IFS=$ac_path_separator
2231 for ac_dir in $ac_dummy; do
2233 test -z "$ac_dir" && ac_dir=.
2234 $as_executable_p "$ac_dir/$ac_word" || continue
2235 ac_cv_prog_CTAGS="$ac_prog"
2236 echo "$as_me:2236: found $ac_dir/$ac_word" >&5
2242 CTAGS=$ac_cv_prog_CTAGS
2243 if test -n "$CTAGS"; then
2244 echo "$as_me:2244: result: $CTAGS" >&5
2245 echo "${ECHO_T}$CTAGS" >&6
2247 echo "$as_me:2247: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2251 test -n "$CTAGS" && break
2254 for ac_prog in exetags etags
2256 # Extract the first word of "$ac_prog", so it can be a program name with args.
2257 set dummy $ac_prog; ac_word=$2
2258 echo "$as_me:2258: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ETAGS+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 if test -n "$ETAGS"; then
2264 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2266 ac_save_IFS=$IFS; IFS=$ac_path_separator
2268 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 $as_executable_p "$ac_dir/$ac_word" || continue
2272 ac_cv_prog_ETAGS="$ac_prog"
2273 echo "$as_me:2273: found $ac_dir/$ac_word" >&5
2279 ETAGS=$ac_cv_prog_ETAGS
2280 if test -n "$ETAGS"; then
2281 echo "$as_me:2281: result: $ETAGS" >&5
2282 echo "${ECHO_T}$ETAGS" >&6
2284 echo "$as_me:2284: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2288 test -n "$ETAGS" && break
2291 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2292 set dummy ${CTAGS:-ctags}; ac_word=$2
2293 echo "$as_me:2293: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$MAKE_LOWER_TAGS"; then
2299 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2301 ac_save_IFS=$IFS; IFS=$ac_path_separator
2303 for ac_dir in $ac_dummy; do
2305 test -z "$ac_dir" && ac_dir=.
2306 $as_executable_p "$ac_dir/$ac_word" || continue
2307 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2308 echo "$as_me:2308: found $ac_dir/$ac_word" >&5
2312 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2315 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2316 if test -n "$MAKE_LOWER_TAGS"; then
2317 echo "$as_me:2317: result: $MAKE_LOWER_TAGS" >&5
2318 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2320 echo "$as_me:2320: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2324 if test "$cf_cv_mixedcase" = yes ; then
2325 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2326 set dummy ${ETAGS:-etags}; ac_word=$2
2327 echo "$as_me:2327: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 if test -n "$MAKE_UPPER_TAGS"; then
2333 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2335 ac_save_IFS=$IFS; IFS=$ac_path_separator
2337 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 $as_executable_p "$ac_dir/$ac_word" || continue
2341 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2342 echo "$as_me:2342: found $ac_dir/$ac_word" >&5
2346 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2349 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2350 if test -n "$MAKE_UPPER_TAGS"; then
2351 echo "$as_me:2351: result: $MAKE_UPPER_TAGS" >&5
2352 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2354 echo "$as_me:2354: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2362 if test "$MAKE_UPPER_TAGS" = yes ; then
2368 if test "$MAKE_LOWER_TAGS" = yes ; then
2374 echo "$as_me:2374: checking if -lm needed for math functions" >&5
2375 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2376 if test "${cf_cv_need_libm+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line 2381 "configure"
2382 #include "confdefs.h"
2390 double x = rand(); printf("result = %g\n", sin(x))
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { (eval echo "$as_me:2396: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>&5
2399 echo "$as_me:2399: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -s conftest$ac_exeext'
2402 { (eval echo "$as_me:2402: \"$ac_try\"") >&5
2405 echo "$as_me:2405: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2409 echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2415 echo "$as_me:2415: result: $cf_cv_need_libm" >&5
2416 echo "${ECHO_T}$cf_cv_need_libm" >&6
2417 if test "$cf_cv_need_libm" = yes
2425 CC_SHARED_OPTS=unknown
2426 CPPFLAGS="$CPPFLAGS"
2428 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2429 DFT_UPR_MODEL="NORMAL"
2446 TINFO_LIBS='$(LIBS_CURSES)'
2447 cf_cv_abi_version=""
2448 cf_cv_rel_version=""
2453 # This should have been defined by AC_PROG_CC
2456 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2457 # into CC. This will not help with broken scripts that wrap the compiler with
2458 # options, but eliminates a more common category of user confusion.
2459 echo "$as_me:2459: checking \$CC variable" >&5
2460 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2463 echo "$as_me:2463: result: broken" >&5
2464 echo "${ECHO_T}broken" >&6
2465 { echo "$as_me:2465: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2466 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2468 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2469 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2474 cf_new_extra_cppflags=
2476 for cf_add_cflags in $cf_flags
2478 case $cf_fix_cppflags in
2480 case $cf_add_cflags in #(vi
2481 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2482 case $cf_add_cflags in
2484 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2486 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2487 && test -z "${cf_tst_cflags}" \
2488 && cf_fix_cppflags=yes
2490 if test $cf_fix_cppflags = yes ; then
2491 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2493 elif test "${cf_tst_cflags}" = "\"'" ; then
2494 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2500 *$cf_add_cflags) #(vi
2503 case $cf_add_cflags in #(vi
2505 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2507 CPPFLAGS=`echo "$CPPFLAGS" | \
2508 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2509 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2513 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2518 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2523 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2525 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2527 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2528 && test -z "${cf_tst_cflags}" \
2529 && cf_fix_cppflags=no
2534 if test -n "$cf_new_cflags" ; then
2536 CFLAGS="$CFLAGS $cf_new_cflags"
2539 if test -n "$cf_new_cppflags" ; then
2541 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2544 if test -n "$cf_new_extra_cppflags" ; then
2546 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2551 echo "$as_me:2551: result: ok" >&5
2552 echo "${ECHO_T}ok" >&6
2556 echo "$as_me:2556: checking for ${CC:-cc} option to accept ANSI C" >&5
2557 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2558 if test "${cf_cv_ansi_cc+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 cf_save_CFLAGS="$CFLAGS"
2564 cf_save_CPPFLAGS="$CPPFLAGS"
2565 # Don't try gcc -ansi; that turns off useful extensions and
2566 # breaks some systems' header files.
2567 # AIX -qlanglvl=ansi
2568 # Ultrix and OSF/1 -std1
2569 # HP-UX -Aa -D_HPUX_SOURCE
2571 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2572 for cf_arg in "-DCC_HAS_PROTOS" \
2577 "-Aa -D_HPUX_SOURCE" \
2584 cf_new_extra_cppflags=
2586 for cf_add_cflags in $cf_arg
2588 case $cf_fix_cppflags in
2590 case $cf_add_cflags in #(vi
2591 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2592 case $cf_add_cflags in
2594 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2596 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2597 && test -z "${cf_tst_cflags}" \
2598 && cf_fix_cppflags=yes
2600 if test $cf_fix_cppflags = yes ; then
2601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2603 elif test "${cf_tst_cflags}" = "\"'" ; then
2604 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2610 *$cf_add_cflags) #(vi
2613 case $cf_add_cflags in #(vi
2615 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2617 CPPFLAGS=`echo "$CPPFLAGS" | \
2618 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2619 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2623 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2628 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2633 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2635 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2637 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2638 && test -z "${cf_tst_cflags}" \
2639 && cf_fix_cppflags=no
2644 if test -n "$cf_new_cflags" ; then
2646 CFLAGS="$CFLAGS $cf_new_cflags"
2649 if test -n "$cf_new_cppflags" ; then
2651 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2654 if test -n "$cf_new_extra_cppflags" ; then
2656 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line 2660 "configure"
2661 #include "confdefs.h"
2663 #ifndef CC_HAS_PROTOS
2664 #if !defined(__STDC__) || (__STDC__ != 1)
2673 int test (int i, double x);
2674 struct s1 {int (*f) (int a);};
2675 struct s2 {int (*f) (double a);};
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:2681: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>&5
2684 echo "$as_me:2684: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:2687: \"$ac_try\"") >&5
2690 echo "$as_me:2690: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 cf_cv_ansi_cc="$cf_arg"; break
2694 echo "$as_me: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 rm -f conftest.$ac_objext conftest.$ac_ext
2699 CFLAGS="$cf_save_CFLAGS"
2700 CPPFLAGS="$cf_save_CPPFLAGS"
2703 echo "$as_me:2703: result: $cf_cv_ansi_cc" >&5
2704 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2706 if test "$cf_cv_ansi_cc" != "no"; then
2707 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2712 cf_new_extra_cppflags=
2714 for cf_add_cflags in $cf_cv_ansi_cc
2716 case $cf_fix_cppflags in
2718 case $cf_add_cflags in #(vi
2719 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2720 case $cf_add_cflags in
2722 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2724 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2725 && test -z "${cf_tst_cflags}" \
2726 && cf_fix_cppflags=yes
2728 if test $cf_fix_cppflags = yes ; then
2729 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2731 elif test "${cf_tst_cflags}" = "\"'" ; then
2732 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2738 *$cf_add_cflags) #(vi
2741 case $cf_add_cflags in #(vi
2743 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2745 CPPFLAGS=`echo "$CPPFLAGS" | \
2746 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2747 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2751 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2756 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2761 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2763 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2765 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2766 && test -z "${cf_tst_cflags}" \
2767 && cf_fix_cppflags=no
2772 if test -n "$cf_new_cflags" ; then
2774 CFLAGS="$CFLAGS $cf_new_cflags"
2777 if test -n "$cf_new_cppflags" ; then
2779 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2782 if test -n "$cf_new_extra_cppflags" ; then
2784 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2788 cat >>confdefs.h <<\EOF
2789 #define CC_HAS_PROTOS 1
2795 if test "$cf_cv_ansi_cc" = "no"; then
2796 { { echo "$as_me:2796: error: Your compiler does not appear to recognize prototypes.
2797 You have the following choices:
2798 a. adjust your compiler options
2799 b. get an up-to-date compiler
2800 c. use a wrapper such as unproto" >&5
2801 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2802 You have the following choices:
2803 a. adjust your compiler options
2804 b. get an up-to-date compiler
2805 c. use a wrapper such as unproto" >&2;}
2806 { (exit 1); exit 1; }; }
2809 if test "$GCC" = yes
2811 cat > conftest.i <<EOF
2813 #define GCC_PRINTF 0
2818 #ifndef GCC_NORETURN
2819 #define GCC_NORETURN /* nothing */
2822 #define GCC_UNUSED /* nothing */
2825 if test "$GCC" = yes
2827 { echo "$as_me:2827: checking for $CC __attribute__ directives..." >&5
2828 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2830 "${as_me:-configure}"
2831 #include "confdefs.h"
2832 #include "conftest.h"
2833 #include "conftest.i"
2835 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2837 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2840 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2842 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2844 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2845 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2846 extern void foo(void) GCC_NORETURN;
2847 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2849 cf_printf_attribute=no
2850 cf_scanf_attribute=no
2851 for cf_attribute in scanf printf unused noreturn
2854 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2856 cf_directive="__attribute__(($cf_attribute))"
2857 echo "checking for $CC $cf_directive" 1>&5
2859 case $cf_attribute in #(vi
2861 cf_printf_attribute=yes
2862 cat >conftest.h <<EOF
2863 #define GCC_$cf_ATTRIBUTE 1
2867 cf_scanf_attribute=yes
2868 cat >conftest.h <<EOF
2869 #define GCC_$cf_ATTRIBUTE 1
2873 cat >conftest.h <<EOF
2874 #define GCC_$cf_ATTRIBUTE $cf_directive
2879 if { (eval echo "$as_me:2879: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>&5
2882 echo "$as_me:2882: \$? = $ac_status" >&5
2883 (exit $ac_status); }; then
2884 test -n "$verbose" && echo "$as_me:2884: result: ... $cf_attribute" >&5
2885 echo "${ECHO_T}... $cf_attribute" >&6
2886 cat conftest.h >>confdefs.h
2887 case $cf_attribute in #(vi
2889 if test "$cf_printf_attribute" = no ; then
2890 cat >>confdefs.h <<EOF
2891 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2894 cat >>confdefs.h <<EOF
2895 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2900 if test "$cf_scanf_attribute" = no ; then
2901 cat >>confdefs.h <<EOF
2902 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2905 cat >>confdefs.h <<EOF
2906 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2914 fgrep define conftest.i >>confdefs.h
2920 cf_POSIX_C_SOURCE=199506L
2923 case $host_os in #(vi
2925 cf_xopen_source="-D_ALL_SOURCE"
2931 cf_xopen_source="-D_APPLE_C_SOURCE"
2934 cf_xopen_source="-D_DARWIN_C_SOURCE"
2937 freebsd*|dragonfly*) #(vi
2938 # 5.x headers associate
2939 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2940 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2941 cf_POSIX_C_SOURCE=200112L
2943 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2946 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2949 cf_xopen_source="-D_HPUX_SOURCE"
2952 cf_xopen_source="-D_SGI_SOURCE"
2955 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2957 echo "$as_me:2957: checking if we must define _GNU_SOURCE" >&5
2958 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2959 if test "${cf_cv_gnu_source+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line 2964 "configure"
2965 #include "confdefs.h"
2966 #include <sys/types.h>
2971 #ifndef _XOPEN_SOURCE
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:2979: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>&5
2982 echo "$as_me:2982: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (eval echo "$as_me:2985: \"$ac_try\"") >&5
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2992 echo "$as_me: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2995 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line 2997 "configure"
2998 #include "confdefs.h"
2999 #include <sys/types.h>
3004 #ifdef _XOPEN_SOURCE
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:3012: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>&5
3015 echo "$as_me:3015: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (eval echo "$as_me:3018: \"$ac_try\"") >&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3025 echo "$as_me: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 cf_cv_gnu_source=yes
3029 rm -f conftest.$ac_objext conftest.$ac_ext
3033 rm -f conftest.$ac_objext conftest.$ac_ext
3036 echo "$as_me:3036: result: $cf_cv_gnu_source" >&5
3037 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3038 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3042 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3045 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3047 cf_save_CFLAGS="$CFLAGS"
3048 cf_save_CPPFLAGS="$CPPFLAGS"
3050 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3051 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3052 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3054 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3055 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3056 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3058 echo "$as_me:3058: checking if we should define _POSIX_C_SOURCE" >&5
3059 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3060 if test "${cf_cv_posix_c_source+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 echo "${as_me:-configure}:3064: testing if the symbol is already defined go no further ..." 1>&5
3066 cat >conftest.$ac_ext <<_ACEOF
3067 #line 3067 "configure"
3068 #include "confdefs.h"
3069 #include <sys/types.h>
3074 #ifndef _POSIX_C_SOURCE
3081 rm -f conftest.$ac_objext
3082 if { (eval echo "$as_me:3082: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>&5
3085 echo "$as_me:3085: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (eval echo "$as_me:3088: \"$ac_try\"") >&5
3091 echo "$as_me:3091: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 cf_cv_posix_c_source=no
3095 echo "$as_me: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 cf_want_posix_source=no
3098 case .$cf_POSIX_C_SOURCE in #(vi
3100 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3103 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3104 cf_want_posix_source=yes
3107 cf_want_posix_source=yes
3110 if test "$cf_want_posix_source" = yes ; then
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #line 3112 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3119 #ifdef _POSIX_SOURCE
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:3127: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>&5
3130 echo "$as_me:3130: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (eval echo "$as_me:3133: \"$ac_try\"") >&5
3136 echo "$as_me:3136: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3140 echo "$as_me: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3142 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3144 rm -f conftest.$ac_objext conftest.$ac_ext
3147 echo "${as_me:-configure}:3147: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3149 CFLAGS="$cf_trim_CFLAGS"
3150 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3152 echo "${as_me:-configure}:3152: testing if the second compile does not leave our definition intact error ..." 1>&5
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line 3155 "configure"
3156 #include "confdefs.h"
3157 #include <sys/types.h>
3162 #ifndef _POSIX_C_SOURCE
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:3170: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3173 echo "$as_me:3173: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:3176: \"$ac_try\"") >&5
3179 echo "$as_me:3179: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3183 echo "$as_me: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3185 cf_cv_posix_c_source=no
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3188 CFLAGS="$cf_save_CFLAGS"
3189 CPPFLAGS="$cf_save_CPPFLAGS"
3192 rm -f conftest.$ac_objext conftest.$ac_ext
3195 echo "$as_me:3195: result: $cf_cv_posix_c_source" >&5
3196 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3198 if test "$cf_cv_posix_c_source" != no ; then
3199 CFLAGS="$cf_trim_CFLAGS"
3200 CPPFLAGS="$cf_trim_CPPFLAGS"
3205 cf_new_extra_cppflags=
3207 for cf_add_cflags in $cf_cv_posix_c_source
3209 case $cf_fix_cppflags in
3211 case $cf_add_cflags in #(vi
3212 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3213 case $cf_add_cflags in
3215 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3217 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3218 && test -z "${cf_tst_cflags}" \
3219 && cf_fix_cppflags=yes
3221 if test $cf_fix_cppflags = yes ; then
3222 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3224 elif test "${cf_tst_cflags}" = "\"'" ; then
3225 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3231 *$cf_add_cflags) #(vi
3234 case $cf_add_cflags in #(vi
3236 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3238 CPPFLAGS=`echo "$CPPFLAGS" | \
3239 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3240 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3244 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3249 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3254 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3256 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3258 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3259 && test -z "${cf_tst_cflags}" \
3260 && cf_fix_cppflags=no
3265 if test -n "$cf_new_cflags" ; then
3267 CFLAGS="$CFLAGS $cf_new_cflags"
3270 if test -n "$cf_new_cppflags" ; then
3272 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3275 if test -n "$cf_new_extra_cppflags" ; then
3277 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3284 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3287 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3288 cf_xopen_source="-D_BSD_SOURCE"
3292 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3295 cf_xopen_source="-D_OSF_SOURCE"
3298 cf_xopen_source="-D_QNX_SOURCE"
3301 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3304 cf_xopen_source="-D__EXTENSIONS__"
3308 echo "$as_me:3308: checking if we should define _XOPEN_SOURCE" >&5
3309 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3310 if test "${cf_cv_xopen_source+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 cat >conftest.$ac_ext <<_ACEOF
3315 #line 3315 "configure"
3316 #include "confdefs.h"
3320 #include <sys/types.h>
3326 #ifndef _XOPEN_SOURCE
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>&5
3337 echo "$as_me:3337: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:3340: \"$ac_try\"") >&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 cf_cv_xopen_source=no
3347 echo "$as_me: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3351 cat >conftest.$ac_ext <<_ACEOF
3352 #line 3352 "configure"
3353 #include "confdefs.h"
3357 #include <sys/types.h>
3363 #ifdef _XOPEN_SOURCE
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:3371: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>&5
3374 echo "$as_me:3374: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -s conftest.$ac_objext'
3377 { (eval echo "$as_me:3377: \"$ac_try\"") >&5
3380 echo "$as_me:3380: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 cf_cv_xopen_source=no
3384 echo "$as_me: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3388 rm -f conftest.$ac_objext conftest.$ac_ext
3392 rm -f conftest.$ac_objext conftest.$ac_ext
3395 echo "$as_me:3395: result: $cf_cv_xopen_source" >&5
3396 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3398 if test "$cf_cv_xopen_source" != no ; then
3400 CFLAGS=`echo "$CFLAGS" | \
3401 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3402 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3404 CPPFLAGS=`echo "$CPPFLAGS" | \
3405 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3406 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3408 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3413 cf_new_extra_cppflags=
3415 for cf_add_cflags in $cf_temp_xopen_source
3417 case $cf_fix_cppflags in
3419 case $cf_add_cflags in #(vi
3420 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3421 case $cf_add_cflags in
3423 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3425 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3426 && test -z "${cf_tst_cflags}" \
3427 && cf_fix_cppflags=yes
3429 if test $cf_fix_cppflags = yes ; then
3430 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3432 elif test "${cf_tst_cflags}" = "\"'" ; then
3433 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3439 *$cf_add_cflags) #(vi
3442 case $cf_add_cflags in #(vi
3444 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3446 CPPFLAGS=`echo "$CPPFLAGS" | \
3447 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3448 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3452 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3457 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3462 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3464 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3466 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3467 && test -z "${cf_tst_cflags}" \
3468 && cf_fix_cppflags=no
3473 if test -n "$cf_new_cflags" ; then
3475 CFLAGS="$CFLAGS $cf_new_cflags"
3478 if test -n "$cf_new_cppflags" ; then
3480 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3483 if test -n "$cf_new_extra_cppflags" ; then
3485 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3490 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3492 cf_save_CFLAGS="$CFLAGS"
3493 cf_save_CPPFLAGS="$CPPFLAGS"
3495 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3496 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3497 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3499 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3500 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3501 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3503 echo "$as_me:3503: checking if we should define _POSIX_C_SOURCE" >&5
3504 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3505 if test "${cf_cv_posix_c_source+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 echo "${as_me:-configure}:3509: testing if the symbol is already defined go no further ..." 1>&5
3511 cat >conftest.$ac_ext <<_ACEOF
3512 #line 3512 "configure"
3513 #include "confdefs.h"
3514 #include <sys/types.h>
3519 #ifndef _POSIX_C_SOURCE
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:3527: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3530 echo "$as_me:3530: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:3533: \"$ac_try\"") >&5
3536 echo "$as_me:3536: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 cf_cv_posix_c_source=no
3540 echo "$as_me: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3542 cf_want_posix_source=no
3543 case .$cf_POSIX_C_SOURCE in #(vi
3545 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3548 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3549 cf_want_posix_source=yes
3552 cf_want_posix_source=yes
3555 if test "$cf_want_posix_source" = yes ; then
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #line 3557 "configure"
3558 #include "confdefs.h"
3559 #include <sys/types.h>
3564 #ifdef _POSIX_SOURCE
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>&5
3575 echo "$as_me:3575: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:3578: \"$ac_try\"") >&5
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3585 echo "$as_me: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3589 rm -f conftest.$ac_objext conftest.$ac_ext
3592 echo "${as_me:-configure}:3592: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3594 CFLAGS="$cf_trim_CFLAGS"
3595 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3597 echo "${as_me:-configure}:3597: testing if the second compile does not leave our definition intact error ..." 1>&5
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line 3600 "configure"
3601 #include "confdefs.h"
3602 #include <sys/types.h>
3607 #ifndef _POSIX_C_SOURCE
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:3615: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>&5
3618 echo "$as_me:3618: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:3621: \"$ac_try\"") >&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3628 echo "$as_me: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 cf_cv_posix_c_source=no
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3633 CFLAGS="$cf_save_CFLAGS"
3634 CPPFLAGS="$cf_save_CPPFLAGS"
3637 rm -f conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:3640: result: $cf_cv_posix_c_source" >&5
3641 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3643 if test "$cf_cv_posix_c_source" != no ; then
3644 CFLAGS="$cf_trim_CFLAGS"
3645 CPPFLAGS="$cf_trim_CPPFLAGS"
3650 cf_new_extra_cppflags=
3652 for cf_add_cflags in $cf_cv_posix_c_source
3654 case $cf_fix_cppflags in
3656 case $cf_add_cflags in #(vi
3657 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3658 case $cf_add_cflags in
3660 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3662 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3663 && test -z "${cf_tst_cflags}" \
3664 && cf_fix_cppflags=yes
3666 if test $cf_fix_cppflags = yes ; then
3667 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3669 elif test "${cf_tst_cflags}" = "\"'" ; then
3670 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3676 *$cf_add_cflags) #(vi
3679 case $cf_add_cflags in #(vi
3681 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3683 CPPFLAGS=`echo "$CPPFLAGS" | \
3684 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3685 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3689 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3694 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3699 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3701 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3703 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3704 && test -z "${cf_tst_cflags}" \
3705 && cf_fix_cppflags=no
3710 if test -n "$cf_new_cflags" ; then
3712 CFLAGS="$CFLAGS $cf_new_cflags"
3715 if test -n "$cf_new_cppflags" ; then
3717 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3720 if test -n "$cf_new_extra_cppflags" ; then
3722 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3730 if test -n "$cf_xopen_source" ; then
3735 cf_new_extra_cppflags=
3737 for cf_add_cflags in $cf_xopen_source
3739 case $cf_fix_cppflags in
3741 case $cf_add_cflags in #(vi
3742 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3743 case $cf_add_cflags in
3745 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3747 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3748 && test -z "${cf_tst_cflags}" \
3749 && cf_fix_cppflags=yes
3751 if test $cf_fix_cppflags = yes ; then
3752 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3754 elif test "${cf_tst_cflags}" = "\"'" ; then
3755 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3761 *$cf_add_cflags) #(vi
3764 case $cf_add_cflags in #(vi
3766 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3768 CPPFLAGS=`echo "$CPPFLAGS" | \
3769 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3770 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3774 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3779 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3784 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3786 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3788 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3789 && test -z "${cf_tst_cflags}" \
3790 && cf_fix_cppflags=no
3795 if test -n "$cf_new_cflags" ; then
3797 CFLAGS="$CFLAGS $cf_new_cflags"
3800 if test -n "$cf_new_cppflags" ; then
3802 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3805 if test -n "$cf_new_extra_cppflags" ; then
3807 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3812 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3813 echo "$as_me:3813: checking if _XOPEN_SOURCE really is set" >&5
3814 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line 3816 "configure"
3817 #include "confdefs.h"
3823 #ifndef _XOPEN_SOURCE
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_XOPEN_SOURCE_set=yes
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 cf_XOPEN_SOURCE_set=no
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3849 echo "$as_me:3849: result: $cf_XOPEN_SOURCE_set" >&5
3850 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3851 if test $cf_XOPEN_SOURCE_set = yes
3853 cat >conftest.$ac_ext <<_ACEOF
3854 #line 3854 "configure"
3855 #include "confdefs.h"
3861 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3868 rm -f conftest.$ac_objext
3869 if { (eval echo "$as_me:3869: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>&5
3872 echo "$as_me:3872: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:3875: \"$ac_try\"") >&5
3878 echo "$as_me:3878: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 cf_XOPEN_SOURCE_set_ok=yes
3882 echo "$as_me: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 cf_XOPEN_SOURCE_set_ok=no
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3887 if test $cf_XOPEN_SOURCE_set_ok = no
3889 { echo "$as_me:3889: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3890 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3894 echo "$as_me:3894: checking if we should define _XOPEN_SOURCE" >&5
3895 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3896 if test "${cf_cv_xopen_source+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3906 #include <sys/types.h>
3912 #ifndef _XOPEN_SOURCE
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:3920: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>&5
3923 echo "$as_me:3923: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -s conftest.$ac_objext'
3926 { (eval echo "$as_me:3926: \"$ac_try\"") >&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 cf_cv_xopen_source=no
3933 echo "$as_me: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3937 cat >conftest.$ac_ext <<_ACEOF
3938 #line 3938 "configure"
3939 #include "confdefs.h"
3943 #include <sys/types.h>
3949 #ifdef _XOPEN_SOURCE
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:3957: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>&5
3960 echo "$as_me:3960: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -s conftest.$ac_objext'
3963 { (eval echo "$as_me:3963: \"$ac_try\"") >&5
3966 echo "$as_me:3966: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 cf_cv_xopen_source=no
3970 echo "$as_me: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3974 rm -f conftest.$ac_objext conftest.$ac_ext
3978 rm -f conftest.$ac_objext conftest.$ac_ext
3981 echo "$as_me:3981: result: $cf_cv_xopen_source" >&5
3982 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3984 if test "$cf_cv_xopen_source" != no ; then
3986 CFLAGS=`echo "$CFLAGS" | \
3987 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3988 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3990 CPPFLAGS=`echo "$CPPFLAGS" | \
3991 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3992 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3994 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3999 cf_new_extra_cppflags=
4001 for cf_add_cflags in $cf_temp_xopen_source
4003 case $cf_fix_cppflags in
4005 case $cf_add_cflags in #(vi
4006 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4007 case $cf_add_cflags in
4009 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4011 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4012 && test -z "${cf_tst_cflags}" \
4013 && cf_fix_cppflags=yes
4015 if test $cf_fix_cppflags = yes ; then
4016 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4018 elif test "${cf_tst_cflags}" = "\"'" ; then
4019 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4025 *$cf_add_cflags) #(vi
4028 case $cf_add_cflags in #(vi
4030 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4032 CPPFLAGS=`echo "$CPPFLAGS" | \
4033 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4034 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4038 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4043 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4050 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4052 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4053 && test -z "${cf_tst_cflags}" \
4054 && cf_fix_cppflags=no
4059 if test -n "$cf_new_cflags" ; then
4061 CFLAGS="$CFLAGS $cf_new_cflags"
4064 if test -n "$cf_new_cppflags" ; then
4066 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4069 if test -n "$cf_new_extra_cppflags" ; then
4071 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4079 echo "$as_me:4079: checking for $CC option to accept ANSI C" >&5
4080 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4081 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 ac_cv_prog_cc_stdc=no
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line 4087 "configure"
4088 #include "confdefs.h"
4091 #include <sys/types.h>
4092 #include <sys/stat.h>
4093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4094 struct buf { int x; };
4095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096 static char *e (p, i)
4102 static char *f (char * (*g) (char **, int), char **p, ...)
4107 s = g (p, va_arg (v,int));
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4125 # Don't try gcc -ansi; that turns off useful extensions and
4126 # breaks some systems' header files.
4127 # AIX -qlanglvl=ansi
4128 # Ultrix and OSF/1 -std1
4129 # HP-UX 10.20 and later -Ae
4130 # HP-UX older versions -Aa -D_HPUX_SOURCE
4131 # SVR4 -Xc -D__EXTENSIONS__
4132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4134 CC="$ac_save_CC $ac_arg"
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:4136: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>&5
4139 echo "$as_me:4139: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (eval echo "$as_me:4142: \"$ac_try\"") >&5
4145 echo "$as_me:4145: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_prog_cc_stdc=$ac_arg
4150 echo "$as_me: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 rm -f conftest.$ac_objext
4155 rm -f conftest.$ac_ext conftest.$ac_objext
4160 case "x$ac_cv_prog_cc_stdc" in
4162 echo "$as_me:4162: result: none needed" >&5
4163 echo "${ECHO_T}none needed" >&6 ;;
4165 echo "$as_me:4165: result: $ac_cv_prog_cc_stdc" >&5
4166 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4167 CC="$CC $ac_cv_prog_cc_stdc" ;;
4170 echo "$as_me:4170: checking for an ANSI C-conforming const" >&5
4171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4172 if test "${ac_cv_c_const+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 cat >conftest.$ac_ext <<_ACEOF
4176 #line 4176 "configure"
4177 #include "confdefs.h"
4182 /* FIXME: Include the comments suggested by Paul. */
4184 /* Ultrix mips cc rejects this. */
4185 typedef int charset[2];
4187 /* SunOS 4.1.1 cc rejects this. */
4188 char const *const *ccp;
4190 /* NEC SVR4.0.2 mips cc rejects this. */
4191 struct point {int x, y;};
4192 static struct point const zero = {0,0};
4193 /* AIX XL C 1.02.0.0 rejects this.
4194 It does not let you subtract one const X* pointer from another in
4195 an arm of an if-expression whose if-part is not a constant
4197 const char *g = "string";
4198 ccp = &g + (g ? g-g : 0);
4199 /* HPUX 7.0 cc rejects these. */
4202 ccp = (char const *const *) p;
4203 { /* SCO 3.2v4 cc rejects this. */
4205 char const *s = 0 ? (char *) 0 : (char const *) 0;
4209 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4211 const int *foo = &x[0];
4214 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4215 typedef const int *iptr;
4219 { /* AIX XL C 1.02.0.0 rejects this saying
4220 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4221 struct s { int j; const int *ap[3]; };
4222 struct s *b; b->j = 5;
4224 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:4234: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:4240: \"$ac_try\"") >&5
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4251 rm -f conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:4253: result: $ac_cv_c_const" >&5
4254 echo "${ECHO_T}$ac_cv_c_const" >&6
4255 if test $ac_cv_c_const = no; then
4257 cat >>confdefs.h <<\EOF
4263 echo "$as_me:4263: checking for signal global datatype" >&5
4264 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4265 if test "${cf_cv_sig_atomic_t+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 "volatile sig_atomic_t" \
4274 cat >conftest.$ac_ext <<_ACEOF
4275 #line 4275 "configure"
4276 #include "confdefs.h"
4278 #include <sys/types.h>
4284 static void handler(int sig)
4291 signal(SIGINT, handler);
4297 rm -f conftest.$ac_objext
4298 if { (eval echo "$as_me:4298: \"$ac_compile\"") >&5
4299 (eval $ac_compile) 2>&5
4301 echo "$as_me:4301: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:4304: \"$ac_try\"") >&5
4307 echo "$as_me:4307: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 cf_cv_sig_atomic_t=$cf_type
4311 echo "$as_me: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4313 cf_cv_sig_atomic_t=no
4315 rm -f conftest.$ac_objext conftest.$ac_ext
4316 test "$cf_cv_sig_atomic_t" != no && break
4321 echo "$as_me:4321: result: $cf_cv_sig_atomic_t" >&5
4322 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4323 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
4324 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4327 echo "$as_me:4327: checking if you want to see long compiling messages" >&5
4328 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4330 # Check whether --enable-echo or --disable-echo was given.
4331 if test "${enable_echo+set}" = set; then
4332 enableval="$enable_echo"
4333 test "$enableval" != no && enableval=yes
4334 if test "$enableval" != "yes" ; then
4337 ECHO_LD='@echo linking $@;'
4338 RULE_CC='@echo compiling $<'
4339 SHOW_CC='@echo compiling $@'
4361 echo "$as_me:4361: result: $enableval" >&5
4362 echo "${ECHO_T}$enableval" >&6
4365 if test "$GCC" = yes ; then
4366 echo "$as_me:4366: checking version of $CC" >&5
4367 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
4368 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
4369 test -z "$GCC_VERSION" && GCC_VERSION=unknown
4370 echo "$as_me:4370: result: $GCC_VERSION" >&5
4371 echo "${ECHO_T}$GCC_VERSION" >&6
4374 if ( test "$GCC" = yes || test "$GXX" = yes )
4376 echo "$as_me:4376: checking if you want to turn on gcc warnings" >&5
4377 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
4379 # Check whether --enable-warnings or --disable-warnings was given.
4380 if test "${enable_warnings+set}" = set; then
4381 enableval="$enable_warnings"
4382 test "$enableval" != yes && enableval=no
4383 if test "$enableval" != "no" ; then
4393 echo "$as_me:4393: result: $with_warnings" >&5
4394 echo "${ECHO_T}$with_warnings" >&6
4395 if test "$with_warnings" = "yes"
4398 if test "$GCC" = yes
4400 cat > conftest.i <<EOF
4402 #define GCC_PRINTF 0
4407 #ifndef GCC_NORETURN
4408 #define GCC_NORETURN /* nothing */
4411 #define GCC_UNUSED /* nothing */
4414 if test "$GCC" = yes
4416 { echo "$as_me:4416: checking for $CC __attribute__ directives..." >&5
4417 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4419 "${as_me:-configure}"
4420 #include "confdefs.h"
4421 #include "conftest.h"
4422 #include "conftest.i"
4424 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4426 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4429 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4431 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4433 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4434 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4435 extern void foo(void) GCC_NORETURN;
4436 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4438 cf_printf_attribute=no
4439 cf_scanf_attribute=no
4440 for cf_attribute in scanf printf unused noreturn
4443 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4445 cf_directive="__attribute__(($cf_attribute))"
4446 echo "checking for $CC $cf_directive" 1>&5
4448 case $cf_attribute in #(vi
4450 cf_printf_attribute=yes
4451 cat >conftest.h <<EOF
4452 #define GCC_$cf_ATTRIBUTE 1
4456 cf_scanf_attribute=yes
4457 cat >conftest.h <<EOF
4458 #define GCC_$cf_ATTRIBUTE 1
4462 cat >conftest.h <<EOF
4463 #define GCC_$cf_ATTRIBUTE $cf_directive
4468 if { (eval echo "$as_me:4468: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
4471 echo "$as_me:4471: \$? = $ac_status" >&5
4472 (exit $ac_status); }; then
4473 test -n "$verbose" && echo "$as_me:4473: result: ... $cf_attribute" >&5
4474 echo "${ECHO_T}... $cf_attribute" >&6
4475 cat conftest.h >>confdefs.h
4476 case $cf_attribute in #(vi
4478 if test "$cf_printf_attribute" = no ; then
4479 cat >>confdefs.h <<EOF
4480 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
4483 cat >>confdefs.h <<EOF
4484 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4489 if test "$cf_scanf_attribute" = no ; then
4490 cat >>confdefs.h <<EOF
4491 #define GCC_SCANFLIKE(fmt,var) /* nothing */
4494 cat >>confdefs.h <<EOF
4495 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4503 fgrep define conftest.i >>confdefs.h
4510 if test "$GCC" = yes ; then
4513 echo "$as_me:4513: checking if this is really Intel C compiler" >&5
4514 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4515 cf_save_CFLAGS="$CFLAGS"
4516 CFLAGS="$CFLAGS -no-gcc"
4517 cat >conftest.$ac_ext <<_ACEOF
4518 #line 4518 "configure"
4519 #include "confdefs.h"
4525 #ifdef __INTEL_COMPILER
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:4535: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>&5
4538 echo "$as_me:4538: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:4541: \"$ac_try\"") >&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4547 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4550 echo "$as_me: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 rm -f conftest.$ac_objext conftest.$ac_ext
4554 CFLAGS="$cf_save_CFLAGS"
4555 echo "$as_me:4555: result: $INTEL_COMPILER" >&5
4556 echo "${ECHO_T}$INTEL_COMPILER" >&6
4563 if test "$GCC" = yes ; then
4564 echo "$as_me:4564: checking if this is really Clang C compiler" >&5
4565 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4566 cf_save_CFLAGS="$CFLAGS"
4567 CFLAGS="$CFLAGS -Qunused-arguments"
4568 cat >conftest.$ac_ext <<_ACEOF
4569 #line 4569 "configure"
4570 #include "confdefs.h"
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:4586: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
4589 echo "$as_me:4589: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:4592: \"$ac_try\"") >&5
4595 echo "$as_me:4595: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4598 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4601 echo "$as_me: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 rm -f conftest.$ac_objext conftest.$ac_ext
4605 CFLAGS="$cf_save_CFLAGS"
4606 echo "$as_me:4606: result: $CLANG_COMPILER" >&5
4607 echo "${ECHO_T}$CLANG_COMPILER" >&6
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4611 "${as_me:-configure}"
4612 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4615 if test "$INTEL_COMPILER" = yes
4617 # The "-wdXXX" options suppress warnings:
4618 # remark #1419: external declaration in primary source file
4619 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4620 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4621 # remark #193: zero used for undefined preprocessing identifier
4622 # remark #593: variable "curs_sb_left_arrow" was set but never used
4623 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4624 # remark #869: parameter "tw" was never referenced
4625 # remark #981: operands are evaluated in unspecified order
4626 # warning #279: controlling expression is constant
4628 { echo "$as_me:4628: checking for $CC warning options..." >&5
4629 echo "$as_me: checking for $CC warning options..." >&6;}
4630 cf_save_CFLAGS="$CFLAGS"
4631 EXTRA_CFLAGS="-Wall"
4643 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4644 if { (eval echo "$as_me:4644: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:4647: \$? = $ac_status" >&5
4648 (exit $ac_status); }; then
4649 test -n "$verbose" && echo "$as_me:4649: result: ... -$cf_opt" >&5
4650 echo "${ECHO_T}... -$cf_opt" >&6
4651 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4654 CFLAGS="$cf_save_CFLAGS"
4656 elif test "$GCC" = yes
4658 { echo "$as_me:4658: checking for $CC warning options..." >&5
4659 echo "$as_me: checking for $CC warning options..." >&6;}
4660 cf_save_CFLAGS="$CFLAGS"
4663 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4664 for cf_opt in W Wall \
4665 Wbad-function-cast \
4669 Wmissing-declarations \
4670 Wmissing-prototypes \
4674 Wstrict-prototypes \
4675 Wundef $cf_warn_CONST
4677 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4678 if { (eval echo "$as_me:4678: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4681 echo "$as_me:4681: \$? = $ac_status" >&5
4682 (exit $ac_status); }; then
4683 test -n "$verbose" && echo "$as_me:4683: result: ... -$cf_opt" >&5
4684 echo "${ECHO_T}... -$cf_opt" >&6
4685 case $cf_opt in #(vi
4687 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4690 case $GCC_VERSION in
4692 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4694 echo "${as_me:-configure}:4694: testing feature is broken in gcc $GCC_VERSION ..." 1>&5