2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20150926.
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 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-pkg-config{=path} enable/disable use of pkg-config
659 --disable-echo do not display "compiling" commands
660 Curses Version-dependent Options:
661 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
662 --disable-widec disable checks for wide-character functions
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-screen=XXX use specified curses-libraries
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-Xaw3dxft link with Xaw 3d xft library
672 --with-neXtaw link with neXT Athena library
673 --with-XawPlus link with Athena-Plus library
674 --with-x use the X Window System
675 Testing/development Options:
676 --enable-warnings test: turn on gcc compiler warnings
677 --with-dmalloc test: use Gray Watson's dmalloc library
678 --with-dbmalloc test: use Conor Cahill's dbmalloc library
679 --with-valgrind test: use valgrind
680 --disable-leaks test: free permanent memory, analyze leaks
681 --disable-rpath-hack don't add rpath options for additional libraries
683 Some influential environment variables:
684 CC C compiler command
685 CFLAGS C compiler flags
686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
687 nonstandard directory <lib dir>
688 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
689 headers in a nonstandard directory <include dir>
692 Use these variables to override the choices made by `configure' or to help
693 it to find libraries and programs with nonstandard names/locations.
698 if test "$ac_init_help" = "recursive"; then
699 # If there are subdirs, report their specific --help.
701 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
703 # A "../" for each directory in /$ac_subdir.
704 ac_dots=`echo $ac_subdir |
705 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
708 .) # No --srcdir option. We are building in place.
709 ac_sub_srcdir=$srcdir ;;
710 [\\/]* | ?:[\\/]* ) # Absolute path.
711 ac_sub_srcdir=$srcdir/$ac_subdir ;;
713 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
716 # Check for guested configure; otherwise get Cygnus style configure.
717 if test -f $ac_sub_srcdir/configure.gnu; then
719 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
720 elif test -f $ac_sub_srcdir/configure; then
722 $SHELL $ac_sub_srcdir/configure --help=recursive
723 elif test -f $ac_sub_srcdir/configure.ac ||
724 test -f $ac_sub_srcdir/configure.in; then
728 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 test -n "$ac_init_help" && exit 0
735 if $ac_init_version; then
738 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
739 Free Software Foundation, Inc.
740 This configure script is free software; the Free Software Foundation
741 gives unlimited permission to copy, distribute and modify it.
747 This file contains any messages produced by compilers while
748 running configure, to aid debugging if configure makes a mistake.
750 It was created by $as_me, which was
751 generated by GNU Autoconf 2.52.20150926. Invocation command line was
762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
774 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
791 # Keep a trace of the command line.
792 # Strip out --no-create and --no-recursion so they do not pile up.
793 # Also quote any args containing shell meta-characters.
799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800 | --no-cr | --no-c) ;;
801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
804 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
805 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
807 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
810 # Get rid of the leading space.
813 # When interrupted or exit'd, cleanup temporary files, and complete
814 # config.log. We remove comments because anyway the quotes in there
815 # would cause problems or look ugly.
817 # Save into config.log some information that might help in debugging.
819 echo "## ----------------- ##" >&5
820 echo "## Cache variables. ##" >&5
821 echo "## ----------------- ##" >&5
823 # The following way of writing the cache mishandles newlines in values,
826 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
829 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
834 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
838 sed "/^$/d" confdefs.h >conftest.log
839 if test -s conftest.log; then
841 echo "## ------------ ##" >&5
842 echo "## confdefs.h. ##" >&5
843 echo "## ------------ ##" >&5
848 test "$ac_signal" != 0 &&
849 echo "$as_me: caught signal $ac_signal" >&5
850 echo "$as_me: exit $exit_status" >&5
851 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
854 for ac_signal in 1 2 13 15; do
855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
860 rm -rf conftest* confdefs.h
861 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
864 # Let the site file select an alternate cache file if it wants to.
865 # Prefer explicitly selected file to automatically selected ones.
866 if test -z "$CONFIG_SITE"; then
867 if test "x$prefix" != xNONE; then
868 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
870 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
873 for ac_site_file in $CONFIG_SITE; do
874 if test -r "$ac_site_file"; then
875 { echo "$as_me:875: loading site script $ac_site_file" >&5
876 echo "$as_me: loading site script $ac_site_file" >&6;}
877 cat "$ac_site_file" >&5
882 if test -r "$cache_file"; then
883 # Some versions of bash will fail to source /dev/null (special
884 # files actually), so we avoid doing that.
885 if test -f "$cache_file"; then
886 { echo "$as_me:886: loading cache $cache_file" >&5
887 echo "$as_me: loading cache $cache_file" >&6;}
889 [\\/]* | ?:[\\/]* ) . $cache_file;;
894 { echo "$as_me:894: creating cache $cache_file" >&5
895 echo "$as_me: creating cache $cache_file" >&6;}
899 # Check that the precious variables saved in the cache have kept the same
901 ac_cache_corrupted=false
902 for ac_var in `(set) 2>&1 |
903 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
905 eval ac_new_set=\$ac_env_${ac_var}_set
906 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
907 eval ac_new_val="\$ac_env_${ac_var}_value"
908 case $ac_old_set,$ac_new_set in
910 { echo "$as_me:910: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
912 ac_cache_corrupted=: ;;
914 { echo "$as_me:914: error: \`$ac_var' was not set in the previous run" >&5
915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
916 ac_cache_corrupted=: ;;
919 if test "x$ac_old_val" != "x$ac_new_val"; then
920 { echo "$as_me:920: error: \`$ac_var' has changed since the previous run:" >&5
921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
922 { echo "$as_me:922: former value: $ac_old_val" >&5
923 echo "$as_me: former value: $ac_old_val" >&2;}
924 { echo "$as_me:924: current value: $ac_new_val" >&5
925 echo "$as_me: current value: $ac_new_val" >&2;}
929 # Pass precious variables to config.status. It doesn't matter if
930 # we pass some twice (in addition to the command line arguments).
931 if test "$ac_new_set" = set; then
933 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args="$ac_configure_args '$ac_arg'"
937 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
942 if $ac_cache_corrupted; then
943 { echo "$as_me:943: error: changes in the environment can compromise the build" >&5
944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
945 { { echo "$as_me:945: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
947 { (exit 1); exit 1; }; }
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
955 ac_main_return=return
957 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
958 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
960 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
961 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
963 echo "#! $SHELL" >conftest.sh
964 echo "exit 0" >>conftest.sh
966 if { (echo "$as_me:966: PATH=\".;.\"; conftest.sh") >&5
967 (PATH=".;."; conftest.sh) 2>&5
969 echo "$as_me:969: \$? = $ac_status" >&5
970 (exit $ac_status); }; then
971 ac_path_separator=';'
975 PATH_SEPARATOR="$ac_path_separator"
978 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
980 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
982 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
985 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
986 if test -f $ac_dir/install-sh; then
988 ac_install_sh="$ac_aux_dir/install-sh -c"
990 elif test -f $ac_dir/install.sh; then
992 ac_install_sh="$ac_aux_dir/install.sh -c"
994 elif test -f $ac_dir/shtool; then
996 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1002 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1003 { (exit 1); exit 1; }; }
1005 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1006 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1007 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1009 # Make sure we can run config.sub.
1010 $ac_config_sub sun4 >/dev/null 2>&1 ||
1011 { { echo "$as_me:1011: error: cannot run $ac_config_sub" >&5
1012 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1013 { (exit 1); exit 1; }; }
1015 echo "$as_me:1015: checking build system type" >&5
1016 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1017 if test "${ac_cv_build+set}" = set; then
1018 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 ac_cv_build_alias=$build_alias
1021 test -z "$ac_cv_build_alias" &&
1022 ac_cv_build_alias=`$ac_config_guess`
1023 test -z "$ac_cv_build_alias" &&
1024 { { echo "$as_me:1024: error: cannot guess build type; you must specify one" >&5
1025 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1026 { (exit 1); exit 1; }; }
1027 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1028 { { echo "$as_me:1028: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1029 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1030 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: result: $ac_cv_build" >&5
1034 echo "${ECHO_T}$ac_cv_build" >&6
1036 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1041 echo "$as_me:1041: checking host system type" >&5
1042 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1043 if test "${ac_cv_host+set}" = set; then
1044 echo $ECHO_N "(cached) $ECHO_C" >&6
1046 ac_cv_host_alias=$host_alias
1047 test -z "$ac_cv_host_alias" &&
1048 ac_cv_host_alias=$ac_cv_build_alias
1049 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1050 { { echo "$as_me:1050: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1051 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1052 { (exit 1); exit 1; }; }
1055 echo "$as_me:1055: result: $ac_cv_host" >&5
1056 echo "${ECHO_T}$ac_cv_host" >&6
1058 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 system_name="$host_os"
1064 system_name="`(uname -s -r) 2>/dev/null`"
1065 if test -z "$system_name" ; then
1066 system_name="`(hostname) 2>/dev/null`"
1069 test -n "$system_name" &&
1070 cat >>confdefs.h <<EOF
1071 #define SYSTEM_NAME "$system_name"
1074 if test "${cf_cv_system_name+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 cf_cv_system_name="$system_name"
1080 test -z "$system_name" && system_name="$cf_cv_system_name"
1081 test -n "$cf_cv_system_name" && echo "$as_me:1081: result: Configuring for $cf_cv_system_name" >&5
1082 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1084 if test ".$system_name" != ".$cf_cv_system_name" ; then
1085 echo "$as_me:1085: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1086 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1087 { { echo "$as_me:1087: error: \"Please remove config.cache and try again.\"" >&5
1088 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1089 { (exit 1); exit 1; }; }
1092 test "$program_prefix" != NONE &&
1093 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1094 # Use a double $ so make ignores it.
1095 test "$program_suffix" != NONE &&
1096 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1097 # Double any \ or $. echo might interpret backslashes.
1098 # By default was `s,x,x', remove it if useless.
1099 cat <<\_ACEOF >conftest.sed
1100 s/[\\$]/&&/g;s/;s,x,x,$//
1102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1105 echo "$as_me:1105: checking whether ${MAKE-make} sets \${MAKE}" >&5
1106 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1107 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1108 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1109 echo $ECHO_N "(cached) $ECHO_C" >&6
1111 cat >conftest.make <<\EOF
1113 @echo 'ac_maketemp="${MAKE}"'
1115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1116 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1117 if test -n "$ac_maketemp"; then
1118 eval ac_cv_prog_make_${ac_make}_set=yes
1120 eval ac_cv_prog_make_${ac_make}_set=no
1124 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1125 echo "$as_me:1125: result: yes" >&5
1126 echo "${ECHO_T}yes" >&6
1129 echo "$as_me:1129: result: no" >&5
1130 echo "${ECHO_T}no" >&6
1131 SET_MAKE="MAKE=${MAKE-make}"
1135 ac_cpp='$CPP $CPPFLAGS'
1136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1139 ac_main_return=return
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1153 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$ac_cv_prog_CC"; then
1176 # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc; ac_word=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1186 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 $as_executable_p "$ac_dir/$ac_word" || continue
1192 ac_cv_prog_ac_ct_CC="gcc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201 echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1204 echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1213 if test -z "$CC"; then
1214 if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1239 if test -n "$CC"; then
1240 echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1248 if test -z "$ac_cv_prog_CC"; then
1250 # Extract the first word of "cc", so it can be a program name with args.
1251 set dummy cc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1260 ac_save_IFS=$IFS; IFS=$ac_path_separator
1262 for ac_dir in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir=.
1265 $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="cc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1278 echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1288 if test -z "$CC"; then
1289 # Extract the first word of "cc", so it can be a program name with args.
1290 set dummy cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1300 ac_save_IFS=$IFS; IFS=$ac_path_separator
1302 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 $as_executable_p "$ac_dir/$ac_word" || continue
1306 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1307 ac_prog_rejected=yes
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1315 if test $ac_prog_rejected = yes; then
1316 # We found a bogon in the path, so make sure we never use it.
1317 set dummy $ac_cv_prog_CC
1319 if test $# != 0; then
1320 # We chose a different compiler from the bogus one.
1321 # However, it has the same basename, so the bogon will be chosen
1322 # first if we set CC to just the basename; use the full file name.
1324 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1332 if test -n "$CC"; then
1333 echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1341 if test -z "$CC"; then
1342 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1347 echo "$as_me:1347: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 ac_save_IFS=$IFS; IFS=$ac_path_separator
1357 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 $as_executable_p "$ac_dir/$ac_word" || continue
1361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1369 if test -n "$CC"; then
1370 echo "$as_me:1370: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1373 echo "$as_me:1373: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1377 test -n "$CC" && break
1380 if test -z "$CC"; then
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$ac_ct_CC"; then
1392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1394 ac_save_IFS=$IFS; IFS=$ac_path_separator
1396 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 $as_executable_p "$ac_dir/$ac_word" || continue
1400 ac_cv_prog_ac_ct_CC="$ac_prog"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409 echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1412 echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1416 test -n "$ac_ct_CC" && break
1424 test -z "$CC" && { { echo "$as_me:1424: error: no acceptable cc found in \$PATH" >&5
1425 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1426 { (exit 1); exit 1; }; }
1428 # Provide some information about the compiler.
1429 echo "$as_me:1429:" \
1430 "checking for C compiler version" >&5
1431 ac_compiler=`set X $ac_compile; echo $2`
1432 { (eval echo "$as_me:1432: \"$ac_compiler --version </dev/null >&5\"") >&5
1433 (eval $ac_compiler --version </dev/null >&5) 2>&5
1435 echo "$as_me:1435: \$? = $ac_status" >&5
1436 (exit $ac_status); }
1437 { (eval echo "$as_me:1437: \"$ac_compiler -v </dev/null >&5\"") >&5
1438 (eval $ac_compiler -v </dev/null >&5) 2>&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -V </dev/null >&5\"") >&5
1443 (eval $ac_compiler -V </dev/null >&5) 2>&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }
1448 cat >conftest.$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1460 ac_clean_files_save=$ac_clean_files
1461 ac_clean_files="$ac_clean_files a.out a.exe"
1462 # Try to create an executable without -o first, disregard a.out.
1463 # It will help us diagnose broken compilers, and finding out an intuition
1465 echo "$as_me:1465: checking for C compiler default output" >&5
1466 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1468 if { (eval echo "$as_me:1468: \"$ac_link_default\"") >&5
1469 (eval $ac_link_default) 2>&5
1471 echo "$as_me:1471: \$? = $ac_status" >&5
1472 (exit $ac_status); }; then
1473 # Find the output, starting from the most likely. This scheme is
1474 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1476 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1477 ls a.out conftest 2>/dev/null;
1478 ls a.* conftest.* 2>/dev/null`; do
1480 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1481 a.out ) # We found the default executable, but exeext='' is most
1484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1485 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1492 echo "$as_me: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 { { echo "$as_me:1494: error: C compiler cannot create executables" >&5
1495 echo "$as_me: error: C compiler cannot create executables" >&2;}
1496 { (exit 77); exit 77; }; }
1499 ac_exeext=$ac_cv_exeext
1500 echo "$as_me:1500: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1503 # Check the compiler produces executables we can run. If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:1505: checking whether the C compiler works" >&5
1506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510 if { ac_try='./$ac_file'
1511 { (eval echo "$as_me:1511: \"$ac_try\"") >&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }; }; then
1518 if test "$cross_compiling" = maybe; then
1521 { { echo "$as_me:1521: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&5
1523 echo "$as_me: error: cannot run C compiled programs.
1524 If you meant to cross compile, use \`--host'." >&2;}
1525 { (exit 1); exit 1; }; }
1529 echo "$as_me:1529: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1532 rm -f a.out a.exe conftest$ac_cv_exeext
1533 ac_clean_files=$ac_clean_files_save
1534 # Check the compiler produces executables we can run. If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether we are cross compiling" >&5
1537 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1538 echo "$as_me:1538: result: $cross_compiling" >&5
1539 echo "${ECHO_T}$cross_compiling" >&6
1541 echo "$as_me:1541: checking for executable suffix" >&5
1542 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1543 if { (eval echo "$as_me:1543: \"$ac_link\"") >&5
1544 (eval $ac_link) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; then
1548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1550 # work properly (i.e., refer to `conftest.exe'), while it won't with
1552 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1554 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1562 { { echo "$as_me:1562: error: cannot compute EXEEXT: cannot compile and link" >&5
1563 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1564 { (exit 1); exit 1; }; }
1567 rm -f conftest$ac_cv_exeext
1568 echo "$as_me:1568: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1571 rm -f conftest.$ac_ext
1572 EXEEXT=$ac_cv_exeext
1574 echo "$as_me:1574: checking for object suffix" >&5
1575 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 rm -f conftest.o conftest.obj
1592 if { (eval echo "$as_me:1592: \"$ac_compile\"") >&5
1593 (eval $ac_compile) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1605 echo "$as_me: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 { { echo "$as_me:1607: error: cannot compute OBJEXT: cannot compile" >&5
1608 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1609 { (exit 1); exit 1; }; }
1612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1614 echo "$as_me:1614: result: $ac_cv_objext" >&5
1615 echo "${ECHO_T}$ac_cv_objext" >&6
1616 OBJEXT=$ac_cv_objext
1618 echo "$as_me:1618: checking whether we are using the GNU C compiler" >&5
1619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1652 echo "$as_me: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1660 echo "$as_me:1660: result: $ac_cv_c_compiler_gnu" >&5
1661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1662 GCC=`test $ac_compiler_gnu = yes && echo yes`
1663 ac_test_CFLAGS=${CFLAGS+set}
1664 ac_save_CFLAGS=$CFLAGS
1666 echo "$as_me:1666: checking whether $CC accepts -g" >&5
1667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1668 if test "${ac_cv_prog_cc_g+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1683 rm -f conftest.$ac_objext
1684 if { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
1685 (eval $ac_compile) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); } &&
1689 { ac_try='test -s conftest.$ac_objext'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 echo "$as_me: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1701 rm -f conftest.$ac_objext conftest.$ac_ext
1703 echo "$as_me:1703: result: $ac_cv_prog_cc_g" >&5
1704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1705 if test "$ac_test_CFLAGS" = set; then
1706 CFLAGS=$ac_save_CFLAGS
1707 elif test $ac_cv_prog_cc_g = yes; then
1708 if test "$GCC" = yes; then
1714 if test "$GCC" = yes; then
1720 # Some people use a C++ compiler to compile C. Since we use `exit',
1721 # in C++ we need to declare it. In case someone uses the same compiler
1722 # for both compiling C and C++ we need to have the C++ compiler decide
1723 # the declaration of exit, since it's the most demanding environment.
1724 cat >conftest.$ac_ext <<_ACEOF
1729 rm -f conftest.$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 (eval $ac_compile) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); } &&
1735 { ac_try='test -s conftest.$ac_objext'
1736 { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 for ac_declaration in \
1743 '#include <stdlib.h>' \
1744 'extern "C" void std::exit (int) throw (); using std::exit;' \
1745 'extern "C" void std::exit (int); using std::exit;' \
1746 'extern "C" void exit (int) throw ();' \
1747 'extern "C" void exit (int);' \
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1763 rm -f conftest.$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 (eval $ac_compile) 2>&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } &&
1769 { ac_try='test -s conftest.$ac_objext'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 rm -f conftest.$ac_objext conftest.$ac_ext
1814 if test -n "$ac_declaration"; then
1815 echo '#ifdef __cplusplus' >>confdefs.h
1816 echo $ac_declaration >>confdefs.h
1817 echo '#endif' >>confdefs.h
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 rm -f conftest.$ac_objext conftest.$ac_ext
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_main_return=return
1833 if test "$GCC" = yes ; then
1834 echo "$as_me:1834: checking version of $CC" >&5
1835 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1836 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1837 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1838 echo "$as_me:1838: result: $GCC_VERSION" >&5
1839 echo "${ECHO_T}$GCC_VERSION" >&6
1842 echo "$as_me:1842: checking for $CC option to accept ANSI C" >&5
1843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 ac_cv_prog_cc_stdc=no
1849 cat >conftest.$ac_ext <<_ACEOF
1850 #line 1850 "configure"
1851 #include "confdefs.h"
1854 #include <sys/types.h>
1855 #include <sys/stat.h>
1856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1857 struct buf { int x; };
1858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1859 static char *e (p, i)
1865 static char *f (char * (*g) (char **, int), char **p, ...)
1870 s = g (p, va_arg (v,int));
1874 int test (int i, double x);
1875 struct s1 {int (*f) (int a);};
1876 struct s2 {int (*f) (double a);};
1877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1888 # Don't try gcc -ansi; that turns off useful extensions and
1889 # breaks some systems' header files.
1890 # AIX -qlanglvl=ansi
1891 # Ultrix and OSF/1 -std1
1892 # HP-UX 10.20 and later -Ae
1893 # HP-UX older versions -Aa -D_HPUX_SOURCE
1894 # SVR4 -Xc -D__EXTENSIONS__
1895 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1897 CC="$ac_save_CC $ac_arg"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_cv_prog_cc_stdc=$ac_arg
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 rm -f conftest.$ac_objext
1918 rm -f conftest.$ac_ext conftest.$ac_objext
1923 case "x$ac_cv_prog_cc_stdc" in
1925 echo "$as_me:1925: result: none needed" >&5
1926 echo "${ECHO_T}none needed" >&6 ;;
1928 echo "$as_me:1928: result: $ac_cv_prog_cc_stdc" >&5
1929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1930 CC="$CC $ac_cv_prog_cc_stdc" ;;
1933 # This should have been defined by AC_PROG_CC
1936 echo "$as_me:1936: checking \$CC variable" >&5
1937 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1940 echo "$as_me:1940: result: broken" >&5
1941 echo "${ECHO_T}broken" >&6
1942 { echo "$as_me:1942: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1943 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1945 cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
1946 CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'`
1947 for cf_arg in $cf_flags
1955 cf_new_extra_cppflags=
1957 for cf_add_cflags in $cf_flags
1959 case $cf_fix_cppflags in
1961 case $cf_add_cflags in
1962 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1963 case $cf_add_cflags in
1965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1967 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1968 && test -z "${cf_tst_cflags}" \
1969 && cf_fix_cppflags=yes
1971 if test $cf_fix_cppflags = yes ; then
1972 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1974 elif test "${cf_tst_cflags}" = "\"'" ; then
1975 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1984 case $cf_add_cflags in
1986 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1988 CPPFLAGS=`echo "$CPPFLAGS" | \
1989 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1990 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1994 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1999 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2004 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2006 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2008 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2009 && test -z "${cf_tst_cflags}" \
2010 && cf_fix_cppflags=no
2015 if test -n "$cf_new_cflags" ; then
2017 CFLAGS="$CFLAGS $cf_new_cflags"
2020 if test -n "$cf_new_cppflags" ; then
2022 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2025 if test -n "$cf_new_extra_cppflags" ; then
2027 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2036 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2038 echo "${as_me:-configure}:2038: testing resulting CC: '$CC' ..." 1>&5
2040 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2042 echo "${as_me:-configure}:2042: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2044 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2046 echo "${as_me:-configure}:2046: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2050 echo "$as_me:2050: result: ok" >&5
2051 echo "${ECHO_T}ok" >&6
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 ac_main_return=return
2061 echo "$as_me:2061: checking how to run the C preprocessor" >&5
2062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2063 # On Suns, sometimes $CPP names a directory.
2064 if test -n "$CPP" && test -d "$CPP"; then
2067 if test -z "$CPP"; then
2068 if test "${ac_cv_prog_CPP+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 # Double quotes because CPP needs to be expanded
2072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2075 for ac_c_preproc_warn_flag in '' yes
2077 # Use a header file that comes with gcc, so configuring glibc
2078 # with a fresh cross-compiler works.
2079 # On the NeXT, cc -E runs the code through the compiler's parser,
2080 # not just through cpp. "Syntax error" is here to catch this case.
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line 2082 "configure"
2083 #include "confdefs.h"
2087 if { (eval echo "$as_me:2087: \"$ac_cpp conftest.$ac_ext\"") >&5
2088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2090 egrep -v '^ *\+' conftest.er1 >conftest.err
2092 cat conftest.err >&5
2093 echo "$as_me:2093: \$? = $ac_status" >&5
2094 (exit $ac_status); } >/dev/null; then
2095 if test -s conftest.err; then
2096 ac_cpp_err=$ac_c_preproc_warn_flag
2103 if test -z "$ac_cpp_err"; then
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 # Broken: fails on valid input.
2111 rm -f conftest.err conftest.$ac_ext
2113 # OK, works on sane cases. Now check whether non-existent headers
2114 # can be detected and how.
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #line 2116 "configure"
2117 #include "confdefs.h"
2118 #include <ac_nonexistent.h>
2120 if { (eval echo "$as_me:2120: \"$ac_cpp conftest.$ac_ext\"") >&5
2121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2123 egrep -v '^ *\+' conftest.er1 >conftest.err
2125 cat conftest.err >&5
2126 echo "$as_me:2126: \$? = $ac_status" >&5
2127 (exit $ac_status); } >/dev/null; then
2128 if test -s conftest.err; then
2129 ac_cpp_err=$ac_c_preproc_warn_flag
2136 if test -z "$ac_cpp_err"; then
2137 # Broken: success on invalid input.
2140 echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 # Passes both tests.
2146 rm -f conftest.err conftest.$ac_ext
2149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2150 rm -f conftest.err conftest.$ac_ext
2151 if $ac_preproc_ok; then
2163 echo "$as_me:2163: result: $CPP" >&5
2164 echo "${ECHO_T}$CPP" >&6
2166 for ac_c_preproc_warn_flag in '' yes
2168 # Use a header file that comes with gcc, so configuring glibc
2169 # with a fresh cross-compiler works.
2170 # On the NeXT, cc -E runs the code through the compiler's parser,
2171 # not just through cpp. "Syntax error" is here to catch this case.
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line 2173 "configure"
2174 #include "confdefs.h"
2178 if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2181 egrep -v '^ *\+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } >/dev/null; then
2186 if test -s conftest.err; then
2187 ac_cpp_err=$ac_c_preproc_warn_flag
2194 if test -z "$ac_cpp_err"; then
2197 echo "$as_me: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 # Broken: fails on valid input.
2202 rm -f conftest.err conftest.$ac_ext
2204 # OK, works on sane cases. Now check whether non-existent headers
2205 # can be detected and how.
2206 cat >conftest.$ac_ext <<_ACEOF
2207 #line 2207 "configure"
2208 #include "confdefs.h"
2209 #include <ac_nonexistent.h>
2211 if { (eval echo "$as_me:2211: \"$ac_cpp conftest.$ac_ext\"") >&5
2212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2214 egrep -v '^ *\+' conftest.er1 >conftest.err
2216 cat conftest.err >&5
2217 echo "$as_me:2217: \$? = $ac_status" >&5
2218 (exit $ac_status); } >/dev/null; then
2219 if test -s conftest.err; then
2220 ac_cpp_err=$ac_c_preproc_warn_flag
2227 if test -z "$ac_cpp_err"; then
2228 # Broken: success on invalid input.
2231 echo "$as_me: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2233 # Passes both tests.
2237 rm -f conftest.err conftest.$ac_ext
2240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2241 rm -f conftest.err conftest.$ac_ext
2242 if $ac_preproc_ok; then
2245 { { echo "$as_me:2245: error: C preprocessor \"$CPP\" fails sanity check" >&5
2246 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2247 { (exit 1); exit 1; }; }
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255 ac_main_return=return
2257 for ac_prog in mawk gawk nawk awk
2259 # Extract the first word of "$ac_prog", so it can be a program name with args.
2260 set dummy $ac_prog; ac_word=$2
2261 echo "$as_me:2261: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_AWK+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$AWK"; then
2267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2269 ac_save_IFS=$IFS; IFS=$ac_path_separator
2271 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 $as_executable_p "$ac_dir/$ac_word" || continue
2275 ac_cv_prog_AWK="$ac_prog"
2276 echo "$as_me:2276: found $ac_dir/$ac_word" >&5
2283 if test -n "$AWK"; then
2284 echo "$as_me:2284: result: $AWK" >&5
2285 echo "${ECHO_T}$AWK" >&6
2287 echo "$as_me:2287: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2291 test -n "$AWK" && break
2294 # Find a good install program. We prefer a C program (faster),
2295 # so one script is as good as another. But avoid the broken or
2296 # incompatible versions:
2297 # SysV /etc/install, /usr/sbin/install
2298 # SunOS /usr/etc/install
2299 # IRIX /sbin/install
2301 # AmigaOS /C/install, which installs bootblocks on floppy discs
2302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2305 # ./install, which can be erroneously created by make from ./install.sh.
2306 echo "$as_me:2306: checking for a BSD compatible install" >&5
2307 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2308 if test -z "$INSTALL"; then
2309 if test "${ac_cv_path_install+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 ac_save_IFS=$IFS; IFS=$ac_path_separator
2313 for ac_dir in $PATH; do
2315 # Account for people who put trailing slashes in PATH elements.
2317 / | ./ | .// | /cC/* \
2318 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2321 # OSF1 and SCO ODT 3.0 have their own names for install.
2322 # Don't use installbsd from OSF since it installs stuff as root
2324 for ac_prog in ginstall scoinst install; do
2325 if $as_executable_p "$ac_dir/$ac_prog"; then
2326 if test $ac_prog = install &&
2327 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2328 # AIX install. It has an incompatible calling convention.
2330 elif test $ac_prog = install &&
2331 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2332 # program-specific install script used by HP pwplus--don't use.
2335 ac_cv_path_install="$ac_dir/$ac_prog -c"
2345 if test "${ac_cv_path_install+set}" = set; then
2346 INSTALL=$ac_cv_path_install
2348 # As a last resort, use the slow shell script. We don't cache a
2349 # path for INSTALL within a source directory, because that will
2350 # break other packages using the cache if that directory is
2351 # removed, or if the path is relative.
2352 INSTALL=$ac_install_sh
2355 echo "$as_me:2355: result: $INSTALL" >&5
2356 echo "${ECHO_T}$INSTALL" >&6
2358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2359 # It thinks the first close brace ends the variable substitution.
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2371 test -z "$cf_dir" && cf_dir=.
2372 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2376 for ac_prog in lint cppcheck splint
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 echo "$as_me:2380: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_LINT+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$LINT"; then
2386 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2388 ac_save_IFS=$IFS; IFS=$ac_path_separator
2390 for ac_dir in $ac_dummy; do
2392 test -z "$ac_dir" && ac_dir=.
2393 $as_executable_p "$ac_dir/$ac_word" || continue
2394 ac_cv_prog_LINT="$ac_prog"
2395 echo "$as_me:2395: found $ac_dir/$ac_word" >&5
2401 LINT=$ac_cv_prog_LINT
2402 if test -n "$LINT"; then
2403 echo "$as_me:2403: result: $LINT" >&5
2404 echo "${ECHO_T}$LINT" >&6
2406 echo "$as_me:2406: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2410 test -n "$LINT" && break
2413 echo "$as_me:2413: checking if filesystem supports mixed-case filenames" >&5
2414 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2415 if test "${cf_cv_mixedcase+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test "$cross_compiling" = yes ; then
2420 case $target_alias in
2421 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2429 rm -f conftest CONFTEST
2431 if test -f CONFTEST ; then
2436 rm -f conftest CONFTEST
2440 echo "$as_me:2440: result: $cf_cv_mixedcase" >&5
2441 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2442 test "$cf_cv_mixedcase" = yes &&
2443 cat >>confdefs.h <<\EOF
2444 #define MIXEDCASE_FILENAMES 1
2447 for ac_prog in exctags ctags
2449 # Extract the first word of "$ac_prog", so it can be a program name with args.
2450 set dummy $ac_prog; ac_word=$2
2451 echo "$as_me:2451: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2453 if test "${ac_cv_prog_CTAGS+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$CTAGS"; then
2457 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2459 ac_save_IFS=$IFS; IFS=$ac_path_separator
2461 for ac_dir in $ac_dummy; do
2463 test -z "$ac_dir" && ac_dir=.
2464 $as_executable_p "$ac_dir/$ac_word" || continue
2465 ac_cv_prog_CTAGS="$ac_prog"
2466 echo "$as_me:2466: found $ac_dir/$ac_word" >&5
2472 CTAGS=$ac_cv_prog_CTAGS
2473 if test -n "$CTAGS"; then
2474 echo "$as_me:2474: result: $CTAGS" >&5
2475 echo "${ECHO_T}$CTAGS" >&6
2477 echo "$as_me:2477: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2481 test -n "$CTAGS" && break
2484 for ac_prog in exetags etags
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 echo "$as_me:2488: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490 if test "${ac_cv_prog_ETAGS+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$ETAGS"; then
2494 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2496 ac_save_IFS=$IFS; IFS=$ac_path_separator
2498 for ac_dir in $ac_dummy; do
2500 test -z "$ac_dir" && ac_dir=.
2501 $as_executable_p "$ac_dir/$ac_word" || continue
2502 ac_cv_prog_ETAGS="$ac_prog"
2503 echo "$as_me:2503: found $ac_dir/$ac_word" >&5
2509 ETAGS=$ac_cv_prog_ETAGS
2510 if test -n "$ETAGS"; then
2511 echo "$as_me:2511: result: $ETAGS" >&5
2512 echo "${ECHO_T}$ETAGS" >&6
2514 echo "$as_me:2514: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2518 test -n "$ETAGS" && break
2521 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2522 set dummy ${CTAGS:-ctags}; ac_word=$2
2523 echo "$as_me:2523: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$MAKE_LOWER_TAGS"; then
2529 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2531 ac_save_IFS=$IFS; IFS=$ac_path_separator
2533 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 $as_executable_p "$ac_dir/$ac_word" || continue
2537 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2538 echo "$as_me:2538: found $ac_dir/$ac_word" >&5
2542 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2545 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2546 if test -n "$MAKE_LOWER_TAGS"; then
2547 echo "$as_me:2547: result: $MAKE_LOWER_TAGS" >&5
2548 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2550 echo "$as_me:2550: result: no" >&5
2551 echo "${ECHO_T}no" >&6
2554 if test "$cf_cv_mixedcase" = yes ; then
2555 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2556 set dummy ${ETAGS:-etags}; ac_word=$2
2557 echo "$as_me:2557: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$MAKE_UPPER_TAGS"; then
2563 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2565 ac_save_IFS=$IFS; IFS=$ac_path_separator
2567 for ac_dir in $ac_dummy; do
2569 test -z "$ac_dir" && ac_dir=.
2570 $as_executable_p "$ac_dir/$ac_word" || continue
2571 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2572 echo "$as_me:2572: found $ac_dir/$ac_word" >&5
2576 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2579 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2580 if test -n "$MAKE_UPPER_TAGS"; then
2581 echo "$as_me:2581: result: $MAKE_UPPER_TAGS" >&5
2582 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2584 echo "$as_me:2584: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2592 if test "$MAKE_UPPER_TAGS" = yes ; then
2598 if test "$MAKE_LOWER_TAGS" = yes ; then
2604 echo "$as_me:2604: checking if -lm needed for math functions" >&5
2605 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2606 if test "${cf_cv_need_libm+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line 2611 "configure"
2612 #include "confdefs.h"
2620 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2625 rm -f conftest.$ac_objext conftest$ac_exeext
2626 if { (eval echo "$as_me:2626: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>&5
2629 echo "$as_me:2629: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:2632: \"$ac_try\"") >&5
2635 echo "$as_me:2635: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2645 echo "$as_me:2645: result: $cf_cv_need_libm" >&5
2646 echo "${ECHO_T}$cf_cv_need_libm" >&6
2647 if test "$cf_cv_need_libm" = yes
2655 CC_SHARED_OPTS=unknown
2656 CPPFLAGS="$CPPFLAGS"
2658 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2659 DFT_UPR_MODEL="NORMAL"
2672 PACKAGE="ncurses-examples"
2678 TINFO_LIBS='$(LIBS_CURSES)'
2679 cf_cv_abi_version=""
2680 cf_cv_rel_version=""
2686 if test "$GCC" = yes
2688 cat > conftest.i <<EOF
2690 #define GCC_PRINTF 0
2695 #ifndef GCC_NORETURN
2696 #define GCC_NORETURN /* nothing */
2699 #define GCC_UNUSED /* nothing */
2702 if test "$GCC" = yes
2704 { echo "$as_me:2704: checking for $CC __attribute__ directives..." >&5
2705 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2707 "${as_me:-configure}"
2708 #include "confdefs.h"
2709 #include "conftest.h"
2710 #include "conftest.i"
2712 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2714 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2717 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2719 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2721 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2722 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2723 extern void foo(void) GCC_NORETURN;
2724 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2726 cf_printf_attribute=no
2727 cf_scanf_attribute=no
2728 for cf_attribute in scanf printf unused noreturn
2731 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2733 cf_directive="__attribute__(($cf_attribute))"
2734 echo "checking for $CC $cf_directive" 1>&5
2736 case $cf_attribute in
2738 cf_printf_attribute=yes
2739 cat >conftest.h <<EOF
2740 #define GCC_$cf_ATTRIBUTE 1
2744 cf_scanf_attribute=yes
2745 cat >conftest.h <<EOF
2746 #define GCC_$cf_ATTRIBUTE 1
2750 cat >conftest.h <<EOF
2751 #define GCC_$cf_ATTRIBUTE $cf_directive
2756 if { (eval echo "$as_me:2756: \"$ac_compile\"") >&5
2757 (eval $ac_compile) 2>&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; then
2761 test -n "$verbose" && echo "$as_me:2761: result: ... $cf_attribute" >&5
2762 echo "${ECHO_T}... $cf_attribute" >&6
2763 cat conftest.h >>confdefs.h
2764 case $cf_attribute in
2767 cat >>confdefs.h <<EOF
2768 #define GCC_NORETURN $cf_directive
2773 cf_value='/* nothing */'
2774 if test "$cf_printf_attribute" != no ; then
2775 cf_value='__attribute__((format(printf,fmt,var)))'
2777 cat >>confdefs.h <<\EOF
2778 #define GCC_PRINTF 1
2783 cat >>confdefs.h <<EOF
2784 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2789 cf_value='/* nothing */'
2790 if test "$cf_scanf_attribute" != no ; then
2791 cf_value='__attribute__((format(scanf,fmt,var)))'
2793 cat >>confdefs.h <<\EOF
2799 cat >>confdefs.h <<EOF
2800 #define GCC_SCANFLIKE(fmt,var) $cf_value
2806 cat >>confdefs.h <<EOF
2807 #define GCC_UNUSED $cf_directive
2815 fgrep define conftest.i >>confdefs.h
2821 cf_POSIX_C_SOURCE=199506L
2826 cf_xopen_source="-D_ALL_SOURCE"
2832 cf_xopen_source="-D_APPLE_C_SOURCE"
2835 cf_xopen_source="-D_DARWIN_C_SOURCE"
2838 (freebsd*|dragonfly*)
2839 # 5.x headers associate
2840 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2841 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2842 cf_POSIX_C_SOURCE=200112L
2844 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2847 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2850 cf_xopen_source="-D_HPUX_SOURCE"
2853 cf_xopen_source="-D_SGI_SOURCE"
2856 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
2858 echo "$as_me:2858: checking if we must define _GNU_SOURCE" >&5
2859 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2860 if test "${cf_cv_gnu_source+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line 2865 "configure"
2866 #include "confdefs.h"
2867 #include <sys/types.h>
2872 #ifndef _XOPEN_SOURCE
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:2880: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>&5
2883 echo "$as_me:2883: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:2886: \"$ac_try\"") >&5
2889 echo "$as_me:2889: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2893 echo "$as_me: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2896 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2897 cat >conftest.$ac_ext <<_ACEOF
2898 #line 2898 "configure"
2899 #include "confdefs.h"
2900 #include <sys/types.h>
2905 #ifdef _XOPEN_SOURCE
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:2913: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>&5
2916 echo "$as_me:2916: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -s conftest.$ac_objext'
2919 { (eval echo "$as_me:2919: \"$ac_try\"") >&5
2922 echo "$as_me:2922: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2926 echo "$as_me: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2928 cf_cv_gnu_source=yes
2930 rm -f conftest.$ac_objext conftest.$ac_ext
2934 rm -f conftest.$ac_objext conftest.$ac_ext
2937 echo "$as_me:2937: result: $cf_cv_gnu_source" >&5
2938 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2940 if test "$cf_cv_gnu_source" = yes
2942 echo "$as_me:2942: checking if we should also define _DEFAULT_SOURCE" >&5
2943 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
2944 if test "${cf_cv_default_source+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line 2950 "configure"
2951 #include "confdefs.h"
2952 #include <sys/types.h>
2957 #ifdef _DEFAULT_SOURCE
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:2965: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (eval echo "$as_me:2971: \"$ac_try\"") >&5
2974 echo "$as_me:2974: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 cf_cv_default_source=no
2978 echo "$as_me: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 cf_cv_default_source=yes
2982 rm -f conftest.$ac_objext conftest.$ac_ext
2985 echo "$as_me:2985: result: $cf_cv_default_source" >&5
2986 echo "${ECHO_T}$cf_cv_default_source" >&6
2987 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
2992 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2995 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2998 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3000 cf_save_CFLAGS="$CFLAGS"
3001 cf_save_CPPFLAGS="$CPPFLAGS"
3003 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3004 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3005 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3007 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3008 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3009 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3011 echo "$as_me:3011: checking if we should define _POSIX_C_SOURCE" >&5
3012 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3013 if test "${cf_cv_posix_c_source+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 echo "${as_me:-configure}:3017: testing if the symbol is already defined go no further ..." 1>&5
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line 3020 "configure"
3021 #include "confdefs.h"
3022 #include <sys/types.h>
3027 #ifndef _POSIX_C_SOURCE
3034 rm -f conftest.$ac_objext
3035 if { (eval echo "$as_me:3035: \"$ac_compile\"") >&5
3036 (eval $ac_compile) 2>&5
3038 echo "$as_me:3038: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (eval echo "$as_me:3041: \"$ac_try\"") >&5
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 cf_cv_posix_c_source=no
3048 echo "$as_me: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 cf_want_posix_source=no
3051 case .$cf_POSIX_C_SOURCE in
3053 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3056 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3057 cf_want_posix_source=yes
3060 cf_want_posix_source=yes
3063 if test "$cf_want_posix_source" = yes ; then
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line 3065 "configure"
3066 #include "confdefs.h"
3067 #include <sys/types.h>
3072 #ifdef _POSIX_SOURCE
3079 rm -f conftest.$ac_objext
3080 if { (eval echo "$as_me:3080: \"$ac_compile\"") >&5
3081 (eval $ac_compile) 2>&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (eval echo "$as_me:3086: \"$ac_try\"") >&5
3089 echo "$as_me:3089: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 echo "$as_me: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3097 rm -f conftest.$ac_objext conftest.$ac_ext
3100 echo "${as_me:-configure}:3100: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3102 CFLAGS="$cf_trim_CFLAGS"
3103 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3105 echo "${as_me:-configure}:3105: testing if the second compile does not leave our definition intact error ..." 1>&5
3107 cat >conftest.$ac_ext <<_ACEOF
3108 #line 3108 "configure"
3109 #include "confdefs.h"
3110 #include <sys/types.h>
3115 #ifndef _POSIX_C_SOURCE
3122 rm -f conftest.$ac_objext
3123 if { (eval echo "$as_me:3123: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3126 echo "$as_me:3126: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:3129: \"$ac_try\"") >&5
3132 echo "$as_me:3132: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3136 echo "$as_me: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 cf_cv_posix_c_source=no
3140 rm -f conftest.$ac_objext conftest.$ac_ext
3141 CFLAGS="$cf_save_CFLAGS"
3142 CPPFLAGS="$cf_save_CPPFLAGS"
3145 rm -f conftest.$ac_objext conftest.$ac_ext
3148 echo "$as_me:3148: result: $cf_cv_posix_c_source" >&5
3149 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3151 if test "$cf_cv_posix_c_source" != no ; then
3152 CFLAGS="$cf_trim_CFLAGS"
3153 CPPFLAGS="$cf_trim_CPPFLAGS"
3158 cf_new_extra_cppflags=
3160 for cf_add_cflags in $cf_cv_posix_c_source
3162 case $cf_fix_cppflags in
3164 case $cf_add_cflags in
3165 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3166 case $cf_add_cflags in
3168 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3170 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3171 && test -z "${cf_tst_cflags}" \
3172 && cf_fix_cppflags=yes
3174 if test $cf_fix_cppflags = yes ; then
3175 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3177 elif test "${cf_tst_cflags}" = "\"'" ; then
3178 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3187 case $cf_add_cflags in
3189 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3191 CPPFLAGS=`echo "$CPPFLAGS" | \
3192 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3193 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3197 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3202 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3207 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3209 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3211 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3212 && test -z "${cf_tst_cflags}" \
3213 && cf_fix_cppflags=no
3218 if test -n "$cf_new_cflags" ; then
3220 CFLAGS="$CFLAGS $cf_new_cflags"
3223 if test -n "$cf_new_cppflags" ; then
3225 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3228 if test -n "$cf_new_extra_cppflags" ; then
3230 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3237 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3240 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3241 cf_xopen_source="-D_BSD_SOURCE"
3245 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3248 cf_xopen_source="-D_OSF_SOURCE"
3251 cf_xopen_source="-D_QNX_SOURCE"
3254 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3257 cf_xopen_source="-D__EXTENSIONS__"
3258 cf_cv_xopen_source=broken
3260 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3266 echo "$as_me:3266: checking if we should define _XOPEN_SOURCE" >&5
3267 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3268 if test "${cf_cv_xopen_source+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line 3273 "configure"
3274 #include "confdefs.h"
3278 #include <sys/types.h>
3284 #ifndef _XOPEN_SOURCE
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:3292: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>&5
3295 echo "$as_me:3295: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:3298: \"$ac_try\"") >&5
3301 echo "$as_me:3301: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 cf_cv_xopen_source=no
3305 echo "$as_me: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3308 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3315 #include <sys/types.h>
3321 #ifdef _XOPEN_SOURCE
3328 rm -f conftest.$ac_objext
3329 if { (eval echo "$as_me:3329: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>&5
3332 echo "$as_me:3332: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:3335: \"$ac_try\"") >&5
3338 echo "$as_me:3338: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 cf_cv_xopen_source=no
3342 echo "$as_me: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3344 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3346 rm -f conftest.$ac_objext conftest.$ac_ext
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3353 echo "$as_me:3353: result: $cf_cv_xopen_source" >&5
3354 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3356 if test "$cf_cv_xopen_source" != no ; then
3358 CFLAGS=`echo "$CFLAGS" | \
3359 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3360 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3362 CPPFLAGS=`echo "$CPPFLAGS" | \
3363 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3364 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3366 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3371 cf_new_extra_cppflags=
3373 for cf_add_cflags in $cf_temp_xopen_source
3375 case $cf_fix_cppflags in
3377 case $cf_add_cflags in
3378 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3379 case $cf_add_cflags in
3381 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3383 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3384 && test -z "${cf_tst_cflags}" \
3385 && cf_fix_cppflags=yes
3387 if test $cf_fix_cppflags = yes ; then
3388 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3390 elif test "${cf_tst_cflags}" = "\"'" ; then
3391 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3400 case $cf_add_cflags in
3402 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3404 CPPFLAGS=`echo "$CPPFLAGS" | \
3405 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3406 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3410 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3415 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3422 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3424 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3425 && test -z "${cf_tst_cflags}" \
3426 && cf_fix_cppflags=no
3431 if test -n "$cf_new_cflags" ; then
3433 CFLAGS="$CFLAGS $cf_new_cflags"
3436 if test -n "$cf_new_cppflags" ; then
3438 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3441 if test -n "$cf_new_extra_cppflags" ; then
3443 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3448 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3450 cf_save_CFLAGS="$CFLAGS"
3451 cf_save_CPPFLAGS="$CPPFLAGS"
3453 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3454 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3455 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3457 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3458 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3459 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3461 echo "$as_me:3461: checking if we should define _POSIX_C_SOURCE" >&5
3462 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3463 if test "${cf_cv_posix_c_source+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 echo "${as_me:-configure}:3467: testing if the symbol is already defined go no further ..." 1>&5
3469 cat >conftest.$ac_ext <<_ACEOF
3470 #line 3470 "configure"
3471 #include "confdefs.h"
3472 #include <sys/types.h>
3477 #ifndef _POSIX_C_SOURCE
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:3485: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3488 echo "$as_me:3488: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:3491: \"$ac_try\"") >&5
3494 echo "$as_me:3494: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 cf_cv_posix_c_source=no
3498 echo "$as_me: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 cf_want_posix_source=no
3501 case .$cf_POSIX_C_SOURCE in
3503 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3506 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3507 cf_want_posix_source=yes
3510 cf_want_posix_source=yes
3513 if test "$cf_want_posix_source" = yes ; then
3514 cat >conftest.$ac_ext <<_ACEOF
3515 #line 3515 "configure"
3516 #include "confdefs.h"
3517 #include <sys/types.h>
3522 #ifdef _POSIX_SOURCE
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3547 rm -f conftest.$ac_objext conftest.$ac_ext
3550 echo "${as_me:-configure}:3550: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3552 CFLAGS="$cf_trim_CFLAGS"
3553 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3555 echo "${as_me:-configure}:3555: testing if the second compile does not leave our definition intact error ..." 1>&5
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line 3558 "configure"
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3565 #ifndef _POSIX_C_SOURCE
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:3573: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>&5
3576 echo "$as_me:3576: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:3579: \"$ac_try\"") >&5
3582 echo "$as_me:3582: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3586 echo "$as_me: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 cf_cv_posix_c_source=no
3590 rm -f conftest.$ac_objext conftest.$ac_ext
3591 CFLAGS="$cf_save_CFLAGS"
3592 CPPFLAGS="$cf_save_CPPFLAGS"
3595 rm -f conftest.$ac_objext conftest.$ac_ext
3598 echo "$as_me:3598: result: $cf_cv_posix_c_source" >&5
3599 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3601 if test "$cf_cv_posix_c_source" != no ; then
3602 CFLAGS="$cf_trim_CFLAGS"
3603 CPPFLAGS="$cf_trim_CPPFLAGS"
3608 cf_new_extra_cppflags=
3610 for cf_add_cflags in $cf_cv_posix_c_source
3612 case $cf_fix_cppflags in
3614 case $cf_add_cflags in
3615 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3616 case $cf_add_cflags in
3618 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3621 && test -z "${cf_tst_cflags}" \
3622 && cf_fix_cppflags=yes
3624 if test $cf_fix_cppflags = yes ; then
3625 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3627 elif test "${cf_tst_cflags}" = "\"'" ; then
3628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3637 case $cf_add_cflags in
3639 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3641 CPPFLAGS=`echo "$CPPFLAGS" | \
3642 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3643 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3647 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3652 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3657 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3659 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3661 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3662 && test -z "${cf_tst_cflags}" \
3663 && cf_fix_cppflags=no
3668 if test -n "$cf_new_cflags" ; then
3670 CFLAGS="$CFLAGS $cf_new_cflags"
3673 if test -n "$cf_new_cppflags" ; then
3675 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3678 if test -n "$cf_new_extra_cppflags" ; then
3680 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3688 if test -n "$cf_xopen_source" ; then
3693 cf_new_extra_cppflags=
3695 for cf_add_cflags in $cf_xopen_source
3697 case $cf_fix_cppflags in
3699 case $cf_add_cflags in
3700 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3701 case $cf_add_cflags in
3703 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3705 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3706 && test -z "${cf_tst_cflags}" \
3707 && cf_fix_cppflags=yes
3709 if test $cf_fix_cppflags = yes ; then
3710 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3712 elif test "${cf_tst_cflags}" = "\"'" ; then
3713 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3722 case $cf_add_cflags in
3724 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3726 CPPFLAGS=`echo "$CPPFLAGS" | \
3727 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3728 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3732 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3737 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3742 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3744 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3746 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3747 && test -z "${cf_tst_cflags}" \
3748 && cf_fix_cppflags=no
3753 if test -n "$cf_new_cflags" ; then
3754 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3756 echo "${as_me:-configure}:3756: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3758 CFLAGS="$CFLAGS $cf_new_cflags"
3761 if test -n "$cf_new_cppflags" ; then
3762 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3764 echo "${as_me:-configure}:3764: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3766 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3769 if test -n "$cf_new_extra_cppflags" ; then
3770 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3772 echo "${as_me:-configure}:3772: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3774 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3779 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3780 echo "$as_me:3780: checking if _XOPEN_SOURCE really is set" >&5
3781 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3782 cat >conftest.$ac_ext <<_ACEOF
3783 #line 3783 "configure"
3784 #include "confdefs.h"
3790 #ifndef _XOPEN_SOURCE
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:3798: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>&5
3801 echo "$as_me:3801: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:3804: \"$ac_try\"") >&5
3807 echo "$as_me:3807: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 cf_XOPEN_SOURCE_set=yes
3811 echo "$as_me: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3813 cf_XOPEN_SOURCE_set=no
3815 rm -f conftest.$ac_objext conftest.$ac_ext
3816 echo "$as_me:3816: result: $cf_XOPEN_SOURCE_set" >&5
3817 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3818 if test $cf_XOPEN_SOURCE_set = yes
3820 cat >conftest.$ac_ext <<_ACEOF
3821 #line 3821 "configure"
3822 #include "confdefs.h"
3828 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:3836: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3839 echo "$as_me:3839: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:3842: \"$ac_try\"") >&5
3845 echo "$as_me:3845: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 cf_XOPEN_SOURCE_set_ok=yes
3849 echo "$as_me: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 cf_XOPEN_SOURCE_set_ok=no
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3854 if test $cf_XOPEN_SOURCE_set_ok = no
3856 { echo "$as_me:3856: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3857 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3861 echo "$as_me:3861: checking if we should define _XOPEN_SOURCE" >&5
3862 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3863 if test "${cf_cv_xopen_source+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 cat >conftest.$ac_ext <<_ACEOF
3868 #line 3868 "configure"
3869 #include "confdefs.h"
3873 #include <sys/types.h>
3879 #ifndef _XOPEN_SOURCE
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:3887: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
3890 echo "$as_me:3890: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:3893: \"$ac_try\"") >&5
3896 echo "$as_me:3896: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 cf_cv_xopen_source=no
3900 echo "$as_me: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3903 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line 3905 "configure"
3906 #include "confdefs.h"
3910 #include <sys/types.h>
3916 #ifdef _XOPEN_SOURCE
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:3924: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>&5
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -s conftest.$ac_objext'
3930 { (eval echo "$as_me:3930: \"$ac_try\"") >&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 cf_cv_xopen_source=no
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3941 rm -f conftest.$ac_objext conftest.$ac_ext
3945 rm -f conftest.$ac_objext conftest.$ac_ext
3948 echo "$as_me:3948: result: $cf_cv_xopen_source" >&5
3949 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3951 if test "$cf_cv_xopen_source" != no ; then
3953 CFLAGS=`echo "$CFLAGS" | \
3954 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3955 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3957 CPPFLAGS=`echo "$CPPFLAGS" | \
3958 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3959 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3961 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3966 cf_new_extra_cppflags=
3968 for cf_add_cflags in $cf_temp_xopen_source
3970 case $cf_fix_cppflags in
3972 case $cf_add_cflags in
3973 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3974 case $cf_add_cflags in
3976 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3978 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3979 && test -z "${cf_tst_cflags}" \
3980 && cf_fix_cppflags=yes
3982 if test $cf_fix_cppflags = yes ; then
3983 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3985 elif test "${cf_tst_cflags}" = "\"'" ; then
3986 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3995 case $cf_add_cflags in
3997 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3999 CPPFLAGS=`echo "$CPPFLAGS" | \
4000 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4001 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4005 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4010 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4015 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4017 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4019 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4020 && test -z "${cf_tst_cflags}" \
4021 && cf_fix_cppflags=no
4026 if test -n "$cf_new_cflags" ; then
4028 CFLAGS="$CFLAGS $cf_new_cflags"
4031 if test -n "$cf_new_cppflags" ; then
4033 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4036 if test -n "$cf_new_extra_cppflags" ; then
4038 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4046 echo "$as_me:4046: checking for signal global datatype" >&5
4047 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4048 if test "${cf_cv_sig_atomic_t+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 "volatile sig_atomic_t" \
4057 cat >conftest.$ac_ext <<_ACEOF
4058 #line 4058 "configure"
4059 #include "confdefs.h"
4061 #include <sys/types.h>
4067 static void handler(int sig)
4074 signal(SIGINT, handler);
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:4081: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:4084: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:4087: \"$ac_try\"") >&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 cf_cv_sig_atomic_t=$cf_type
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 cf_cv_sig_atomic_t=no
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4099 test "$cf_cv_sig_atomic_t" != no && break
4104 echo "$as_me:4104: result: $cf_cv_sig_atomic_t" >&5
4105 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4106 test "$cf_cv_sig_atomic_t" != no &&
4107 cat >>confdefs.h <<EOF
4108 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4111 # Work around breakage on OS X
4113 echo "$as_me:4113: checking if SIGWINCH is defined" >&5
4114 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4115 if test "${cf_cv_define_sigwinch+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4120 #line 4120 "configure"
4121 #include "confdefs.h"
4123 #include <sys/types.h>
4124 #include <sys/signal.h>
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:4135: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>&5
4138 echo "$as_me:4138: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:4141: \"$ac_try\"") >&5
4144 echo "$as_me:4144: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 cf_cv_define_sigwinch=yes
4148 echo "$as_me: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 cat >conftest.$ac_ext <<_ACEOF
4151 #line 4151 "configure"
4152 #include "confdefs.h"
4154 #undef _XOPEN_SOURCE
4155 #undef _POSIX_SOURCE
4156 #undef _POSIX_C_SOURCE
4157 #include <sys/types.h>
4158 #include <sys/signal.h>
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:4169: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>&5
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:4175: \"$ac_try\"") >&5
4178 echo "$as_me:4178: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 cf_cv_define_sigwinch=maybe
4182 echo "$as_me: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4184 cf_cv_define_sigwinch=no
4186 rm -f conftest.$ac_objext conftest.$ac_ext
4189 rm -f conftest.$ac_objext conftest.$ac_ext
4192 echo "$as_me:4192: result: $cf_cv_define_sigwinch" >&5
4193 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4195 if test "$cf_cv_define_sigwinch" = maybe ; then
4196 echo "$as_me:4196: checking for actual SIGWINCH definition" >&5
4197 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4198 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 cf_cv_fixup_sigwinch=unknown
4204 while test $cf_sigwinch != 1
4206 cat >conftest.$ac_ext <<_ACEOF
4207 #line 4207 "configure"
4208 #include "confdefs.h"
4210 #undef _XOPEN_SOURCE
4211 #undef _POSIX_SOURCE
4212 #undef _POSIX_C_SOURCE
4213 #include <sys/types.h>
4214 #include <sys/signal.h>
4220 #if SIGWINCH != $cf_sigwinch
4228 rm -f conftest.$ac_objext
4229 if { (eval echo "$as_me:4229: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>&5
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:4235: \"$ac_try\"") >&5
4238 echo "$as_me:4238: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 cf_cv_fixup_sigwinch=$cf_sigwinch
4243 echo "$as_me: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4246 rm -f conftest.$ac_objext conftest.$ac_ext
4248 cf_sigwinch=`expr $cf_sigwinch - 1`
4252 echo "$as_me:4252: result: $cf_cv_fixup_sigwinch" >&5
4253 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4255 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4256 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4260 # Checks for CODESET support.
4262 echo "$as_me:4262: checking for nl_langinfo and CODESET" >&5
4263 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4264 if test "${am_cv_langinfo_codeset+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line 4268 "configure"
4269 #include "confdefs.h"
4270 #include <langinfo.h>
4274 char* cs = nl_langinfo(CODESET);
4279 rm -f conftest.$ac_objext conftest$ac_exeext
4280 if { (eval echo "$as_me:4280: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -s conftest$ac_exeext'
4286 { (eval echo "$as_me:4286: \"$ac_try\"") >&5
4289 echo "$as_me:4289: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 am_cv_langinfo_codeset=yes
4293 echo "$as_me: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 am_cv_langinfo_codeset=no
4297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4300 echo "$as_me:4300: result: $am_cv_langinfo_codeset" >&5
4301 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4302 if test $am_cv_langinfo_codeset = yes; then
4304 cat >>confdefs.h <<\EOF
4305 #define HAVE_LANGINFO_CODESET 1
4310 echo "$as_me:4310: checking if you want to use pkg-config" >&5
4311 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4313 # Check whether --with-pkg-config or --without-pkg-config was given.
4314 if test "${with_pkg_config+set}" = set; then
4315 withval="$with_pkg_config"
4316 cf_pkg_config=$withval
4320 echo "$as_me:4320: result: $cf_pkg_config" >&5
4321 echo "${ECHO_T}$cf_pkg_config" >&6
4323 case $cf_pkg_config in
4329 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4331 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4332 echo "$as_me:4332: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4342 ac_save_IFS=$IFS; IFS=$ac_path_separator
4344 for ac_dir in $ac_dummy; do
4346 test -z "$ac_dir" && ac_dir=.
4347 if $as_executable_p "$ac_dir/$ac_word"; then
4348 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4349 echo "$as_me:4349: found $ac_dir/$ac_word" >&5
4357 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4359 if test -n "$PKG_CONFIG"; then
4360 echo "$as_me:4360: result: $PKG_CONFIG" >&5
4361 echo "${ECHO_T}$PKG_CONFIG" >&6
4363 echo "$as_me:4363: result: no" >&5
4364 echo "${ECHO_T}no" >&6
4368 if test -z "$ac_cv_path_PKG_CONFIG"; then
4369 ac_pt_PKG_CONFIG=$PKG_CONFIG
4370 # Extract the first word of "pkg-config", so it can be a program name with args.
4371 set dummy pkg-config; ac_word=$2
4372 echo "$as_me:4372: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4374 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 case $ac_pt_PKG_CONFIG in
4379 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4382 ac_save_IFS=$IFS; IFS=$ac_path_separator
4384 for ac_dir in $ac_dummy; do
4386 test -z "$ac_dir" && ac_dir=.
4387 if $as_executable_p "$ac_dir/$ac_word"; then
4388 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4389 echo "$as_me:4389: found $ac_dir/$ac_word" >&5
4394 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4398 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4400 if test -n "$ac_pt_PKG_CONFIG"; then
4401 echo "$as_me:4401: result: $ac_pt_PKG_CONFIG" >&5
4402 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4404 echo "$as_me:4404: result: no" >&5
4405 echo "${ECHO_T}no" >&6
4408 PKG_CONFIG=$ac_pt_PKG_CONFIG
4410 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4419 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4420 if test "$PKG_CONFIG" != none ; then
4422 if test "x$prefix" != xNONE; then
4423 cf_path_syntax="$prefix"
4425 cf_path_syntax="$ac_default_prefix"
4428 case ".$PKG_CONFIG" in
4433 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4435 (.\${*prefix}*|.\${*dir}*)
4436 eval PKG_CONFIG="$PKG_CONFIG"
4437 case ".$PKG_CONFIG" in
4439 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4444 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4447 { { echo "$as_me:4447: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4448 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4449 { (exit 1); exit 1; }; }
4453 elif test "x$cf_pkg_config" != xno ; then
4454 { echo "$as_me:4454: WARNING: pkg-config is not installed" >&5
4455 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4458 echo "$as_me:4458: checking if you want to see long compiling messages" >&5
4459 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4461 # Check whether --enable-echo or --disable-echo was given.
4462 if test "${enable_echo+set}" = set; then
4463 enableval="$enable_echo"
4464 test "$enableval" != no && enableval=yes
4465 if test "$enableval" != "yes" ; then
4468 ECHO_LD='@echo linking $@;'
4469 RULE_CC='@echo compiling $<'
4470 SHOW_CC='@echo compiling $@'
4492 echo "$as_me:4492: result: $enableval" >&5
4493 echo "${ECHO_T}$enableval" >&6
4495 echo "$as_me:4495: checking for ncurses wrap-prefix" >&5
4496 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4498 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4499 if test "${with_ncurses_wrap_prefix+set}" = set; then
4500 withval="$with_ncurses_wrap_prefix"
4501 NCURSES_WRAP_PREFIX=$withval
4503 NCURSES_WRAP_PREFIX=_nc_
4505 echo "$as_me:4505: result: $NCURSES_WRAP_PREFIX" >&5
4506 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4508 echo "$as_me:4508: checking if you want to check for wide-character functions" >&5
4509 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4511 # Check whether --enable-widec or --disable-widec was given.
4512 if test "${enable_widec+set}" = set; then
4513 enableval="$enable_widec"
4514 test "$enableval" != no && enableval=yes
4515 if test "$enableval" != "yes" ; then
4525 echo "$as_me:4525: result: $cf_enable_widec" >&5
4526 echo "${ECHO_T}$cf_enable_widec" >&6
4528 echo "$as_me:4528: checking for specific curses-directory" >&5
4529 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4531 # Check whether --with-curses-dir or --without-curses-dir was given.
4532 if test "${with_curses_dir+set}" = set; then
4533 withval="$with_curses_dir"
4534 cf_cv_curses_dir=$withval
4538 echo "$as_me:4538: result: $cf_cv_curses_dir" >&5
4539 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4541 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4544 if test "x$prefix" != xNONE; then
4545 cf_path_syntax="$prefix"
4547 cf_path_syntax="$ac_default_prefix"
4555 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4557 (.\${*prefix}*|.\${*dir}*)
4558 eval withval="$withval"
4561 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4566 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4569 { { echo "$as_me:4569: error: expected a pathname, not \"$withval\"" >&5
4570 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4571 { (exit 1); exit 1; }; }
4575 if test -d "$cf_cv_curses_dir"
4578 if test -n "$cf_cv_curses_dir/include" ; then
4579 for cf_add_incdir in $cf_cv_curses_dir/include
4581 while test $cf_add_incdir != /usr/include
4583 if test -d $cf_add_incdir
4586 if test -n "$CFLAGS$CPPFLAGS" ; then
4587 # a loop is needed to ensure we can add subdirs of existing dirs
4588 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4589 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4590 cf_have_incdir=yes; break
4595 if test "$cf_have_incdir" = no ; then
4596 if test "$cf_add_incdir" = /usr/local/include ; then
4597 if test "$GCC" = yes
4599 cf_save_CPPFLAGS=$CPPFLAGS
4600 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4601 cat >conftest.$ac_ext <<_ACEOF
4602 #line 4602 "configure"
4603 #include "confdefs.h"
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:4614: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>&5
4617 echo "$as_me:4617: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:4620: \"$ac_try\"") >&5
4623 echo "$as_me:4623: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4627 echo "$as_me: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4631 rm -f conftest.$ac_objext conftest.$ac_ext
4632 CPPFLAGS=$cf_save_CPPFLAGS
4637 if test "$cf_have_incdir" = no ; then
4638 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4640 echo "${as_me:-configure}:4640: testing adding $cf_add_incdir to include-path ..." 1>&5
4642 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4644 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4645 test "$cf_top_incdir" = "$cf_add_incdir" && break
4646 cf_add_incdir="$cf_top_incdir"
4657 if test -n "$cf_cv_curses_dir/lib" ; then
4658 for cf_add_libdir in $cf_cv_curses_dir/lib
4660 if test $cf_add_libdir = /usr/lib ; then
4662 elif test -d $cf_add_libdir
4665 if test -n "$LDFLAGS$LIBS" ; then
4666 # a loop is needed to ensure we can add subdirs of existing dirs
4667 for cf_test_libdir in $LDFLAGS $LIBS ; do
4668 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4669 cf_have_libdir=yes; break
4673 if test "$cf_have_libdir" = no ; then
4674 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4676 echo "${as_me:-configure}:4676: testing adding $cf_add_libdir to library-path ..." 1>&5
4678 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4689 echo "$as_me:4689: checking for specified curses library type" >&5
4690 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4692 # Check whether --with-screen or --without-screen was given.
4693 if test "${with_screen+set}" = set; then
4694 withval="$with_screen"
4695 cf_cv_screen=$withval
4698 # Check whether --with-ncursesw or --without-ncursesw was given.
4699 if test "${with_ncursesw+set}" = set; then
4700 withval="$with_ncursesw"
4701 cf_cv_screen=ncursesw
4704 # Check whether --with-ncurses or --without-ncurses was given.
4705 if test "${with_ncurses+set}" = set; then
4706 withval="$with_ncurses"
4707 cf_cv_screen=ncurses
4710 # Check whether --with-pdcurses or --without-pdcurses was given.
4711 if test "${with_pdcurses+set}" = set; then
4712 withval="$with_pdcurses"
4713 cf_cv_screen=pdcurses
4716 # Check whether --with-curses-colr or --without-curses-colr was given.
4717 if test "${with_curses_colr+set}" = set; then
4718 withval="$with_curses_colr"
4719 cf_cv_screen=curses_colr
4722 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4723 if test "${with_curses_5lib+set}" = set; then
4724 withval="$with_curses_5lib"
4725 cf_cv_screen=curses_5lib
4733 echo "$as_me:4733: result: $cf_cv_screen" >&5
4734 echo "${ECHO_T}$cf_cv_screen" >&6
4736 case $cf_cv_screen in
4739 echo "$as_me:4739: checking for extra include directories" >&5
4740 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4741 if test "${cf_cv_curses_incdir+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 cf_cv_curses_incdir=no
4748 if test "x$cf_cv_screen" = "xcurses_colr"
4750 test -d /usr/include/curses_colr && \
4751 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4755 if test "x$cf_cv_screen" = "xcurses_5lib"
4757 test -d /usr/5lib && \
4758 test -d /usr/5include && \
4759 cf_cv_curses_incdir="-I/usr/5include"
4765 echo "$as_me:4765: result: $cf_cv_curses_incdir" >&5
4766 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4767 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4769 echo "$as_me:4769: checking if we have identified curses headers" >&5
4770 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4771 if test "${cf_cv_ncurses_header+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cf_cv_ncurses_header=none