2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20121002.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-pkg-config{=path} enable/disable use of pkg-config
659 --disable-echo do not display "compiling" commands
660 Curses Version-dependent Options:
661 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
662 --disable-widec disable checks for wide-character functions
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-ncursesw use wide ncurses-libraries
665 --with-ncurses use ncurses-libraries
666 --with-pdcurses compile/link with pdcurses X11 library
667 --with-curses-colr compile/link with HPUX 10.x color-curses
668 --with-curses-5lib compile/link with SunOS 5lib curses
669 --with-Xaw3d link with Xaw 3d library
670 --with-neXtaw link with neXT Athena library
671 --with-XawPlus link with Athena-Plus library
672 --with-x use the X Window System
673 Testing/development Options:
674 --enable-warnings test: turn on gcc compiler warnings
675 --with-dmalloc test: use Gray Watson's dmalloc library
676 --with-dbmalloc test: use Conor Cahill's dbmalloc library
677 --with-valgrind test: use valgrind
678 --disable-leaks test: free permanent memory, analyze leaks
679 --disable-rpath-hack don't add rpath options for additional libraries
681 Some influential environment variables:
682 CC C compiler command
683 CFLAGS C compiler flags
684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
685 nonstandard directory <lib dir>
686 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
687 headers in a nonstandard directory <include dir>
690 Use these variables to override the choices made by `configure' or to help
691 it to find libraries and programs with nonstandard names/locations.
696 if test "$ac_init_help" = "recursive"; then
697 # If there are subdirs, report their specific --help.
699 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
701 # A "../" for each directory in /$ac_subdir.
702 ac_dots=`echo $ac_subdir |
703 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
706 .) # No --srcdir option. We are building in place.
707 ac_sub_srcdir=$srcdir ;;
708 [\\/]* | ?:[\\/]* ) # Absolute path.
709 ac_sub_srcdir=$srcdir/$ac_subdir ;;
711 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
714 # Check for guested configure; otherwise get Cygnus style configure.
715 if test -f $ac_sub_srcdir/configure.gnu; then
717 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
718 elif test -f $ac_sub_srcdir/configure; then
720 $SHELL $ac_sub_srcdir/configure --help=recursive
721 elif test -f $ac_sub_srcdir/configure.ac ||
722 test -f $ac_sub_srcdir/configure.in; then
726 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
732 test -n "$ac_init_help" && exit 0
733 if $ac_init_version; then
736 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
737 Free Software Foundation, Inc.
738 This configure script is free software; the Free Software Foundation
739 gives unlimited permission to copy, distribute and modify it.
745 This file contains any messages produced by compilers while
746 running configure, to aid debugging if configure makes a mistake.
748 It was created by $as_me, which was
749 generated by GNU Autoconf 2.52.20121002. Invocation command line was
760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
772 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
789 # Keep a trace of the command line.
790 # Strip out --no-create and --no-recursion so they do not pile up.
791 # Also quote any args containing shell meta-characters.
797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798 | --no-cr | --no-c) ;;
799 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
802 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
803 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
805 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
808 # Get rid of the leading space.
811 # When interrupted or exit'd, cleanup temporary files, and complete
812 # config.log. We remove comments because anyway the quotes in there
813 # would cause problems or look ugly.
815 # Save into config.log some information that might help in debugging.
817 echo "## ----------------- ##" >&5
818 echo "## Cache variables. ##" >&5
819 echo "## ----------------- ##" >&5
821 # The following way of writing the cache mishandles newlines in values,
824 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
827 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
832 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
836 sed "/^$/d" confdefs.h >conftest.log
837 if test -s conftest.log; then
839 echo "## ------------ ##" >&5
840 echo "## confdefs.h. ##" >&5
841 echo "## ------------ ##" >&5
846 test "$ac_signal" != 0 &&
847 echo "$as_me: caught signal $ac_signal" >&5
848 echo "$as_me: exit $exit_status" >&5
849 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
852 for ac_signal in 1 2 13 15; do
853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
858 rm -rf conftest* confdefs.h
859 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
862 # Let the site file select an alternate cache file if it wants to.
863 # Prefer explicitly selected file to automatically selected ones.
864 if test -z "$CONFIG_SITE"; then
865 if test "x$prefix" != xNONE; then
866 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
868 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
871 for ac_site_file in $CONFIG_SITE; do
872 if test -r "$ac_site_file"; then
873 { echo "$as_me:873: loading site script $ac_site_file" >&5
874 echo "$as_me: loading site script $ac_site_file" >&6;}
875 cat "$ac_site_file" >&5
880 if test -r "$cache_file"; then
881 # Some versions of bash will fail to source /dev/null (special
882 # files actually), so we avoid doing that.
883 if test -f "$cache_file"; then
884 { echo "$as_me:884: loading cache $cache_file" >&5
885 echo "$as_me: loading cache $cache_file" >&6;}
887 [\\/]* | ?:[\\/]* ) . $cache_file;;
892 { echo "$as_me:892: creating cache $cache_file" >&5
893 echo "$as_me: creating cache $cache_file" >&6;}
897 # Check that the precious variables saved in the cache have kept the same
899 ac_cache_corrupted=false
900 for ac_var in `(set) 2>&1 |
901 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
903 eval ac_new_set=\$ac_env_${ac_var}_set
904 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
905 eval ac_new_val="\$ac_env_${ac_var}_value"
906 case $ac_old_set,$ac_new_set in
908 { echo "$as_me:908: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
910 ac_cache_corrupted=: ;;
912 { echo "$as_me:912: error: \`$ac_var' was not set in the previous run" >&5
913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
914 ac_cache_corrupted=: ;;
917 if test "x$ac_old_val" != "x$ac_new_val"; then
918 { echo "$as_me:918: error: \`$ac_var' has changed since the previous run:" >&5
919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
920 { echo "$as_me:920: former value: $ac_old_val" >&5
921 echo "$as_me: former value: $ac_old_val" >&2;}
922 { echo "$as_me:922: current value: $ac_new_val" >&5
923 echo "$as_me: current value: $ac_new_val" >&2;}
927 # Pass precious variables to config.status. It doesn't matter if
928 # we pass some twice (in addition to the command line arguments).
929 if test "$ac_new_set" = set; then
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args '$ac_arg'"
935 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
940 if $ac_cache_corrupted; then
941 { echo "$as_me:941: error: changes in the environment can compromise the build" >&5
942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
943 { { echo "$as_me:943: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
945 { (exit 1); exit 1; }; }
949 ac_cpp='$CPP $CPPFLAGS'
950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
953 ac_main_return=return
955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
956 *c*,-n*) ECHO_N= ECHO_C='
958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
961 echo "#! $SHELL" >conftest.sh
962 echo "exit 0" >>conftest.sh
964 if { (echo "$as_me:964: PATH=\".;.\"; conftest.sh") >&5
965 (PATH=".;."; conftest.sh) 2>&5
967 echo "$as_me:967: \$? = $ac_status" >&5
968 (exit $ac_status); }; then
969 ac_path_separator=';'
973 PATH_SEPARATOR="$ac_path_separator"
976 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
978 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
980 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984 if test -f $ac_dir/install-sh; then
986 ac_install_sh="$ac_aux_dir/install-sh -c"
988 elif test -f $ac_dir/install.sh; then
990 ac_install_sh="$ac_aux_dir/install.sh -c"
992 elif test -f $ac_dir/shtool; then
994 ac_install_sh="$ac_aux_dir/shtool install -c"
998 if test -z "$ac_aux_dir"; then
999 { { echo "$as_me:999: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1000 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1001 { (exit 1); exit 1; }; }
1003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1005 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1007 # Make sure we can run config.sub.
1008 $ac_config_sub sun4 >/dev/null 2>&1 ||
1009 { { echo "$as_me:1009: error: cannot run $ac_config_sub" >&5
1010 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1011 { (exit 1); exit 1; }; }
1013 echo "$as_me:1013: checking build system type" >&5
1014 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1015 if test "${ac_cv_build+set}" = set; then
1016 echo $ECHO_N "(cached) $ECHO_C" >&6
1018 ac_cv_build_alias=$build_alias
1019 test -z "$ac_cv_build_alias" &&
1020 ac_cv_build_alias=`$ac_config_guess`
1021 test -z "$ac_cv_build_alias" &&
1022 { { echo "$as_me:1022: error: cannot guess build type; you must specify one" >&5
1023 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1024 { (exit 1); exit 1; }; }
1025 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1026 { { echo "$as_me:1026: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1027 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1028 { (exit 1); exit 1; }; }
1031 echo "$as_me:1031: result: $ac_cv_build" >&5
1032 echo "${ECHO_T}$ac_cv_build" >&6
1034 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1039 echo "$as_me:1039: checking host system type" >&5
1040 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1041 if test "${ac_cv_host+set}" = set; then
1042 echo $ECHO_N "(cached) $ECHO_C" >&6
1044 ac_cv_host_alias=$host_alias
1045 test -z "$ac_cv_host_alias" &&
1046 ac_cv_host_alias=$ac_cv_build_alias
1047 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_host" >&5
1054 echo "${ECHO_T}$ac_cv_host" >&6
1056 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 system_name="$host_os"
1062 system_name="`(uname -s -r) 2>/dev/null`"
1063 if test -z "$system_name" ; then
1064 system_name="`(hostname) 2>/dev/null`"
1067 test -n "$system_name" &&
1068 cat >>confdefs.h <<EOF
1069 #define SYSTEM_NAME "$system_name"
1072 if test "${cf_cv_system_name+set}" = set; then
1073 echo $ECHO_N "(cached) $ECHO_C" >&6
1075 cf_cv_system_name="$system_name"
1078 test -z "$system_name" && system_name="$cf_cv_system_name"
1079 test -n "$cf_cv_system_name" && echo "$as_me:1079: result: Configuring for $cf_cv_system_name" >&5
1080 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1082 if test ".$system_name" != ".$cf_cv_system_name" ; then
1083 echo "$as_me:1083: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1084 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1085 { { echo "$as_me:1085: error: \"Please remove config.cache and try again.\"" >&5
1086 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1087 { (exit 1); exit 1; }; }
1090 test "$program_prefix" != NONE &&
1091 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1092 # Use a double $ so make ignores it.
1093 test "$program_suffix" != NONE &&
1094 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1095 # Double any \ or $. echo might interpret backslashes.
1096 # By default was `s,x,x', remove it if useless.
1097 cat <<\_ACEOF >conftest.sed
1098 s/[\\$]/&&/g;s/;s,x,x,$//
1100 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1103 echo "$as_me:1103: checking whether ${MAKE-make} sets \${MAKE}" >&5
1104 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1105 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1106 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 cat >conftest.make <<\EOF
1111 @echo 'ac_maketemp="${MAKE}"'
1113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1114 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1115 if test -n "$ac_maketemp"; then
1116 eval ac_cv_prog_make_${ac_make}_set=yes
1118 eval ac_cv_prog_make_${ac_make}_set=no
1122 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1123 echo "$as_me:1123: result: yes" >&5
1124 echo "${ECHO_T}yes" >&6
1127 echo "$as_me:1127: result: no" >&5
1128 echo "${ECHO_T}no" >&6
1129 SET_MAKE="MAKE=${MAKE-make}"
1133 ac_cpp='$CPP $CPPFLAGS'
1134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1137 ac_main_return=return
1138 if test -n "$ac_tool_prefix"; then
1139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1141 echo "$as_me:1141: checking for $ac_word" >&5
1142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1143 if test "${ac_cv_prog_CC+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC="$CC" # Let the user override the test.
1149 ac_save_IFS=$IFS; IFS=$ac_path_separator
1151 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 $as_executable_p "$ac_dir/$ac_word" || continue
1155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1156 echo "$as_me:1156: found $ac_dir/$ac_word" >&5
1163 if test -n "$CC"; then
1164 echo "$as_me:1164: result: $CC" >&5
1165 echo "${ECHO_T}$CC" >&6
1167 echo "$as_me:1167: result: no" >&5
1168 echo "${ECHO_T}no" >&6
1172 if test -z "$ac_cv_prog_CC"; then
1174 # Extract the first word of "gcc", so it can be a program name with args.
1175 set dummy gcc; ac_word=$2
1176 echo "$as_me:1176: checking for $ac_word" >&5
1177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1179 echo $ECHO_N "(cached) $ECHO_C" >&6
1181 if test -n "$ac_ct_CC"; then
1182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1184 ac_save_IFS=$IFS; IFS=$ac_path_separator
1186 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 $as_executable_p "$ac_dir/$ac_word" || continue
1190 ac_cv_prog_ac_ct_CC="gcc"
1191 echo "$as_me:1191: found $ac_dir/$ac_word" >&5
1197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1198 if test -n "$ac_ct_CC"; then
1199 echo "$as_me:1199: result: $ac_ct_CC" >&5
1200 echo "${ECHO_T}$ac_ct_CC" >&6
1202 echo "$as_me:1202: result: no" >&5
1203 echo "${ECHO_T}no" >&6
1211 if test -z "$CC"; then
1212 if test -n "$ac_tool_prefix"; then
1213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1214 set dummy ${ac_tool_prefix}cc; ac_word=$2
1215 echo "$as_me:1215: checking for $ac_word" >&5
1216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1217 if test "${ac_cv_prog_CC+set}" = set; then
1218 echo $ECHO_N "(cached) $ECHO_C" >&6
1220 if test -n "$CC"; then
1221 ac_cv_prog_CC="$CC" # Let the user override the test.
1223 ac_save_IFS=$IFS; IFS=$ac_path_separator
1225 for ac_dir in $ac_dummy; do
1227 test -z "$ac_dir" && ac_dir=.
1228 $as_executable_p "$ac_dir/$ac_word" || continue
1229 ac_cv_prog_CC="${ac_tool_prefix}cc"
1230 echo "$as_me:1230: found $ac_dir/$ac_word" >&5
1237 if test -n "$CC"; then
1238 echo "$as_me:1238: result: $CC" >&5
1239 echo "${ECHO_T}$CC" >&6
1241 echo "$as_me:1241: result: no" >&5
1242 echo "${ECHO_T}no" >&6
1246 if test -z "$ac_cv_prog_CC"; then
1248 # Extract the first word of "cc", so it can be a program name with args.
1249 set dummy cc; ac_word=$2
1250 echo "$as_me:1250: checking for $ac_word" >&5
1251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1253 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 if test -n "$ac_ct_CC"; then
1256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1258 ac_save_IFS=$IFS; IFS=$ac_path_separator
1260 for ac_dir in $ac_dummy; do
1262 test -z "$ac_dir" && ac_dir=.
1263 $as_executable_p "$ac_dir/$ac_word" || continue
1264 ac_cv_prog_ac_ct_CC="cc"
1265 echo "$as_me:1265: found $ac_dir/$ac_word" >&5
1271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1272 if test -n "$ac_ct_CC"; then
1273 echo "$as_me:1273: result: $ac_ct_CC" >&5
1274 echo "${ECHO_T}$ac_ct_CC" >&6
1276 echo "$as_me:1276: result: no" >&5
1277 echo "${ECHO_T}no" >&6
1286 if test -z "$CC"; then
1287 # Extract the first word of "cc", so it can be a program name with args.
1288 set dummy cc; ac_word=$2
1289 echo "$as_me:1289: checking for $ac_word" >&5
1290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1291 if test "${ac_cv_prog_CC+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 if test -n "$CC"; then
1295 ac_cv_prog_CC="$CC" # Let the user override the test.
1298 ac_save_IFS=$IFS; IFS=$ac_path_separator
1300 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 $as_executable_p "$ac_dir/$ac_word" || continue
1304 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1305 ac_prog_rejected=yes
1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1313 if test $ac_prog_rejected = yes; then
1314 # We found a bogon in the path, so make sure we never use it.
1315 set dummy $ac_cv_prog_CC
1317 if test $# != 0; then
1318 # We chose a different compiler from the bogus one.
1319 # However, it has the same basename, so the bogon will be chosen
1320 # first if we set CC to just the basename; use the full file name.
1322 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1330 if test -n "$CC"; then
1331 echo "$as_me:1331: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1334 echo "$as_me:1334: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1339 if test -z "$CC"; then
1340 if test -n "$ac_tool_prefix"; then
1343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1345 echo "$as_me:1345: checking for $ac_word" >&5
1346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347 if test "${ac_cv_prog_CC+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 if test -n "$CC"; then
1351 ac_cv_prog_CC="$CC" # Let the user override the test.
1353 ac_save_IFS=$IFS; IFS=$ac_path_separator
1355 for ac_dir in $ac_dummy; do
1357 test -z "$ac_dir" && ac_dir=.
1358 $as_executable_p "$ac_dir/$ac_word" || continue
1359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1360 echo "$as_me:1360: found $ac_dir/$ac_word" >&5
1367 if test -n "$CC"; then
1368 echo "$as_me:1368: result: $CC" >&5
1369 echo "${ECHO_T}$CC" >&6
1371 echo "$as_me:1371: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1375 test -n "$CC" && break
1378 if test -z "$CC"; then
1382 # Extract the first word of "$ac_prog", so it can be a program name with args.
1383 set dummy $ac_prog; ac_word=$2
1384 echo "$as_me:1384: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 if test -n "$ac_ct_CC"; then
1390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1392 ac_save_IFS=$IFS; IFS=$ac_path_separator
1394 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 $as_executable_p "$ac_dir/$ac_word" || continue
1398 ac_cv_prog_ac_ct_CC="$ac_prog"
1399 echo "$as_me:1399: found $ac_dir/$ac_word" >&5
1405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1406 if test -n "$ac_ct_CC"; then
1407 echo "$as_me:1407: result: $ac_ct_CC" >&5
1408 echo "${ECHO_T}$ac_ct_CC" >&6
1410 echo "$as_me:1410: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1414 test -n "$ac_ct_CC" && break
1422 test -z "$CC" && { { echo "$as_me:1422: error: no acceptable cc found in \$PATH" >&5
1423 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1424 { (exit 1); exit 1; }; }
1426 # Provide some information about the compiler.
1427 echo "$as_me:1427:" \
1428 "checking for C compiler version" >&5
1429 ac_compiler=`set X $ac_compile; echo $2`
1430 { (eval echo "$as_me:1430: \"$ac_compiler --version </dev/null >&5\"") >&5
1431 (eval $ac_compiler --version </dev/null >&5) 2>&5
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); }
1435 { (eval echo "$as_me:1435: \"$ac_compiler -v </dev/null >&5\"") >&5
1436 (eval $ac_compiler -v </dev/null >&5) 2>&5
1438 echo "$as_me:1438: \$? = $ac_status" >&5
1439 (exit $ac_status); }
1440 { (eval echo "$as_me:1440: \"$ac_compiler -V </dev/null >&5\"") >&5
1441 (eval $ac_compiler -V </dev/null >&5) 2>&5
1443 echo "$as_me:1443: \$? = $ac_status" >&5
1444 (exit $ac_status); }
1446 cat >conftest.$ac_ext <<_ACEOF
1447 #line 1447 "configure"
1448 #include "confdefs.h"
1458 ac_clean_files_save=$ac_clean_files
1459 ac_clean_files="$ac_clean_files a.out a.exe"
1460 # Try to create an executable without -o first, disregard a.out.
1461 # It will help us diagnose broken compilers, and finding out an intuition
1463 echo "$as_me:1463: checking for C compiler default output" >&5
1464 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1466 if { (eval echo "$as_me:1466: \"$ac_link_default\"") >&5
1467 (eval $ac_link_default) 2>&5
1469 echo "$as_me:1469: \$? = $ac_status" >&5
1470 (exit $ac_status); }; then
1471 # Find the output, starting from the most likely. This scheme is
1472 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1474 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1475 ls a.out conftest 2>/dev/null;
1476 ls a.* conftest.* 2>/dev/null`; do
1478 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1479 a.out ) # We found the default executable, but exeext='' is most
1482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1483 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1490 echo "$as_me: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 { { echo "$as_me:1492: error: C compiler cannot create executables" >&5
1493 echo "$as_me: error: C compiler cannot create executables" >&2;}
1494 { (exit 77); exit 77; }; }
1497 ac_exeext=$ac_cv_exeext
1498 echo "$as_me:1498: result: $ac_file" >&5
1499 echo "${ECHO_T}$ac_file" >&6
1501 # Check the compiler produces executables we can run. If not, either
1502 # the compiler is broken, or we cross compile.
1503 echo "$as_me:1503: checking whether the C compiler works" >&5
1504 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1505 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1506 # If not cross compiling, check that we can run a simple program.
1507 if test "$cross_compiling" != yes; then
1508 if { ac_try='./$ac_file'
1509 { (eval echo "$as_me:1509: \"$ac_try\"") >&5
1512 echo "$as_me:1512: \$? = $ac_status" >&5
1513 (exit $ac_status); }; }; then
1516 if test "$cross_compiling" = maybe; then
1519 { { echo "$as_me:1519: error: cannot run C compiled programs.
1520 If you meant to cross compile, use \`--host'." >&5
1521 echo "$as_me: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&2;}
1523 { (exit 1); exit 1; }; }
1527 echo "$as_me:1527: result: yes" >&5
1528 echo "${ECHO_T}yes" >&6
1530 rm -f a.out a.exe conftest$ac_cv_exeext
1531 ac_clean_files=$ac_clean_files_save
1532 # Check the compiler produces executables we can run. If not, either
1533 # the compiler is broken, or we cross compile.
1534 echo "$as_me:1534: checking whether we are cross compiling" >&5
1535 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1536 echo "$as_me:1536: result: $cross_compiling" >&5
1537 echo "${ECHO_T}$cross_compiling" >&6
1539 echo "$as_me:1539: checking for executable suffix" >&5
1540 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1541 if { (eval echo "$as_me:1541: \"$ac_link\"") >&5
1542 (eval $ac_link) 2>&5
1544 echo "$as_me:1544: \$? = $ac_status" >&5
1545 (exit $ac_status); }; then
1546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1547 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1548 # work properly (i.e., refer to `conftest.exe'), while it won't with
1550 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1552 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1560 { { echo "$as_me:1560: error: cannot compute EXEEXT: cannot compile and link" >&5
1561 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1562 { (exit 1); exit 1; }; }
1565 rm -f conftest$ac_cv_exeext
1566 echo "$as_me:1566: result: $ac_cv_exeext" >&5
1567 echo "${ECHO_T}$ac_cv_exeext" >&6
1569 rm -f conftest.$ac_ext
1570 EXEEXT=$ac_cv_exeext
1572 echo "$as_me:1572: checking for object suffix" >&5
1573 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1574 if test "${ac_cv_objext+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 cat >conftest.$ac_ext <<_ACEOF
1578 #line 1578 "configure"
1579 #include "confdefs.h"
1589 rm -f conftest.o conftest.obj
1590 if { (eval echo "$as_me:1590: \"$ac_compile\"") >&5
1591 (eval $ac_compile) 2>&5
1593 echo "$as_me:1593: \$? = $ac_status" >&5
1594 (exit $ac_status); }; then
1595 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1597 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1603 echo "$as_me: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 { { echo "$as_me:1605: error: cannot compute OBJEXT: cannot compile" >&5
1606 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1607 { (exit 1); exit 1; }; }
1610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1612 echo "$as_me:1612: result: $ac_cv_objext" >&5
1613 echo "${ECHO_T}$ac_cv_objext" >&6
1614 OBJEXT=$ac_cv_objext
1616 echo "$as_me:1616: checking whether we are using the GNU C compiler" >&5
1617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 cat >conftest.$ac_ext <<_ACEOF
1622 #line 1622 "configure"
1623 #include "confdefs.h"
1636 rm -f conftest.$ac_objext
1637 if { (eval echo "$as_me:1637: \"$ac_compile\"") >&5
1638 (eval $ac_compile) 2>&5
1640 echo "$as_me:1640: \$? = $ac_status" >&5
1641 (exit $ac_status); } &&
1642 { ac_try='test -s conftest.$ac_objext'
1643 { (eval echo "$as_me:1643: \"$ac_try\"") >&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); }; }; then
1650 echo "$as_me: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1654 rm -f conftest.$ac_objext conftest.$ac_ext
1655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1658 echo "$as_me:1658: result: $ac_cv_c_compiler_gnu" >&5
1659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1660 GCC=`test $ac_compiler_gnu = yes && echo yes`
1661 ac_test_CFLAGS=${CFLAGS+set}
1662 ac_save_CFLAGS=$CFLAGS
1664 echo "$as_me:1664: checking whether $CC accepts -g" >&5
1665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1666 if test "${ac_cv_prog_cc_g+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 cat >conftest.$ac_ext <<_ACEOF
1670 #line 1670 "configure"
1671 #include "confdefs.h"
1681 rm -f conftest.$ac_objext
1682 if { (eval echo "$as_me:1682: \"$ac_compile\"") >&5
1683 (eval $ac_compile) 2>&5
1685 echo "$as_me:1685: \$? = $ac_status" >&5
1686 (exit $ac_status); } &&
1687 { ac_try='test -s conftest.$ac_objext'
1688 { (eval echo "$as_me:1688: \"$ac_try\"") >&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }; }; then
1695 echo "$as_me: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1699 rm -f conftest.$ac_objext conftest.$ac_ext
1701 echo "$as_me:1701: result: $ac_cv_prog_cc_g" >&5
1702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1703 if test "$ac_test_CFLAGS" = set; then
1704 CFLAGS=$ac_save_CFLAGS
1705 elif test $ac_cv_prog_cc_g = yes; then
1706 if test "$GCC" = yes; then
1712 if test "$GCC" = yes; then
1718 # Some people use a C++ compiler to compile C. Since we use `exit',
1719 # in C++ we need to declare it. In case someone uses the same compiler
1720 # for both compiling C and C++ we need to have the C++ compiler decide
1721 # the declaration of exit, since it's the most demanding environment.
1722 cat >conftest.$ac_ext <<_ACEOF
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1739 for ac_declaration in \
1741 '#include <stdlib.h>' \
1742 'extern "C" void std::exit (int) throw (); using std::exit;' \
1743 'extern "C" void std::exit (int); using std::exit;' \
1744 'extern "C" void exit (int) throw ();' \
1745 'extern "C" void exit (int);' \
1748 cat >conftest.$ac_ext <<_ACEOF
1749 #line 1749 "configure"
1750 #include "confdefs.h"
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 echo "$as_me: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1779 rm -f conftest.$ac_objext conftest.$ac_ext
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line 1781 "configure"
1782 #include "confdefs.h"
1792 rm -f conftest.$ac_objext
1793 if { (eval echo "$as_me:1793: \"$ac_compile\"") >&5
1794 (eval $ac_compile) 2>&5
1796 echo "$as_me:1796: \$? = $ac_status" >&5
1797 (exit $ac_status); } &&
1798 { ac_try='test -s conftest.$ac_objext'
1799 { (eval echo "$as_me:1799: \"$ac_try\"") >&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); }; }; then
1806 echo "$as_me: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 rm -f conftest.$ac_objext conftest.$ac_ext
1812 if test -n "$ac_declaration"; then
1813 echo '#ifdef __cplusplus' >>confdefs.h
1814 echo $ac_declaration >>confdefs.h
1815 echo '#endif' >>confdefs.h
1819 echo "$as_me: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 rm -f conftest.$ac_objext conftest.$ac_ext
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_main_return=return
1831 if test "$GCC" = yes ; then
1832 echo "$as_me:1832: checking version of $CC" >&5
1833 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1834 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.].*//'`"
1835 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1836 echo "$as_me:1836: result: $GCC_VERSION" >&5
1837 echo "${ECHO_T}$GCC_VERSION" >&6
1840 echo "$as_me:1840: checking for $CC option to accept ANSI C" >&5
1841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 ac_cv_prog_cc_stdc=no
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line 1848 "configure"
1849 #include "confdefs.h"
1852 #include <sys/types.h>
1853 #include <sys/stat.h>
1854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1855 struct buf { int x; };
1856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1857 static char *e (p, i)
1863 static char *f (char * (*g) (char **, int), char **p, ...)
1868 s = g (p, va_arg (v,int));
1872 int test (int i, double x);
1873 struct s1 {int (*f) (int a);};
1874 struct s2 {int (*f) (double a);};
1875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1886 # Don't try gcc -ansi; that turns off useful extensions and
1887 # breaks some systems' header files.
1888 # AIX -qlanglvl=ansi
1889 # Ultrix and OSF/1 -std1
1890 # HP-UX 10.20 and later -Ae
1891 # HP-UX older versions -Aa -D_HPUX_SOURCE
1892 # SVR4 -Xc -D__EXTENSIONS__
1893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1895 CC="$ac_save_CC $ac_arg"
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:1897: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -s conftest.$ac_objext'
1903 { (eval echo "$as_me:1903: \"$ac_try\"") >&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1908 ac_cv_prog_cc_stdc=$ac_arg
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext
1916 rm -f conftest.$ac_ext conftest.$ac_objext
1921 case "x$ac_cv_prog_cc_stdc" in
1923 echo "$as_me:1923: result: none needed" >&5
1924 echo "${ECHO_T}none needed" >&6 ;;
1926 echo "$as_me:1926: result: $ac_cv_prog_cc_stdc" >&5
1927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1928 CC="$CC $ac_cv_prog_cc_stdc" ;;
1931 # This should have been defined by AC_PROG_CC
1934 echo "$as_me:1934: checking \$CC variable" >&5
1935 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1938 echo "$as_me:1938: result: broken" >&5
1939 echo "${ECHO_T}broken" >&6
1940 { echo "$as_me:1940: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1941 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1943 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1944 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1949 cf_new_extra_cppflags=
1951 for cf_add_cflags in $cf_flags
1953 case $cf_fix_cppflags in
1955 case $cf_add_cflags in #(vi
1956 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1957 case $cf_add_cflags in
1959 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1961 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1962 && test -z "${cf_tst_cflags}" \
1963 && cf_fix_cppflags=yes
1965 if test $cf_fix_cppflags = yes ; then
1966 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1968 elif test "${cf_tst_cflags}" = "\"'" ; then
1969 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 *$cf_add_cflags) #(vi
1978 case $cf_add_cflags in #(vi
1980 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1982 CPPFLAGS=`echo "$CPPFLAGS" | \
1983 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1984 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1988 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1993 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1998 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2003 && test -z "${cf_tst_cflags}" \
2004 && cf_fix_cppflags=no
2009 if test -n "$cf_new_cflags" ; then
2011 CFLAGS="$CFLAGS $cf_new_cflags"
2014 if test -n "$cf_new_cppflags" ; then
2016 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2019 if test -n "$cf_new_extra_cppflags" ; then
2021 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2026 echo "$as_me:2026: result: ok" >&5
2027 echo "${ECHO_T}ok" >&6
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036 ac_main_return=return
2037 echo "$as_me:2037: checking how to run the C preprocessor" >&5
2038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2039 # On Suns, sometimes $CPP names a directory.
2040 if test -n "$CPP" && test -d "$CPP"; then
2043 if test -z "$CPP"; then
2044 if test "${ac_cv_prog_CPP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 # Double quotes because CPP needs to be expanded
2048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2051 for ac_c_preproc_warn_flag in '' yes
2053 # Use a header file that comes with gcc, so configuring glibc
2054 # with a fresh cross-compiler works.
2055 # On the NeXT, cc -E runs the code through the compiler's parser,
2056 # not just through cpp. "Syntax error" is here to catch this case.
2057 cat >conftest.$ac_ext <<_ACEOF
2058 #line 2058 "configure"
2059 #include "confdefs.h"
2063 if { (eval echo "$as_me:2063: \"$ac_cpp conftest.$ac_ext\"") >&5
2064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2066 egrep -v '^ *\+' conftest.er1 >conftest.err
2068 cat conftest.err >&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } >/dev/null; then
2071 if test -s conftest.err; then
2072 ac_cpp_err=$ac_c_preproc_warn_flag
2079 if test -z "$ac_cpp_err"; then
2082 echo "$as_me: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 # Broken: fails on valid input.
2087 rm -f conftest.err conftest.$ac_ext
2089 # OK, works on sane cases. Now check whether non-existent headers
2090 # can be detected and how.
2091 cat >conftest.$ac_ext <<_ACEOF
2092 #line 2092 "configure"
2093 #include "confdefs.h"
2094 #include <ac_nonexistent.h>
2096 if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2099 egrep -v '^ *\+' conftest.er1 >conftest.err
2101 cat conftest.err >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev/null; then
2104 if test -s conftest.err; then
2105 ac_cpp_err=$ac_c_preproc_warn_flag
2112 if test -z "$ac_cpp_err"; then
2113 # Broken: success on invalid input.
2116 echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 # Passes both tests.
2122 rm -f conftest.err conftest.$ac_ext
2125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2126 rm -f conftest.err conftest.$ac_ext
2127 if $ac_preproc_ok; then
2139 echo "$as_me:2139: result: $CPP" >&5
2140 echo "${ECHO_T}$CPP" >&6
2142 for ac_c_preproc_warn_flag in '' yes
2144 # Use a header file that comes with gcc, so configuring glibc
2145 # with a fresh cross-compiler works.
2146 # On the NeXT, cc -E runs the code through the compiler's parser,
2147 # not just through cpp. "Syntax error" is here to catch this case.
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line 2149 "configure"
2150 #include "confdefs.h"
2154 if { (eval echo "$as_me:2154: \"$ac_cpp conftest.$ac_ext\"") >&5
2155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2157 egrep -v '^ *\+' conftest.er1 >conftest.err
2159 cat conftest.err >&5
2160 echo "$as_me:2160: \$? = $ac_status" >&5
2161 (exit $ac_status); } >/dev/null; then
2162 if test -s conftest.err; then
2163 ac_cpp_err=$ac_c_preproc_warn_flag
2170 if test -z "$ac_cpp_err"; then
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 # Broken: fails on valid input.
2178 rm -f conftest.err conftest.$ac_ext
2180 # OK, works on sane cases. Now check whether non-existent headers
2181 # can be detected and how.
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line 2183 "configure"
2184 #include "confdefs.h"
2185 #include <ac_nonexistent.h>
2187 if { (eval echo "$as_me:2187: \"$ac_cpp conftest.$ac_ext\"") >&5
2188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2190 egrep -v '^ *\+' conftest.er1 >conftest.err
2192 cat conftest.err >&5
2193 echo "$as_me:2193: \$? = $ac_status" >&5
2194 (exit $ac_status); } >/dev/null; then
2195 if test -s conftest.err; then
2196 ac_cpp_err=$ac_c_preproc_warn_flag
2203 if test -z "$ac_cpp_err"; then
2204 # Broken: success on invalid input.
2207 echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 # Passes both tests.
2213 rm -f conftest.err conftest.$ac_ext
2216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2217 rm -f conftest.err conftest.$ac_ext
2218 if $ac_preproc_ok; then
2221 { { echo "$as_me:2221: error: C preprocessor \"$CPP\" fails sanity check" >&5
2222 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2223 { (exit 1); exit 1; }; }
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 ac_main_return=return
2233 for ac_prog in mawk gawk nawk awk
2235 # Extract the first word of "$ac_prog", so it can be a program name with args.
2236 set dummy $ac_prog; ac_word=$2
2237 echo "$as_me:2237: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_AWK+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$AWK"; then
2243 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2245 ac_save_IFS=$IFS; IFS=$ac_path_separator
2247 for ac_dir in $ac_dummy; do
2249 test -z "$ac_dir" && ac_dir=.
2250 $as_executable_p "$ac_dir/$ac_word" || continue
2251 ac_cv_prog_AWK="$ac_prog"
2252 echo "$as_me:2252: found $ac_dir/$ac_word" >&5
2259 if test -n "$AWK"; then
2260 echo "$as_me:2260: result: $AWK" >&5
2261 echo "${ECHO_T}$AWK" >&6
2263 echo "$as_me:2263: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2267 test -n "$AWK" && break
2270 # Find a good install program. We prefer a C program (faster),
2271 # so one script is as good as another. But avoid the broken or
2272 # incompatible versions:
2273 # SysV /etc/install, /usr/sbin/install
2274 # SunOS /usr/etc/install
2275 # IRIX /sbin/install
2277 # AmigaOS /C/install, which installs bootblocks on floppy discs
2278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 echo "$as_me:2282: checking for a BSD compatible install" >&5
2283 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_save_IFS=$IFS; IFS=$ac_path_separator
2289 for ac_dir in $PATH; do
2291 # Account for people who put trailing slashes in PATH elements.
2293 / | ./ | .// | /cC/* \
2294 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2297 # OSF1 and SCO ODT 3.0 have their own names for install.
2298 # Don't use installbsd from OSF since it installs stuff as root
2300 for ac_prog in ginstall scoinst install; do
2301 if $as_executable_p "$ac_dir/$ac_prog"; then
2302 if test $ac_prog = install &&
2303 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2304 # AIX install. It has an incompatible calling convention.
2306 elif test $ac_prog = install &&
2307 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2308 # program-specific install script used by HP pwplus--don't use.
2311 ac_cv_path_install="$ac_dir/$ac_prog -c"
2321 if test "${ac_cv_path_install+set}" = set; then
2322 INSTALL=$ac_cv_path_install
2324 # As a last resort, use the slow shell script. We don't cache a
2325 # path for INSTALL within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the path is relative.
2328 INSTALL=$ac_install_sh
2331 echo "$as_me:2331: result: $INSTALL" >&5
2332 echo "${ECHO_T}$INSTALL" >&6
2334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335 # It thinks the first close brace ends the variable substitution.
2336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2347 test -z "$cf_dir" && cf_dir=.
2348 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2352 for ac_prog in tdlint lint alint splint lclint
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 echo "$as_me:2356: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_LINT+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$LINT"; then
2362 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2364 ac_save_IFS=$IFS; IFS=$ac_path_separator
2366 for ac_dir in $ac_dummy; do
2368 test -z "$ac_dir" && ac_dir=.
2369 $as_executable_p "$ac_dir/$ac_word" || continue
2370 ac_cv_prog_LINT="$ac_prog"
2371 echo "$as_me:2371: found $ac_dir/$ac_word" >&5
2377 LINT=$ac_cv_prog_LINT
2378 if test -n "$LINT"; then
2379 echo "$as_me:2379: result: $LINT" >&5
2380 echo "${ECHO_T}$LINT" >&6
2382 echo "$as_me:2382: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 test -n "$LINT" && break
2389 echo "$as_me:2389: checking if filesystem supports mixed-case filenames" >&5
2390 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2391 if test "${cf_cv_mixedcase+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test "$cross_compiling" = yes ; then
2396 case $target_alias in #(vi
2397 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2405 rm -f conftest CONFTEST
2407 if test -f CONFTEST ; then
2412 rm -f conftest CONFTEST
2416 echo "$as_me:2416: result: $cf_cv_mixedcase" >&5
2417 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2418 test "$cf_cv_mixedcase" = yes &&
2419 cat >>confdefs.h <<\EOF
2420 #define MIXEDCASE_FILENAMES 1
2423 for ac_prog in exctags ctags
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:2427: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CTAGS+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CTAGS"; then
2433 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2435 ac_save_IFS=$IFS; IFS=$ac_path_separator
2437 for ac_dir in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir=.
2440 $as_executable_p "$ac_dir/$ac_word" || continue
2441 ac_cv_prog_CTAGS="$ac_prog"
2442 echo "$as_me:2442: found $ac_dir/$ac_word" >&5
2448 CTAGS=$ac_cv_prog_CTAGS
2449 if test -n "$CTAGS"; then
2450 echo "$as_me:2450: result: $CTAGS" >&5
2451 echo "${ECHO_T}$CTAGS" >&6
2453 echo "$as_me:2453: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2457 test -n "$CTAGS" && break
2460 for ac_prog in exetags etags
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_ETAGS+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ETAGS"; then
2470 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2472 ac_save_IFS=$IFS; IFS=$ac_path_separator
2474 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 $as_executable_p "$ac_dir/$ac_word" || continue
2478 ac_cv_prog_ETAGS="$ac_prog"
2479 echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2485 ETAGS=$ac_cv_prog_ETAGS
2486 if test -n "$ETAGS"; then
2487 echo "$as_me:2487: result: $ETAGS" >&5
2488 echo "${ECHO_T}$ETAGS" >&6
2490 echo "$as_me:2490: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$ETAGS" && break
2497 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2498 set dummy ${CTAGS:-ctags}; ac_word=$2
2499 echo "$as_me:2499: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$MAKE_LOWER_TAGS"; then
2505 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2509 for ac_dir in $ac_dummy; do
2511 test -z "$ac_dir" && ac_dir=.
2512 $as_executable_p "$ac_dir/$ac_word" || continue
2513 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2518 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2521 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2522 if test -n "$MAKE_LOWER_TAGS"; then
2523 echo "$as_me:2523: result: $MAKE_LOWER_TAGS" >&5
2524 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2526 echo "$as_me:2526: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 if test "$cf_cv_mixedcase" = yes ; then
2531 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2532 set dummy ${ETAGS:-etags}; ac_word=$2
2533 echo "$as_me:2533: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2535 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$MAKE_UPPER_TAGS"; then
2539 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2541 ac_save_IFS=$IFS; IFS=$ac_path_separator
2543 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 $as_executable_p "$ac_dir/$ac_word" || continue
2547 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2548 echo "$as_me:2548: found $ac_dir/$ac_word" >&5
2552 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2555 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2556 if test -n "$MAKE_UPPER_TAGS"; then
2557 echo "$as_me:2557: result: $MAKE_UPPER_TAGS" >&5
2558 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2560 echo "$as_me:2560: result: no" >&5
2561 echo "${ECHO_T}no" >&6
2568 if test "$MAKE_UPPER_TAGS" = yes ; then
2574 if test "$MAKE_LOWER_TAGS" = yes ; then
2580 echo "$as_me:2580: checking if -lm needed for math functions" >&5
2581 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2582 if test "${cf_cv_need_libm+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #line 2587 "configure"
2588 #include "confdefs.h"
2596 double x = rand(); printf("result = %g\n", sin(x))
2601 rm -f conftest.$ac_objext conftest$ac_exeext
2602 if { (eval echo "$as_me:2602: \"$ac_link\"") >&5
2603 (eval $ac_link) 2>&5
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest$ac_exeext'
2608 { (eval echo "$as_me:2608: \"$ac_try\"") >&5
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2621 echo "$as_me:2621: result: $cf_cv_need_libm" >&5
2622 echo "${ECHO_T}$cf_cv_need_libm" >&6
2623 if test "$cf_cv_need_libm" = yes
2631 CC_SHARED_OPTS=unknown
2632 CPPFLAGS="$CPPFLAGS"
2634 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2635 DFT_UPR_MODEL="NORMAL"
2652 TINFO_LIBS='$(LIBS_CURSES)'
2653 cf_cv_abi_version=""
2654 cf_cv_rel_version=""
2659 if test "$GCC" = yes
2661 cat > conftest.i <<EOF
2663 #define GCC_PRINTF 0
2668 #ifndef GCC_NORETURN
2669 #define GCC_NORETURN /* nothing */
2672 #define GCC_UNUSED /* nothing */
2675 if test "$GCC" = yes
2677 { echo "$as_me:2677: checking for $CC __attribute__ directives..." >&5
2678 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2680 "${as_me:-configure}"
2681 #include "confdefs.h"
2682 #include "conftest.h"
2683 #include "conftest.i"
2685 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2687 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2690 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2692 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2694 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2695 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2696 extern void foo(void) GCC_NORETURN;
2697 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2699 cf_printf_attribute=no
2700 cf_scanf_attribute=no
2701 for cf_attribute in scanf printf unused noreturn
2704 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2706 cf_directive="__attribute__(($cf_attribute))"
2707 echo "checking for $CC $cf_directive" 1>&5
2709 case $cf_attribute in #(vi
2711 cf_printf_attribute=yes
2712 cat >conftest.h <<EOF
2713 #define GCC_$cf_ATTRIBUTE 1
2717 cf_scanf_attribute=yes
2718 cat >conftest.h <<EOF
2719 #define GCC_$cf_ATTRIBUTE 1
2723 cat >conftest.h <<EOF
2724 #define GCC_$cf_ATTRIBUTE $cf_directive
2729 if { (eval echo "$as_me:2729: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>&5
2732 echo "$as_me:2732: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 test -n "$verbose" && echo "$as_me:2734: result: ... $cf_attribute" >&5
2735 echo "${ECHO_T}... $cf_attribute" >&6
2736 cat conftest.h >>confdefs.h
2737 case $cf_attribute in #(vi
2740 cat >>confdefs.h <<EOF
2741 #define GCC_NORETURN $cf_directive
2746 cf_value='/* nothing */'
2747 if test "$cf_printf_attribute" != no ; then
2748 cf_value='__attribute__((format(printf,fmt,var)))'
2750 cat >>confdefs.h <<\EOF
2751 #define GCC_PRINTF 1
2756 cat >>confdefs.h <<EOF
2757 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2762 cf_value='/* nothing */'
2763 if test "$cf_scanf_attribute" != no ; then
2764 cf_value='__attribute__((format(scanf,fmt,var)))'
2766 cat >>confdefs.h <<\EOF
2772 cat >>confdefs.h <<EOF
2773 #define GCC_SCANFLIKE(fmt,var) $cf_value
2779 cat >>confdefs.h <<EOF
2780 #define GCC_UNUSED $cf_directive
2788 fgrep define conftest.i >>confdefs.h
2794 cf_POSIX_C_SOURCE=199506L
2797 case $host_os in #(vi
2799 cf_xopen_source="-D_ALL_SOURCE"
2805 cf_xopen_source="-D_APPLE_C_SOURCE"
2808 cf_xopen_source="-D_DARWIN_C_SOURCE"
2811 freebsd*|dragonfly*) #(vi
2812 # 5.x headers associate
2813 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2814 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2815 cf_POSIX_C_SOURCE=200112L
2817 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2820 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2823 cf_xopen_source="-D_HPUX_SOURCE"
2826 cf_xopen_source="-D_SGI_SOURCE"
2829 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2831 echo "$as_me:2831: checking if we must define _GNU_SOURCE" >&5
2832 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2833 if test "${cf_cv_gnu_source+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #line 2838 "configure"
2839 #include "confdefs.h"
2840 #include <sys/types.h>
2845 #ifndef _XOPEN_SOURCE
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 #line 2871 "configure"
2872 #include "confdefs.h"
2873 #include <sys/types.h>
2878 #ifdef _XOPEN_SOURCE
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:2886: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>&5
2889 echo "$as_me:2889: \$? = $ac_status" >&5
2890 (exit $ac_status); } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:2892: \"$ac_try\"") >&5
2895 echo "$as_me:2895: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2901 cf_cv_gnu_source=yes
2903 rm -f conftest.$ac_objext conftest.$ac_ext
2907 rm -f conftest.$ac_objext conftest.$ac_ext
2910 echo "$as_me:2910: result: $cf_cv_gnu_source" >&5
2911 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2912 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2916 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2919 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2921 cf_save_CFLAGS="$CFLAGS"
2922 cf_save_CPPFLAGS="$CPPFLAGS"
2924 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2925 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2926 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2928 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2929 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2930 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2932 echo "$as_me:2932: checking if we should define _POSIX_C_SOURCE" >&5
2933 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2934 if test "${cf_cv_posix_c_source+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 echo "${as_me:-configure}:2938: testing if the symbol is already defined go no further ..." 1>&5
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line 2941 "configure"
2942 #include "confdefs.h"
2943 #include <sys/types.h>
2948 #ifndef _POSIX_C_SOURCE
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:2956: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>&5
2959 echo "$as_me:2959: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:2962: \"$ac_try\"") >&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 cf_cv_posix_c_source=no
2969 echo "$as_me: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 cf_want_posix_source=no
2972 case .$cf_POSIX_C_SOURCE in #(vi
2974 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2977 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2978 cf_want_posix_source=yes
2981 cf_want_posix_source=yes
2984 if test "$cf_want_posix_source" = yes ; then
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2993 #ifdef _POSIX_SOURCE
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:3001: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:3007: \"$ac_try\"") >&5
3010 echo "$as_me:3010: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3018 rm -f conftest.$ac_objext conftest.$ac_ext
3021 echo "${as_me:-configure}:3021: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3023 CFLAGS="$cf_trim_CFLAGS"
3024 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3026 echo "${as_me:-configure}:3026: testing if the second compile does not leave our definition intact error ..." 1>&5
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line 3029 "configure"
3030 #include "confdefs.h"
3031 #include <sys/types.h>
3036 #ifndef _POSIX_C_SOURCE
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:3044: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>&5
3047 echo "$as_me:3047: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:3050: \"$ac_try\"") >&5
3053 echo "$as_me:3053: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 echo "$as_me: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 cf_cv_posix_c_source=no
3061 rm -f conftest.$ac_objext conftest.$ac_ext
3062 CFLAGS="$cf_save_CFLAGS"
3063 CPPFLAGS="$cf_save_CPPFLAGS"
3066 rm -f conftest.$ac_objext conftest.$ac_ext
3069 echo "$as_me:3069: result: $cf_cv_posix_c_source" >&5
3070 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3072 if test "$cf_cv_posix_c_source" != no ; then
3073 CFLAGS="$cf_trim_CFLAGS"
3074 CPPFLAGS="$cf_trim_CPPFLAGS"
3079 cf_new_extra_cppflags=
3081 for cf_add_cflags in $cf_cv_posix_c_source
3083 case $cf_fix_cppflags in
3085 case $cf_add_cflags in #(vi
3086 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3087 case $cf_add_cflags in
3089 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3091 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3092 && test -z "${cf_tst_cflags}" \
3093 && cf_fix_cppflags=yes
3095 if test $cf_fix_cppflags = yes ; then
3096 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3098 elif test "${cf_tst_cflags}" = "\"'" ; then
3099 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3105 *$cf_add_cflags) #(vi
3108 case $cf_add_cflags in #(vi
3110 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3112 CPPFLAGS=`echo "$CPPFLAGS" | \
3113 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3114 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3118 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3123 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3130 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3132 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3133 && test -z "${cf_tst_cflags}" \
3134 && cf_fix_cppflags=no
3139 if test -n "$cf_new_cflags" ; then
3141 CFLAGS="$CFLAGS $cf_new_cflags"
3144 if test -n "$cf_new_cppflags" ; then
3146 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3149 if test -n "$cf_new_extra_cppflags" ; then
3151 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3158 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3161 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3162 cf_xopen_source="-D_BSD_SOURCE"
3166 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3169 cf_xopen_source="-D_OSF_SOURCE"
3172 cf_xopen_source="-D_QNX_SOURCE"
3175 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3178 cf_xopen_source="-D__EXTENSIONS__"
3182 echo "$as_me:3182: checking if we should define _XOPEN_SOURCE" >&5
3183 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3184 if test "${cf_cv_xopen_source+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line 3189 "configure"
3190 #include "confdefs.h"
3194 #include <sys/types.h>
3200 #ifndef _XOPEN_SOURCE
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:3208: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>&5
3211 echo "$as_me:3211: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:3214: \"$ac_try\"") >&5
3217 echo "$as_me:3217: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 cf_cv_xopen_source=no
3221 echo "$as_me: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3225 cat >conftest.$ac_ext <<_ACEOF
3226 #line 3226 "configure"
3227 #include "confdefs.h"
3231 #include <sys/types.h>
3237 #ifdef _XOPEN_SOURCE
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:3248: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:3251: \"$ac_try\"") >&5
3254 echo "$as_me:3254: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 cf_cv_xopen_source=no
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3269 echo "$as_me:3269: result: $cf_cv_xopen_source" >&5
3270 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3272 if test "$cf_cv_xopen_source" != no ; then
3274 CFLAGS=`echo "$CFLAGS" | \
3275 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3276 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3278 CPPFLAGS=`echo "$CPPFLAGS" | \
3279 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3280 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3282 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3287 cf_new_extra_cppflags=
3289 for cf_add_cflags in $cf_temp_xopen_source
3291 case $cf_fix_cppflags in
3293 case $cf_add_cflags in #(vi
3294 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3295 case $cf_add_cflags in
3297 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3299 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3300 && test -z "${cf_tst_cflags}" \
3301 && cf_fix_cppflags=yes
3303 if test $cf_fix_cppflags = yes ; then
3304 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3306 elif test "${cf_tst_cflags}" = "\"'" ; then
3307 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3313 *$cf_add_cflags) #(vi
3316 case $cf_add_cflags in #(vi
3318 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3320 CPPFLAGS=`echo "$CPPFLAGS" | \
3321 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3322 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3326 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3331 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3340 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3341 && test -z "${cf_tst_cflags}" \
3342 && cf_fix_cppflags=no
3347 if test -n "$cf_new_cflags" ; then
3349 CFLAGS="$CFLAGS $cf_new_cflags"
3352 if test -n "$cf_new_cppflags" ; then
3354 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3357 if test -n "$cf_new_extra_cppflags" ; then
3359 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3364 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3366 cf_save_CFLAGS="$CFLAGS"
3367 cf_save_CPPFLAGS="$CPPFLAGS"
3369 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3370 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3371 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3373 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3374 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3375 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3377 echo "$as_me:3377: checking if we should define _POSIX_C_SOURCE" >&5
3378 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3379 if test "${cf_cv_posix_c_source+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 echo "${as_me:-configure}:3383: testing if the symbol is already defined go no further ..." 1>&5
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <sys/types.h>
3393 #ifndef _POSIX_C_SOURCE
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:3407: \"$ac_try\"") >&5
3410 echo "$as_me:3410: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 cf_cv_posix_c_source=no
3414 echo "$as_me: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 cf_want_posix_source=no
3417 case .$cf_POSIX_C_SOURCE in #(vi
3419 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3422 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3423 cf_want_posix_source=yes
3426 cf_want_posix_source=yes
3429 if test "$cf_want_posix_source" = yes ; then
3430 cat >conftest.$ac_ext <<_ACEOF
3431 #line 3431 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3438 #ifdef _POSIX_SOURCE
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3455 echo "$as_me:3455: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3466 echo "${as_me:-configure}:3466: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3468 CFLAGS="$cf_trim_CFLAGS"
3469 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3471 echo "${as_me:-configure}:3471: testing if the second compile does not leave our definition intact error ..." 1>&5
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line 3474 "configure"
3475 #include "confdefs.h"
3476 #include <sys/types.h>
3481 #ifndef _POSIX_C_SOURCE
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>&5
3492 echo "$as_me:3492: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:3495: \"$ac_try\"") >&5
3498 echo "$as_me:3498: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 cf_cv_posix_c_source=no
3506 rm -f conftest.$ac_objext conftest.$ac_ext
3507 CFLAGS="$cf_save_CFLAGS"
3508 CPPFLAGS="$cf_save_CPPFLAGS"
3511 rm -f conftest.$ac_objext conftest.$ac_ext
3514 echo "$as_me:3514: result: $cf_cv_posix_c_source" >&5
3515 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3517 if test "$cf_cv_posix_c_source" != no ; then
3518 CFLAGS="$cf_trim_CFLAGS"
3519 CPPFLAGS="$cf_trim_CPPFLAGS"
3524 cf_new_extra_cppflags=
3526 for cf_add_cflags in $cf_cv_posix_c_source
3528 case $cf_fix_cppflags in
3530 case $cf_add_cflags in #(vi
3531 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3532 case $cf_add_cflags in
3534 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3536 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3537 && test -z "${cf_tst_cflags}" \
3538 && cf_fix_cppflags=yes
3540 if test $cf_fix_cppflags = yes ; then
3541 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3543 elif test "${cf_tst_cflags}" = "\"'" ; then
3544 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3550 *$cf_add_cflags) #(vi
3553 case $cf_add_cflags in #(vi
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'`
3563 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3568 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3573 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3575 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3577 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3578 && test -z "${cf_tst_cflags}" \
3579 && cf_fix_cppflags=no
3584 if test -n "$cf_new_cflags" ; then
3586 CFLAGS="$CFLAGS $cf_new_cflags"
3589 if test -n "$cf_new_cppflags" ; then
3591 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3594 if test -n "$cf_new_extra_cppflags" ; then
3596 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3604 if test -n "$cf_xopen_source" ; then
3609 cf_new_extra_cppflags=
3611 for cf_add_cflags in $cf_xopen_source
3613 case $cf_fix_cppflags in
3615 case $cf_add_cflags in #(vi
3616 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3617 case $cf_add_cflags in
3619 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3621 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3622 && test -z "${cf_tst_cflags}" \
3623 && cf_fix_cppflags=yes
3625 if test $cf_fix_cppflags = yes ; then
3626 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3628 elif test "${cf_tst_cflags}" = "\"'" ; then
3629 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3635 *$cf_add_cflags) #(vi
3638 case $cf_add_cflags in #(vi
3640 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3642 CPPFLAGS=`echo "$CPPFLAGS" | \
3643 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3644 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3648 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3653 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3658 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3660 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3662 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3663 && test -z "${cf_tst_cflags}" \
3664 && cf_fix_cppflags=no
3669 if test -n "$cf_new_cflags" ; then
3671 CFLAGS="$CFLAGS $cf_new_cflags"
3674 if test -n "$cf_new_cppflags" ; then
3676 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3679 if test -n "$cf_new_extra_cppflags" ; then
3681 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3686 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3687 echo "$as_me:3687: checking if _XOPEN_SOURCE really is set" >&5
3688 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line 3690 "configure"
3691 #include "confdefs.h"
3697 #ifndef _XOPEN_SOURCE
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:3705: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:3711: \"$ac_try\"") >&5
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 cf_XOPEN_SOURCE_set=yes
3718 echo "$as_me: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 cf_XOPEN_SOURCE_set=no
3722 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:3723: result: $cf_XOPEN_SOURCE_set" >&5
3724 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3725 if test $cf_XOPEN_SOURCE_set = yes
3727 cat >conftest.$ac_ext <<_ACEOF
3728 #line 3728 "configure"
3729 #include "confdefs.h"
3735 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3742 rm -f conftest.$ac_objext
3743 if { (eval echo "$as_me:3743: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>&5
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (eval echo "$as_me:3749: \"$ac_try\"") >&5
3752 echo "$as_me:3752: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 cf_XOPEN_SOURCE_set_ok=yes
3756 echo "$as_me: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3758 cf_XOPEN_SOURCE_set_ok=no
3760 rm -f conftest.$ac_objext conftest.$ac_ext
3761 if test $cf_XOPEN_SOURCE_set_ok = no
3763 { echo "$as_me:3763: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3764 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3768 echo "$as_me:3768: checking if we should define _XOPEN_SOURCE" >&5
3769 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3770 if test "${cf_cv_xopen_source+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line 3775 "configure"
3776 #include "confdefs.h"
3780 #include <sys/types.h>
3786 #ifndef _XOPEN_SOURCE
3793 rm -f conftest.$ac_objext
3794 if { (eval echo "$as_me:3794: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>&5
3797 echo "$as_me:3797: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:3800: \"$ac_try\"") >&5
3803 echo "$as_me:3803: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 cf_cv_xopen_source=no
3807 echo "$as_me: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #line 3812 "configure"
3813 #include "confdefs.h"
3817 #include <sys/types.h>
3823 #ifdef _XOPEN_SOURCE
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_cv_xopen_source=no
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3855 echo "$as_me:3855: result: $cf_cv_xopen_source" >&5
3856 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3858 if test "$cf_cv_xopen_source" != no ; then
3860 CFLAGS=`echo "$CFLAGS" | \
3861 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3862 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3864 CPPFLAGS=`echo "$CPPFLAGS" | \
3865 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3866 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3868 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3873 cf_new_extra_cppflags=
3875 for cf_add_cflags in $cf_temp_xopen_source
3877 case $cf_fix_cppflags in
3879 case $cf_add_cflags in #(vi
3880 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3881 case $cf_add_cflags in
3883 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3885 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3886 && test -z "${cf_tst_cflags}" \
3887 && cf_fix_cppflags=yes
3889 if test $cf_fix_cppflags = yes ; then
3890 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3892 elif test "${cf_tst_cflags}" = "\"'" ; then
3893 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3899 *$cf_add_cflags) #(vi
3902 case $cf_add_cflags in #(vi
3904 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3906 CPPFLAGS=`echo "$CPPFLAGS" | \
3907 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3908 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3912 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3917 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3922 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3924 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3926 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3927 && test -z "${cf_tst_cflags}" \
3928 && cf_fix_cppflags=no
3933 if test -n "$cf_new_cflags" ; then
3935 CFLAGS="$CFLAGS $cf_new_cflags"
3938 if test -n "$cf_new_cppflags" ; then
3940 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3943 if test -n "$cf_new_extra_cppflags" ; then
3945 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3953 echo "$as_me:3953: checking for signal global datatype" >&5
3954 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3955 if test "${cf_cv_sig_atomic_t+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 "volatile sig_atomic_t" \
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line 3965 "configure"