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"
2621 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2626 rm -f conftest.$ac_objext conftest$ac_exeext
2627 if { (eval echo "$as_me:2627: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>&5
2630 echo "$as_me:2630: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest$ac_exeext'
2633 { (eval echo "$as_me:2633: \"$ac_try\"") >&5
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2646 echo "$as_me:2646: result: $cf_cv_need_libm" >&5
2647 echo "${ECHO_T}$cf_cv_need_libm" >&6
2648 if test "$cf_cv_need_libm" = yes
2656 CC_SHARED_OPTS=unknown
2657 CPPFLAGS="$CPPFLAGS"
2659 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2660 DFT_UPR_MODEL="NORMAL"
2673 PACKAGE="ncurses-examples"
2679 TINFO_LIBS='$(LIBS_CURSES)'
2680 cf_cv_abi_version=""
2681 cf_cv_rel_version=""
2687 if test "$GCC" = yes
2689 cat > conftest.i <<EOF
2691 #define GCC_PRINTF 0
2696 #ifndef GCC_NORETURN
2697 #define GCC_NORETURN /* nothing */
2700 #define GCC_UNUSED /* nothing */
2703 if test "$GCC" = yes
2705 { echo "$as_me:2705: checking for $CC __attribute__ directives..." >&5
2706 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2708 "${as_me:-configure}"
2709 #include "confdefs.h"
2710 #include "conftest.h"
2711 #include "conftest.i"
2713 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2715 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2718 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2720 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2722 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2723 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2724 extern void foo(void) GCC_NORETURN;
2725 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2727 cf_printf_attribute=no
2728 cf_scanf_attribute=no
2729 for cf_attribute in scanf printf unused noreturn
2732 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2734 cf_directive="__attribute__(($cf_attribute))"
2735 echo "checking for $CC $cf_directive" 1>&5
2737 case $cf_attribute in
2739 cf_printf_attribute=yes
2740 cat >conftest.h <<EOF
2741 #define GCC_$cf_ATTRIBUTE 1
2745 cf_scanf_attribute=yes
2746 cat >conftest.h <<EOF
2747 #define GCC_$cf_ATTRIBUTE 1
2751 cat >conftest.h <<EOF
2752 #define GCC_$cf_ATTRIBUTE $cf_directive
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 test -n "$verbose" && echo "$as_me:2762: result: ... $cf_attribute" >&5
2763 echo "${ECHO_T}... $cf_attribute" >&6
2764 cat conftest.h >>confdefs.h
2765 case $cf_attribute in
2768 cat >>confdefs.h <<EOF
2769 #define GCC_NORETURN $cf_directive
2774 cf_value='/* nothing */'
2775 if test "$cf_printf_attribute" != no ; then
2776 cf_value='__attribute__((format(printf,fmt,var)))'
2778 cat >>confdefs.h <<\EOF
2779 #define GCC_PRINTF 1
2784 cat >>confdefs.h <<EOF
2785 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2790 cf_value='/* nothing */'
2791 if test "$cf_scanf_attribute" != no ; then
2792 cf_value='__attribute__((format(scanf,fmt,var)))'
2794 cat >>confdefs.h <<\EOF
2800 cat >>confdefs.h <<EOF
2801 #define GCC_SCANFLIKE(fmt,var) $cf_value
2807 cat >>confdefs.h <<EOF
2808 #define GCC_UNUSED $cf_directive
2816 fgrep define conftest.i >>confdefs.h
2821 echo "$as_me:2821: checking if you want to work around bogus compiler/loader warnings" >&5
2822 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2824 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2825 if test "${enable_string_hacks+set}" = set; then
2826 enableval="$enable_string_hacks"
2827 with_string_hacks=$enableval
2829 with_string_hacks=no
2831 echo "$as_me:2831: result: $with_string_hacks" >&5
2832 echo "${ECHO_T}$with_string_hacks" >&6
2834 if test "x$with_string_hacks" = "xyes"; then
2836 cat >>confdefs.h <<\EOF
2837 #define USE_STRING_HACKS 1
2840 { echo "$as_me:2840: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2841 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2842 echo "$as_me:2842: checking for strlcat" >&5
2843 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2844 if test "${ac_cv_func_strlcat+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line 2848 "configure"
2849 #include "confdefs.h"
2850 /* System header to define __stub macros and hopefully few prototypes,
2851 which can conflict with char strlcat (); below. */
2853 /* Override any gcc2 internal prototype to avoid an error. */
2857 /* We use char because int might match the return type of a gcc2
2858 builtin and then its argument prototype would still apply. */
2865 /* The GNU C library defines this for functions which it implements
2866 to always fail with ENOSYS. Some functions are actually named
2867 something starting with __ and the normal name is an alias. */
2868 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2871 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2878 rm -f conftest.$ac_objext conftest$ac_exeext
2879 if { (eval echo "$as_me:2879: \"$ac_link\"") >&5
2880 (eval $ac_link) 2>&5
2882 echo "$as_me:2882: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -s conftest$ac_exeext'
2885 { (eval echo "$as_me:2885: \"$ac_try\"") >&5
2888 echo "$as_me:2888: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_func_strlcat=yes
2892 echo "$as_me: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 ac_cv_func_strlcat=no
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2898 echo "$as_me:2898: result: $ac_cv_func_strlcat" >&5
2899 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2900 if test $ac_cv_func_strlcat = yes; then
2904 echo "$as_me:2904: checking for strlcat in -lbsd" >&5
2905 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2906 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 ac_check_lib_save_LIBS=$LIBS
2911 cat >conftest.$ac_ext <<_ACEOF
2912 #line 2912 "configure"
2913 #include "confdefs.h"
2915 /* Override any gcc2 internal prototype to avoid an error. */
2919 /* We use char because int might match the return type of a gcc2
2920 builtin and then its argument prototype would still apply. */
2930 rm -f conftest.$ac_objext conftest$ac_exeext
2931 if { (eval echo "$as_me:2931: \"$ac_link\"") >&5
2932 (eval $ac_link) 2>&5
2934 echo "$as_me:2934: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -s conftest$ac_exeext'
2937 { (eval echo "$as_me:2937: \"$ac_try\"") >&5
2940 echo "$as_me:2940: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_lib_bsd_strlcat=yes
2944 echo "$as_me: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 ac_cv_lib_bsd_strlcat=no
2948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2949 LIBS=$ac_check_lib_save_LIBS
2951 echo "$as_me:2951: result: $ac_cv_lib_bsd_strlcat" >&5
2952 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2953 if test $ac_cv_lib_bsd_strlcat = yes; then
2956 # Filter out duplicates - this happens with badly-designed ".pc" files...
2957 for cf_add_1lib in $LIBS
2959 for cf_add_2lib in $cf_add_libs
2961 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2967 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
2971 for ac_header in bsd/string.h
2973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2974 echo "$as_me:2974: checking for $ac_header" >&5
2975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line 2980 "configure"
2981 #include "confdefs.h"
2982 #include <$ac_header>
2984 if { (eval echo "$as_me:2984: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 egrep -v '^ *\+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:2990: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
3000 if test -z "$ac_cpp_err"; then
3001 eval "$as_ac_Header=yes"
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 eval "$as_ac_Header=no"
3007 rm -f conftest.err conftest.$ac_ext
3009 echo "$as_me:3009: result: `eval echo '${'$as_ac_Header'}'`" >&5
3010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3012 cat >>confdefs.h <<EOF
3013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3019 cat >>confdefs.h <<\EOF
3020 #define HAVE_STRLCAT 1
3027 for ac_func in strlcpy snprintf
3029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3030 echo "$as_me:3030: checking for $ac_func" >&5
3031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3032 if eval "test \"\${$as_ac_var+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line 3036 "configure"
3037 #include "confdefs.h"
3038 /* System header to define __stub macros and hopefully few prototypes,
3039 which can conflict with char $ac_func (); below. */
3041 /* Override any gcc2 internal prototype to avoid an error. */
3045 /* We use char because int might match the return type of a gcc2
3046 builtin and then its argument prototype would still apply. */
3053 /* The GNU C library defines this for functions which it implements
3054 to always fail with ENOSYS. Some functions are actually named
3055 something starting with __ and the normal name is an alias. */
3056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3059 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3066 rm -f conftest.$ac_objext conftest$ac_exeext
3067 if { (eval echo "$as_me:3067: \"$ac_link\"") >&5
3068 (eval $ac_link) 2>&5
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -s conftest$ac_exeext'
3073 { (eval echo "$as_me:3073: \"$ac_try\"") >&5
3076 echo "$as_me:3076: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 eval "$as_ac_var=yes"
3080 echo "$as_me: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 eval "$as_ac_var=no"
3084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3086 echo "$as_me:3086: result: `eval echo '${'$as_ac_var'}'`" >&5
3087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3088 if test `eval echo '${'$as_ac_var'}'` = yes; then
3089 cat >>confdefs.h <<EOF
3090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3099 cf_POSIX_C_SOURCE=199506L
3104 cf_xopen_source="-D_ALL_SOURCE"
3110 cf_xopen_source="-D_APPLE_C_SOURCE"
3113 cf_xopen_source="-D_DARWIN_C_SOURCE"
3116 (freebsd*|dragonfly*)
3117 # 5.x headers associate
3118 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3119 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3120 cf_POSIX_C_SOURCE=200112L
3122 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3125 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3128 cf_xopen_source="-D_HPUX_SOURCE"
3131 cf_xopen_source="-D_SGI_SOURCE"
3134 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3136 echo "$as_me:3136: checking if we must define _GNU_SOURCE" >&5
3137 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3138 if test "${cf_cv_gnu_source+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3143 #line 3143 "configure"
3144 #include "confdefs.h"
3145 #include <sys/types.h>
3150 #ifndef _XOPEN_SOURCE
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:3158: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>&5
3161 echo "$as_me:3161: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:3164: \"$ac_try\"") >&5
3167 echo "$as_me:3167: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 echo "$as_me: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3175 cat >conftest.$ac_ext <<_ACEOF
3176 #line 3176 "configure"
3177 #include "confdefs.h"
3178 #include <sys/types.h>
3183 #ifdef _XOPEN_SOURCE
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:3191: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3194 echo "$as_me:3194: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:3197: \"$ac_try\"") >&5
3200 echo "$as_me:3200: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 cf_cv_gnu_source=yes
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3212 rm -f conftest.$ac_objext conftest.$ac_ext
3215 echo "$as_me:3215: result: $cf_cv_gnu_source" >&5
3216 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3218 if test "$cf_cv_gnu_source" = yes
3220 echo "$as_me:3220: checking if we should also define _DEFAULT_SOURCE" >&5
3221 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3222 if test "${cf_cv_default_source+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line 3228 "configure"
3229 #include "confdefs.h"
3230 #include <sys/types.h>
3235 #ifdef _DEFAULT_SOURCE
3242 rm -f conftest.$ac_objext
3243 if { (eval echo "$as_me:3243: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>&5
3246 echo "$as_me:3246: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:3249: \"$ac_try\"") >&5
3252 echo "$as_me:3252: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 cf_cv_default_source=no
3256 echo "$as_me: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3258 cf_cv_default_source=yes
3260 rm -f conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:3263: result: $cf_cv_default_source" >&5
3264 echo "${ECHO_T}$cf_cv_default_source" >&6
3265 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3270 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3273 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3276 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3278 cf_save_CFLAGS="$CFLAGS"
3279 cf_save_CPPFLAGS="$CPPFLAGS"
3281 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3282 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3283 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3285 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3286 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3287 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3289 echo "$as_me:3289: checking if we should define _POSIX_C_SOURCE" >&5
3290 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3291 if test "${cf_cv_posix_c_source+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 echo "${as_me:-configure}:3295: testing if the symbol is already defined go no further ..." 1>&5
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line 3298 "configure"
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3305 #ifndef _POSIX_C_SOURCE
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:3313: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -s conftest.$ac_objext'
3319 { (eval echo "$as_me:3319: \"$ac_try\"") >&5
3322 echo "$as_me:3322: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 cf_cv_posix_c_source=no
3326 echo "$as_me: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 cf_want_posix_source=no
3329 case .$cf_POSIX_C_SOURCE in
3331 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3334 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3335 cf_want_posix_source=yes
3338 cf_want_posix_source=yes
3341 if test "$cf_want_posix_source" = yes ; then
3342 cat >conftest.$ac_ext <<_ACEOF
3343 #line 3343 "configure"
3344 #include "confdefs.h"
3345 #include <sys/types.h>
3350 #ifdef _POSIX_SOURCE
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:3358: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>&5
3361 echo "$as_me:3361: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (eval echo "$as_me:3364: \"$ac_try\"") >&5
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3371 echo "$as_me: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3375 rm -f conftest.$ac_objext conftest.$ac_ext
3378 echo "${as_me:-configure}:3378: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3380 CFLAGS="$cf_trim_CFLAGS"
3381 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3383 echo "${as_me:-configure}:3383: testing if the second compile does not leave our definition intact error ..." 1>&5
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <sys/types.h>
3393 #ifndef _POSIX_C_SOURCE
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:3407: \"$ac_try\"") >&5
3410 echo "$as_me:3410: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3414 echo "$as_me: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 cf_cv_posix_c_source=no
3418 rm -f conftest.$ac_objext conftest.$ac_ext
3419 CFLAGS="$cf_save_CFLAGS"
3420 CPPFLAGS="$cf_save_CPPFLAGS"
3423 rm -f conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:3426: result: $cf_cv_posix_c_source" >&5
3427 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3429 if test "$cf_cv_posix_c_source" != no ; then
3430 CFLAGS="$cf_trim_CFLAGS"
3431 CPPFLAGS="$cf_trim_CPPFLAGS"
3436 cf_new_extra_cppflags=
3438 for cf_add_cflags in $cf_cv_posix_c_source
3440 case $cf_fix_cppflags in
3442 case $cf_add_cflags in
3443 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3444 case $cf_add_cflags in
3446 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3448 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3449 && test -z "${cf_tst_cflags}" \
3450 && cf_fix_cppflags=yes
3452 if test $cf_fix_cppflags = yes ; then
3453 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3455 elif test "${cf_tst_cflags}" = "\"'" ; then
3456 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3465 case $cf_add_cflags in
3467 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3469 CPPFLAGS=`echo "$CPPFLAGS" | \
3470 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3471 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3475 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3480 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3485 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3487 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3489 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3490 && test -z "${cf_tst_cflags}" \
3491 && cf_fix_cppflags=no
3496 if test -n "$cf_new_cflags" ; then
3498 CFLAGS="$CFLAGS $cf_new_cflags"
3501 if test -n "$cf_new_cppflags" ; then
3503 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3506 if test -n "$cf_new_extra_cppflags" ; then
3508 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3515 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3518 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3519 cf_xopen_source="-D_BSD_SOURCE"
3523 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3526 cf_xopen_source="-D_OSF_SOURCE"
3529 cf_xopen_source="-D_QNX_SOURCE"
3532 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3535 cf_xopen_source="-D__EXTENSIONS__"
3536 cf_cv_xopen_source=broken
3538 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3544 echo "$as_me:3544: checking if we should define _XOPEN_SOURCE" >&5
3545 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3546 if test "${cf_cv_xopen_source+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line 3551 "configure"
3552 #include "confdefs.h"
3556 #include <sys/types.h>
3562 #ifndef _XOPEN_SOURCE
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:3570: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>&5
3573 echo "$as_me:3573: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:3576: \"$ac_try\"") >&5
3579 echo "$as_me:3579: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 cf_cv_xopen_source=no
3583 echo "$as_me: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line 3588 "configure"
3589 #include "confdefs.h"
3593 #include <sys/types.h>
3599 #ifdef _XOPEN_SOURCE
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:3607: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>&5
3610 echo "$as_me:3610: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:3613: \"$ac_try\"") >&5
3616 echo "$as_me:3616: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 cf_cv_xopen_source=no
3620 echo "$as_me: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3624 rm -f conftest.$ac_objext conftest.$ac_ext
3628 rm -f conftest.$ac_objext conftest.$ac_ext
3631 echo "$as_me:3631: result: $cf_cv_xopen_source" >&5
3632 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3634 if test "$cf_cv_xopen_source" != no ; then
3636 CFLAGS=`echo "$CFLAGS" | \
3637 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3638 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3640 CPPFLAGS=`echo "$CPPFLAGS" | \
3641 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3642 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3644 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3649 cf_new_extra_cppflags=
3651 for cf_add_cflags in $cf_temp_xopen_source
3653 case $cf_fix_cppflags in
3655 case $cf_add_cflags in
3656 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3657 case $cf_add_cflags in
3659 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3661 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3662 && test -z "${cf_tst_cflags}" \
3663 && cf_fix_cppflags=yes
3665 if test $cf_fix_cppflags = yes ; then
3666 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3668 elif test "${cf_tst_cflags}" = "\"'" ; then
3669 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3678 case $cf_add_cflags in
3680 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3682 CPPFLAGS=`echo "$CPPFLAGS" | \
3683 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3684 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3688 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3693 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3698 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3700 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3702 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3703 && test -z "${cf_tst_cflags}" \
3704 && cf_fix_cppflags=no
3709 if test -n "$cf_new_cflags" ; then
3711 CFLAGS="$CFLAGS $cf_new_cflags"
3714 if test -n "$cf_new_cppflags" ; then
3716 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3719 if test -n "$cf_new_extra_cppflags" ; then
3721 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3726 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3728 cf_save_CFLAGS="$CFLAGS"
3729 cf_save_CPPFLAGS="$CPPFLAGS"
3731 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3732 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3733 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3735 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3736 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3737 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3739 echo "$as_me:3739: checking if we should define _POSIX_C_SOURCE" >&5
3740 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3741 if test "${cf_cv_posix_c_source+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 echo "${as_me:-configure}:3745: testing if the symbol is already defined go no further ..." 1>&5
3747 cat >conftest.$ac_ext <<_ACEOF
3748 #line 3748 "configure"
3749 #include "confdefs.h"
3750 #include <sys/types.h>
3755 #ifndef _POSIX_C_SOURCE
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 cf_cv_posix_c_source=no
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 cf_want_posix_source=no
3779 case .$cf_POSIX_C_SOURCE in
3781 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3784 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3785 cf_want_posix_source=yes
3788 cf_want_posix_source=yes
3791 if test "$cf_want_posix_source" = yes ; then
3792 cat >conftest.$ac_ext <<_ACEOF
3793 #line 3793 "configure"
3794 #include "confdefs.h"
3795 #include <sys/types.h>
3800 #ifdef _POSIX_SOURCE
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:3808: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>&5
3811 echo "$as_me:3811: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:3814: \"$ac_try\"") >&5
3817 echo "$as_me:3817: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3821 echo "$as_me: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3823 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3825 rm -f conftest.$ac_objext conftest.$ac_ext
3828 echo "${as_me:-configure}:3828: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3830 CFLAGS="$cf_trim_CFLAGS"
3831 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3833 echo "${as_me:-configure}:3833: testing if the second compile does not leave our definition intact error ..." 1>&5
3835 cat >conftest.$ac_ext <<_ACEOF
3836 #line 3836 "configure"
3837 #include "confdefs.h"
3838 #include <sys/types.h>
3843 #ifndef _POSIX_C_SOURCE
3850 rm -f conftest.$ac_objext
3851 if { (eval echo "$as_me:3851: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>&5
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:3857: \"$ac_try\"") >&5
3860 echo "$as_me:3860: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3864 echo "$as_me: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 cf_cv_posix_c_source=no
3868 rm -f conftest.$ac_objext conftest.$ac_ext
3869 CFLAGS="$cf_save_CFLAGS"
3870 CPPFLAGS="$cf_save_CPPFLAGS"
3873 rm -f conftest.$ac_objext conftest.$ac_ext
3876 echo "$as_me:3876: result: $cf_cv_posix_c_source" >&5
3877 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3879 if test "$cf_cv_posix_c_source" != no ; then
3880 CFLAGS="$cf_trim_CFLAGS"
3881 CPPFLAGS="$cf_trim_CPPFLAGS"
3886 cf_new_extra_cppflags=
3888 for cf_add_cflags in $cf_cv_posix_c_source
3890 case $cf_fix_cppflags in
3892 case $cf_add_cflags in
3893 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3894 case $cf_add_cflags in
3896 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3898 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3899 && test -z "${cf_tst_cflags}" \
3900 && cf_fix_cppflags=yes
3902 if test $cf_fix_cppflags = yes ; then
3903 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3905 elif test "${cf_tst_cflags}" = "\"'" ; then
3906 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3915 case $cf_add_cflags in
3917 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3919 CPPFLAGS=`echo "$CPPFLAGS" | \
3920 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3921 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3925 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3930 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3935 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3937 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3939 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3940 && test -z "${cf_tst_cflags}" \
3941 && cf_fix_cppflags=no
3946 if test -n "$cf_new_cflags" ; then
3948 CFLAGS="$CFLAGS $cf_new_cflags"
3951 if test -n "$cf_new_cppflags" ; then
3953 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3956 if test -n "$cf_new_extra_cppflags" ; then
3958 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3966 if test -n "$cf_xopen_source" ; then
3971 cf_new_extra_cppflags=
3973 for cf_add_cflags in $cf_xopen_source
3975 case $cf_fix_cppflags in
3977 case $cf_add_cflags in
3978 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3979 case $cf_add_cflags in
3981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3983 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3984 && test -z "${cf_tst_cflags}" \
3985 && cf_fix_cppflags=yes