2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20170501.
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 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
677 --disable-panel disable checks for panel functions
678 --disable-menu disable checks for menu functions
679 --disable-form disable checks for form functions
680 Testing/development Options:
681 --enable-warnings test: turn on gcc compiler warnings
682 --with-dmalloc test: use Gray Watson's dmalloc library
683 --with-dbmalloc test: use Conor Cahill's dbmalloc library
684 --with-valgrind test: use valgrind
685 --disable-leaks test: free permanent memory, analyze leaks
686 --disable-rpath-hack don't add rpath options for additional libraries
688 Some influential environment variables:
689 CC C compiler command
690 CFLAGS C compiler flags
691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
692 nonstandard directory <lib dir>
693 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
694 headers in a nonstandard directory <include dir>
697 Use these variables to override the choices made by `configure' or to help
698 it to find libraries and programs with nonstandard names/locations.
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
743 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
744 Free Software Foundation, Inc.
745 This configure script is free software; the Free Software Foundation
746 gives unlimited permission to copy, distribute and modify it.
752 This file contains any messages produced by compilers while
753 running configure, to aid debugging if configure makes a mistake.
755 It was created by $as_me, which was
756 generated by GNU Autoconf 2.52.20170501. Invocation command line was
767 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
768 uname -m = `(uname -m) 2>/dev/null || echo unknown`
769 uname -r = `(uname -r) 2>/dev/null || echo unknown`
770 uname -s = `(uname -s) 2>/dev/null || echo unknown`
771 uname -v = `(uname -v) 2>/dev/null || echo unknown`
773 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
774 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
776 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
777 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
778 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
779 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
780 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
781 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
782 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 # Keep a trace of the command line.
797 # Strip out --no-create and --no-recursion so they do not pile up.
798 # Also quote any args containing shell meta-characters.
804 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
805 | --no-cr | --no-c) ;;
806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
810 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
812 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 # Get rid of the leading space.
818 # When interrupted or exit'd, cleanup temporary files, and complete
819 # config.log. We remove comments because anyway the quotes in there
820 # would cause problems or look ugly.
822 # Save into config.log some information that might help in debugging.
824 echo "## ----------------- ##" >&5
825 echo "## Cache variables. ##" >&5
826 echo "## ----------------- ##" >&5
828 # The following way of writing the cache mishandles newlines in values,
831 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
843 sed "/^$/d" confdefs.h >conftest.log
844 if test -s conftest.log; then
846 echo "## ------------ ##" >&5
847 echo "## confdefs.h. ##" >&5
848 echo "## ------------ ##" >&5
853 test "$ac_signal" != 0 &&
854 echo "$as_me: caught signal $ac_signal" >&5
855 echo "$as_me: exit $exit_status" >&5
856 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 for ac_signal in 1 2 13 15; do
860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
865 rm -rf conftest* confdefs.h
866 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
869 # Let the site file select an alternate cache file if it wants to.
870 # Prefer explicitly selected file to automatically selected ones.
871 if test -z "$CONFIG_SITE"; then
872 if test "x$prefix" != xNONE; then
873 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
875 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 for ac_site_file in $CONFIG_SITE; do
879 if test -r "$ac_site_file"; then
880 { echo "$as_me:880: loading site script $ac_site_file" >&5
881 echo "$as_me: loading site script $ac_site_file" >&6;}
882 cat "$ac_site_file" >&5
887 if test -r "$cache_file"; then
888 # Some versions of bash will fail to source /dev/null (special
889 # files actually), so we avoid doing that.
890 if test -f "$cache_file"; then
891 { echo "$as_me:891: loading cache $cache_file" >&5
892 echo "$as_me: loading cache $cache_file" >&6;}
894 [\\/]* | ?:[\\/]* ) . $cache_file;;
899 { echo "$as_me:899: creating cache $cache_file" >&5
900 echo "$as_me: creating cache $cache_file" >&6;}
904 # Check that the precious variables saved in the cache have kept the same
906 ac_cache_corrupted=false
907 for ac_var in `(set) 2>&1 |
908 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
910 eval ac_new_set=\$ac_env_${ac_var}_set
911 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
912 eval ac_new_val="\$ac_env_${ac_var}_value"
913 case $ac_old_set,$ac_new_set in
915 { echo "$as_me:915: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
919 { echo "$as_me:919: error: \`$ac_var' was not set in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
924 if test "x$ac_old_val" != "x$ac_new_val"; then
925 { echo "$as_me:925: error: \`$ac_var' has changed since the previous run:" >&5
926 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
927 { echo "$as_me:927: former value: $ac_old_val" >&5
928 echo "$as_me: former value: $ac_old_val" >&2;}
929 { echo "$as_me:929: current value: $ac_new_val" >&5
930 echo "$as_me: current value: $ac_new_val" >&2;}
934 # Pass precious variables to config.status. It doesn't matter if
935 # we pass some twice (in addition to the command line arguments).
936 if test "$ac_new_set" = set; then
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args '$ac_arg'"
942 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 if $ac_cache_corrupted; then
948 { echo "$as_me:948: error: changes in the environment can compromise the build" >&5
949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
950 { { echo "$as_me:950: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
952 { (exit 1); exit 1; }; }
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 ac_main_return=return
962 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
963 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
965 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
966 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968 echo "#! $SHELL" >conftest.sh
969 echo "exit 0" >>conftest.sh
971 if { (echo "$as_me:971: PATH=\".;.\"; conftest.sh") >&5
972 (PATH=".;."; conftest.sh) 2>&5
974 echo "$as_me:974: \$? = $ac_status" >&5
975 (exit $ac_status); }; then
976 ac_path_separator=';'
980 PATH_SEPARATOR="$ac_path_separator"
983 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
985 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
987 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
990 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
991 if test -f $ac_dir/install-sh; then
993 ac_install_sh="$ac_aux_dir/install-sh -c"
995 elif test -f $ac_dir/install.sh; then
997 ac_install_sh="$ac_aux_dir/install.sh -c"
999 elif test -f $ac_dir/shtool; then
1001 ac_install_sh="$ac_aux_dir/shtool install -c"
1005 if test -z "$ac_aux_dir"; then
1006 { { echo "$as_me:1006: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1007 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1008 { (exit 1); exit 1; }; }
1010 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1011 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1012 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1014 # Make sure we can run config.sub.
1015 $ac_config_sub sun4 >/dev/null 2>&1 ||
1016 { { echo "$as_me:1016: error: cannot run $ac_config_sub" >&5
1017 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1018 { (exit 1); exit 1; }; }
1020 echo "$as_me:1020: checking build system type" >&5
1021 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1022 if test "${ac_cv_build+set}" = set; then
1023 echo $ECHO_N "(cached) $ECHO_C" >&6
1025 ac_cv_build_alias=$build_alias
1026 test -z "$ac_cv_build_alias" &&
1027 ac_cv_build_alias=`$ac_config_guess`
1028 test -z "$ac_cv_build_alias" &&
1029 { { echo "$as_me:1029: error: cannot guess build type; you must specify one" >&5
1030 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1031 { (exit 1); exit 1; }; }
1032 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1033 { { echo "$as_me:1033: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1034 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1035 { (exit 1); exit 1; }; }
1038 echo "$as_me:1038: result: $ac_cv_build" >&5
1039 echo "${ECHO_T}$ac_cv_build" >&6
1041 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1045 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1046 echo "$as_me:1046: checking host system type" >&5
1047 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1048 if test "${ac_cv_host+set}" = set; then
1049 echo $ECHO_N "(cached) $ECHO_C" >&6
1051 ac_cv_host_alias=$host_alias
1052 test -z "$ac_cv_host_alias" &&
1053 ac_cv_host_alias=$ac_cv_build_alias
1054 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1055 { { echo "$as_me:1055: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1056 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1057 { (exit 1); exit 1; }; }
1060 echo "$as_me:1060: result: $ac_cv_host" >&5
1061 echo "${ECHO_T}$ac_cv_host" >&6
1063 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1064 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1065 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 system_name="$host_os"
1069 system_name="`(uname -s -r) 2>/dev/null`"
1070 if test -z "$system_name" ; then
1071 system_name="`(hostname) 2>/dev/null`"
1074 test -n "$system_name" &&
1075 cat >>confdefs.h <<EOF
1076 #define SYSTEM_NAME "$system_name"
1079 if test "${cf_cv_system_name+set}" = set; then
1080 echo $ECHO_N "(cached) $ECHO_C" >&6
1082 cf_cv_system_name="$system_name"
1085 test -z "$system_name" && system_name="$cf_cv_system_name"
1086 test -n "$cf_cv_system_name" && echo "$as_me:1086: result: Configuring for $cf_cv_system_name" >&5
1087 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1089 if test ".$system_name" != ".$cf_cv_system_name" ; then
1090 echo "$as_me:1090: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1091 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1092 { { echo "$as_me:1092: error: \"Please remove config.cache and try again.\"" >&5
1093 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1094 { (exit 1); exit 1; }; }
1097 test "$program_prefix" != NONE &&
1098 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1099 # Use a double $ so make ignores it.
1100 test "$program_suffix" != NONE &&
1101 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1102 # Double any \ or $. echo might interpret backslashes.
1103 # By default was `s,x,x', remove it if useless.
1104 cat <<\_ACEOF >conftest.sed
1105 s/[\\$]/&&/g;s/;s,x,x,$//
1107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1110 echo "$as_me:1110: checking whether ${MAKE-make} sets \${MAKE}" >&5
1111 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1112 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1113 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1116 cat >conftest.make <<\EOF
1118 @echo 'ac_maketemp="${MAKE}"'
1120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1121 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1122 if test -n "$ac_maketemp"; then
1123 eval ac_cv_prog_make_${ac_make}_set=yes
1125 eval ac_cv_prog_make_${ac_make}_set=no
1129 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1130 echo "$as_me:1130: result: yes" >&5
1131 echo "${ECHO_T}yes" >&6
1134 echo "$as_me:1134: result: no" >&5
1135 echo "${ECHO_T}no" >&6
1136 SET_MAKE="MAKE=${MAKE-make}"
1140 ac_cpp='$CPP $CPPFLAGS'
1141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1144 ac_main_return=return
1145 if test -n "$ac_tool_prefix"; then
1146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1148 echo "$as_me:1148: checking for $ac_word" >&5
1149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1150 if test "${ac_cv_prog_CC+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 ac_save_IFS=$IFS; IFS=$ac_path_separator
1158 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 $as_executable_p "$ac_dir/$ac_word" || continue
1162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1163 echo "$as_me:1163: found $ac_dir/$ac_word" >&5
1170 if test -n "$CC"; then
1171 echo "$as_me:1171: result: $CC" >&5
1172 echo "${ECHO_T}$CC" >&6
1174 echo "$as_me:1174: result: no" >&5
1175 echo "${ECHO_T}no" >&6
1179 if test -z "$ac_cv_prog_CC"; then
1181 # Extract the first word of "gcc", so it can be a program name with args.
1182 set dummy gcc; ac_word=$2
1183 echo "$as_me:1183: checking for $ac_word" >&5
1184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1186 echo $ECHO_N "(cached) $ECHO_C" >&6
1188 if test -n "$ac_ct_CC"; then
1189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1191 ac_save_IFS=$IFS; IFS=$ac_path_separator
1193 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 $as_executable_p "$ac_dir/$ac_word" || continue
1197 ac_cv_prog_ac_ct_CC="gcc"
1198 echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1205 if test -n "$ac_ct_CC"; then
1206 echo "$as_me:1206: result: $ac_ct_CC" >&5
1207 echo "${ECHO_T}$ac_ct_CC" >&6
1209 echo "$as_me:1209: result: no" >&5
1210 echo "${ECHO_T}no" >&6
1218 if test -z "$CC"; then
1219 if test -n "$ac_tool_prefix"; then
1220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}cc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if test -n "$CC"; then
1228 ac_cv_prog_CC="$CC" # Let the user override the test.
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_CC="${ac_tool_prefix}cc"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1244 if test -n "$CC"; then
1245 echo "$as_me:1245: result: $CC" >&5
1246 echo "${ECHO_T}$CC" >&6
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1253 if test -z "$ac_cv_prog_CC"; then
1255 # Extract the first word of "cc", so it can be a program name with args.
1256 set dummy cc; ac_word=$2
1257 echo "$as_me:1257: checking for $ac_word" >&5
1258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 if test -n "$ac_ct_CC"; then
1263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1265 ac_save_IFS=$IFS; IFS=$ac_path_separator
1267 for ac_dir in $ac_dummy; do
1269 test -z "$ac_dir" && ac_dir=.
1270 $as_executable_p "$ac_dir/$ac_word" || continue
1271 ac_cv_prog_ac_ct_CC="cc"
1272 echo "$as_me:1272: found $ac_dir/$ac_word" >&5
1278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1279 if test -n "$ac_ct_CC"; then
1280 echo "$as_me:1280: result: $ac_ct_CC" >&5
1281 echo "${ECHO_T}$ac_ct_CC" >&6
1283 echo "$as_me:1283: result: no" >&5
1284 echo "${ECHO_T}no" >&6
1293 if test -z "$CC"; then
1294 # Extract the first word of "cc", so it can be a program name with args.
1295 set dummy cc; ac_word=$2
1296 echo "$as_me:1296: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 if test -n "$CC"; then
1302 ac_cv_prog_CC="$CC" # Let the user override the test.
1305 ac_save_IFS=$IFS; IFS=$ac_path_separator
1307 for ac_dir in $ac_dummy; do
1309 test -z "$ac_dir" && ac_dir=.
1310 $as_executable_p "$ac_dir/$ac_word" || continue
1311 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1312 ac_prog_rejected=yes
1316 echo "$as_me:1316: found $ac_dir/$ac_word" >&5
1320 if test $ac_prog_rejected = yes; then
1321 # We found a bogon in the path, so make sure we never use it.
1322 set dummy $ac_cv_prog_CC
1324 if test $# != 0; then
1325 # We chose a different compiler from the bogus one.
1326 # However, it has the same basename, so the bogon will be chosen
1327 # first if we set CC to just the basename; use the full file name.
1329 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1337 if test -n "$CC"; then
1338 echo "$as_me:1338: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1341 echo "$as_me:1341: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1346 if test -z "$CC"; then
1347 if test -n "$ac_tool_prefix"; then
1350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1352 echo "$as_me:1352: checking for $ac_word" >&5
1353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1354 if test "${ac_cv_prog_CC+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 if test -n "$CC"; then
1358 ac_cv_prog_CC="$CC" # Let the user override the test.
1360 ac_save_IFS=$IFS; IFS=$ac_path_separator
1362 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 $as_executable_p "$ac_dir/$ac_word" || continue
1366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1367 echo "$as_me:1367: found $ac_dir/$ac_word" >&5
1374 if test -n "$CC"; then
1375 echo "$as_me:1375: result: $CC" >&5
1376 echo "${ECHO_T}$CC" >&6
1378 echo "$as_me:1378: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1382 test -n "$CC" && break
1385 if test -z "$CC"; then
1389 # Extract the first word of "$ac_prog", so it can be a program name with args.
1390 set dummy $ac_prog; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$ac_ct_CC"; then
1397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1399 ac_save_IFS=$IFS; IFS=$ac_path_separator
1401 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 $as_executable_p "$ac_dir/$ac_word" || continue
1405 ac_cv_prog_ac_ct_CC="$ac_prog"
1406 echo "$as_me:1406: found $ac_dir/$ac_word" >&5
1412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1413 if test -n "$ac_ct_CC"; then
1414 echo "$as_me:1414: result: $ac_ct_CC" >&5
1415 echo "${ECHO_T}$ac_ct_CC" >&6
1417 echo "$as_me:1417: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1421 test -n "$ac_ct_CC" && break
1429 test -z "$CC" && { { echo "$as_me:1429: error: no acceptable cc found in \$PATH" >&5
1430 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1431 { (exit 1); exit 1; }; }
1433 # Provide some information about the compiler.
1434 echo "$as_me:1434:" \
1435 "checking for C compiler version" >&5
1436 ac_compiler=`set X $ac_compile; echo $2`
1437 { (eval echo "$as_me:1437: \"$ac_compiler --version </dev/null >&5\"") >&5
1438 (eval $ac_compiler --version </dev/null >&5) 2>&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -v </dev/null >&5\"") >&5
1443 (eval $ac_compiler -v </dev/null >&5) 2>&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }
1447 { (eval echo "$as_me:1447: \"$ac_compiler -V </dev/null >&5\"") >&5
1448 (eval $ac_compiler -V </dev/null >&5) 2>&5
1450 echo "$as_me:1450: \$? = $ac_status" >&5
1451 (exit $ac_status); }
1453 cat >conftest.$ac_ext <<_ACEOF
1454 #line 1454 "configure"
1455 #include "confdefs.h"
1465 ac_clean_files_save=$ac_clean_files
1466 ac_clean_files="$ac_clean_files a.out a.exe"
1467 # Try to create an executable without -o first, disregard a.out.
1468 # It will help us diagnose broken compilers, and finding out an intuition
1470 echo "$as_me:1470: checking for C compiler default output" >&5
1471 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1472 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1473 if { (eval echo "$as_me:1473: \"$ac_link_default\"") >&5
1474 (eval $ac_link_default) 2>&5
1476 echo "$as_me:1476: \$? = $ac_status" >&5
1477 (exit $ac_status); }; then
1478 # Find the output, starting from the most likely. This scheme is
1479 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1481 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1482 ls a.out conftest 2>/dev/null;
1483 ls a.* conftest.* 2>/dev/null`; do
1485 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1486 a.out ) # We found the default executable, but exeext='' is most
1489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1490 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1497 echo "$as_me: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1499 { { echo "$as_me:1499: error: C compiler cannot create executables" >&5
1500 echo "$as_me: error: C compiler cannot create executables" >&2;}
1501 { (exit 77); exit 77; }; }
1504 ac_exeext=$ac_cv_exeext
1505 echo "$as_me:1505: result: $ac_file" >&5
1506 echo "${ECHO_T}$ac_file" >&6
1508 # Check the compiler produces executables we can run. If not, either
1509 # the compiler is broken, or we cross compile.
1510 echo "$as_me:1510: checking whether the C compiler works" >&5
1511 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1512 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1513 # If not cross compiling, check that we can run a simple program.
1514 if test "$cross_compiling" != yes; then
1515 if { ac_try='./$ac_file'
1516 { (eval echo "$as_me:1516: \"$ac_try\"") >&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; }; then
1523 if test "$cross_compiling" = maybe; then
1526 { { echo "$as_me:1526: error: cannot run C compiled programs.
1527 If you meant to cross compile, use \`--host'." >&5
1528 echo "$as_me: error: cannot run C compiled programs.
1529 If you meant to cross compile, use \`--host'." >&2;}
1530 { (exit 1); exit 1; }; }
1534 echo "$as_me:1534: result: yes" >&5
1535 echo "${ECHO_T}yes" >&6
1537 rm -f a.out a.exe conftest$ac_cv_exeext
1538 ac_clean_files=$ac_clean_files_save
1539 # Check the compiler produces executables we can run. If not, either
1540 # the compiler is broken, or we cross compile.
1541 echo "$as_me:1541: checking whether we are cross compiling" >&5
1542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1543 echo "$as_me:1543: result: $cross_compiling" >&5
1544 echo "${ECHO_T}$cross_compiling" >&6
1546 echo "$as_me:1546: checking for executable suffix" >&5
1547 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1548 if { (eval echo "$as_me:1548: \"$ac_link\"") >&5
1549 (eval $ac_link) 2>&5
1551 echo "$as_me:1551: \$? = $ac_status" >&5
1552 (exit $ac_status); }; then
1553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1555 # work properly (i.e., refer to `conftest.exe'), while it won't with
1557 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1559 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1567 { { echo "$as_me:1567: error: cannot compute EXEEXT: cannot compile and link" >&5
1568 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1569 { (exit 1); exit 1; }; }
1572 rm -f conftest$ac_cv_exeext
1573 echo "$as_me:1573: result: $ac_cv_exeext" >&5
1574 echo "${ECHO_T}$ac_cv_exeext" >&6
1576 rm -f conftest.$ac_ext
1577 EXEEXT=$ac_cv_exeext
1579 echo "$as_me:1579: checking for object suffix" >&5
1580 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1581 if test "${ac_cv_objext+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 cat >conftest.$ac_ext <<_ACEOF
1585 #line 1585 "configure"
1586 #include "confdefs.h"
1596 rm -f conftest.o conftest.obj
1597 if { (eval echo "$as_me:1597: \"$ac_compile\"") >&5
1598 (eval $ac_compile) 2>&5
1600 echo "$as_me:1600: \$? = $ac_status" >&5
1601 (exit $ac_status); }; then
1602 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1604 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1610 echo "$as_me: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 { { echo "$as_me:1612: error: cannot compute OBJEXT: cannot compile" >&5
1613 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1614 { (exit 1); exit 1; }; }
1617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1619 echo "$as_me:1619: result: $ac_cv_objext" >&5
1620 echo "${ECHO_T}$ac_cv_objext" >&6
1621 OBJEXT=$ac_cv_objext
1623 echo "$as_me:1623: checking whether we are using the GNU C compiler" >&5
1624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 cat >conftest.$ac_ext <<_ACEOF
1629 #line 1629 "configure"
1630 #include "confdefs.h"
1643 rm -f conftest.$ac_objext
1644 if { (eval echo "$as_me:1644: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); } &&
1649 { ac_try='test -s conftest.$ac_objext'
1650 { (eval echo "$as_me:1650: \"$ac_try\"") >&5
1653 echo "$as_me:1653: \$? = $ac_status" >&5
1654 (exit $ac_status); }; }; then
1657 echo "$as_me: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1661 rm -f conftest.$ac_objext conftest.$ac_ext
1662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1665 echo "$as_me:1665: result: $ac_cv_c_compiler_gnu" >&5
1666 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1667 GCC=`test $ac_compiler_gnu = yes && echo yes`
1668 ac_test_CFLAGS=${CFLAGS+set}
1669 ac_save_CFLAGS=$CFLAGS
1671 echo "$as_me:1671: checking whether $CC accepts -g" >&5
1672 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1673 if test "${ac_cv_prog_cc_g+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 cat >conftest.$ac_ext <<_ACEOF
1677 #line 1677 "configure"
1678 #include "confdefs.h"
1688 rm -f conftest.$ac_objext
1689 if { (eval echo "$as_me:1689: \"$ac_compile\"") >&5
1690 (eval $ac_compile) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); } &&
1694 { ac_try='test -s conftest.$ac_objext'
1695 { (eval echo "$as_me:1695: \"$ac_try\"") >&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }; }; then
1702 echo "$as_me: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1706 rm -f conftest.$ac_objext conftest.$ac_ext
1708 echo "$as_me:1708: result: $ac_cv_prog_cc_g" >&5
1709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1710 if test "$ac_test_CFLAGS" = set; then
1711 CFLAGS=$ac_save_CFLAGS
1712 elif test $ac_cv_prog_cc_g = yes; then
1713 if test "$GCC" = yes; then
1719 if test "$GCC" = yes; then
1725 # Some people use a C++ compiler to compile C. Since we use `exit',
1726 # in C++ we need to declare it. In case someone uses the same compiler
1727 # for both compiling C and C++ we need to have the C++ compiler decide
1728 # the declaration of exit, since it's the most demanding environment.
1729 cat >conftest.$ac_ext <<_ACEOF
1734 rm -f conftest.$ac_objext
1735 if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); } &&
1740 { ac_try='test -s conftest.$ac_objext'
1741 { (eval echo "$as_me:1741: \"$ac_try\"") >&5
1744 echo "$as_me:1744: \$? = $ac_status" >&5
1745 (exit $ac_status); }; }; then
1746 for ac_declaration in \
1748 '#include <stdlib.h>' \
1749 'extern "C" void std::exit (int) throw (); using std::exit;' \
1750 'extern "C" void std::exit (int); using std::exit;' \
1751 'extern "C" void exit (int) throw ();' \
1752 'extern "C" void exit (int);' \
1755 cat >conftest.$ac_ext <<_ACEOF
1756 #line 1756 "configure"
1757 #include "confdefs.h"
1768 rm -f conftest.$ac_objext
1769 if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
1770 (eval $ac_compile) 2>&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); } &&
1774 { ac_try='test -s conftest.$ac_objext'
1775 { (eval echo "$as_me:1775: \"$ac_try\"") >&5
1778 echo "$as_me:1778: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1782 echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1786 rm -f conftest.$ac_objext conftest.$ac_ext
1787 cat >conftest.$ac_ext <<_ACEOF
1788 #line 1788 "configure"
1789 #include "confdefs.h"
1799 rm -f conftest.$ac_objext
1800 if { (eval echo "$as_me:1800: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); } &&
1805 { ac_try='test -s conftest.$ac_objext'
1806 { (eval echo "$as_me:1806: \"$ac_try\"") >&5
1809 echo "$as_me:1809: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 rm -f conftest.$ac_objext conftest.$ac_ext
1819 if test -n "$ac_declaration"; then
1820 echo '#ifdef __cplusplus' >>confdefs.h
1821 echo $ac_declaration >>confdefs.h
1822 echo '#endif' >>confdefs.h
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 ac_main_return=return
1838 if test "$GCC" = yes ; then
1839 echo "$as_me:1839: checking version of $CC" >&5
1840 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1841 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.].*//'`"
1842 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1843 echo "$as_me:1843: result: $GCC_VERSION" >&5
1844 echo "${ECHO_T}$GCC_VERSION" >&6
1847 echo "$as_me:1847: checking for $CC option to accept ANSI C" >&5
1848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 ac_cv_prog_cc_stdc=no
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1859 #include <sys/types.h>
1860 #include <sys/stat.h>
1861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1862 struct buf { int x; };
1863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1864 static char *e (p, i)
1870 static char *f (char * (*g) (char **, int), char **p, ...)
1875 s = g (p, va_arg (v,int));
1879 int test (int i, double x);
1880 struct s1 {int (*f) (int a);};
1881 struct s2 {int (*f) (double a);};
1882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1893 # Don't try gcc -ansi; that turns off useful extensions and
1894 # breaks some systems' header files.
1895 # AIX -qlanglvl=ansi
1896 # Ultrix and OSF/1 -std1
1897 # HP-UX 10.20 and later -Ae
1898 # HP-UX older versions -Aa -D_HPUX_SOURCE
1899 # SVR4 -Xc -D__EXTENSIONS__
1900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1902 CC="$ac_save_CC $ac_arg"
1903 rm -f conftest.$ac_objext
1904 if { (eval echo "$as_me:1904: \"$ac_compile\"") >&5
1905 (eval $ac_compile) 2>&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:1910: \"$ac_try\"") >&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1915 ac_cv_prog_cc_stdc=$ac_arg
1918 echo "$as_me: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext
1923 rm -f conftest.$ac_ext conftest.$ac_objext
1928 case "x$ac_cv_prog_cc_stdc" in
1930 echo "$as_me:1930: result: none needed" >&5
1931 echo "${ECHO_T}none needed" >&6 ;;
1933 echo "$as_me:1933: result: $ac_cv_prog_cc_stdc" >&5
1934 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1935 CC="$CC $ac_cv_prog_cc_stdc" ;;
1938 # This should have been defined by AC_PROG_CC
1941 echo "$as_me:1941: checking \$CC variable" >&5
1942 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1945 echo "$as_me:1945: result: broken" >&5
1946 echo "${ECHO_T}broken" >&6
1947 { echo "$as_me:1947: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1948 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1950 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1951 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1953 for cf_arg in $cf_flags
1961 cf_new_extra_cppflags=
1963 for cf_add_cflags in $cf_arg
1965 case $cf_fix_cppflags in
1967 case $cf_add_cflags in
1968 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1969 case $cf_add_cflags in
1971 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1973 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1974 && test -z "${cf_tst_cflags}" \
1975 && cf_fix_cppflags=yes
1977 if test $cf_fix_cppflags = yes ; then
1979 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1980 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1983 elif test "${cf_tst_cflags}" = "\"'" ; then
1985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1996 case $cf_add_cflags in
1998 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2000 CPPFLAGS=`echo "$CPPFLAGS" | \
2001 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2002 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2007 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2008 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2015 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2016 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2023 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2024 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2029 && test -z "${cf_tst_cflags}" \
2030 && cf_fix_cppflags=no
2035 if test -n "$cf_new_cflags" ; then
2037 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2038 CFLAGS="${CFLAGS}$cf_new_cflags"
2042 if test -n "$cf_new_cppflags" ; then
2044 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2045 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2049 if test -n "$cf_new_extra_cppflags" ; then
2051 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2052 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2062 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2064 echo "${as_me:-configure}:2064: testing resulting CC: '$CC' ..." 1>&5
2066 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2068 echo "${as_me:-configure}:2068: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2070 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2072 echo "${as_me:-configure}:2072: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2076 echo "$as_me:2076: result: ok" >&5
2077 echo "${ECHO_T}ok" >&6
2081 echo "$as_me:2081: checking for inline" >&5
2082 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2083 if test "${ac_cv_c_inline+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 for ac_kw in inline __inline__ __inline; do
2088 cat >conftest.$ac_ext <<_ACEOF
2089 #line 2089 "configure"
2090 #include "confdefs.h"
2092 static $ac_kw int static_foo () {return 0; }
2093 $ac_kw int foo () {return 0; }
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:2098: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:2104: \"$ac_try\"") >&5
2107 echo "$as_me:2107: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 ac_cv_c_inline=$ac_kw; break
2111 echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2118 echo "$as_me:2118: result: $ac_cv_c_inline" >&5
2119 echo "${ECHO_T}$ac_cv_c_inline" >&6
2120 case $ac_cv_c_inline in
2123 cat >>confdefs.h <<\EOF
2127 *) cat >>confdefs.h <<EOF
2128 #define inline $ac_cv_c_inline
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 ac_main_return=return
2139 echo "$as_me:2139: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2145 if test -z "$CPP"; then
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2153 for ac_c_preproc_warn_flag in '' yes
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2165 if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2181 if test -z "$ac_cpp_err"; then
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2189 rm -f conftest.err conftest.$ac_ext
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line 2194 "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2198 if { (eval echo "$as_me:2198: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2203 cat conftest.err >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2224 rm -f conftest.err conftest.$ac_ext
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2241 echo "$as_me:2241: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2272 if test -z "$ac_cpp_err"; then
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2280 rm -f conftest.err conftest.$ac_ext
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2289 if { (eval echo "$as_me:2289: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2315 rm -f conftest.err conftest.$ac_ext
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2323 { { echo "$as_me:2323: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2335 for ac_prog in mawk gawk nawk awk
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 echo "$as_me:2339: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_AWK+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$AWK"; then
2345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2347 ac_save_IFS=$IFS; IFS=$ac_path_separator
2349 for ac_dir in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir=.
2352 $as_executable_p "$ac_dir/$ac_word" || continue
2353 ac_cv_prog_AWK="$ac_prog"
2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2361 if test -n "$AWK"; then
2362 echo "$as_me:2362: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6
2365 echo "$as_me:2365: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2369 test -n "$AWK" && break
2372 # Find a good install program. We prefer a C program (faster),
2373 # so one script is as good as another. But avoid the broken or
2374 # incompatible versions:
2375 # SysV /etc/install, /usr/sbin/install
2376 # SunOS /usr/etc/install
2377 # IRIX /sbin/install
2379 # AmigaOS /C/install, which installs bootblocks on floppy discs
2380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383 # ./install, which can be erroneously created by make from ./install.sh.
2384 echo "$as_me:2384: checking for a BSD compatible install" >&5
2385 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2386 if test -z "$INSTALL"; then
2387 if test "${ac_cv_path_install+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 for ac_dir in $PATH; do
2393 # Account for people who put trailing slashes in PATH elements.
2395 / | ./ | .// | /cC/* \
2396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2402 for ac_prog in ginstall scoinst install; do
2403 if $as_executable_p "$ac_dir/$ac_prog"; then
2404 if test $ac_prog = install &&
2405 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2406 # AIX install. It has an incompatible calling convention.
2408 elif test $ac_prog = install &&
2409 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2410 # program-specific install script used by HP pwplus--don't use.
2413 ac_cv_path_install="$ac_dir/$ac_prog -c"
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2426 # As a last resort, use the slow shell script. We don't cache a
2427 # path for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the path is relative.
2430 INSTALL=$ac_install_sh
2433 echo "$as_me:2433: result: $INSTALL" >&5
2434 echo "${ECHO_T}$INSTALL" >&6
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2449 test -z "$cf_dir" && cf_dir=.
2450 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2454 for ac_prog in lint cppcheck splint
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_LINT+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$LINT"; then
2464 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2466 ac_save_IFS=$IFS; IFS=$ac_path_separator
2468 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 $as_executable_p "$ac_dir/$ac_word" || continue
2472 ac_cv_prog_LINT="$ac_prog"
2473 echo "$as_me:2473: found $ac_dir/$ac_word" >&5
2479 LINT=$ac_cv_prog_LINT
2480 if test -n "$LINT"; then
2481 echo "$as_me:2481: result: $LINT" >&5
2482 echo "${ECHO_T}$LINT" >&6
2484 echo "$as_me:2484: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 test -n "$LINT" && break
2491 echo "$as_me:2491: checking if filesystem supports mixed-case filenames" >&5
2492 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2493 if test "${cf_cv_mixedcase+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test "$cross_compiling" = yes ; then
2498 case $target_alias in
2499 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2507 rm -f conftest CONFTEST
2509 if test -f CONFTEST ; then
2514 rm -f conftest CONFTEST
2518 echo "$as_me:2518: result: $cf_cv_mixedcase" >&5
2519 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2520 test "$cf_cv_mixedcase" = yes &&
2521 cat >>confdefs.h <<\EOF
2522 #define MIXEDCASE_FILENAMES 1
2525 for ac_prog in exctags ctags
2527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2528 set dummy $ac_prog; ac_word=$2
2529 echo "$as_me:2529: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2531 if test "${ac_cv_prog_CTAGS+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CTAGS"; then
2535 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2537 ac_save_IFS=$IFS; IFS=$ac_path_separator
2539 for ac_dir in $ac_dummy; do
2541 test -z "$ac_dir" && ac_dir=.
2542 $as_executable_p "$ac_dir/$ac_word" || continue
2543 ac_cv_prog_CTAGS="$ac_prog"
2544 echo "$as_me:2544: found $ac_dir/$ac_word" >&5
2550 CTAGS=$ac_cv_prog_CTAGS
2551 if test -n "$CTAGS"; then
2552 echo "$as_me:2552: result: $CTAGS" >&5
2553 echo "${ECHO_T}$CTAGS" >&6
2555 echo "$as_me:2555: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2559 test -n "$CTAGS" && break
2562 for ac_prog in exetags etags
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 echo "$as_me:2566: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_prog_ETAGS+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$ETAGS"; then
2572 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2574 ac_save_IFS=$IFS; IFS=$ac_path_separator
2576 for ac_dir in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir=.
2579 $as_executable_p "$ac_dir/$ac_word" || continue
2580 ac_cv_prog_ETAGS="$ac_prog"
2581 echo "$as_me:2581: found $ac_dir/$ac_word" >&5
2587 ETAGS=$ac_cv_prog_ETAGS
2588 if test -n "$ETAGS"; then
2589 echo "$as_me:2589: result: $ETAGS" >&5
2590 echo "${ECHO_T}$ETAGS" >&6
2592 echo "$as_me:2592: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2596 test -n "$ETAGS" && break
2599 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2600 set dummy ${CTAGS:-ctags}; ac_word=$2
2601 echo "$as_me:2601: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$MAKE_LOWER_TAGS"; then
2607 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2609 ac_save_IFS=$IFS; IFS=$ac_path_separator
2611 for ac_dir in $ac_dummy; do
2613 test -z "$ac_dir" && ac_dir=.
2614 $as_executable_p "$ac_dir/$ac_word" || continue
2615 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2616 echo "$as_me:2616: found $ac_dir/$ac_word" >&5
2620 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2623 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2624 if test -n "$MAKE_LOWER_TAGS"; then
2625 echo "$as_me:2625: result: $MAKE_LOWER_TAGS" >&5
2626 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2628 echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2632 if test "$cf_cv_mixedcase" = yes ; then
2633 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2634 set dummy ${ETAGS:-etags}; ac_word=$2
2635 echo "$as_me:2635: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$MAKE_UPPER_TAGS"; then
2641 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2643 ac_save_IFS=$IFS; IFS=$ac_path_separator
2645 for ac_dir in $ac_dummy; do
2647 test -z "$ac_dir" && ac_dir=.
2648 $as_executable_p "$ac_dir/$ac_word" || continue
2649 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2650 echo "$as_me:2650: found $ac_dir/$ac_word" >&5
2654 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2657 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2658 if test -n "$MAKE_UPPER_TAGS"; then
2659 echo "$as_me:2659: result: $MAKE_UPPER_TAGS" >&5
2660 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2662 echo "$as_me:2662: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2670 if test "$MAKE_UPPER_TAGS" = yes ; then
2676 if test "$MAKE_LOWER_TAGS" = yes ; then
2682 echo "$as_me:2682: checking if -lm needed for math functions" >&5
2683 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2684 if test "${cf_cv_need_libm+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 cat >conftest.$ac_ext <<_ACEOF
2689 #line 2689 "configure"
2690 #include "confdefs.h"
2699 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2704 rm -f conftest.$ac_objext conftest$ac_exeext
2705 if { (eval echo "$as_me:2705: \"$ac_link\"") >&5
2706 (eval $ac_link) 2>&5
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest$ac_exeext'
2711 { (eval echo "$as_me:2711: \"$ac_try\"") >&5
2714 echo "$as_me:2714: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2724 echo "$as_me:2724: result: $cf_cv_need_libm" >&5
2725 echo "${ECHO_T}$cf_cv_need_libm" >&6
2726 if test "$cf_cv_need_libm" = yes
2734 CC_SHARED_OPTS=unknown
2735 CPPFLAGS="$CPPFLAGS"
2737 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2738 DFT_UPR_MODEL="NORMAL"
2751 PACKAGE="ncurses-examples"
2757 TINFO_LIBS='$(LIBS_CURSES)'
2758 cf_cv_abi_version=""
2759 cf_cv_rel_version=""
2765 if test "$GCC" = yes
2767 cat > conftest.i <<EOF
2769 #define GCC_PRINTF 0
2774 #ifndef GCC_NORETURN
2775 #define GCC_NORETURN /* nothing */
2778 #define GCC_UNUSED /* nothing */
2781 if test "$GCC" = yes
2783 { echo "$as_me:2783: checking for $CC __attribute__ directives..." >&5
2784 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2786 "${as_me:-configure}"
2787 #include "confdefs.h"
2788 #include "conftest.h"
2789 #include "conftest.i"
2791 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2793 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2796 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2798 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2800 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2801 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2802 extern void foo(void) GCC_NORETURN;
2803 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2805 cf_printf_attribute=no
2806 cf_scanf_attribute=no
2807 for cf_attribute in scanf printf unused noreturn
2810 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2812 cf_directive="__attribute__(($cf_attribute))"
2813 echo "checking for $CC $cf_directive" 1>&5
2815 case $cf_attribute in
2817 cf_printf_attribute=yes
2818 cat >conftest.h <<EOF
2819 #define GCC_$cf_ATTRIBUTE 1
2823 cf_scanf_attribute=yes
2824 cat >conftest.h <<EOF
2825 #define GCC_$cf_ATTRIBUTE 1
2829 cat >conftest.h <<EOF
2830 #define GCC_$cf_ATTRIBUTE $cf_directive
2835 if { (eval echo "$as_me:2835: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 test -n "$verbose" && echo "$as_me:2840: result: ... $cf_attribute" >&5
2841 echo "${ECHO_T}... $cf_attribute" >&6
2842 cat conftest.h >>confdefs.h
2843 case $cf_attribute in
2846 cat >>confdefs.h <<EOF
2847 #define GCC_NORETURN $cf_directive
2852 cf_value='/* nothing */'
2853 if test "$cf_printf_attribute" != no ; then
2854 cf_value='__attribute__((format(printf,fmt,var)))'
2856 cat >>confdefs.h <<\EOF
2857 #define GCC_PRINTF 1
2862 cat >>confdefs.h <<EOF
2863 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2868 cf_value='/* nothing */'
2869 if test "$cf_scanf_attribute" != no ; then
2870 cf_value='__attribute__((format(scanf,fmt,var)))'
2872 cat >>confdefs.h <<\EOF
2878 cat >>confdefs.h <<EOF
2879 #define GCC_SCANFLIKE(fmt,var) $cf_value
2885 cat >>confdefs.h <<EOF
2886 #define GCC_UNUSED $cf_directive
2894 fgrep define conftest.i >>confdefs.h
2899 echo "$as_me:2899: checking if you want to work around bogus compiler/loader warnings" >&5
2900 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2902 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2903 if test "${enable_string_hacks+set}" = set; then
2904 enableval="$enable_string_hacks"
2905 with_string_hacks=$enableval
2907 with_string_hacks=no
2909 echo "$as_me:2909: result: $with_string_hacks" >&5
2910 echo "${ECHO_T}$with_string_hacks" >&6
2912 if test "x$with_string_hacks" = "xyes"; then
2914 cat >>confdefs.h <<\EOF
2915 #define USE_STRING_HACKS 1
2918 { echo "$as_me:2918: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2919 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2920 echo "$as_me:2920: checking for strlcat" >&5
2921 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2922 if test "${ac_cv_func_strlcat+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line 2926 "configure"
2927 #include "confdefs.h"
2928 /* System header to define __stub macros and hopefully few prototypes,
2929 which can conflict with char strlcat (); below. */
2931 /* Override any gcc2 internal prototype to avoid an error. */
2935 /* We use char because int might match the return type of a gcc2
2936 builtin and then its argument prototype would still apply. */
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2949 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2956 rm -f conftest.$ac_objext conftest$ac_exeext
2957 if { (eval echo "$as_me:2957: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest$ac_exeext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 ac_cv_func_strlcat=yes
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 ac_cv_func_strlcat=no
2974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2976 echo "$as_me:2976: result: $ac_cv_func_strlcat" >&5
2977 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2978 if test $ac_cv_func_strlcat = yes; then
2980 cat >>confdefs.h <<\EOF
2981 #define HAVE_STRLCAT 1
2986 echo "$as_me:2986: checking for strlcat in -lbsd" >&5
2987 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2988 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 ac_check_lib_save_LIBS=$LIBS
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
2997 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3012 rm -f conftest.$ac_objext conftest$ac_exeext
3013 if { (eval echo "$as_me:3013: \"$ac_link\"") >&5
3014 (eval $ac_link) 2>&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -s conftest$ac_exeext'
3019 { (eval echo "$as_me:3019: \"$ac_try\"") >&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 ac_cv_lib_bsd_strlcat=yes
3026 echo "$as_me: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3028 ac_cv_lib_bsd_strlcat=no
3030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3031 LIBS=$ac_check_lib_save_LIBS
3033 echo "$as_me:3033: result: $ac_cv_lib_bsd_strlcat" >&5
3034 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3035 if test $ac_cv_lib_bsd_strlcat = yes; then
3038 # Filter out duplicates - this happens with badly-designed ".pc" files...
3039 for cf_add_1lib in $LIBS
3041 for cf_add_2lib in $cf_add_libs
3043 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3049 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3053 for ac_header in bsd/string.h
3055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3056 echo "$as_me:3056: checking for $ac_header" >&5
3057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line 3062 "configure"
3063 #include "confdefs.h"
3064 #include <$ac_header>
3066 if { (eval echo "$as_me:3066: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069 egrep -v '^ *\+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:3072: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3082 if test -z "$ac_cpp_err"; then
3083 eval "$as_ac_Header=yes"
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 eval "$as_ac_Header=no"
3089 rm -f conftest.err conftest.$ac_ext
3091 echo "$as_me:3091: result: `eval echo '${'$as_ac_Header'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3094 cat >>confdefs.h <<EOF
3095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3101 cat >>confdefs.h <<\EOF
3102 #define HAVE_STRLCAT 1
3109 for ac_func in strlcpy snprintf
3111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3112 echo "$as_me:3112: checking for $ac_func" >&5
3113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3114 if eval "test \"\${$as_ac_var+set}\" = set"; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line 3118 "configure"
3119 #include "confdefs.h"
3120 /* System header to define __stub macros and hopefully few prototypes,
3121 which can conflict with char $ac_func (); below. */
3123 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3135 /* The GNU C library defines this for functions which it implements
3136 to always fail with ENOSYS. Some functions are actually named
3137 something starting with __ and the normal name is an alias. */
3138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3141 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3148 rm -f conftest.$ac_objext conftest$ac_exeext
3149 if { (eval echo "$as_me:3149: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>&5
3152 echo "$as_me:3152: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest$ac_exeext'
3155 { (eval echo "$as_me:3155: \"$ac_try\"") >&5
3158 echo "$as_me:3158: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 eval "$as_ac_var=yes"
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 eval "$as_ac_var=no"
3166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3168 echo "$as_me:3168: result: `eval echo '${'$as_ac_var'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3170 if test `eval echo '${'$as_ac_var'}'` = yes; then
3171 cat >>confdefs.h <<EOF
3172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3181 cf_POSIX_C_SOURCE=199506L
3186 cf_xopen_source="-D_ALL_SOURCE"
3192 cf_xopen_source="-D_APPLE_C_SOURCE"
3195 cf_xopen_source="-D_DARWIN_C_SOURCE"
3198 (freebsd*|dragonfly*)
3199 # 5.x headers associate
3200 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3201 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3202 cf_POSIX_C_SOURCE=200112L
3204 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3207 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3210 cf_xopen_source="-D_HPUX_SOURCE"
3213 cf_xopen_source="-D_SGI_SOURCE"
3216 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3218 echo "$as_me:3218: checking if we must define _GNU_SOURCE" >&5
3219 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3220 if test "${cf_cv_gnu_source+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line 3225 "configure"
3226 #include "confdefs.h"
3227 #include <sys/types.h>
3232 #ifndef _XOPEN_SOURCE
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3243 echo "$as_me:3243: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line 3258 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3265 #ifdef _XOPEN_SOURCE
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:3279: \"$ac_try\"") >&5
3282 echo "$as_me:3282: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 cf_cv_gnu_source=yes
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3297 echo "$as_me:3297: result: $cf_cv_gnu_source" >&5
3298 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3300 if test "$cf_cv_gnu_source" = yes
3302 echo "$as_me:3302: checking if we should also define _DEFAULT_SOURCE" >&5
3303 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3304 if test "${cf_cv_default_source+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3312 #include <sys/types.h>
3317 #ifdef _DEFAULT_SOURCE
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:3325: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>&5
3328 echo "$as_me:3328: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (eval echo "$as_me:3331: \"$ac_try\"") >&5
3334 echo "$as_me:3334: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3336 cf_cv_default_source=no
3338 echo "$as_me: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 cf_cv_default_source=yes
3342 rm -f conftest.$ac_objext conftest.$ac_ext
3345 echo "$as_me:3345: result: $cf_cv_default_source" >&5
3346 echo "${ECHO_T}$cf_cv_default_source" >&6
3347 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3352 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3355 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3358 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3360 cf_save_CFLAGS="$CFLAGS"
3361 cf_save_CPPFLAGS="$CPPFLAGS"
3363 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3364 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3365 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3367 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3368 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3369 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3371 echo "$as_me:3371: checking if we should define _POSIX_C_SOURCE" >&5
3372 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3373 if test "${cf_cv_posix_c_source+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 echo "${as_me:-configure}:3377: testing if the symbol is already defined go no further ..." 1>&5
3379 cat >conftest.$ac_ext <<_ACEOF
3380 #line 3380 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3387 #ifndef _POSIX_C_SOURCE
3394 rm -f conftest.$ac_objext
3395 if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3398 echo "$as_me:3398: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:3401: \"$ac_try\"") >&5
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 cf_cv_posix_c_source=no
3408 echo "$as_me: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3410 cf_want_posix_source=no
3411 case .$cf_POSIX_C_SOURCE in
3413 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3416 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3417 cf_want_posix_source=yes
3420 cf_want_posix_source=yes
3423 if test "$cf_want_posix_source" = yes ; then
3424 cat >conftest.$ac_ext <<_ACEOF
3425 #line 3425 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3432 #ifdef _POSIX_SOURCE
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:3446: \"$ac_try\"") >&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3455 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3457 rm -f conftest.$ac_objext conftest.$ac_ext
3460 echo "${as_me:-configure}:3460: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3462 CFLAGS="$cf_trim_CFLAGS"
3463 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3465 echo "${as_me:-configure}:3465: testing if the second compile does not leave our definition intact error ..." 1>&5
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line 3468 "configure"
3469 #include "confdefs.h"
3470 #include <sys/types.h>
3475 #ifndef _POSIX_C_SOURCE
3482 rm -f conftest.$ac_objext
3483 if { (eval echo "$as_me:3483: \"$ac_compile\"") >&5
3484 (eval $ac_compile) 2>&5
3486 echo "$as_me:3486: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:3489: \"$ac_try\"") >&5
3492 echo "$as_me:3492: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3496 echo "$as_me: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 cf_cv_posix_c_source=no
3500 rm -f conftest.$ac_objext conftest.$ac_ext
3501 CFLAGS="$cf_save_CFLAGS"
3502 CPPFLAGS="$cf_save_CPPFLAGS"
3505 rm -f conftest.$ac_objext conftest.$ac_ext
3508 echo "$as_me:3508: result: $cf_cv_posix_c_source" >&5
3509 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3511 if test "$cf_cv_posix_c_source" != no ; then
3512 CFLAGS="$cf_trim_CFLAGS"
3513 CPPFLAGS="$cf_trim_CPPFLAGS"
3518 cf_new_extra_cppflags=
3520 for cf_add_cflags in $cf_cv_posix_c_source
3522 case $cf_fix_cppflags in
3524 case $cf_add_cflags in
3525 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3526 case $cf_add_cflags in
3528 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3530 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3531 && test -z "${cf_tst_cflags}" \
3532 && cf_fix_cppflags=yes
3534 if test $cf_fix_cppflags = yes ; then
3536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3540 elif test "${cf_tst_cflags}" = "\"'" ; then
3542 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3543 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3553 case $cf_add_cflags in
3555 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3557 CPPFLAGS=`echo "$CPPFLAGS" | \
3558 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3559 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3564 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3565 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3572 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3573 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3580 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3581 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3583 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3585 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3586 && test -z "${cf_tst_cflags}" \
3587 && cf_fix_cppflags=no
3592 if test -n "$cf_new_cflags" ; then
3594 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3595 CFLAGS="${CFLAGS}$cf_new_cflags"
3599 if test -n "$cf_new_cppflags" ; then
3601 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3602 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3606 if test -n "$cf_new_extra_cppflags" ; then
3608 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3609 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3617 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3620 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3621 cf_xopen_source="-D_BSD_SOURCE"
3625 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3628 cf_xopen_source="-D_OSF_SOURCE"
3631 cf_xopen_source="-D_QNX_SOURCE"
3634 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3637 cf_xopen_source="-D__EXTENSIONS__"
3638 cf_cv_xopen_source=broken
3640 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3646 echo "$as_me:3646: checking if we should define _XOPEN_SOURCE" >&5
3647 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3648 if test "${cf_cv_xopen_source+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line 3653 "configure"
3654 #include "confdefs.h"
3658 #include <sys/types.h>
3664 #ifndef _XOPEN_SOURCE
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:3672: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>&5
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:3678: \"$ac_try\"") >&5
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 cf_cv_xopen_source=no
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line 3690 "configure"
3691 #include "confdefs.h"
3695 #include <sys/types.h>
3701 #ifdef _XOPEN_SOURCE
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 cf_cv_xopen_source=no
3722 echo "$as_me: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3724 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3726 rm -f conftest.$ac_objext conftest.$ac_ext
3730 rm -f conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:3733: result: $cf_cv_xopen_source" >&5
3734 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3736 if test "$cf_cv_xopen_source" != no ; then
3738 CFLAGS=`echo "$CFLAGS" | \
3739 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3740 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3742 CPPFLAGS=`echo "$CPPFLAGS" | \
3743 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3744 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3746 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3751 cf_new_extra_cppflags=
3753 for cf_add_cflags in $cf_temp_xopen_source
3755 case $cf_fix_cppflags in
3757 case $cf_add_cflags in
3758 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3759 case $cf_add_cflags in
3761 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3763 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3764 && test -z "${cf_tst_cflags}" \
3765 && cf_fix_cppflags=yes
3767 if test $cf_fix_cppflags = yes ; then
3769 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3770 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3773 elif test "${cf_tst_cflags}" = "\"'" ; then
3775 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3776 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3786 case $cf_add_cflags in
3788 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3790 CPPFLAGS=`echo "$CPPFLAGS" | \
3791 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3792 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3797 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3798 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3805 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3806 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3813 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3814 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3816 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3818 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3819 && test -z "${cf_tst_cflags}" \
3820 && cf_fix_cppflags=no
3825 if test -n "$cf_new_cflags" ; then
3827 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3828 CFLAGS="${CFLAGS}$cf_new_cflags"
3832 if test -n "$cf_new_cppflags" ; then
3834 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3835 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3839 if test -n "$cf_new_extra_cppflags" ; then
3841 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3842 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3848 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3850 cf_save_CFLAGS="$CFLAGS"
3851 cf_save_CPPFLAGS="$CPPFLAGS"
3853 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3854 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3855 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3857 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3858 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3859 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3861 echo "$as_me:3861: checking if we should define _POSIX_C_SOURCE" >&5
3862 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3863 if test "${cf_cv_posix_c_source+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 echo "${as_me:-configure}:3867: testing if the symbol is already defined go no further ..." 1>&5
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line 3870 "configure"
3871 #include "confdefs.h"
3872 #include <sys/types.h>
3877 #ifndef _POSIX_C_SOURCE
3884 rm -f conftest.$ac_objext
3885 if { (eval echo "$as_me:3885: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3888 echo "$as_me:3888: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:3891: \"$ac_try\"") >&5
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 cf_cv_posix_c_source=no
3898 echo "$as_me: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 cf_want_posix_source=no
3901 case .$cf_POSIX_C_SOURCE in
3903 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3906 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3907 cf_want_posix_source=yes
3910 cf_want_posix_source=yes
3913 if test "$cf_want_posix_source" = yes ; then
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line 3915 "configure"
3916 #include "confdefs.h"
3917 #include <sys/types.h>
3922 #ifdef _POSIX_SOURCE
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:3936: \"$ac_try\"") >&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3947 rm -f conftest.$ac_objext conftest.$ac_ext
3950 echo "${as_me:-configure}:3950: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3952 CFLAGS="$cf_trim_CFLAGS"
3953 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3955 echo "${as_me:-configure}:3955: testing if the second compile does not leave our definition intact error ..." 1>&5
3957 cat >conftest.$ac_ext <<_ACEOF
3958 #line 3958 "configure"
3959 #include "confdefs.h"
3960 #include <sys/types.h>
3965 #ifndef _POSIX_C_SOURCE
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:3973: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 echo "$as_me:3976: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:3979: \"$ac_try\"") >&5
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 cf_cv_posix_c_source=no
3990 rm -f conftest.$ac_objext conftest.$ac_ext
3991 CFLAGS="$cf_save_CFLAGS"
3992 CPPFLAGS="$cf_save_CPPFLAGS"
3995 rm -f conftest.$ac_objext conftest.$ac_ext
3998 echo "$as_me:3998: result: $cf_cv_posix_c_source" >&5
3999 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4001 if test "$cf_cv_posix_c_source" != no ; then
4002 CFLAGS="$cf_trim_CFLAGS"