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/^[^ ]*[ ][ ]*//'`
1946 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1951 cf_new_extra_cppflags=
1953 for cf_add_cflags in $cf_flags
1955 case $cf_fix_cppflags in
1957 case $cf_add_cflags in
1958 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1959 case $cf_add_cflags in
1961 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1963 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1964 && test -z "${cf_tst_cflags}" \
1965 && cf_fix_cppflags=yes
1967 if test $cf_fix_cppflags = yes ; then
1968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1970 elif test "${cf_tst_cflags}" = "\"'" ; then
1971 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1980 case $cf_add_cflags in
1982 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1984 CPPFLAGS=`echo "$CPPFLAGS" | \
1985 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1986 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1990 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1995 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2000 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2002 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2005 && test -z "${cf_tst_cflags}" \
2006 && cf_fix_cppflags=no
2011 if test -n "$cf_new_cflags" ; then
2013 CFLAGS="$CFLAGS $cf_new_cflags"
2016 if test -n "$cf_new_cppflags" ; then
2018 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2021 if test -n "$cf_new_extra_cppflags" ; then
2023 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2026 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2028 echo "${as_me:-configure}:2028: testing resulting CC: '$CC' ..." 1>&5
2030 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2032 echo "${as_me:-configure}:2032: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2034 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2036 echo "${as_me:-configure}:2036: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2040 echo "$as_me:2040: result: ok" >&5
2041 echo "${ECHO_T}ok" >&6
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 ac_main_return=return
2051 echo "$as_me:2051: checking how to run the C preprocessor" >&5
2052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2053 # On Suns, sometimes $CPP names a directory.
2054 if test -n "$CPP" && test -d "$CPP"; then
2057 if test -z "$CPP"; then
2058 if test "${ac_cv_prog_CPP+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 # Double quotes because CPP needs to be expanded
2062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2065 for ac_c_preproc_warn_flag in '' yes
2067 # Use a header file that comes with gcc, so configuring glibc
2068 # with a fresh cross-compiler works.
2069 # On the NeXT, cc -E runs the code through the compiler's parser,
2070 # not just through cpp. "Syntax error" is here to catch this case.
2071 cat >conftest.$ac_ext <<_ACEOF
2072 #line 2072 "configure"
2073 #include "confdefs.h"
2077 if { (eval echo "$as_me:2077: \"$ac_cpp conftest.$ac_ext\"") >&5
2078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2080 egrep -v '^ *\+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:2083: \$? = $ac_status" >&5
2084 (exit $ac_status); } >/dev/null; then
2085 if test -s conftest.err; then
2086 ac_cpp_err=$ac_c_preproc_warn_flag
2093 if test -z "$ac_cpp_err"; then
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 # Broken: fails on valid input.
2101 rm -f conftest.err conftest.$ac_ext
2103 # OK, works on sane cases. Now check whether non-existent headers
2104 # can be detected and how.
2105 cat >conftest.$ac_ext <<_ACEOF
2106 #line 2106 "configure"
2107 #include "confdefs.h"
2108 #include <ac_nonexistent.h>
2110 if { (eval echo "$as_me:2110: \"$ac_cpp conftest.$ac_ext\"") >&5
2111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2113 egrep -v '^ *\+' conftest.er1 >conftest.err
2115 cat conftest.err >&5
2116 echo "$as_me:2116: \$? = $ac_status" >&5
2117 (exit $ac_status); } >/dev/null; then
2118 if test -s conftest.err; then
2119 ac_cpp_err=$ac_c_preproc_warn_flag
2126 if test -z "$ac_cpp_err"; then
2127 # Broken: success on invalid input.
2130 echo "$as_me: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 # Passes both tests.
2136 rm -f conftest.err conftest.$ac_ext
2139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2140 rm -f conftest.err conftest.$ac_ext
2141 if $ac_preproc_ok; then
2153 echo "$as_me:2153: result: $CPP" >&5
2154 echo "${ECHO_T}$CPP" >&6
2156 for ac_c_preproc_warn_flag in '' yes
2158 # Use a header file that comes with gcc, so configuring glibc
2159 # with a fresh cross-compiler works.
2160 # On the NeXT, cc -E runs the code through the compiler's parser,
2161 # not just through cpp. "Syntax error" is here to catch this case.
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line 2163 "configure"
2164 #include "confdefs.h"
2168 if { (eval echo "$as_me:2168: \"$ac_cpp conftest.$ac_ext\"") >&5
2169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2171 egrep -v '^ *\+' conftest.er1 >conftest.err
2173 cat conftest.err >&5
2174 echo "$as_me:2174: \$? = $ac_status" >&5
2175 (exit $ac_status); } >/dev/null; then
2176 if test -s conftest.err; then
2177 ac_cpp_err=$ac_c_preproc_warn_flag
2184 if test -z "$ac_cpp_err"; then
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 # Broken: fails on valid input.
2192 rm -f conftest.err conftest.$ac_ext
2194 # OK, works on sane cases. Now check whether non-existent headers
2195 # can be detected and how.
2196 cat >conftest.$ac_ext <<_ACEOF
2197 #line 2197 "configure"
2198 #include "confdefs.h"
2199 #include <ac_nonexistent.h>
2201 if { (eval echo "$as_me:2201: \"$ac_cpp conftest.$ac_ext\"") >&5
2202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2204 egrep -v '^ *\+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:2207: \$? = $ac_status" >&5
2208 (exit $ac_status); } >/dev/null; then
2209 if test -s conftest.err; then
2210 ac_cpp_err=$ac_c_preproc_warn_flag
2217 if test -z "$ac_cpp_err"; then
2218 # Broken: success on invalid input.
2221 echo "$as_me: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2223 # Passes both tests.
2227 rm -f conftest.err conftest.$ac_ext
2230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2231 rm -f conftest.err conftest.$ac_ext
2232 if $ac_preproc_ok; then
2235 { { echo "$as_me:2235: error: C preprocessor \"$CPP\" fails sanity check" >&5
2236 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2237 { (exit 1); exit 1; }; }
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 ac_main_return=return
2247 for ac_prog in mawk gawk nawk awk
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 echo "$as_me:2251: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_AWK+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$AWK"; then
2257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2259 ac_save_IFS=$IFS; IFS=$ac_path_separator
2261 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 $as_executable_p "$ac_dir/$ac_word" || continue
2265 ac_cv_prog_AWK="$ac_prog"
2266 echo "$as_me:2266: found $ac_dir/$ac_word" >&5
2273 if test -n "$AWK"; then
2274 echo "$as_me:2274: result: $AWK" >&5
2275 echo "${ECHO_T}$AWK" >&6
2277 echo "$as_me:2277: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2281 test -n "$AWK" && break
2284 # Find a good install program. We prefer a C program (faster),
2285 # so one script is as good as another. But avoid the broken or
2286 # incompatible versions:
2287 # SysV /etc/install, /usr/sbin/install
2288 # SunOS /usr/etc/install
2289 # IRIX /sbin/install
2291 # AmigaOS /C/install, which installs bootblocks on floppy discs
2292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2295 # ./install, which can be erroneously created by make from ./install.sh.
2296 echo "$as_me:2296: checking for a BSD compatible install" >&5
2297 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2298 if test -z "$INSTALL"; then
2299 if test "${ac_cv_path_install+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 ac_save_IFS=$IFS; IFS=$ac_path_separator
2303 for ac_dir in $PATH; do
2305 # Account for people who put trailing slashes in PATH elements.
2307 / | ./ | .// | /cC/* \
2308 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2311 # OSF1 and SCO ODT 3.0 have their own names for install.
2312 # Don't use installbsd from OSF since it installs stuff as root
2314 for ac_prog in ginstall scoinst install; do
2315 if $as_executable_p "$ac_dir/$ac_prog"; then
2316 if test $ac_prog = install &&
2317 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2318 # AIX install. It has an incompatible calling convention.
2320 elif test $ac_prog = install &&
2321 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2322 # program-specific install script used by HP pwplus--don't use.
2325 ac_cv_path_install="$ac_dir/$ac_prog -c"
2335 if test "${ac_cv_path_install+set}" = set; then
2336 INSTALL=$ac_cv_path_install
2338 # As a last resort, use the slow shell script. We don't cache a
2339 # path for INSTALL within a source directory, because that will
2340 # break other packages using the cache if that directory is
2341 # removed, or if the path is relative.
2342 INSTALL=$ac_install_sh
2345 echo "$as_me:2345: result: $INSTALL" >&5
2346 echo "${ECHO_T}$INSTALL" >&6
2348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2349 # It thinks the first close brace ends the variable substitution.
2350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2361 test -z "$cf_dir" && cf_dir=.
2362 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2366 for ac_prog in tdlint lint alint splint lclint
2368 # Extract the first word of "$ac_prog", so it can be a program name with args.
2369 set dummy $ac_prog; ac_word=$2
2370 echo "$as_me:2370: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2372 if test "${ac_cv_prog_LINT+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 if test -n "$LINT"; then
2376 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2378 ac_save_IFS=$IFS; IFS=$ac_path_separator
2380 for ac_dir in $ac_dummy; do
2382 test -z "$ac_dir" && ac_dir=.
2383 $as_executable_p "$ac_dir/$ac_word" || continue
2384 ac_cv_prog_LINT="$ac_prog"
2385 echo "$as_me:2385: found $ac_dir/$ac_word" >&5
2391 LINT=$ac_cv_prog_LINT
2392 if test -n "$LINT"; then
2393 echo "$as_me:2393: result: $LINT" >&5
2394 echo "${ECHO_T}$LINT" >&6
2396 echo "$as_me:2396: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$LINT" && break
2403 echo "$as_me:2403: checking if filesystem supports mixed-case filenames" >&5
2404 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2405 if test "${cf_cv_mixedcase+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test "$cross_compiling" = yes ; then
2410 case $target_alias in
2411 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2419 rm -f conftest CONFTEST
2421 if test -f CONFTEST ; then
2426 rm -f conftest CONFTEST
2430 echo "$as_me:2430: result: $cf_cv_mixedcase" >&5
2431 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2432 test "$cf_cv_mixedcase" = yes &&
2433 cat >>confdefs.h <<\EOF
2434 #define MIXEDCASE_FILENAMES 1
2437 for ac_prog in exctags ctags
2439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 echo "$as_me:2441: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CTAGS+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CTAGS"; then
2447 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2449 ac_save_IFS=$IFS; IFS=$ac_path_separator
2451 for ac_dir in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir=.
2454 $as_executable_p "$ac_dir/$ac_word" || continue
2455 ac_cv_prog_CTAGS="$ac_prog"
2456 echo "$as_me:2456: found $ac_dir/$ac_word" >&5
2462 CTAGS=$ac_cv_prog_CTAGS
2463 if test -n "$CTAGS"; then
2464 echo "$as_me:2464: result: $CTAGS" >&5
2465 echo "${ECHO_T}$CTAGS" >&6
2467 echo "$as_me:2467: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2471 test -n "$CTAGS" && break
2474 for ac_prog in exetags etags
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 echo "$as_me:2478: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2480 if test "${ac_cv_prog_ETAGS+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ETAGS"; then
2484 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2486 ac_save_IFS=$IFS; IFS=$ac_path_separator
2488 for ac_dir in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir=.
2491 $as_executable_p "$ac_dir/$ac_word" || continue
2492 ac_cv_prog_ETAGS="$ac_prog"
2493 echo "$as_me:2493: found $ac_dir/$ac_word" >&5
2499 ETAGS=$ac_cv_prog_ETAGS
2500 if test -n "$ETAGS"; then
2501 echo "$as_me:2501: result: $ETAGS" >&5
2502 echo "${ECHO_T}$ETAGS" >&6
2504 echo "$as_me:2504: result: no" >&5
2505 echo "${ECHO_T}no" >&6
2508 test -n "$ETAGS" && break
2511 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2512 set dummy ${CTAGS:-ctags}; ac_word=$2
2513 echo "$as_me:2513: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2515 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$MAKE_LOWER_TAGS"; then
2519 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2521 ac_save_IFS=$IFS; IFS=$ac_path_separator
2523 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 $as_executable_p "$ac_dir/$ac_word" || continue
2527 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2528 echo "$as_me:2528: found $ac_dir/$ac_word" >&5
2532 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2535 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2536 if test -n "$MAKE_LOWER_TAGS"; then
2537 echo "$as_me:2537: result: $MAKE_LOWER_TAGS" >&5
2538 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2540 echo "$as_me:2540: result: no" >&5
2541 echo "${ECHO_T}no" >&6
2544 if test "$cf_cv_mixedcase" = yes ; then
2545 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2546 set dummy ${ETAGS:-etags}; ac_word=$2
2547 echo "$as_me:2547: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 if test -n "$MAKE_UPPER_TAGS"; then
2553 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2555 ac_save_IFS=$IFS; IFS=$ac_path_separator
2557 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 $as_executable_p "$ac_dir/$ac_word" || continue
2561 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2562 echo "$as_me:2562: found $ac_dir/$ac_word" >&5
2566 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2569 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2570 if test -n "$MAKE_UPPER_TAGS"; then
2571 echo "$as_me:2571: result: $MAKE_UPPER_TAGS" >&5
2572 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2574 echo "$as_me:2574: result: no" >&5
2575 echo "${ECHO_T}no" >&6
2582 if test "$MAKE_UPPER_TAGS" = yes ; then
2588 if test "$MAKE_LOWER_TAGS" = yes ; then
2594 echo "$as_me:2594: checking if -lm needed for math functions" >&5
2595 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2596 if test "${cf_cv_need_libm+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #line 2601 "configure"
2602 #include "confdefs.h"
2610 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { (eval echo "$as_me:2616: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>&5
2619 echo "$as_me:2619: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest$ac_exeext'
2622 { (eval echo "$as_me:2622: \"$ac_try\"") >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2635 echo "$as_me:2635: result: $cf_cv_need_libm" >&5
2636 echo "${ECHO_T}$cf_cv_need_libm" >&6
2637 if test "$cf_cv_need_libm" = yes
2645 CC_SHARED_OPTS=unknown
2646 CPPFLAGS="$CPPFLAGS"
2648 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2649 DFT_UPR_MODEL="NORMAL"
2662 PACKAGE="ncurses-examples"
2668 TINFO_LIBS='$(LIBS_CURSES)'
2669 cf_cv_abi_version=""
2670 cf_cv_rel_version=""
2676 if test "$GCC" = yes
2678 cat > conftest.i <<EOF
2680 #define GCC_PRINTF 0
2685 #ifndef GCC_NORETURN
2686 #define GCC_NORETURN /* nothing */
2689 #define GCC_UNUSED /* nothing */
2692 if test "$GCC" = yes
2694 { echo "$as_me:2694: checking for $CC __attribute__ directives..." >&5
2695 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2697 "${as_me:-configure}"
2698 #include "confdefs.h"
2699 #include "conftest.h"
2700 #include "conftest.i"
2702 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2704 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2707 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2709 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2711 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2712 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2713 extern void foo(void) GCC_NORETURN;
2714 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2716 cf_printf_attribute=no
2717 cf_scanf_attribute=no
2718 for cf_attribute in scanf printf unused noreturn
2721 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2723 cf_directive="__attribute__(($cf_attribute))"
2724 echo "checking for $CC $cf_directive" 1>&5
2726 case $cf_attribute in
2728 cf_printf_attribute=yes
2729 cat >conftest.h <<EOF
2730 #define GCC_$cf_ATTRIBUTE 1
2734 cf_scanf_attribute=yes
2735 cat >conftest.h <<EOF
2736 #define GCC_$cf_ATTRIBUTE 1
2740 cat >conftest.h <<EOF
2741 #define GCC_$cf_ATTRIBUTE $cf_directive
2746 if { (eval echo "$as_me:2746: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
2751 test -n "$verbose" && echo "$as_me:2751: result: ... $cf_attribute" >&5
2752 echo "${ECHO_T}... $cf_attribute" >&6
2753 cat conftest.h >>confdefs.h
2754 case $cf_attribute in
2757 cat >>confdefs.h <<EOF
2758 #define GCC_NORETURN $cf_directive
2763 cf_value='/* nothing */'
2764 if test "$cf_printf_attribute" != no ; then
2765 cf_value='__attribute__((format(printf,fmt,var)))'
2767 cat >>confdefs.h <<\EOF
2768 #define GCC_PRINTF 1
2773 cat >>confdefs.h <<EOF
2774 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2779 cf_value='/* nothing */'
2780 if test "$cf_scanf_attribute" != no ; then
2781 cf_value='__attribute__((format(scanf,fmt,var)))'
2783 cat >>confdefs.h <<\EOF
2789 cat >>confdefs.h <<EOF
2790 #define GCC_SCANFLIKE(fmt,var) $cf_value
2796 cat >>confdefs.h <<EOF
2797 #define GCC_UNUSED $cf_directive
2805 fgrep define conftest.i >>confdefs.h
2811 cf_POSIX_C_SOURCE=199506L
2816 cf_xopen_source="-D_ALL_SOURCE"
2822 cf_xopen_source="-D_APPLE_C_SOURCE"
2825 cf_xopen_source="-D_DARWIN_C_SOURCE"
2828 (freebsd*|dragonfly*)
2829 # 5.x headers associate
2830 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2831 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2832 cf_POSIX_C_SOURCE=200112L
2834 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2837 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2840 cf_xopen_source="-D_HPUX_SOURCE"
2843 cf_xopen_source="-D_SGI_SOURCE"
2846 (linux*|gnu*|mint*|k*bsd*-gnu)
2848 echo "$as_me:2848: checking if we must define _GNU_SOURCE" >&5
2849 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2850 if test "${cf_cv_gnu_source+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2855 #line 2855 "configure"
2856 #include "confdefs.h"
2857 #include <sys/types.h>
2862 #ifndef _XOPEN_SOURCE
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:2876: \"$ac_try\"") >&5
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 echo "$as_me: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2886 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2887 cat >conftest.$ac_ext <<_ACEOF
2888 #line 2888 "configure"
2889 #include "confdefs.h"
2890 #include <sys/types.h>
2895 #ifdef _XOPEN_SOURCE
2902 rm -f conftest.$ac_objext
2903 if { (eval echo "$as_me:2903: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>&5
2906 echo "$as_me:2906: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:2909: \"$ac_try\"") >&5
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2916 echo "$as_me: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 cf_cv_gnu_source=yes
2920 rm -f conftest.$ac_objext conftest.$ac_ext
2924 rm -f conftest.$ac_objext conftest.$ac_ext
2927 echo "$as_me:2927: result: $cf_cv_gnu_source" >&5
2928 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2929 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2933 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2936 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2939 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2941 cf_save_CFLAGS="$CFLAGS"
2942 cf_save_CPPFLAGS="$CPPFLAGS"
2944 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2945 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2946 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2948 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2949 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2950 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2952 echo "$as_me:2952: checking if we should define _POSIX_C_SOURCE" >&5
2953 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2954 if test "${cf_cv_posix_c_source+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 echo "${as_me:-configure}:2958: testing if the symbol is already defined go no further ..." 1>&5
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line 2961 "configure"
2962 #include "confdefs.h"
2963 #include <sys/types.h>
2968 #ifndef _POSIX_C_SOURCE
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:2976: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>&5
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:2982: \"$ac_try\"") >&5
2985 echo "$as_me:2985: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 cf_cv_posix_c_source=no
2989 echo "$as_me: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2991 cf_want_posix_source=no
2992 case .$cf_POSIX_C_SOURCE in
2994 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2997 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2998 cf_want_posix_source=yes
3001 cf_want_posix_source=yes
3004 if test "$cf_want_posix_source" = yes ; then
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line 3006 "configure"
3007 #include "confdefs.h"
3008 #include <sys/types.h>
3013 #ifdef _POSIX_SOURCE
3020 rm -f conftest.$ac_objext
3021 if { (eval echo "$as_me:3021: \"$ac_compile\"") >&5
3022 (eval $ac_compile) 2>&5
3024 echo "$as_me:3024: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:3027: \"$ac_try\"") >&5
3030 echo "$as_me:3030: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3034 echo "$as_me: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3036 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3038 rm -f conftest.$ac_objext conftest.$ac_ext
3041 echo "${as_me:-configure}:3041: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3043 CFLAGS="$cf_trim_CFLAGS"
3044 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3046 echo "${as_me:-configure}:3046: testing if the second compile does not leave our definition intact error ..." 1>&5
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line 3049 "configure"
3050 #include "confdefs.h"
3051 #include <sys/types.h>
3056 #ifndef _POSIX_C_SOURCE
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:3064: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>&5
3067 echo "$as_me:3067: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (eval echo "$as_me:3070: \"$ac_try\"") >&5
3073 echo "$as_me:3073: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3077 echo "$as_me: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3079 cf_cv_posix_c_source=no
3081 rm -f conftest.$ac_objext conftest.$ac_ext
3082 CFLAGS="$cf_save_CFLAGS"
3083 CPPFLAGS="$cf_save_CPPFLAGS"
3086 rm -f conftest.$ac_objext conftest.$ac_ext
3089 echo "$as_me:3089: result: $cf_cv_posix_c_source" >&5
3090 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3092 if test "$cf_cv_posix_c_source" != no ; then
3093 CFLAGS="$cf_trim_CFLAGS"
3094 CPPFLAGS="$cf_trim_CPPFLAGS"
3099 cf_new_extra_cppflags=
3101 for cf_add_cflags in $cf_cv_posix_c_source
3103 case $cf_fix_cppflags in
3105 case $cf_add_cflags in
3106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3107 case $cf_add_cflags in
3109 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3112 && test -z "${cf_tst_cflags}" \
3113 && cf_fix_cppflags=yes
3115 if test $cf_fix_cppflags = yes ; then
3116 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3118 elif test "${cf_tst_cflags}" = "\"'" ; then
3119 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3128 case $cf_add_cflags in
3130 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3132 CPPFLAGS=`echo "$CPPFLAGS" | \
3133 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3134 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3138 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3143 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3148 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3150 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3152 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3153 && test -z "${cf_tst_cflags}" \
3154 && cf_fix_cppflags=no
3159 if test -n "$cf_new_cflags" ; then
3161 CFLAGS="$CFLAGS $cf_new_cflags"
3164 if test -n "$cf_new_cppflags" ; then
3166 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3169 if test -n "$cf_new_extra_cppflags" ; then
3171 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3178 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3181 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3182 cf_xopen_source="-D_BSD_SOURCE"
3186 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3192 cf_xopen_source="-D_OSF_SOURCE"
3195 cf_xopen_source="-D_QNX_SOURCE"
3198 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3201 cf_xopen_source="-D__EXTENSIONS__"
3202 cf_cv_xopen_source=broken
3204 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3210 echo "$as_me:3210: checking if we should define _XOPEN_SOURCE" >&5
3211 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3212 if test "${cf_cv_xopen_source+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.$ac_ext <<_ACEOF
3217 #line 3217 "configure"
3218 #include "confdefs.h"
3222 #include <sys/types.h>
3228 #ifndef _XOPEN_SOURCE
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:3236: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>&5
3239 echo "$as_me:3239: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:3242: \"$ac_try\"") >&5
3245 echo "$as_me:3245: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 cf_cv_xopen_source=no
3249 echo "$as_me: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3253 cat >conftest.$ac_ext <<_ACEOF
3254 #line 3254 "configure"
3255 #include "confdefs.h"
3259 #include <sys/types.h>
3265 #ifdef _XOPEN_SOURCE
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:3279: \"$ac_try\"") >&5
3282 echo "$as_me:3282: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 cf_cv_xopen_source=no
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3297 echo "$as_me:3297: result: $cf_cv_xopen_source" >&5
3298 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3300 if test "$cf_cv_xopen_source" != no ; then
3302 CFLAGS=`echo "$CFLAGS" | \
3303 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3304 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3306 CPPFLAGS=`echo "$CPPFLAGS" | \
3307 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3308 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3310 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3315 cf_new_extra_cppflags=
3317 for cf_add_cflags in $cf_temp_xopen_source
3319 case $cf_fix_cppflags in
3321 case $cf_add_cflags in
3322 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3323 case $cf_add_cflags in
3325 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3327 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3328 && test -z "${cf_tst_cflags}" \
3329 && cf_fix_cppflags=yes
3331 if test $cf_fix_cppflags = yes ; then
3332 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3334 elif test "${cf_tst_cflags}" = "\"'" ; then
3335 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3344 case $cf_add_cflags in
3346 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3348 CPPFLAGS=`echo "$CPPFLAGS" | \
3349 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3350 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3354 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3359 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3364 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3366 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3368 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3369 && test -z "${cf_tst_cflags}" \
3370 && cf_fix_cppflags=no
3375 if test -n "$cf_new_cflags" ; then
3377 CFLAGS="$CFLAGS $cf_new_cflags"
3380 if test -n "$cf_new_cppflags" ; then
3382 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3385 if test -n "$cf_new_extra_cppflags" ; then
3387 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3392 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3394 cf_save_CFLAGS="$CFLAGS"
3395 cf_save_CPPFLAGS="$CPPFLAGS"
3397 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3398 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3399 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3401 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3402 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3403 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3405 echo "$as_me:3405: checking if we should define _POSIX_C_SOURCE" >&5
3406 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3407 if test "${cf_cv_posix_c_source+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 echo "${as_me:-configure}:3411: testing if the symbol is already defined go no further ..." 1>&5
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line 3414 "configure"
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3421 #ifndef _POSIX_C_SOURCE
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:3429: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3432 echo "$as_me:3432: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:3435: \"$ac_try\"") >&5
3438 echo "$as_me:3438: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 cf_cv_posix_c_source=no
3442 echo "$as_me: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 cf_want_posix_source=no
3445 case .$cf_POSIX_C_SOURCE in
3447 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3450 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3451 cf_want_posix_source=yes
3454 cf_want_posix_source=yes
3457 if test "$cf_want_posix_source" = yes ; then
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line 3459 "configure"
3460 #include "confdefs.h"
3461 #include <sys/types.h>
3466 #ifdef _POSIX_SOURCE
3473 rm -f conftest.$ac_objext
3474 if { (eval echo "$as_me:3474: \"$ac_compile\"") >&5
3475 (eval $ac_compile) 2>&5
3477 echo "$as_me:3477: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:3480: \"$ac_try\"") >&5
3483 echo "$as_me:3483: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3487 echo "$as_me: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3489 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3491 rm -f conftest.$ac_objext conftest.$ac_ext
3494 echo "${as_me:-configure}:3494: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3496 CFLAGS="$cf_trim_CFLAGS"
3497 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3499 echo "${as_me:-configure}:3499: testing if the second compile does not leave our definition intact error ..." 1>&5
3501 cat >conftest.$ac_ext <<_ACEOF
3502 #line 3502 "configure"
3503 #include "confdefs.h"
3504 #include <sys/types.h>
3509 #ifndef _POSIX_C_SOURCE
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:3517: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>&5
3520 echo "$as_me:3520: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:3523: \"$ac_try\"") >&5
3526 echo "$as_me:3526: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3530 echo "$as_me: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 cf_cv_posix_c_source=no
3534 rm -f conftest.$ac_objext conftest.$ac_ext
3535 CFLAGS="$cf_save_CFLAGS"
3536 CPPFLAGS="$cf_save_CPPFLAGS"
3539 rm -f conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me:3542: result: $cf_cv_posix_c_source" >&5
3543 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3545 if test "$cf_cv_posix_c_source" != no ; then
3546 CFLAGS="$cf_trim_CFLAGS"
3547 CPPFLAGS="$cf_trim_CPPFLAGS"
3552 cf_new_extra_cppflags=
3554 for cf_add_cflags in $cf_cv_posix_c_source
3556 case $cf_fix_cppflags in
3558 case $cf_add_cflags in
3559 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3560 case $cf_add_cflags in
3562 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3564 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3565 && test -z "${cf_tst_cflags}" \
3566 && cf_fix_cppflags=yes
3568 if test $cf_fix_cppflags = yes ; then
3569 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3571 elif test "${cf_tst_cflags}" = "\"'" ; then
3572 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3581 case $cf_add_cflags in
3583 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3585 CPPFLAGS=`echo "$CPPFLAGS" | \
3586 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3587 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3591 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3596 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3603 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3605 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3606 && test -z "${cf_tst_cflags}" \
3607 && cf_fix_cppflags=no
3612 if test -n "$cf_new_cflags" ; then
3614 CFLAGS="$CFLAGS $cf_new_cflags"
3617 if test -n "$cf_new_cppflags" ; then
3619 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3622 if test -n "$cf_new_extra_cppflags" ; then
3624 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3632 if test -n "$cf_xopen_source" ; then
3637 cf_new_extra_cppflags=
3639 for cf_add_cflags in $cf_xopen_source
3641 case $cf_fix_cppflags in
3643 case $cf_add_cflags in
3644 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3645 case $cf_add_cflags in
3647 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3649 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3650 && test -z "${cf_tst_cflags}" \
3651 && cf_fix_cppflags=yes
3653 if test $cf_fix_cppflags = yes ; then
3654 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3656 elif test "${cf_tst_cflags}" = "\"'" ; then
3657 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3666 case $cf_add_cflags in
3668 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3670 CPPFLAGS=`echo "$CPPFLAGS" | \
3671 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3672 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3676 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3681 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3686 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3688 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3690 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3691 && test -z "${cf_tst_cflags}" \
3692 && cf_fix_cppflags=no
3697 if test -n "$cf_new_cflags" ; then
3698 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3700 echo "${as_me:-configure}:3700: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3702 CFLAGS="$CFLAGS $cf_new_cflags"
3705 if test -n "$cf_new_cppflags" ; then
3706 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3708 echo "${as_me:-configure}:3708: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3710 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3713 if test -n "$cf_new_extra_cppflags" ; then
3714 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3716 echo "${as_me:-configure}:3716: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3718 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3723 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3724 echo "$as_me:3724: checking if _XOPEN_SOURCE really is set" >&5
3725 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line 3727 "configure"
3728 #include "confdefs.h"
3734 #ifndef _XOPEN_SOURCE
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:3742: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>&5
3745 echo "$as_me:3745: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:3748: \"$ac_try\"") >&5
3751 echo "$as_me:3751: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 cf_XOPEN_SOURCE_set=yes
3755 echo "$as_me: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 cf_XOPEN_SOURCE_set=no
3759 rm -f conftest.$ac_objext conftest.$ac_ext
3760 echo "$as_me:3760: result: $cf_XOPEN_SOURCE_set" >&5
3761 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3762 if test $cf_XOPEN_SOURCE_set = yes
3764 cat >conftest.$ac_ext <<_ACEOF
3765 #line 3765 "configure"
3766 #include "confdefs.h"
3772 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:3780: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>&5
3783 echo "$as_me:3783: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -s conftest.$ac_objext'
3786 { (eval echo "$as_me:3786: \"$ac_try\"") >&5
3789 echo "$as_me:3789: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 cf_XOPEN_SOURCE_set_ok=yes
3793 echo "$as_me: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3795 cf_XOPEN_SOURCE_set_ok=no
3797 rm -f conftest.$ac_objext conftest.$ac_ext
3798 if test $cf_XOPEN_SOURCE_set_ok = no
3800 { echo "$as_me:3800: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3801 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3805 echo "$as_me:3805: checking if we should define _XOPEN_SOURCE" >&5
3806 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3807 if test "${cf_cv_xopen_source+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #line 3812 "configure"
3813 #include "confdefs.h"
3817 #include <sys/types.h>
3823 #ifndef _XOPEN_SOURCE
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_cv_xopen_source=no
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3854 #include <sys/types.h>
3860 #ifdef _XOPEN_SOURCE
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:3868: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>&5
3871 echo "$as_me:3871: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:3874: \"$ac_try\"") >&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 cf_cv_xopen_source=no
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3885 rm -f conftest.$ac_objext conftest.$ac_ext
3889 rm -f conftest.$ac_objext conftest.$ac_ext
3892 echo "$as_me:3892: result: $cf_cv_xopen_source" >&5
3893 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3895 if test "$cf_cv_xopen_source" != no ; then
3897 CFLAGS=`echo "$CFLAGS" | \
3898 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3899 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3901 CPPFLAGS=`echo "$CPPFLAGS" | \
3902 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3903 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3905 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3910 cf_new_extra_cppflags=
3912 for cf_add_cflags in $cf_temp_xopen_source
3914 case $cf_fix_cppflags in
3916 case $cf_add_cflags in
3917 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3918 case $cf_add_cflags in
3920 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3922 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3923 && test -z "${cf_tst_cflags}" \
3924 && cf_fix_cppflags=yes
3926 if test $cf_fix_cppflags = yes ; then
3927 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3929 elif test "${cf_tst_cflags}" = "\"'" ; then
3930 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3939 case $cf_add_cflags in
3941 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3943 CPPFLAGS=`echo "$CPPFLAGS" | \
3944 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3945 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3949 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3954 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3959 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3961 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3963 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3964 && test -z "${cf_tst_cflags}" \
3965 && cf_fix_cppflags=no
3970 if test -n "$cf_new_cflags" ; then
3972 CFLAGS="$CFLAGS $cf_new_cflags"
3975 if test -n "$cf_new_cppflags" ; then
3977 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3980 if test -n "$cf_new_extra_cppflags" ; then
3982 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3990 echo "$as_me:3990: checking for signal global datatype" >&5
3991 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3992 if test "${cf_cv_sig_atomic_t+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 "volatile sig_atomic_t" \
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line 4002 "configure"
4003 #include "confdefs.h"
4005 #include <sys/types.h>
4011 static void handler(int sig)
4018 signal(SIGINT, handler);
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:4025: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>&5
4028 echo "$as_me:4028: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:4031: \"$ac_try\"") >&5
4034 echo "$as_me:4034: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 cf_cv_sig_atomic_t=$cf_type
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 cf_cv_sig_atomic_t=no
4042 rm -f conftest.$ac_objext conftest.$ac_ext
4043 test "$cf_cv_sig_atomic_t" != no && break
4048 echo "$as_me:4048: result: $cf_cv_sig_atomic_t" >&5
4049 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4050 test "$cf_cv_sig_atomic_t" != no &&
4051 cat >>confdefs.h <<EOF
4052 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4055 # Work around breakage on OS X
4057 echo "$as_me:4057: checking if SIGWINCH is defined" >&5
4058 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4059 if test "${cf_cv_define_sigwinch+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 cat >conftest.$ac_ext <<_ACEOF
4064 #line 4064 "configure"
4065 #include "confdefs.h"
4067 #include <sys/types.h>
4068 #include <sys/signal.h>
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:4079: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>&5
4082 echo "$as_me:4082: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:4085: \"$ac_try\"") >&5
4088 echo "$as_me:4088: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4090 cf_cv_define_sigwinch=yes
4092 echo "$as_me: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4094 cat >conftest.$ac_ext <<_ACEOF
4095 #line 4095 "configure"
4096 #include "confdefs.h"
4098 #undef _XOPEN_SOURCE
4099 #undef _POSIX_SOURCE
4100 #undef _POSIX_C_SOURCE
4101 #include <sys/types.h>
4102 #include <sys/signal.h>
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:4113: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4116 echo "$as_me:4116: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:4119: \"$ac_try\"") >&5
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 cf_cv_define_sigwinch=maybe
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 cf_cv_define_sigwinch=no
4130 rm -f conftest.$ac_objext conftest.$ac_ext
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4136 echo "$as_me:4136: result: $cf_cv_define_sigwinch" >&5
4137 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4139 if test "$cf_cv_define_sigwinch" = maybe ; then
4140 echo "$as_me:4140: checking for actual SIGWINCH definition" >&5
4141 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4142 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 cf_cv_fixup_sigwinch=unknown
4148 while test $cf_sigwinch != 1
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>
4164 #if SIGWINCH != $cf_sigwinch
4172 rm -f conftest.$ac_objext
4173 if { (eval echo "$as_me:4173: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>&5
4176 echo "$as_me:4176: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:4179: \"$ac_try\"") >&5
4182 echo "$as_me:4182: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 cf_cv_fixup_sigwinch=$cf_sigwinch
4187 echo "$as_me: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4190 rm -f conftest.$ac_objext conftest.$ac_ext
4192 cf_sigwinch=`expr $cf_sigwinch - 1`
4196 echo "$as_me:4196: result: $cf_cv_fixup_sigwinch" >&5
4197 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4199 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4200 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4204 # Checks for CODESET support.
4206 echo "$as_me:4206: checking for nl_langinfo and CODESET" >&5
4207 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4208 if test "${am_cv_langinfo_codeset+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 cat >conftest.$ac_ext <<_ACEOF
4212 #line 4212 "configure"
4213 #include "confdefs.h"
4214 #include <langinfo.h>
4218 char* cs = nl_langinfo(CODESET);
4223 rm -f conftest.$ac_objext conftest$ac_exeext
4224 if { (eval echo "$as_me:4224: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:4227: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -s conftest$ac_exeext'
4230 { (eval echo "$as_me:4230: \"$ac_try\"") >&5
4233 echo "$as_me:4233: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 am_cv_langinfo_codeset=yes
4237 echo "$as_me: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 am_cv_langinfo_codeset=no
4241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4244 echo "$as_me:4244: result: $am_cv_langinfo_codeset" >&5
4245 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4246 if test $am_cv_langinfo_codeset = yes; then
4248 cat >>confdefs.h <<\EOF
4249 #define HAVE_LANGINFO_CODESET 1
4254 echo "$as_me:4254: checking if you want to use pkg-config" >&5
4255 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4257 # Check whether --with-pkg-config or --without-pkg-config was given.
4258 if test "${with_pkg_config+set}" = set; then
4259 withval="$with_pkg_config"
4260 cf_pkg_config=$withval
4264 echo "$as_me:4264: result: $cf_pkg_config" >&5
4265 echo "${ECHO_T}$cf_pkg_config" >&6
4267 case $cf_pkg_config in
4273 if test -n "$ac_tool_prefix"; then
4274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4275 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4276 echo "$as_me:4276: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4286 ac_save_IFS=$IFS; IFS=$ac_path_separator
4288 for ac_dir in $ac_dummy; do
4290 test -z "$ac_dir" && ac_dir=.
4291 if $as_executable_p "$ac_dir/$ac_word"; then
4292 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4293 echo "$as_me:4293: found $ac_dir/$ac_word" >&5
4301 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4303 if test -n "$PKG_CONFIG"; then
4304 echo "$as_me:4304: result: $PKG_CONFIG" >&5
4305 echo "${ECHO_T}$PKG_CONFIG" >&6
4307 echo "$as_me:4307: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4312 if test -z "$ac_cv_path_PKG_CONFIG"; then
4313 ac_pt_PKG_CONFIG=$PKG_CONFIG
4314 # Extract the first word of "pkg-config", so it can be a program name with args.
4315 set dummy pkg-config; ac_word=$2
4316 echo "$as_me:4316: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 case $ac_pt_PKG_CONFIG in
4323 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4326 ac_save_IFS=$IFS; IFS=$ac_path_separator
4328 for ac_dir in $ac_dummy; do
4330 test -z "$ac_dir" && ac_dir=.
4331 if $as_executable_p "$ac_dir/$ac_word"; then
4332 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4333 echo "$as_me:4333: found $ac_dir/$ac_word" >&5
4338 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4342 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4344 if test -n "$ac_pt_PKG_CONFIG"; then
4345 echo "$as_me:4345: result: $ac_pt_PKG_CONFIG" >&5
4346 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4348 echo "$as_me:4348: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4352 PKG_CONFIG=$ac_pt_PKG_CONFIG
4354 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4363 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4364 if test "$PKG_CONFIG" != none ; then
4366 if test "x$prefix" != xNONE; then
4367 cf_path_syntax="$prefix"
4369 cf_path_syntax="$ac_default_prefix"
4372 case ".$PKG_CONFIG" in
4377 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4379 (.\${*prefix}*|.\${*dir}*)
4380 eval PKG_CONFIG="$PKG_CONFIG"
4381 case ".$PKG_CONFIG" in
4383 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4388 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4391 { { echo "$as_me:4391: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4392 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4393 { (exit 1); exit 1; }; }
4397 elif test "x$cf_pkg_config" != xno ; then
4398 { echo "$as_me:4398: WARNING: pkg-config is not installed" >&5
4399 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4402 echo "$as_me:4402: checking if you want to see long compiling messages" >&5
4403 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4405 # Check whether --enable-echo or --disable-echo was given.
4406 if test "${enable_echo+set}" = set; then
4407 enableval="$enable_echo"
4408 test "$enableval" != no && enableval=yes
4409 if test "$enableval" != "yes" ; then
4412 ECHO_LD='@echo linking $@;'
4413 RULE_CC='@echo compiling $<'
4414 SHOW_CC='@echo compiling $@'
4436 echo "$as_me:4436: result: $enableval" >&5
4437 echo "${ECHO_T}$enableval" >&6
4439 echo "$as_me:4439: checking for ncurses wrap-prefix" >&5
4440 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4442 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4443 if test "${with_ncurses_wrap_prefix+set}" = set; then
4444 withval="$with_ncurses_wrap_prefix"
4445 NCURSES_WRAP_PREFIX=$withval
4447 NCURSES_WRAP_PREFIX=_nc_
4449 echo "$as_me:4449: result: $NCURSES_WRAP_PREFIX" >&5
4450 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4452 echo "$as_me:4452: checking if you want to check for wide-character functions" >&5
4453 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4455 # Check whether --enable-widec or --disable-widec was given.
4456 if test "${enable_widec+set}" = set; then
4457 enableval="$enable_widec"
4458 test "$enableval" != no && enableval=yes
4459 if test "$enableval" != "yes" ; then
4469 echo "$as_me:4469: result: $cf_enable_widec" >&5
4470 echo "${ECHO_T}$cf_enable_widec" >&6
4472 echo "$as_me:4472: checking for specific curses-directory" >&5
4473 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4475 # Check whether --with-curses-dir or --without-curses-dir was given.
4476 if test "${with_curses_dir+set}" = set; then
4477 withval="$with_curses_dir"
4478 cf_cv_curses_dir=$withval
4482 echo "$as_me:4482: result: $cf_cv_curses_dir" >&5
4483 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4485 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4488 if test "x$prefix" != xNONE; then
4489 cf_path_syntax="$prefix"
4491 cf_path_syntax="$ac_default_prefix"
4499 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4501 (.\${*prefix}*|.\${*dir}*)
4502 eval withval="$withval"
4505 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4510 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4513 { { echo "$as_me:4513: error: expected a pathname, not \"$withval\"" >&5
4514 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4515 { (exit 1); exit 1; }; }
4519 if test -d "$cf_cv_curses_dir"
4522 if test -n "$cf_cv_curses_dir/include" ; then
4523 for cf_add_incdir in $cf_cv_curses_dir/include
4525 while test $cf_add_incdir != /usr/include
4527 if test -d $cf_add_incdir
4530 if test -n "$CFLAGS$CPPFLAGS" ; then
4531 # a loop is needed to ensure we can add subdirs of existing dirs
4532 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4533 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4534 cf_have_incdir=yes; break
4539 if test "$cf_have_incdir" = no ; then
4540 if test "$cf_add_incdir" = /usr/local/include ; then
4541 if test "$GCC" = yes
4543 cf_save_CPPFLAGS=$CPPFLAGS
4544 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4545 cat >conftest.$ac_ext <<_ACEOF
4546 #line 4546 "configure"
4547 #include "confdefs.h"
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:4558: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4561 echo "$as_me:4561: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:4564: \"$ac_try\"") >&5
4567 echo "$as_me:4567: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4571 echo "$as_me: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4575 rm -f conftest.$ac_objext conftest.$ac_ext
4576 CPPFLAGS=$cf_save_CPPFLAGS
4581 if test "$cf_have_incdir" = no ; then
4582 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4584 echo "${as_me:-configure}:4584: testing adding $cf_add_incdir to include-path ..." 1>&5
4586 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4588 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4589 test "$cf_top_incdir" = "$cf_add_incdir" && break
4590 cf_add_incdir="$cf_top_incdir"
4601 if test -n "$cf_cv_curses_dir/lib" ; then
4602 for cf_add_libdir in $cf_cv_curses_dir/lib
4604 if test $cf_add_libdir = /usr/lib ; then
4606 elif test -d $cf_add_libdir
4609 if test -n "$LDFLAGS$LIBS" ; then
4610 # a loop is needed to ensure we can add subdirs of existing dirs
4611 for cf_test_libdir in $LDFLAGS $LIBS ; do
4612 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4613 cf_have_libdir=yes; break
4617 if test "$cf_have_libdir" = no ; then
4618 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4620 echo "${as_me:-configure}:4620: testing adding $cf_add_libdir to library-path ..." 1>&5
4622 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4633 echo "$as_me:4633: checking for specified curses library type" >&5
4634 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4636 # Check whether --with-screen or --without-screen was given.
4637 if test "${with_screen+set}" = set; then
4638 withval="$with_screen"
4639 cf_cv_screen=$withval
4642 # Check whether --with-ncursesw or --without-ncursesw was given.
4643 if test "${with_ncursesw+set}" = set; then
4644 withval="$with_ncursesw"
4645 cf_cv_screen=ncursesw
4648 # Check whether --with-ncurses or --without-ncurses was given.
4649 if test "${with_ncurses+set}" = set; then
4650 withval="$with_ncurses"
4651 cf_cv_screen=ncurses
4654 # Check whether --with-pdcurses or --without-pdcurses was given.
4655 if test "${with_pdcurses+set}" = set; then
4656 withval="$with_pdcurses"
4657 cf_cv_screen=pdcurses
4660 # Check whether --with-curses-colr or --without-curses-colr was given.
4661 if test "${with_curses_colr+set}" = set; then
4662 withval="$with_curses_colr"
4663 cf_cv_screen=curses_colr
4666 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4667 if test "${with_curses_5lib+set}" = set; then
4668 withval="$with_curses_5lib"
4669 cf_cv_screen=curses_5lib
4677 echo "$as_me:4677: result: $cf_cv_screen" >&5
4678 echo "${ECHO_T}$cf_cv_screen" >&6
4680 case $cf_cv_screen in
4683 echo "$as_me:4683: checking for extra include directories" >&5
4684 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4685 if test "${cf_cv_curses_incdir+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 cf_cv_curses_incdir=no
4692 if test "x$cf_cv_screen" = "xcurses_colr"
4694 test -d /usr/include/curses_colr && \
4695 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4699 if test "x$cf_cv_screen" = "xcurses_5lib"
4701 test -d /usr/5lib && \
4702 test -d /usr/5include && \
4703 cf_cv_curses_incdir="-I/usr/5include"
4709 echo "$as_me:4709: result: $cf_cv_curses_incdir" >&5
4710 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4711 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4713 echo "$as_me:4713: checking if we have identified curses headers" >&5
4714 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4715 if test "${cf_cv_ncurses_header+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 cf_cv_ncurses_header=none
4722 curses.h ncurses/ncurses.h ncurses/curses.h
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line 4725 "configure"
4726 #include "confdefs.h"
4727 #include <${cf_header}>
4731 initscr(); tgoto("?", 0,0)
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:4737: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4740 echo "$as_me:4740: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:4743: \"$ac_try\"") >&5
4746 echo "$as_me:4746: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 cf_cv_ncurses_header=$cf_header; break
4750 echo "$as_me: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 rm -f conftest.$ac_objext conftest.$ac_ext