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 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
657 --enable-string-hacks work around bogus compiler/loader warnings
659 --with-pkg-config{=path} enable/disable use of pkg-config
660 --disable-echo do not display "compiling" commands
661 Curses Version-dependent Options:
662 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
663 --disable-widec disable checks for wide-character functions
664 --with-curses-dir=DIR directory in which (n)curses is installed
665 --with-screen=XXX use specified curses-libraries
666 --with-ncursesw use wide ncurses-libraries
667 --with-ncurses use ncurses-libraries
668 --with-pdcurses compile/link with pdcurses X11 library
669 --with-curses-colr compile/link with HPUX 10.x color-curses
670 --with-curses-5lib compile/link with SunOS 5lib curses
671 --with-Xaw3d link with Xaw 3d library
672 --with-Xaw3dxft link with Xaw 3d xft library
673 --with-neXtaw link with neXT Athena library
674 --with-XawPlus link with Athena-Plus library
675 --with-x use the X Window System
676 Testing/development Options:
677 --enable-warnings test: turn on gcc compiler warnings
678 --with-dmalloc test: use Gray Watson's dmalloc library
679 --with-dbmalloc test: use Conor Cahill's dbmalloc library
680 --with-valgrind test: use valgrind
681 --disable-leaks test: free permanent memory, analyze leaks
682 --disable-rpath-hack don't add rpath options for additional libraries
684 Some influential environment variables:
685 CC C compiler command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
688 nonstandard directory <lib dir>
689 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
690 headers in a nonstandard directory <include dir>
693 Use these variables to override the choices made by `configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52.20150926. Invocation command line was
763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
775 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
811 # Get rid of the leading space.
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
818 # Save into config.log some information that might help in debugging.
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
824 # The following way of writing the cache mishandles newlines in values,
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
900 # Check that the precious variables saved in the cache have kept the same
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
915 { echo "$as_me:915: error: \`$ac_var' was not set in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
923 { echo "$as_me:923: former value: $ac_old_val" >&5
924 echo "$as_me: former value: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value: $ac_new_val" >&5
926 echo "$as_me: current value: $ac_new_val" >&2;}
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error: changes in the environment can compromise the build" >&5
945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
946 { { echo "$as_me:946: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956 ac_main_return=return
958 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
976 PATH_SEPARATOR="$ac_path_separator"
979 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
981 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
983 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
986 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
987 if test -f $ac_dir/install-sh; then
989 ac_install_sh="$ac_aux_dir/install-sh -c"
991 elif test -f $ac_dir/install.sh; then
993 ac_install_sh="$ac_aux_dir/install.sh -c"
995 elif test -f $ac_dir/shtool; then
997 ac_install_sh="$ac_aux_dir/shtool install -c"
1001 if test -z "$ac_aux_dir"; then
1002 { { echo "$as_me:1002: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1003 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1004 { (exit 1); exit 1; }; }
1006 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1007 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1008 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1010 # Make sure we can run config.sub.
1011 $ac_config_sub sun4 >/dev/null 2>&1 ||
1012 { { echo "$as_me:1012: error: cannot run $ac_config_sub" >&5
1013 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1014 { (exit 1); exit 1; }; }
1016 echo "$as_me:1016: checking build system type" >&5
1017 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1018 if test "${ac_cv_build+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1021 ac_cv_build_alias=$build_alias
1022 test -z "$ac_cv_build_alias" &&
1023 ac_cv_build_alias=`$ac_config_guess`
1024 test -z "$ac_cv_build_alias" &&
1025 { { echo "$as_me:1025: error: cannot guess build type; you must specify one" >&5
1026 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1027 { (exit 1); exit 1; }; }
1028 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1029 { { echo "$as_me:1029: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1030 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1031 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: result: $ac_cv_build" >&5
1035 echo "${ECHO_T}$ac_cv_build" >&6
1037 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1041 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1042 echo "$as_me:1042: checking host system type" >&5
1043 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1044 if test "${ac_cv_host+set}" = set; then
1045 echo $ECHO_N "(cached) $ECHO_C" >&6
1047 ac_cv_host_alias=$host_alias
1048 test -z "$ac_cv_host_alias" &&
1049 ac_cv_host_alias=$ac_cv_build_alias
1050 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1051 { { echo "$as_me:1051: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1052 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1053 { (exit 1); exit 1; }; }
1056 echo "$as_me:1056: result: $ac_cv_host" >&5
1057 echo "${ECHO_T}$ac_cv_host" >&6
1059 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063 system_name="$host_os"
1065 system_name="`(uname -s -r) 2>/dev/null`"
1066 if test -z "$system_name" ; then
1067 system_name="`(hostname) 2>/dev/null`"
1070 test -n "$system_name" &&
1071 cat >>confdefs.h <<EOF
1072 #define SYSTEM_NAME "$system_name"
1075 if test "${cf_cv_system_name+set}" = set; then
1076 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 cf_cv_system_name="$system_name"
1081 test -z "$system_name" && system_name="$cf_cv_system_name"
1082 test -n "$cf_cv_system_name" && echo "$as_me:1082: result: Configuring for $cf_cv_system_name" >&5
1083 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1085 if test ".$system_name" != ".$cf_cv_system_name" ; then
1086 echo "$as_me:1086: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1087 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1088 { { echo "$as_me:1088: error: \"Please remove config.cache and try again.\"" >&5
1089 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1090 { (exit 1); exit 1; }; }
1093 test "$program_prefix" != NONE &&
1094 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE &&
1097 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1098 # Double any \ or $. echo might interpret backslashes.
1099 # By default was `s,x,x', remove it if useless.
1100 cat <<\_ACEOF >conftest.sed
1101 s/[\\$]/&&/g;s/;s,x,x,$//
1103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1106 echo "$as_me:1106: checking whether ${MAKE-make} sets \${MAKE}" >&5
1107 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1108 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1109 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1110 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 cat >conftest.make <<\EOF
1114 @echo 'ac_maketemp="${MAKE}"'
1116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1117 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1118 if test -n "$ac_maketemp"; then
1119 eval ac_cv_prog_make_${ac_make}_set=yes
1121 eval ac_cv_prog_make_${ac_make}_set=no
1125 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1126 echo "$as_me:1126: result: yes" >&5
1127 echo "${ECHO_T}yes" >&6
1130 echo "$as_me:1130: result: no" >&5
1131 echo "${ECHO_T}no" >&6
1132 SET_MAKE="MAKE=${MAKE-make}"
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140 ac_main_return=return
1141 if test -n "$ac_tool_prefix"; then
1142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1144 echo "$as_me:1144: checking for $ac_word" >&5
1145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146 if test "${ac_cv_prog_CC+set}" = set; then
1147 echo $ECHO_N "(cached) $ECHO_C" >&6
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC="$CC" # Let the user override the test.
1152 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 $as_executable_p "$ac_dir/$ac_word" || continue
1158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1159 echo "$as_me:1159: found $ac_dir/$ac_word" >&5
1166 if test -n "$CC"; then
1167 echo "$as_me:1167: result: $CC" >&5
1168 echo "${ECHO_T}$CC" >&6
1170 echo "$as_me:1170: result: no" >&5
1171 echo "${ECHO_T}no" >&6
1175 if test -z "$ac_cv_prog_CC"; then
1177 # Extract the first word of "gcc", so it can be a program name with args.
1178 set dummy gcc; ac_word=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 if test -n "$ac_ct_CC"; then
1185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1187 ac_save_IFS=$IFS; IFS=$ac_path_separator
1189 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_ac_ct_CC="gcc"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1201 if test -n "$ac_ct_CC"; then
1202 echo "$as_me:1202: result: $ac_ct_CC" >&5
1203 echo "${ECHO_T}$ac_ct_CC" >&6
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1214 if test -z "$CC"; then
1215 if test -n "$ac_tool_prefix"; then
1216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1217 set dummy ${ac_tool_prefix}cc; ac_word=$2
1218 echo "$as_me:1218: checking for $ac_word" >&5
1219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220 if test "${ac_cv_prog_CC+set}" = set; then
1221 echo $ECHO_N "(cached) $ECHO_C" >&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 for ac_dir in $ac_dummy; do
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 ac_cv_prog_CC="${ac_tool_prefix}cc"
1233 echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1240 if test -n "$CC"; then
1241 echo "$as_me:1241: result: $CC" >&5
1242 echo "${ECHO_T}$CC" >&6
1244 echo "$as_me:1244: result: no" >&5
1245 echo "${ECHO_T}no" >&6
1249 if test -z "$ac_cv_prog_CC"; then
1251 # Extract the first word of "cc", so it can be a program name with args.
1252 set dummy cc; ac_word=$2
1253 echo "$as_me:1253: checking for $ac_word" >&5
1254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 if test -n "$ac_ct_CC"; then
1259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1261 ac_save_IFS=$IFS; IFS=$ac_path_separator
1263 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 $as_executable_p "$ac_dir/$ac_word" || continue
1267 ac_cv_prog_ac_ct_CC="cc"
1268 echo "$as_me:1268: found $ac_dir/$ac_word" >&5
1274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1275 if test -n "$ac_ct_CC"; then
1276 echo "$as_me:1276: result: $ac_ct_CC" >&5
1277 echo "${ECHO_T}$ac_ct_CC" >&6
1279 echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1289 if test -z "$CC"; then
1290 # Extract the first word of "cc", so it can be a program name with args.
1291 set dummy cc; ac_word=$2
1292 echo "$as_me:1292: checking for $ac_word" >&5
1293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1294 if test "${ac_cv_prog_CC+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 if test -n "$CC"; then
1298 ac_cv_prog_CC="$CC" # Let the user override the test.
1301 ac_save_IFS=$IFS; IFS=$ac_path_separator
1303 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 $as_executable_p "$ac_dir/$ac_word" || continue
1307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1308 ac_prog_rejected=yes
1312 echo "$as_me:1312: found $ac_dir/$ac_word" >&5
1316 if test $ac_prog_rejected = yes; then
1317 # We found a bogon in the path, so make sure we never use it.
1318 set dummy $ac_cv_prog_CC
1320 if test $# != 0; then
1321 # We chose a different compiler from the bogus one.
1322 # However, it has the same basename, so the bogon will be chosen
1323 # first if we set CC to just the basename; use the full file name.
1325 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1333 if test -n "$CC"; then
1334 echo "$as_me:1334: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1337 echo "$as_me:1337: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$CC"; then
1343 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1348 echo "$as_me:1348: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 $as_executable_p "$ac_dir/$ac_word" || continue
1362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
1370 if test -n "$CC"; then
1371 echo "$as_me:1371: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1374 echo "$as_me:1374: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1378 test -n "$CC" && break
1381 if test -z "$CC"; then
1385 # Extract the first word of "$ac_prog", so it can be a program name with args.
1386 set dummy $ac_prog; ac_word=$2
1387 echo "$as_me:1387: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 if test -n "$ac_ct_CC"; then
1393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1395 ac_save_IFS=$IFS; IFS=$ac_path_separator
1397 for ac_dir in $ac_dummy; do
1399 test -z "$ac_dir" && ac_dir=.
1400 $as_executable_p "$ac_dir/$ac_word" || continue
1401 ac_cv_prog_ac_ct_CC="$ac_prog"
1402 echo "$as_me:1402: found $ac_dir/$ac_word" >&5
1408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1409 if test -n "$ac_ct_CC"; then
1410 echo "$as_me:1410: result: $ac_ct_CC" >&5
1411 echo "${ECHO_T}$ac_ct_CC" >&6
1413 echo "$as_me:1413: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1417 test -n "$ac_ct_CC" && break
1425 test -z "$CC" && { { echo "$as_me:1425: error: no acceptable cc found in \$PATH" >&5
1426 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1427 { (exit 1); exit 1; }; }
1429 # Provide some information about the compiler.
1430 echo "$as_me:1430:" \
1431 "checking for C compiler version" >&5
1432 ac_compiler=`set X $ac_compile; echo $2`
1433 { (eval echo "$as_me:1433: \"$ac_compiler --version </dev/null >&5\"") >&5
1434 (eval $ac_compiler --version </dev/null >&5) 2>&5
1436 echo "$as_me:1436: \$? = $ac_status" >&5
1437 (exit $ac_status); }
1438 { (eval echo "$as_me:1438: \"$ac_compiler -v </dev/null >&5\"") >&5
1439 (eval $ac_compiler -v </dev/null >&5) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }
1443 { (eval echo "$as_me:1443: \"$ac_compiler -V </dev/null >&5\"") >&5
1444 (eval $ac_compiler -V </dev/null >&5) 2>&5
1446 echo "$as_me:1446: \$? = $ac_status" >&5
1447 (exit $ac_status); }
1449 cat >conftest.$ac_ext <<_ACEOF
1450 #line 1450 "configure"
1451 #include "confdefs.h"
1461 ac_clean_files_save=$ac_clean_files
1462 ac_clean_files="$ac_clean_files a.out a.exe"
1463 # Try to create an executable without -o first, disregard a.out.
1464 # It will help us diagnose broken compilers, and finding out an intuition
1466 echo "$as_me:1466: checking for C compiler default output" >&5
1467 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1468 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1469 if { (eval echo "$as_me:1469: \"$ac_link_default\"") >&5
1470 (eval $ac_link_default) 2>&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }; then
1474 # Find the output, starting from the most likely. This scheme is
1475 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1477 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1478 ls a.out conftest 2>/dev/null;
1479 ls a.* conftest.* 2>/dev/null`; do
1481 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1482 a.out ) # We found the default executable, but exeext='' is most
1485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1486 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1493 echo "$as_me: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 { { echo "$as_me:1495: error: C compiler cannot create executables" >&5
1496 echo "$as_me: error: C compiler cannot create executables" >&2;}
1497 { (exit 77); exit 77; }; }
1500 ac_exeext=$ac_cv_exeext
1501 echo "$as_me:1501: result: $ac_file" >&5
1502 echo "${ECHO_T}$ac_file" >&6
1504 # Check the compiler produces executables we can run. If not, either
1505 # the compiler is broken, or we cross compile.
1506 echo "$as_me:1506: checking whether the C compiler works" >&5
1507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1509 # If not cross compiling, check that we can run a simple program.
1510 if test "$cross_compiling" != yes; then
1511 if { ac_try='./$ac_file'
1512 { (eval echo "$as_me:1512: \"$ac_try\"") >&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; }; then
1519 if test "$cross_compiling" = maybe; then
1522 { { echo "$as_me:1522: error: cannot run C compiled programs.
1523 If you meant to cross compile, use \`--host'." >&5
1524 echo "$as_me: error: cannot run C compiled programs.
1525 If you meant to cross compile, use \`--host'." >&2;}
1526 { (exit 1); exit 1; }; }
1530 echo "$as_me:1530: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 rm -f a.out a.exe conftest$ac_cv_exeext
1534 ac_clean_files=$ac_clean_files_save
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether we are cross compiling" >&5
1538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1539 echo "$as_me:1539: result: $cross_compiling" >&5
1540 echo "${ECHO_T}$cross_compiling" >&6
1542 echo "$as_me:1542: checking for executable suffix" >&5
1543 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1544 if { (eval echo "$as_me:1544: \"$ac_link\"") >&5
1545 (eval $ac_link) 2>&5
1547 echo "$as_me:1547: \$? = $ac_status" >&5
1548 (exit $ac_status); }; then
1549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1551 # work properly (i.e., refer to `conftest.exe'), while it won't with
1553 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1555 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1563 { { echo "$as_me:1563: error: cannot compute EXEEXT: cannot compile and link" >&5
1564 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1565 { (exit 1); exit 1; }; }
1568 rm -f conftest$ac_cv_exeext
1569 echo "$as_me:1569: result: $ac_cv_exeext" >&5
1570 echo "${ECHO_T}$ac_cv_exeext" >&6
1572 rm -f conftest.$ac_ext
1573 EXEEXT=$ac_cv_exeext
1575 echo "$as_me:1575: checking for object suffix" >&5
1576 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1577 if test "${ac_cv_objext+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 cat >conftest.$ac_ext <<_ACEOF
1581 #line 1581 "configure"
1582 #include "confdefs.h"
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 { { echo "$as_me:1608: error: cannot compute OBJEXT: cannot compile" >&5
1609 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1610 { (exit 1); exit 1; }; }
1613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1615 echo "$as_me:1615: result: $ac_cv_objext" >&5
1616 echo "${ECHO_T}$ac_cv_objext" >&6
1617 OBJEXT=$ac_cv_objext
1619 echo "$as_me:1619: checking whether we are using the GNU C compiler" >&5
1620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 cat >conftest.$ac_ext <<_ACEOF
1625 #line 1625 "configure"
1626 #include "confdefs.h"
1639 rm -f conftest.$ac_objext
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); } &&
1645 { ac_try='test -s conftest.$ac_objext'
1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1657 rm -f conftest.$ac_objext conftest.$ac_ext
1658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1661 echo "$as_me:1661: result: $ac_cv_c_compiler_gnu" >&5
1662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1663 GCC=`test $ac_compiler_gnu = yes && echo yes`
1664 ac_test_CFLAGS=${CFLAGS+set}
1665 ac_save_CFLAGS=$CFLAGS
1667 echo "$as_me:1667: checking whether $CC accepts -g" >&5
1668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1669 if test "${ac_cv_prog_cc_g+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.$ac_ext <<_ACEOF
1673 #line 1673 "configure"
1674 #include "confdefs.h"
1684 rm -f conftest.$ac_objext
1685 if { (eval echo "$as_me:1685: \"$ac_compile\"") >&5
1686 (eval $ac_compile) 2>&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); } &&
1690 { ac_try='test -s conftest.$ac_objext'
1691 { (eval echo "$as_me:1691: \"$ac_try\"") >&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }; }; then
1698 echo "$as_me: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1702 rm -f conftest.$ac_objext conftest.$ac_ext
1704 echo "$as_me:1704: result: $ac_cv_prog_cc_g" >&5
1705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1706 if test "$ac_test_CFLAGS" = set; then
1707 CFLAGS=$ac_save_CFLAGS
1708 elif test $ac_cv_prog_cc_g = yes; then
1709 if test "$GCC" = yes; then
1715 if test "$GCC" = yes; then
1721 # Some people use a C++ compiler to compile C. Since we use `exit',
1722 # in C++ we need to declare it. In case someone uses the same compiler
1723 # for both compiling C and C++ we need to have the C++ compiler decide
1724 # the declaration of exit, since it's the most demanding environment.
1725 cat >conftest.$ac_ext <<_ACEOF
1730 rm -f conftest.$ac_objext
1731 if { (eval echo "$as_me:1731: \"$ac_compile\"") >&5
1732 (eval $ac_compile) 2>&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); } &&
1736 { ac_try='test -s conftest.$ac_objext'
1737 { (eval echo "$as_me:1737: \"$ac_try\"") >&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; }; then
1742 for ac_declaration in \
1744 '#include <stdlib.h>' \
1745 'extern "C" void std::exit (int) throw (); using std::exit;' \
1746 'extern "C" void std::exit (int); using std::exit;' \
1747 'extern "C" void exit (int) throw ();' \
1748 'extern "C" void exit (int);' \
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line 1752 "configure"
1753 #include "confdefs.h"
1764 rm -f conftest.$ac_objext
1765 if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5
1766 (eval $ac_compile) 2>&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); } &&
1770 { ac_try='test -s conftest.$ac_objext'
1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1778 echo "$as_me: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1782 rm -f conftest.$ac_objext conftest.$ac_ext
1783 cat >conftest.$ac_ext <<_ACEOF
1784 #line 1784 "configure"
1785 #include "confdefs.h"
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 rm -f conftest.$ac_objext conftest.$ac_ext
1815 if test -n "$ac_declaration"; then
1816 echo '#ifdef __cplusplus' >>confdefs.h
1817 echo $ac_declaration >>confdefs.h
1818 echo '#endif' >>confdefs.h
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_main_return=return
1834 if test "$GCC" = yes ; then
1835 echo "$as_me:1835: checking version of $CC" >&5
1836 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1837 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.].*//'`"
1838 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1839 echo "$as_me:1839: result: $GCC_VERSION" >&5
1840 echo "${ECHO_T}$GCC_VERSION" >&6
1843 echo "$as_me:1843: checking for $CC option to accept ANSI C" >&5
1844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 ac_cv_prog_cc_stdc=no
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1855 #include <sys/types.h>
1856 #include <sys/stat.h>
1857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1858 struct buf { int x; };
1859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1860 static char *e (p, i)
1866 static char *f (char * (*g) (char **, int), char **p, ...)
1871 s = g (p, va_arg (v,int));
1875 int test (int i, double x);
1876 struct s1 {int (*f) (int a);};
1877 struct s2 {int (*f) (double a);};
1878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1889 # Don't try gcc -ansi; that turns off useful extensions and
1890 # breaks some systems' header files.
1891 # AIX -qlanglvl=ansi
1892 # Ultrix and OSF/1 -std1
1893 # HP-UX 10.20 and later -Ae
1894 # HP-UX older versions -Aa -D_HPUX_SOURCE
1895 # SVR4 -Xc -D__EXTENSIONS__
1896 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1898 CC="$ac_save_CC $ac_arg"
1899 rm -f conftest.$ac_objext
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1911 ac_cv_prog_cc_stdc=$ac_arg
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 rm -f conftest.$ac_objext
1919 rm -f conftest.$ac_ext conftest.$ac_objext
1924 case "x$ac_cv_prog_cc_stdc" in
1926 echo "$as_me:1926: result: none needed" >&5
1927 echo "${ECHO_T}none needed" >&6 ;;
1929 echo "$as_me:1929: result: $ac_cv_prog_cc_stdc" >&5
1930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1931 CC="$CC $ac_cv_prog_cc_stdc" ;;
1934 # This should have been defined by AC_PROG_CC
1937 echo "$as_me:1937: checking \$CC variable" >&5
1938 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1941 echo "$as_me:1941: result: broken" >&5
1942 echo "${ECHO_T}broken" >&6
1943 { echo "$as_me:1943: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1944 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1946 cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
1947 CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'`
1948 for cf_arg in $cf_flags
1956 cf_new_extra_cppflags=
1958 for cf_add_cflags in $cf_flags
1960 case $cf_fix_cppflags in
1962 case $cf_add_cflags in
1963 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1964 case $cf_add_cflags in
1966 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1968 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1969 && test -z "${cf_tst_cflags}" \
1970 && cf_fix_cppflags=yes
1972 if test $cf_fix_cppflags = yes ; then
1973 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 elif test "${cf_tst_cflags}" = "\"'" ; then
1976 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1985 case $cf_add_cflags in
1987 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1989 CPPFLAGS=`echo "$CPPFLAGS" | \
1990 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1991 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1995 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2000 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2005 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2007 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2009 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2010 && test -z "${cf_tst_cflags}" \
2011 && cf_fix_cppflags=no
2016 if test -n "$cf_new_cflags" ; then
2018 CFLAGS="$CFLAGS $cf_new_cflags"
2021 if test -n "$cf_new_cppflags" ; then
2023 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2026 if test -n "$cf_new_extra_cppflags" ; then
2028 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2037 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2039 echo "${as_me:-configure}:2039: testing resulting CC: '$CC' ..." 1>&5
2041 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2043 echo "${as_me:-configure}:2043: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2045 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2047 echo "${as_me:-configure}:2047: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2051 echo "$as_me:2051: result: ok" >&5
2052 echo "${ECHO_T}ok" >&6
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2061 ac_main_return=return
2062 echo "$as_me:2062: checking how to run the C preprocessor" >&5
2063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2064 # On Suns, sometimes $CPP names a directory.
2065 if test -n "$CPP" && test -d "$CPP"; then
2068 if test -z "$CPP"; then
2069 if test "${ac_cv_prog_CPP+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 # Double quotes because CPP needs to be expanded
2073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2076 for ac_c_preproc_warn_flag in '' yes
2078 # Use a header file that comes with gcc, so configuring glibc
2079 # with a fresh cross-compiler works.
2080 # On the NeXT, cc -E runs the code through the compiler's parser,
2081 # not just through cpp. "Syntax error" is here to catch this case.
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line 2083 "configure"
2084 #include "confdefs.h"
2088 if { (eval echo "$as_me:2088: \"$ac_cpp conftest.$ac_ext\"") >&5
2089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2091 egrep -v '^ *\+' conftest.er1 >conftest.err
2093 cat conftest.err >&5
2094 echo "$as_me:2094: \$? = $ac_status" >&5
2095 (exit $ac_status); } >/dev/null; then
2096 if test -s conftest.err; then
2097 ac_cpp_err=$ac_c_preproc_warn_flag
2104 if test -z "$ac_cpp_err"; then
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 # Broken: fails on valid input.
2112 rm -f conftest.err conftest.$ac_ext
2114 # OK, works on sane cases. Now check whether non-existent headers
2115 # can be detected and how.
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2119 #include <ac_nonexistent.h>
2121 if { (eval echo "$as_me:2121: \"$ac_cpp conftest.$ac_ext\"") >&5
2122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2124 egrep -v '^ *\+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:2127: \$? = $ac_status" >&5
2128 (exit $ac_status); } >/dev/null; then
2129 if test -s conftest.err; then
2130 ac_cpp_err=$ac_c_preproc_warn_flag
2137 if test -z "$ac_cpp_err"; then
2138 # Broken: success on invalid input.
2141 echo "$as_me: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2143 # Passes both tests.
2147 rm -f conftest.err conftest.$ac_ext
2150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2151 rm -f conftest.err conftest.$ac_ext
2152 if $ac_preproc_ok; then
2164 echo "$as_me:2164: result: $CPP" >&5
2165 echo "${ECHO_T}$CPP" >&6
2167 for ac_c_preproc_warn_flag in '' yes
2169 # Use a header file that comes with gcc, so configuring glibc
2170 # with a fresh cross-compiler works.
2171 # On the NeXT, cc -E runs the code through the compiler's parser,
2172 # not just through cpp. "Syntax error" is here to catch this case.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2179 if { (eval echo "$as_me:2179: \"$ac_cpp conftest.$ac_ext\"") >&5
2180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182 egrep -v '^ *\+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:2185: \$? = $ac_status" >&5
2186 (exit $ac_status); } >/dev/null; then
2187 if test -s conftest.err; then
2188 ac_cpp_err=$ac_c_preproc_warn_flag
2195 if test -z "$ac_cpp_err"; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Broken: fails on valid input.
2203 rm -f conftest.err conftest.$ac_ext
2205 # OK, works on sane cases. Now check whether non-existent headers
2206 # can be detected and how.
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #line 2208 "configure"
2209 #include "confdefs.h"
2210 #include <ac_nonexistent.h>
2212 if { (eval echo "$as_me:2212: \"$ac_cpp conftest.$ac_ext\"") >&5
2213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2215 egrep -v '^ *\+' conftest.er1 >conftest.err
2217 cat conftest.err >&5
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit $ac_status); } >/dev/null; then
2220 if test -s conftest.err; then
2221 ac_cpp_err=$ac_c_preproc_warn_flag
2228 if test -z "$ac_cpp_err"; then
2229 # Broken: success on invalid input.
2232 echo "$as_me: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 # Passes both tests.
2238 rm -f conftest.err conftest.$ac_ext
2241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2242 rm -f conftest.err conftest.$ac_ext
2243 if $ac_preproc_ok; then
2246 { { echo "$as_me:2246: error: C preprocessor \"$CPP\" fails sanity check" >&5
2247 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2248 { (exit 1); exit 1; }; }
2252 ac_cpp='$CPP $CPPFLAGS'
2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 ac_main_return=return
2258 for ac_prog in mawk gawk nawk awk
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 echo "$as_me:2262: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_AWK+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$AWK"; then
2268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270 ac_save_IFS=$IFS; IFS=$ac_path_separator
2272 for ac_dir in $ac_dummy; do
2274 test -z "$ac_dir" && ac_dir=.
2275 $as_executable_p "$ac_dir/$ac_word" || continue
2276 ac_cv_prog_AWK="$ac_prog"
2277 echo "$as_me:2277: found $ac_dir/$ac_word" >&5
2284 if test -n "$AWK"; then
2285 echo "$as_me:2285: result: $AWK" >&5
2286 echo "${ECHO_T}$AWK" >&6
2288 echo "$as_me:2288: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2292 test -n "$AWK" && break
2295 # Find a good install program. We prefer a C program (faster),
2296 # so one script is as good as another. But avoid the broken or
2297 # incompatible versions:
2298 # SysV /etc/install, /usr/sbin/install
2299 # SunOS /usr/etc/install
2300 # IRIX /sbin/install
2302 # AmigaOS /C/install, which installs bootblocks on floppy discs
2303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2306 # ./install, which can be erroneously created by make from ./install.sh.
2307 echo "$as_me:2307: checking for a BSD compatible install" >&5
2308 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2309 if test -z "$INSTALL"; then
2310 if test "${ac_cv_path_install+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 ac_save_IFS=$IFS; IFS=$ac_path_separator
2314 for ac_dir in $PATH; do
2316 # Account for people who put trailing slashes in PATH elements.
2318 / | ./ | .// | /cC/* \
2319 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2322 # OSF1 and SCO ODT 3.0 have their own names for install.
2323 # Don't use installbsd from OSF since it installs stuff as root
2325 for ac_prog in ginstall scoinst install; do
2326 if $as_executable_p "$ac_dir/$ac_prog"; then
2327 if test $ac_prog = install &&
2328 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2329 # AIX install. It has an incompatible calling convention.
2331 elif test $ac_prog = install &&
2332 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2333 # program-specific install script used by HP pwplus--don't use.
2336 ac_cv_path_install="$ac_dir/$ac_prog -c"
2346 if test "${ac_cv_path_install+set}" = set; then
2347 INSTALL=$ac_cv_path_install
2349 # As a last resort, use the slow shell script. We don't cache a
2350 # path for INSTALL within a source directory, because that will
2351 # break other packages using the cache if that directory is
2352 # removed, or if the path is relative.
2353 INSTALL=$ac_install_sh
2356 echo "$as_me:2356: result: $INSTALL" >&5
2357 echo "${ECHO_T}$INSTALL" >&6
2359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2360 # It thinks the first close brace ends the variable substitution.
2361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2372 test -z "$cf_dir" && cf_dir=.
2373 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2377 for ac_prog in lint cppcheck splint
2379 # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 echo "$as_me:2381: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_LINT+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$LINT"; then
2387 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2389 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 $as_executable_p "$ac_dir/$ac_word" || continue
2395 ac_cv_prog_LINT="$ac_prog"
2396 echo "$as_me:2396: found $ac_dir/$ac_word" >&5
2402 LINT=$ac_cv_prog_LINT
2403 if test -n "$LINT"; then
2404 echo "$as_me:2404: result: $LINT" >&5
2405 echo "${ECHO_T}$LINT" >&6
2407 echo "$as_me:2407: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2411 test -n "$LINT" && break
2414 echo "$as_me:2414: checking if filesystem supports mixed-case filenames" >&5
2415 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2416 if test "${cf_cv_mixedcase+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test "$cross_compiling" = yes ; then
2421 case $target_alias in
2422 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2430 rm -f conftest CONFTEST
2432 if test -f CONFTEST ; then
2437 rm -f conftest CONFTEST
2441 echo "$as_me:2441: result: $cf_cv_mixedcase" >&5
2442 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2443 test "$cf_cv_mixedcase" = yes &&
2444 cat >>confdefs.h <<\EOF
2445 #define MIXEDCASE_FILENAMES 1
2448 for ac_prog in exctags ctags
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:2452: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CTAGS+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CTAGS"; then
2458 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2460 ac_save_IFS=$IFS; IFS=$ac_path_separator
2462 for ac_dir in $ac_dummy; do
2464 test -z "$ac_dir" && ac_dir=.
2465 $as_executable_p "$ac_dir/$ac_word" || continue
2466 ac_cv_prog_CTAGS="$ac_prog"
2467 echo "$as_me:2467: found $ac_dir/$ac_word" >&5
2473 CTAGS=$ac_cv_prog_CTAGS
2474 if test -n "$CTAGS"; then
2475 echo "$as_me:2475: result: $CTAGS" >&5
2476 echo "${ECHO_T}$CTAGS" >&6
2478 echo "$as_me:2478: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2482 test -n "$CTAGS" && break
2485 for ac_prog in exetags etags
2487 # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 echo "$as_me:2489: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2491 if test "${ac_cv_prog_ETAGS+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if test -n "$ETAGS"; then
2495 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2497 ac_save_IFS=$IFS; IFS=$ac_path_separator
2499 for ac_dir in $ac_dummy; do
2501 test -z "$ac_dir" && ac_dir=.
2502 $as_executable_p "$ac_dir/$ac_word" || continue
2503 ac_cv_prog_ETAGS="$ac_prog"
2504 echo "$as_me:2504: found $ac_dir/$ac_word" >&5
2510 ETAGS=$ac_cv_prog_ETAGS
2511 if test -n "$ETAGS"; then
2512 echo "$as_me:2512: result: $ETAGS" >&5
2513 echo "${ECHO_T}$ETAGS" >&6
2515 echo "$as_me:2515: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ETAGS" && break
2522 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2523 set dummy ${CTAGS:-ctags}; ac_word=$2
2524 echo "$as_me:2524: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$MAKE_LOWER_TAGS"; then
2530 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2532 ac_save_IFS=$IFS; IFS=$ac_path_separator
2534 for ac_dir in $ac_dummy; do
2536 test -z "$ac_dir" && ac_dir=.
2537 $as_executable_p "$ac_dir/$ac_word" || continue
2538 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2539 echo "$as_me:2539: found $ac_dir/$ac_word" >&5
2543 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2546 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2547 if test -n "$MAKE_LOWER_TAGS"; then
2548 echo "$as_me:2548: result: $MAKE_LOWER_TAGS" >&5
2549 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2551 echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 if test "$cf_cv_mixedcase" = yes ; then
2556 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2557 set dummy ${ETAGS:-etags}; ac_word=$2
2558 echo "$as_me:2558: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$MAKE_UPPER_TAGS"; then
2564 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2566 ac_save_IFS=$IFS; IFS=$ac_path_separator
2568 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 $as_executable_p "$ac_dir/$ac_word" || continue
2572 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2573 echo "$as_me:2573: found $ac_dir/$ac_word" >&5
2577 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2580 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2581 if test -n "$MAKE_UPPER_TAGS"; then
2582 echo "$as_me:2582: result: $MAKE_UPPER_TAGS" >&5
2583 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2585 echo "$as_me:2585: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2593 if test "$MAKE_UPPER_TAGS" = yes ; then
2599 if test "$MAKE_LOWER_TAGS" = yes ; then
2605 echo "$as_me:2605: checking if -lm needed for math functions" >&5
2606 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2607 if test "${cf_cv_need_libm+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line 2612 "configure"
2613 #include "confdefs.h"
2622 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:2628: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>&5
2631 echo "$as_me:2631: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2637 echo "$as_me:2637: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2647 echo "$as_me:2647: result: $cf_cv_need_libm" >&5
2648 echo "${ECHO_T}$cf_cv_need_libm" >&6
2649 if test "$cf_cv_need_libm" = yes
2657 CC_SHARED_OPTS=unknown
2658 CPPFLAGS="$CPPFLAGS"
2660 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2661 DFT_UPR_MODEL="NORMAL"
2674 PACKAGE="ncurses-examples"
2680 TINFO_LIBS='$(LIBS_CURSES)'
2681 cf_cv_abi_version=""
2682 cf_cv_rel_version=""
2688 if test "$GCC" = yes
2690 cat > conftest.i <<EOF
2692 #define GCC_PRINTF 0
2697 #ifndef GCC_NORETURN
2698 #define GCC_NORETURN /* nothing */
2701 #define GCC_UNUSED /* nothing */
2704 if test "$GCC" = yes
2706 { echo "$as_me:2706: checking for $CC __attribute__ directives..." >&5
2707 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2709 "${as_me:-configure}"
2710 #include "confdefs.h"
2711 #include "conftest.h"
2712 #include "conftest.i"
2714 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2716 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2719 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2721 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2723 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2724 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2725 extern void foo(void) GCC_NORETURN;
2726 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2728 cf_printf_attribute=no
2729 cf_scanf_attribute=no
2730 for cf_attribute in scanf printf unused noreturn
2733 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2735 cf_directive="__attribute__(($cf_attribute))"
2736 echo "checking for $CC $cf_directive" 1>&5
2738 case $cf_attribute in
2740 cf_printf_attribute=yes
2741 cat >conftest.h <<EOF
2742 #define GCC_$cf_ATTRIBUTE 1
2746 cf_scanf_attribute=yes
2747 cat >conftest.h <<EOF
2748 #define GCC_$cf_ATTRIBUTE 1
2752 cat >conftest.h <<EOF
2753 #define GCC_$cf_ATTRIBUTE $cf_directive
2758 if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 test -n "$verbose" && echo "$as_me:2763: result: ... $cf_attribute" >&5
2764 echo "${ECHO_T}... $cf_attribute" >&6
2765 cat conftest.h >>confdefs.h
2766 case $cf_attribute in
2769 cat >>confdefs.h <<EOF
2770 #define GCC_NORETURN $cf_directive
2775 cf_value='/* nothing */'
2776 if test "$cf_printf_attribute" != no ; then
2777 cf_value='__attribute__((format(printf,fmt,var)))'
2779 cat >>confdefs.h <<\EOF
2780 #define GCC_PRINTF 1
2785 cat >>confdefs.h <<EOF
2786 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2791 cf_value='/* nothing */'
2792 if test "$cf_scanf_attribute" != no ; then
2793 cf_value='__attribute__((format(scanf,fmt,var)))'
2795 cat >>confdefs.h <<\EOF
2801 cat >>confdefs.h <<EOF
2802 #define GCC_SCANFLIKE(fmt,var) $cf_value
2808 cat >>confdefs.h <<EOF
2809 #define GCC_UNUSED $cf_directive
2817 fgrep define conftest.i >>confdefs.h
2822 echo "$as_me:2822: checking if you want to work around bogus compiler/loader warnings" >&5
2823 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2825 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2826 if test "${enable_string_hacks+set}" = set; then
2827 enableval="$enable_string_hacks"
2828 with_string_hacks=$enableval
2830 with_string_hacks=no
2832 echo "$as_me:2832: result: $with_string_hacks" >&5
2833 echo "${ECHO_T}$with_string_hacks" >&6
2835 if test "x$with_string_hacks" = "xyes"; then
2837 cat >>confdefs.h <<\EOF
2838 #define USE_STRING_HACKS 1
2841 { echo "$as_me:2841: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2842 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2843 echo "$as_me:2843: checking for strlcat" >&5
2844 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2845 if test "${ac_cv_func_strlcat+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line 2849 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char strlcat (); below. */
2854 /* Override any gcc2 internal prototype to avoid an error. */
2858 /* We use char because int might match the return type of a gcc2
2859 builtin and then its argument prototype would still apply. */
2866 /* The GNU C library defines this for functions which it implements
2867 to always fail with ENOSYS. Some functions are actually named
2868 something starting with __ and the normal name is an alias. */
2869 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2872 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2879 rm -f conftest.$ac_objext conftest$ac_exeext
2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2883 echo "$as_me:2883: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -s conftest$ac_exeext'
2886 { (eval echo "$as_me:2886: \"$ac_try\"") >&5
2889 echo "$as_me:2889: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_func_strlcat=yes
2893 echo "$as_me: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2895 ac_cv_func_strlcat=no
2897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2899 echo "$as_me:2899: result: $ac_cv_func_strlcat" >&5
2900 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2901 if test $ac_cv_func_strlcat = yes; then
2903 cat >>confdefs.h <<\EOF
2904 #define HAVE_STRLCAT 1
2909 echo "$as_me:2909: checking for strlcat in -lbsd" >&5
2910 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2911 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 ac_check_lib_save_LIBS=$LIBS
2916 cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2920 /* Override any gcc2 internal prototype to avoid an error. */
2924 /* We use char because int might match the return type of a gcc2
2925 builtin and then its argument prototype would still apply. */
2935 rm -f conftest.$ac_objext conftest$ac_exeext
2936 if { (eval echo "$as_me:2936: \"$ac_link\"") >&5
2937 (eval $ac_link) 2>&5
2939 echo "$as_me:2939: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -s conftest$ac_exeext'
2942 { (eval echo "$as_me:2942: \"$ac_try\"") >&5
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 ac_cv_lib_bsd_strlcat=yes
2949 echo "$as_me: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 ac_cv_lib_bsd_strlcat=no
2953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2954 LIBS=$ac_check_lib_save_LIBS
2956 echo "$as_me:2956: result: $ac_cv_lib_bsd_strlcat" >&5
2957 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2958 if test $ac_cv_lib_bsd_strlcat = yes; then
2961 # Filter out duplicates - this happens with badly-designed ".pc" files...
2962 for cf_add_1lib in $LIBS
2964 for cf_add_2lib in $cf_add_libs
2966 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2972 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
2976 for ac_header in bsd/string.h
2978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2979 echo "$as_me:2979: checking for $ac_header" >&5
2980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2987 #include <$ac_header>
2989 if { (eval echo "$as_me:2989: \"$ac_cpp conftest.$ac_ext\"") >&5
2990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2992 egrep -v '^ *\+' conftest.er1 >conftest.err
2994 cat conftest.err >&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null; then
2997 if test -s conftest.err; then
2998 ac_cpp_err=$ac_c_preproc_warn_flag
3005 if test -z "$ac_cpp_err"; then
3006 eval "$as_ac_Header=yes"
3008 echo "$as_me: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 eval "$as_ac_Header=no"
3012 rm -f conftest.err conftest.$ac_ext
3014 echo "$as_me:3014: result: `eval echo '${'$as_ac_Header'}'`" >&5
3015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3017 cat >>confdefs.h <<EOF
3018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3024 cat >>confdefs.h <<\EOF
3025 #define HAVE_STRLCAT 1
3032 for ac_func in strlcpy snprintf
3034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3035 echo "$as_me:3035: checking for $ac_func" >&5
3036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3037 if eval "test \"\${$as_ac_var+set}\" = set"; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 cat >conftest.$ac_ext <<_ACEOF
3041 #line 3041 "configure"
3042 #include "confdefs.h"
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char $ac_func (); below. */
3046 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3058 /* The GNU C library defines this for functions which it implements
3059 to always fail with ENOSYS. Some functions are actually named
3060 something starting with __ and the normal name is an alias. */
3061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3064 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3071 rm -f conftest.$ac_objext conftest$ac_exeext
3072 if { (eval echo "$as_me:3072: \"$ac_link\"") >&5
3073 (eval $ac_link) 2>&5
3075 echo "$as_me:3075: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -s conftest$ac_exeext'
3078 { (eval echo "$as_me:3078: \"$ac_try\"") >&5
3081 echo "$as_me:3081: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 eval "$as_ac_var=yes"
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 eval "$as_ac_var=no"
3089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3091 echo "$as_me:3091: result: `eval echo '${'$as_ac_var'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3093 if test `eval echo '${'$as_ac_var'}'` = yes; then
3094 cat >>confdefs.h <<EOF
3095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3104 cf_POSIX_C_SOURCE=199506L
3109 cf_xopen_source="-D_ALL_SOURCE"
3115 cf_xopen_source="-D_APPLE_C_SOURCE"
3118 cf_xopen_source="-D_DARWIN_C_SOURCE"
3121 (freebsd*|dragonfly*)
3122 # 5.x headers associate
3123 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3124 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3125 cf_POSIX_C_SOURCE=200112L
3127 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3130 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3133 cf_xopen_source="-D_HPUX_SOURCE"
3136 cf_xopen_source="-D_SGI_SOURCE"
3139 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3141 echo "$as_me:3141: checking if we must define _GNU_SOURCE" >&5
3142 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3143 if test "${cf_cv_gnu_source+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line 3148 "configure"
3149 #include "confdefs.h"
3150 #include <sys/types.h>
3155 #ifndef _XOPEN_SOURCE
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:3163: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>&5
3166 echo "$as_me:3166: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:3169: \"$ac_try\"") >&5
3172 echo "$as_me:3172: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3176 echo "$as_me: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3180 cat >conftest.$ac_ext <<_ACEOF
3181 #line 3181 "configure"
3182 #include "confdefs.h"
3183 #include <sys/types.h>
3188 #ifdef _XOPEN_SOURCE
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:3196: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:3202: \"$ac_try\"") >&5
3205 echo "$as_me:3205: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3209 echo "$as_me: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 cf_cv_gnu_source=yes
3213 rm -f conftest.$ac_objext conftest.$ac_ext
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3220 echo "$as_me:3220: result: $cf_cv_gnu_source" >&5
3221 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3223 if test "$cf_cv_gnu_source" = yes
3225 echo "$as_me:3225: checking if we should also define _DEFAULT_SOURCE" >&5
3226 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3227 if test "${cf_cv_default_source+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3232 cat >conftest.$ac_ext <<_ACEOF
3233 #line 3233 "configure"
3234 #include "confdefs.h"
3235 #include <sys/types.h>
3240 #ifdef _DEFAULT_SOURCE
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:3254: \"$ac_try\"") >&5
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cf_cv_default_source=no
3261 echo "$as_me: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3263 cf_cv_default_source=yes
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3268 echo "$as_me:3268: result: $cf_cv_default_source" >&5
3269 echo "${ECHO_T}$cf_cv_default_source" >&6
3270 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3275 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3278 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3281 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3283 cf_save_CFLAGS="$CFLAGS"
3284 cf_save_CPPFLAGS="$CPPFLAGS"
3286 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3287 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3288 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3290 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3291 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3292 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3294 echo "$as_me:3294: checking if we should define _POSIX_C_SOURCE" >&5
3295 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3296 if test "${cf_cv_posix_c_source+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 echo "${as_me:-configure}:3300: testing if the symbol is already defined go no further ..." 1>&5
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line 3303 "configure"
3304 #include "confdefs.h"
3305 #include <sys/types.h>
3310 #ifndef _POSIX_C_SOURCE
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:3318: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3321 echo "$as_me:3321: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:3324: \"$ac_try\"") >&5
3327 echo "$as_me:3327: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 cf_cv_posix_c_source=no
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3333 cf_want_posix_source=no
3334 case .$cf_POSIX_C_SOURCE in
3336 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3339 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3340 cf_want_posix_source=yes
3343 cf_want_posix_source=yes
3346 if test "$cf_want_posix_source" = yes ; then
3347 cat >conftest.$ac_ext <<_ACEOF
3348 #line 3348 "configure"
3349 #include "confdefs.h"
3350 #include <sys/types.h>
3355 #ifdef _POSIX_SOURCE
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:3363: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>&5
3366 echo "$as_me:3366: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:3369: \"$ac_try\"") >&5
3372 echo "$as_me:3372: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3383 echo "${as_me:-configure}:3383: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3385 CFLAGS="$cf_trim_CFLAGS"
3386 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3388 echo "${as_me:-configure}:3388: testing if the second compile does not leave our definition intact error ..." 1>&5
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #line 3391 "configure"
3392 #include "confdefs.h"
3393 #include <sys/types.h>
3398 #ifndef _POSIX_C_SOURCE
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:3406: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>&5
3409 echo "$as_me:3409: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:3412: \"$ac_try\"") >&5
3415 echo "$as_me:3415: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3421 cf_cv_posix_c_source=no
3423 rm -f conftest.$ac_objext conftest.$ac_ext
3424 CFLAGS="$cf_save_CFLAGS"
3425 CPPFLAGS="$cf_save_CPPFLAGS"
3428 rm -f conftest.$ac_objext conftest.$ac_ext
3431 echo "$as_me:3431: result: $cf_cv_posix_c_source" >&5
3432 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3434 if test "$cf_cv_posix_c_source" != no ; then
3435 CFLAGS="$cf_trim_CFLAGS"
3436 CPPFLAGS="$cf_trim_CPPFLAGS"
3441 cf_new_extra_cppflags=
3443 for cf_add_cflags in $cf_cv_posix_c_source
3445 case $cf_fix_cppflags in
3447 case $cf_add_cflags in
3448 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3449 case $cf_add_cflags in
3451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3453 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3454 && test -z "${cf_tst_cflags}" \
3455 && cf_fix_cppflags=yes
3457 if test $cf_fix_cppflags = yes ; then
3458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3460 elif test "${cf_tst_cflags}" = "\"'" ; then
3461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3470 case $cf_add_cflags in
3472 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3474 CPPFLAGS=`echo "$CPPFLAGS" | \
3475 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3476 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3480 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3485 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3490 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3492 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3494 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3495 && test -z "${cf_tst_cflags}" \
3496 && cf_fix_cppflags=no
3501 if test -n "$cf_new_cflags" ; then
3503 CFLAGS="$CFLAGS $cf_new_cflags"
3506 if test -n "$cf_new_cppflags" ; then
3508 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3511 if test -n "$cf_new_extra_cppflags" ; then
3513 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3520 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3523 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3524 cf_xopen_source="-D_BSD_SOURCE"
3528 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3531 cf_xopen_source="-D_OSF_SOURCE"
3534 cf_xopen_source="-D_QNX_SOURCE"
3537 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3540 cf_xopen_source="-D__EXTENSIONS__"
3541 cf_cv_xopen_source=broken
3543 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3549 echo "$as_me:3549: checking if we should define _XOPEN_SOURCE" >&5
3550 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3551 if test "${cf_cv_xopen_source+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3561 #include <sys/types.h>
3567 #ifndef _XOPEN_SOURCE
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>&5
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 cf_cv_xopen_source=no
3588 echo "$as_me: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3591 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line 3593 "configure"
3594 #include "confdefs.h"
3598 #include <sys/types.h>
3604 #ifdef _XOPEN_SOURCE
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:3612: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:3618: \"$ac_try\"") >&5
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 cf_cv_xopen_source=no
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3633 rm -f conftest.$ac_objext conftest.$ac_ext
3636 echo "$as_me:3636: result: $cf_cv_xopen_source" >&5
3637 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3639 if test "$cf_cv_xopen_source" != no ; then
3641 CFLAGS=`echo "$CFLAGS" | \
3642 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3643 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3645 CPPFLAGS=`echo "$CPPFLAGS" | \
3646 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3647 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3649 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3654 cf_new_extra_cppflags=
3656 for cf_add_cflags in $cf_temp_xopen_source
3658 case $cf_fix_cppflags in
3660 case $cf_add_cflags in
3661 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3662 case $cf_add_cflags in
3664 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3666 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3667 && test -z "${cf_tst_cflags}" \
3668 && cf_fix_cppflags=yes
3670 if test $cf_fix_cppflags = yes ; then
3671 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3673 elif test "${cf_tst_cflags}" = "\"'" ; then
3674 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3683 case $cf_add_cflags in
3685 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3687 CPPFLAGS=`echo "$CPPFLAGS" | \
3688 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3689 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3693 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3698 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3703 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3705 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3707 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3708 && test -z "${cf_tst_cflags}" \
3709 && cf_fix_cppflags=no
3714 if test -n "$cf_new_cflags" ; then
3716 CFLAGS="$CFLAGS $cf_new_cflags"
3719 if test -n "$cf_new_cppflags" ; then
3721 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3724 if test -n "$cf_new_extra_cppflags" ; then
3726 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3731 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3733 cf_save_CFLAGS="$CFLAGS"
3734 cf_save_CPPFLAGS="$CPPFLAGS"
3736 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3737 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3738 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3740 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3741 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3742 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3744 echo "$as_me:3744: checking if we should define _POSIX_C_SOURCE" >&5
3745 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3746 if test "${cf_cv_posix_c_source+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 echo "${as_me:-configure}:3750: testing if the symbol is already defined go no further ..." 1>&5
3752 cat >conftest.$ac_ext <<_ACEOF
3753 #line 3753 "configure"
3754 #include "confdefs.h"
3755 #include <sys/types.h>
3760 #ifndef _POSIX_C_SOURCE
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 cf_cv_posix_c_source=no
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 cf_want_posix_source=no
3784 case .$cf_POSIX_C_SOURCE in
3786 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3789 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3790 cf_want_posix_source=yes
3793 cf_want_posix_source=yes
3796 if test "$cf_want_posix_source" = yes ; then
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line 3798 "configure"
3799 #include "confdefs.h"
3800 #include <sys/types.h>
3805 #ifdef _POSIX_SOURCE
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:3813: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>&5
3816 echo "$as_me:3816: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:3819: \"$ac_try\"") >&5
3822 echo "$as_me:3822: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3826 echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3830 rm -f conftest.$ac_objext conftest.$ac_ext
3833 echo "${as_me:-configure}:3833: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3835 CFLAGS="$cf_trim_CFLAGS"
3836 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3838 echo "${as_me:-configure}:3838: testing if the second compile does not leave our definition intact error ..." 1>&5
3840 cat >conftest.$ac_ext <<_ACEOF
3841 #line 3841 "configure"
3842 #include "confdefs.h"
3843 #include <sys/types.h>
3848 #ifndef _POSIX_C_SOURCE
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:3856: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
3859 echo "$as_me:3859: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:3862: \"$ac_try\"") >&5
3865 echo "$as_me:3865: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 cf_cv_posix_c_source=no
3873 rm -f conftest.$ac_objext conftest.$ac_ext
3874 CFLAGS="$cf_save_CFLAGS"
3875 CPPFLAGS="$cf_save_CPPFLAGS"
3878 rm -f conftest.$ac_objext conftest.$ac_ext
3881 echo "$as_me:3881: result: $cf_cv_posix_c_source" >&5
3882 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3884 if test "$cf_cv_posix_c_source" != no ; then
3885 CFLAGS="$cf_trim_CFLAGS"
3886 CPPFLAGS="$cf_trim_CPPFLAGS"
3891 cf_new_extra_cppflags=
3893 for cf_add_cflags in $cf_cv_posix_c_source
3895 case $cf_fix_cppflags in
3897 case $cf_add_cflags in
3898 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3899 case $cf_add_cflags in
3901 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3903 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3904 && test -z "${cf_tst_cflags}" \
3905 && cf_fix_cppflags=yes
3907 if test $cf_fix_cppflags = yes ; then
3908 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3910 elif test "${cf_tst_cflags}" = "\"'" ; then
3911 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3920 case $cf_add_cflags in
3922 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3924 CPPFLAGS=`echo "$CPPFLAGS" | \
3925 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3926 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3930 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3935 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3940 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3942 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3944 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3945 && test -z "${cf_tst_cflags}" \
3946 && cf_fix_cppflags=no
3951 if test -n "$cf_new_cflags" ; then
3953 CFLAGS="$CFLAGS $cf_new_cflags"
3956 if test -n "$cf_new_cppflags" ; then
3958 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3961 if test -n "$cf_new_extra_cppflags" ; then
3963 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3971 if test -n "$cf_xopen_source" ; then
3976 cf_new_extra_cppflags=
3978 for cf_add_cflags in $cf_xopen_source
3980 case $cf_fix_cppflags in
3982 case $cf_add_cflags in
3983 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3984 case $cf_add_cflags in
3986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3989 && test -z "${cf_tst_cflags}" \
3990 && cf_fix_cppflags=yes
3992 if test $cf_fix_cppflags = yes ; then
3993 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3995 elif test "${cf_tst_cflags}" = "\"'" ; then
3996 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4005 case $cf_add_cflags in
4007 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4009 CPPFLAGS=`echo "$CPPFLAGS" | \
4010 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4011 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4015 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4020 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4025 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4027 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4029 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4030 && test -z "${cf_tst_cflags}" \
4031 && cf_fix_cppflags=no
4036 if test -n "$cf_new_cflags" ; then
4037 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4039 echo "${as_me:-configure}:4039: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4041 CFLAGS="$CFLAGS $cf_new_cflags"
4044 if test -n "$cf_new_cppflags" ; then
4045 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4047 echo "${as_me:-configure}:4047: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4049 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4052 if test -n "$cf_new_extra_cppflags" ; then
4053 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4055 echo "${as_me:-configure}:4055: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4057 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4062 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4063 echo "$as_me:4063: checking if _XOPEN_SOURCE really is set" >&5
4064 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4065 cat >conftest.$ac_ext <<_ACEOF
4066 #line 4066 "configure"
4067 #include "confdefs.h"
4073 #ifndef _XOPEN_SOURCE
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:4081: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:4084: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:4087: \"$ac_try\"") >&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 cf_XOPEN_SOURCE_set=yes
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 cf_XOPEN_SOURCE_set=no
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4099 echo "$as_me:4099: result: $cf_XOPEN_SOURCE_set" >&5
4100 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4101 if test $cf_XOPEN_SOURCE_set = yes
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line 4104 "configure"
4105 #include "confdefs.h"
4111 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4118 rm -f conftest.$ac_objext
4119 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>&5
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:4125: \"$ac_try\"") >&5
4128 echo "$as_me:4128: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 cf_XOPEN_SOURCE_set_ok=yes
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4134 cf_XOPEN_SOURCE_set_ok=no
4136 rm -f conftest.$ac_objext conftest.$ac_ext
4137 if test $cf_XOPEN_SOURCE_set_ok = no
4139 { echo "$as_me:4139: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4140 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4144 echo "$as_me:4144: checking if we should define _XOPEN_SOURCE" >&5
4145 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4146 if test "${cf_cv_xopen_source+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4151 #line 4151 "configure"
4152 #include "confdefs.h"
4156 #include <sys/types.h>
4162 #ifndef _XOPEN_SOURCE
4169 rm -f conftest.$ac_objext
4170 if { (eval echo "$as_me:4170: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:4176: \"$ac_try\"") >&5
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 cf_cv_xopen_source=no
4183 echo "$as_me: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line 4188 "configure"
4189 #include "confdefs.h"
4193 #include <sys/types.h>
4199 #ifdef _XOPEN_SOURCE
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 cf_cv_xopen_source=no
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4224 rm -f conftest.$ac_objext conftest.$ac_ext
4228 rm -f conftest.$ac_objext conftest.$ac_ext
4231 echo "$as_me:4231: result: $cf_cv_xopen_source" >&5
4232 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4234 if test "$cf_cv_xopen_source" != no ; then
4236 CFLAGS=`echo "$CFLAGS" | \
4237 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4238 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4240 CPPFLAGS=`echo "$CPPFLAGS" | \
4241 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4242 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4244 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4249 cf_new_extra_cppflags=
4251 for cf_add_cflags in $cf_temp_xopen_source
4253 case $cf_fix_cppflags in
4255 case $cf_add_cflags in
4256 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4257 case $cf_add_cflags in
4259 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4261 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4262 && test -z "${cf_tst_cflags}" \
4263 && cf_fix_cppflags=yes
4265 if test $cf_fix_cppflags = yes ; then
4266 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4268 elif test "${cf_tst_cflags}" = "\"'" ; then
4269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4278 case $cf_add_cflags in
4280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4282 CPPFLAGS=`echo "$CPPFLAGS" | \
4283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4288 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4293 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4298 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4300 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4302 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4303 && test -z "${cf_tst_cflags}" \
4304 && cf_fix_cppflags=no
4309 if test -n "$cf_new_cflags" ; then
4311 CFLAGS="$CFLAGS $cf_new_cflags"
4314 if test -n "$cf_new_cppflags" ; then
4316 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4319 if test -n "$cf_new_extra_cppflags" ; then
4321 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4329 echo "$as_me:4329: checking for signal global datatype" >&5
4330 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4331 if test "${cf_cv_sig_atomic_t+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 "volatile sig_atomic_t" \
4340 cat >conftest.$ac_ext <<_ACEOF
4341 #line 4341 "configure"
4342 #include "confdefs.h"
4344 #include <sys/types.h>
4350 static void handler(int sig)
4357 signal(SIGINT, handler);
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:4364: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4367 echo "$as_me:4367: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:4370: \"$ac_try\"") >&5
4373 echo "$as_me:4373: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 cf_cv_sig_atomic_t=$cf_type
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 cf_cv_sig_atomic_t=no
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4382 test "$cf_cv_sig_atomic_t" != no && break
4387 echo "$as_me:4387: result: $cf_cv_sig_atomic_t" >&5
4388 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4389 test "$cf_cv_sig_atomic_t" != no &&
4390 cat >>confdefs.h <<EOF
4391 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4394 # Work around breakage on OS X
4396 echo "$as_me:4396: checking if SIGWINCH is defined" >&5
4397 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4398 if test "${cf_cv_define_sigwinch+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line 4403 "configure"
4404 #include "confdefs.h"
4406 #include <sys/types.h>
4407 #include <sys/signal.h>
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:4418: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:4421: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:4424: \"$ac_try\"") >&5
4427 echo "$as_me:4427: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 cf_cv_define_sigwinch=yes
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line 4434 "configure"
4435 #include "confdefs.h"
4437 #undef _XOPEN_SOURCE
4438 #undef _POSIX_SOURCE
4439 #undef _POSIX_C_SOURCE
4440 #include <sys/types.h>
4441 #include <sys/signal.h>
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:4452: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4455 echo "$as_me:4455: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:4458: \"$ac_try\"") >&5
4461 echo "$as_me:4461: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 cf_cv_define_sigwinch=maybe
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 cf_cv_define_sigwinch=no
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4472 rm -f conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me:4475: result: $cf_cv_define_sigwinch" >&5
4476 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4478 if test "$cf_cv_define_sigwinch" = maybe ; then
4479 echo "$as_me:4479: checking for actual SIGWINCH definition" >&5
4480 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4481 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cf_cv_fixup_sigwinch=unknown
4487 while test $cf_sigwinch != 1
4489 cat >conftest.$ac_ext <<_ACEOF
4490 #line 4490 "configure"
4491 #include "confdefs.h"
4493 #undef _XOPEN_SOURCE
4494 #undef _POSIX_SOURCE
4495 #undef _POSIX_C_SOURCE
4496 #include <sys/types.h>
4497 #include <sys/signal.h>
4503 #if SIGWINCH != $cf_sigwinch
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:4512: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>&5
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:4518: \"$ac_try\"") >&5
4521 echo "$as_me:4521: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 cf_cv_fixup_sigwinch=$cf_sigwinch
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4529 rm -f conftest.$ac_objext conftest.$ac_ext
4531 cf_sigwinch=`expr $cf_sigwinch - 1`
4535 echo "$as_me:4535: result: $cf_cv_fixup_sigwinch" >&5
4536 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4538 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4539 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4543 # Checks for CODESET support.
4545 echo "$as_me:4545: checking for nl_langinfo and CODESET" >&5
4546 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4547 if test "${am_cv_langinfo_codeset+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4551 #line 4551 "configure"
4552 #include "confdefs.h"
4553 #include <langinfo.h>
4557 char* cs = nl_langinfo(CODESET);
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:4563: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>&5
4566 echo "$as_me:4566: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -s conftest$ac_exeext'
4569 { (eval echo "$as_me:4569: \"$ac_try\"") >&5
4572 echo "$as_me:4572: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 am_cv_langinfo_codeset=yes
4576 echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 am_cv_langinfo_codeset=no
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4583 echo "$as_me:4583: result: $am_cv_langinfo_codeset" >&5
4584 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4585 if test $am_cv_langinfo_codeset = yes; then
4587 cat >>confdefs.h <<\EOF
4588 #define HAVE_LANGINFO_CODESET 1
4593 echo "$as_me:4593: checking if you want to use pkg-config" >&5
4594 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4596 # Check whether --with-pkg-config or --without-pkg-config was given.
4597 if test "${with_pkg_config+set}" = set; then
4598 withval="$with_pkg_config"
4599 cf_pkg_config=$withval
4603 echo "$as_me:4603: result: $cf_pkg_config" >&5
4604 echo "${ECHO_T}$cf_pkg_config" >&6
4606 case $cf_pkg_config in
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4615 echo "$as_me:4615: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4625 ac_save_IFS=$IFS; IFS=$ac_path_separator
4627 for ac_dir in $ac_dummy; do
4629 test -z "$ac_dir" && ac_dir=.
4630 if $as_executable_p "$ac_dir/$ac_word"; then
4631 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4632 echo "$as_me:4632: found $ac_dir/$ac_word" >&5
4640 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4642 if test -n "$PKG_CONFIG"; then
4643 echo "$as_me:4643: result: $PKG_CONFIG" >&5
4644 echo "${ECHO_T}$PKG_CONFIG" >&6
4646 echo "$as_me:4646: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4651 if test -z "$ac_cv_path_PKG_CONFIG"; then
4652 ac_pt_PKG_CONFIG=$PKG_CONFIG
4653 # Extract the first word of "pkg-config", so it can be a program name with args.
4654 set dummy pkg-config; ac_word=$2
4655 echo "$as_me:4655: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 case $ac_pt_PKG_CONFIG in
4662 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4665 ac_save_IFS=$IFS; IFS=$ac_path_separator
4667 for ac_dir in $ac_dummy; do
4669 test -z "$ac_dir" && ac_dir=.
4670 if $as_executable_p "$ac_dir/$ac_word"; then
4671 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4672 echo "$as_me:4672: found $ac_dir/$ac_word" >&5
4677 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4681 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4683 if test -n "$ac_pt_PKG_CONFIG"; then
4684 echo "$as_me:4684: result: $ac_pt_PKG_CONFIG" >&5
4685 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4687 echo "$as_me:4687: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4691 PKG_CONFIG=$ac_pt_PKG_CONFIG
4693 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4702 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4703 if test "$PKG_CONFIG" != none ; then
4705 if test "x$prefix" != xNONE; then
4706 cf_path_syntax="$prefix"
4708 cf_path_syntax="$ac_default_prefix"
4711 case ".$PKG_CONFIG" in
4716 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4718 (.\${*prefix}*|.\${*dir}*)
4719 eval PKG_CONFIG="$PKG_CONFIG"
4720 case ".$PKG_CONFIG" in
4722 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4727 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4730 { { echo "$as_me:4730: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4731 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4732 { (exit 1); exit 1; }; }
4736 elif test "x$cf_pkg_config" != xno ; then
4737 { echo "$as_me:4737: WARNING: pkg-config is not installed" >&5
4738 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4741 echo "$as_me:4741: checking if you want to see long compiling messages" >&5
4742 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4744 # Check whether --enable-echo or --disable-echo was given.
4745 if test "${enable_echo+set}" = set; then
4746 enableval="$enable_echo"
4747 test "$enableval" != no && enableval=yes
4748 if test "$enableval" != "yes" ; then
4751 ECHO_LD='@echo linking $@;'
4752 RULE_CC='@echo compiling $<'
4753 SHOW_CC='@echo compiling $@'
4775 echo "$as_me:4775: result: $enableval" >&5
4776 echo "${ECHO_T}$enableval" >&6
4778 echo "$as_me:4778: checking for ncurses wrap-prefix" >&5