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*|*-msys*|*-mingw*|*-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", pow(sin(x),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=""
2660 if test "$GCC" = yes
2662 cat > conftest.i <<EOF
2664 #define GCC_PRINTF 0
2669 #ifndef GCC_NORETURN
2670 #define GCC_NORETURN /* nothing */
2673 #define GCC_UNUSED /* nothing */
2676 if test "$GCC" = yes
2678 { echo "$as_me:2678: checking for $CC __attribute__ directives..." >&5
2679 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2681 "${as_me:-configure}"
2682 #include "confdefs.h"
2683 #include "conftest.h"
2684 #include "conftest.i"
2686 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2688 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2691 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2693 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2695 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2696 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2697 extern void foo(void) GCC_NORETURN;
2698 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2700 cf_printf_attribute=no
2701 cf_scanf_attribute=no
2702 for cf_attribute in scanf printf unused noreturn
2705 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2707 cf_directive="__attribute__(($cf_attribute))"
2708 echo "checking for $CC $cf_directive" 1>&5
2710 case $cf_attribute in #(vi
2712 cf_printf_attribute=yes
2713 cat >conftest.h <<EOF
2714 #define GCC_$cf_ATTRIBUTE 1
2718 cf_scanf_attribute=yes
2719 cat >conftest.h <<EOF
2720 #define GCC_$cf_ATTRIBUTE 1
2724 cat >conftest.h <<EOF
2725 #define GCC_$cf_ATTRIBUTE $cf_directive
2730 if { (eval echo "$as_me:2730: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>&5
2733 echo "$as_me:2733: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 test -n "$verbose" && echo "$as_me:2735: result: ... $cf_attribute" >&5
2736 echo "${ECHO_T}... $cf_attribute" >&6
2737 cat conftest.h >>confdefs.h
2738 case $cf_attribute in #(vi
2741 cat >>confdefs.h <<EOF
2742 #define GCC_NORETURN $cf_directive
2747 cf_value='/* nothing */'
2748 if test "$cf_printf_attribute" != no ; then
2749 cf_value='__attribute__((format(printf,fmt,var)))'
2751 cat >>confdefs.h <<\EOF
2752 #define GCC_PRINTF 1
2757 cat >>confdefs.h <<EOF
2758 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2763 cf_value='/* nothing */'
2764 if test "$cf_scanf_attribute" != no ; then
2765 cf_value='__attribute__((format(scanf,fmt,var)))'
2767 cat >>confdefs.h <<\EOF
2773 cat >>confdefs.h <<EOF
2774 #define GCC_SCANFLIKE(fmt,var) $cf_value
2780 cat >>confdefs.h <<EOF
2781 #define GCC_UNUSED $cf_directive
2789 fgrep define conftest.i >>confdefs.h
2795 cf_POSIX_C_SOURCE=199506L
2798 case $host_os in #(vi
2800 cf_xopen_source="-D_ALL_SOURCE"
2806 cf_xopen_source="-D_APPLE_C_SOURCE"
2809 cf_xopen_source="-D_DARWIN_C_SOURCE"
2812 freebsd*|dragonfly*) #(vi
2813 # 5.x headers associate
2814 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2815 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2816 cf_POSIX_C_SOURCE=200112L
2818 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2821 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2824 cf_xopen_source="-D_HPUX_SOURCE"
2827 cf_xopen_source="-D_SGI_SOURCE"
2830 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2832 echo "$as_me:2832: checking if we must define _GNU_SOURCE" >&5
2833 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2834 if test "${cf_cv_gnu_source+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line 2839 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2846 #ifndef _XOPEN_SOURCE
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:2860: \"$ac_try\"") >&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2870 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2874 #include <sys/types.h>
2879 #ifdef _XOPEN_SOURCE
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:2887: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>&5
2890 echo "$as_me:2890: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:2893: \"$ac_try\"") >&5
2896 echo "$as_me:2896: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2902 cf_cv_gnu_source=yes
2904 rm -f conftest.$ac_objext conftest.$ac_ext
2908 rm -f conftest.$ac_objext conftest.$ac_ext
2911 echo "$as_me:2911: result: $cf_cv_gnu_source" >&5
2912 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2913 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2917 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2920 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2922 cf_save_CFLAGS="$CFLAGS"
2923 cf_save_CPPFLAGS="$CPPFLAGS"
2925 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2926 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2927 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2929 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2930 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2931 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2933 echo "$as_me:2933: checking if we should define _POSIX_C_SOURCE" >&5
2934 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2935 if test "${cf_cv_posix_c_source+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 echo "${as_me:-configure}:2939: testing if the symbol is already defined go no further ..." 1>&5
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line 2942 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2949 #ifndef _POSIX_C_SOURCE
2956 rm -f conftest.$ac_objext
2957 if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
2958 (eval $ac_compile) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 cf_cv_posix_c_source=no
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 cf_want_posix_source=no
2973 case .$cf_POSIX_C_SOURCE in #(vi
2975 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2978 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2979 cf_want_posix_source=yes
2982 cf_want_posix_source=yes
2985 if test "$cf_want_posix_source" = yes ; then
2986 cat >conftest.$ac_ext <<_ACEOF
2987 #line 2987 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2994 #ifdef _POSIX_SOURCE
3001 rm -f conftest.$ac_objext
3002 if { (eval echo "$as_me:3002: \"$ac_compile\"") >&5
3003 (eval $ac_compile) 2>&5
3005 echo "$as_me:3005: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (eval echo "$as_me:3008: \"$ac_try\"") >&5
3011 echo "$as_me:3011: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3019 rm -f conftest.$ac_objext conftest.$ac_ext
3022 echo "${as_me:-configure}:3022: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3024 CFLAGS="$cf_trim_CFLAGS"
3025 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3027 echo "${as_me:-configure}:3027: testing if the second compile does not leave our definition intact error ..." 1>&5
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 #include <sys/types.h>
3037 #ifndef _POSIX_C_SOURCE
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:3045: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3048 echo "$as_me:3048: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:3051: \"$ac_try\"") >&5
3054 echo "$as_me:3054: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3058 echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 cf_cv_posix_c_source=no
3062 rm -f conftest.$ac_objext conftest.$ac_ext
3063 CFLAGS="$cf_save_CFLAGS"
3064 CPPFLAGS="$cf_save_CPPFLAGS"
3067 rm -f conftest.$ac_objext conftest.$ac_ext
3070 echo "$as_me:3070: result: $cf_cv_posix_c_source" >&5
3071 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3073 if test "$cf_cv_posix_c_source" != no ; then
3074 CFLAGS="$cf_trim_CFLAGS"
3075 CPPFLAGS="$cf_trim_CPPFLAGS"
3080 cf_new_extra_cppflags=
3082 for cf_add_cflags in $cf_cv_posix_c_source
3084 case $cf_fix_cppflags in
3086 case $cf_add_cflags in #(vi
3087 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3088 case $cf_add_cflags in
3090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3092 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3093 && test -z "${cf_tst_cflags}" \
3094 && cf_fix_cppflags=yes
3096 if test $cf_fix_cppflags = yes ; then
3097 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3099 elif test "${cf_tst_cflags}" = "\"'" ; then
3100 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3106 *$cf_add_cflags) #(vi
3109 case $cf_add_cflags in #(vi
3111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3113 CPPFLAGS=`echo "$CPPFLAGS" | \
3114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3119 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3124 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3129 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3133 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3134 && test -z "${cf_tst_cflags}" \
3135 && cf_fix_cppflags=no
3140 if test -n "$cf_new_cflags" ; then
3142 CFLAGS="$CFLAGS $cf_new_cflags"
3145 if test -n "$cf_new_cppflags" ; then
3147 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3150 if test -n "$cf_new_extra_cppflags" ; then
3152 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3159 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3162 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3163 cf_xopen_source="-D_BSD_SOURCE"
3167 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3170 cf_xopen_source="-D_OSF_SOURCE"
3173 cf_xopen_source="-D_QNX_SOURCE"
3176 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3179 cf_xopen_source="-D__EXTENSIONS__"
3183 echo "$as_me:3183: checking if we should define _XOPEN_SOURCE" >&5
3184 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3185 if test "${cf_cv_xopen_source+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 cat >conftest.$ac_ext <<_ACEOF
3190 #line 3190 "configure"
3191 #include "confdefs.h"
3195 #include <sys/types.h>
3201 #ifndef _XOPEN_SOURCE
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:3209: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3212 echo "$as_me:3212: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:3215: \"$ac_try\"") >&5
3218 echo "$as_me:3218: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 cf_cv_xopen_source=no
3222 echo "$as_me: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3226 cat >conftest.$ac_ext <<_ACEOF
3227 #line 3227 "configure"
3228 #include "confdefs.h"
3232 #include <sys/types.h>
3238 #ifdef _XOPEN_SOURCE
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:3246: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:3252: \"$ac_try\"") >&5
3255 echo "$as_me:3255: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 cf_cv_xopen_source=no
3259 echo "$as_me: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3270 echo "$as_me:3270: result: $cf_cv_xopen_source" >&5
3271 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3273 if test "$cf_cv_xopen_source" != no ; then
3275 CFLAGS=`echo "$CFLAGS" | \
3276 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3277 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3279 CPPFLAGS=`echo "$CPPFLAGS" | \
3280 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3281 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3283 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3288 cf_new_extra_cppflags=
3290 for cf_add_cflags in $cf_temp_xopen_source
3292 case $cf_fix_cppflags in
3294 case $cf_add_cflags in #(vi
3295 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3296 case $cf_add_cflags in
3298 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3300 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3301 && test -z "${cf_tst_cflags}" \
3302 && cf_fix_cppflags=yes
3304 if test $cf_fix_cppflags = yes ; then
3305 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3307 elif test "${cf_tst_cflags}" = "\"'" ; then
3308 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3314 *$cf_add_cflags) #(vi
3317 case $cf_add_cflags in #(vi
3319 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3321 CPPFLAGS=`echo "$CPPFLAGS" | \
3322 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3323 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3327 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3332 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3337 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3339 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3341 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3342 && test -z "${cf_tst_cflags}" \
3343 && cf_fix_cppflags=no
3348 if test -n "$cf_new_cflags" ; then
3350 CFLAGS="$CFLAGS $cf_new_cflags"
3353 if test -n "$cf_new_cppflags" ; then
3355 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3358 if test -n "$cf_new_extra_cppflags" ; then
3360 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3365 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3367 cf_save_CFLAGS="$CFLAGS"
3368 cf_save_CPPFLAGS="$CPPFLAGS"
3370 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3371 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3372 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3374 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3375 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3376 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3378 echo "$as_me:3378: checking if we should define _POSIX_C_SOURCE" >&5
3379 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3380 if test "${cf_cv_posix_c_source+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 echo "${as_me:-configure}:3384: testing if the symbol is already defined go no further ..." 1>&5
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line 3387 "configure"
3388 #include "confdefs.h"
3389 #include <sys/types.h>
3394 #ifndef _POSIX_C_SOURCE
3401 rm -f conftest.$ac_objext
3402 if { (eval echo "$as_me:3402: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>&5
3405 echo "$as_me:3405: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:3408: \"$ac_try\"") >&5
3411 echo "$as_me:3411: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 cf_cv_posix_c_source=no
3415 echo "$as_me: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417 cf_want_posix_source=no
3418 case .$cf_POSIX_C_SOURCE in #(vi
3420 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3423 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3424 cf_want_posix_source=yes
3427 cf_want_posix_source=yes
3430 if test "$cf_want_posix_source" = yes ; then
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line 3432 "configure"
3433 #include "confdefs.h"
3434 #include <sys/types.h>
3439 #ifdef _POSIX_SOURCE
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:3447: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3450 echo "$as_me:3450: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:3453: \"$ac_try\"") >&5
3456 echo "$as_me:3456: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3467 echo "${as_me:-configure}:3467: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3469 CFLAGS="$cf_trim_CFLAGS"
3470 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3472 echo "${as_me:-configure}:3472: testing if the second compile does not leave our definition intact error ..." 1>&5
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #line 3475 "configure"
3476 #include "confdefs.h"
3477 #include <sys/types.h>
3482 #ifndef _POSIX_C_SOURCE
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:3490: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>&5
3493 echo "$as_me:3493: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:3496: \"$ac_try\"") >&5
3499 echo "$as_me:3499: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 echo "$as_me: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 cf_cv_posix_c_source=no
3507 rm -f conftest.$ac_objext conftest.$ac_ext
3508 CFLAGS="$cf_save_CFLAGS"
3509 CPPFLAGS="$cf_save_CPPFLAGS"
3512 rm -f conftest.$ac_objext conftest.$ac_ext
3515 echo "$as_me:3515: result: $cf_cv_posix_c_source" >&5
3516 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3518 if test "$cf_cv_posix_c_source" != no ; then
3519 CFLAGS="$cf_trim_CFLAGS"
3520 CPPFLAGS="$cf_trim_CPPFLAGS"
3525 cf_new_extra_cppflags=
3527 for cf_add_cflags in $cf_cv_posix_c_source
3529 case $cf_fix_cppflags in
3531 case $cf_add_cflags in #(vi
3532 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3533 case $cf_add_cflags in
3535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3537 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3538 && test -z "${cf_tst_cflags}" \
3539 && cf_fix_cppflags=yes
3541 if test $cf_fix_cppflags = yes ; then
3542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3544 elif test "${cf_tst_cflags}" = "\"'" ; then
3545 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3551 *$cf_add_cflags) #(vi
3554 case $cf_add_cflags in #(vi
3556 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3558 CPPFLAGS=`echo "$CPPFLAGS" | \
3559 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3560 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3564 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3569 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3578 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3579 && test -z "${cf_tst_cflags}" \
3580 && cf_fix_cppflags=no
3585 if test -n "$cf_new_cflags" ; then
3587 CFLAGS="$CFLAGS $cf_new_cflags"
3590 if test -n "$cf_new_cppflags" ; then
3592 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3595 if test -n "$cf_new_extra_cppflags" ; then
3597 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3605 if test -n "$cf_xopen_source" ; then
3610 cf_new_extra_cppflags=
3612 for cf_add_cflags in $cf_xopen_source
3614 case $cf_fix_cppflags in
3616 case $cf_add_cflags in #(vi
3617 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3618 case $cf_add_cflags in
3620 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3622 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3623 && test -z "${cf_tst_cflags}" \
3624 && cf_fix_cppflags=yes
3626 if test $cf_fix_cppflags = yes ; then
3627 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3629 elif test "${cf_tst_cflags}" = "\"'" ; then
3630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3636 *$cf_add_cflags) #(vi
3639 case $cf_add_cflags in #(vi
3641 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3643 CPPFLAGS=`echo "$CPPFLAGS" | \
3644 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3645 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3649 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3654 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3659 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3661 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3663 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3664 && test -z "${cf_tst_cflags}" \
3665 && cf_fix_cppflags=no
3670 if test -n "$cf_new_cflags" ; then
3672 CFLAGS="$CFLAGS $cf_new_cflags"
3675 if test -n "$cf_new_cppflags" ; then
3677 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3680 if test -n "$cf_new_extra_cppflags" ; then
3682 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3687 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3688 echo "$as_me:3688: checking if _XOPEN_SOURCE really is set" >&5
3689 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line 3691 "configure"
3692 #include "confdefs.h"
3698 #ifndef _XOPEN_SOURCE
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:3706: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>&5
3709 echo "$as_me:3709: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:3712: \"$ac_try\"") >&5
3715 echo "$as_me:3715: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 cf_XOPEN_SOURCE_set=yes
3719 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 cf_XOPEN_SOURCE_set=no
3723 rm -f conftest.$ac_objext conftest.$ac_ext
3724 echo "$as_me:3724: result: $cf_XOPEN_SOURCE_set" >&5
3725 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3726 if test $cf_XOPEN_SOURCE_set = yes
3728 cat >conftest.$ac_ext <<_ACEOF
3729 #line 3729 "configure"
3730 #include "confdefs.h"
3736 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:3744: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>&5
3747 echo "$as_me:3747: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:3750: \"$ac_try\"") >&5
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 cf_XOPEN_SOURCE_set_ok=yes
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 cf_XOPEN_SOURCE_set_ok=no
3761 rm -f conftest.$ac_objext conftest.$ac_ext
3762 if test $cf_XOPEN_SOURCE_set_ok = no
3764 { echo "$as_me:3764: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3765 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3769 echo "$as_me:3769: checking if we should define _XOPEN_SOURCE" >&5
3770 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3771 if test "${cf_cv_xopen_source+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line 3776 "configure"
3777 #include "confdefs.h"
3781 #include <sys/types.h>
3787 #ifndef _XOPEN_SOURCE
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:3795: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>&5
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:3801: \"$ac_try\"") >&5
3804 echo "$as_me:3804: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 cf_cv_xopen_source=no
3808 echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3812 cat >conftest.$ac_ext <<_ACEOF
3813 #line 3813 "configure"
3814 #include "confdefs.h"
3818 #include <sys/types.h>
3824 #ifdef _XOPEN_SOURCE
3831 rm -f conftest.$ac_objext
3832 if { (eval echo "$as_me:3832: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>&5
3835 echo "$as_me:3835: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:3838: \"$ac_try\"") >&5
3841 echo "$as_me:3841: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 cf_cv_xopen_source=no
3845 echo "$as_me: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3849 rm -f conftest.$ac_objext conftest.$ac_ext
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:3856: result: $cf_cv_xopen_source" >&5
3857 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3859 if test "$cf_cv_xopen_source" != no ; then
3861 CFLAGS=`echo "$CFLAGS" | \
3862 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3863 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3865 CPPFLAGS=`echo "$CPPFLAGS" | \
3866 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3867 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3869 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3874 cf_new_extra_cppflags=
3876 for cf_add_cflags in $cf_temp_xopen_source
3878 case $cf_fix_cppflags in
3880 case $cf_add_cflags in #(vi
3881 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3882 case $cf_add_cflags in
3884 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3886 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3887 && test -z "${cf_tst_cflags}" \
3888 && cf_fix_cppflags=yes
3890 if test $cf_fix_cppflags = yes ; then
3891 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3893 elif test "${cf_tst_cflags}" = "\"'" ; then
3894 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3900 *$cf_add_cflags) #(vi
3903 case $cf_add_cflags in #(vi
3905 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3907 CPPFLAGS=`echo "$CPPFLAGS" | \
3908 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3909 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3913 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3918 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3923 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3925 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3927 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3928 && test -z "${cf_tst_cflags}" \
3929 && cf_fix_cppflags=no
3934 if test -n "$cf_new_cflags" ; then
3936 CFLAGS="$CFLAGS $cf_new_cflags"
3939 if test -n "$cf_new_cppflags" ; then
3941 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3944 if test -n "$cf_new_extra_cppflags" ; then
3946 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3954 echo "$as_me:3954: checking for signal global datatype" >&5
3955 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3956 if test "${cf_cv_sig_atomic_t+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 "volatile sig_atomic_t" \
3965 cat >conftest.$ac_ext <<_ACEOF
3966 #line 3966 "configure"
3967 #include "confdefs.h"
3969 #include <sys/types.h>
3975 static void handler(int sig)
3982 signal(SIGINT, handler);
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:3989: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:3995: \"$ac_try\"") >&5
3998 echo "$as_me:3998: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 cf_cv_sig_atomic_t=$cf_type
4002 echo "$as_me: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4004 cf_cv_sig_atomic_t=no
4006 rm -f conftest.$ac_objext conftest.$ac_ext
4007 test "$cf_cv_sig_atomic_t" != no && break
4012 echo "$as_me:4012: result: $cf_cv_sig_atomic_t" >&5
4013 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4014 test "$cf_cv_sig_atomic_t" != no &&
4015 cat >>confdefs.h <<EOF
4016 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4019 echo "$as_me:4019: checking if you want to use pkg-config" >&5
4020 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4022 # Check whether --with-pkg-config or --without-pkg-config was given.
4023 if test "${with_pkg_config+set}" = set; then
4024 withval="$with_pkg_config"
4025 cf_pkg_config=$withval
4029 echo "$as_me:4029: result: $cf_pkg_config" >&5
4030 echo "${ECHO_T}$cf_pkg_config" >&6
4032 case $cf_pkg_config in #(vi
4038 if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4040 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4041 echo "$as_me:4041: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4051 ac_save_IFS=$IFS; IFS=$ac_path_separator
4053 for ac_dir in $ac_dummy; do
4055 test -z "$ac_dir" && ac_dir=.
4056 if $as_executable_p "$ac_dir/$ac_word"; then
4057 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4058 echo "$as_me:4058: found $ac_dir/$ac_word" >&5
4066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4068 if test -n "$PKG_CONFIG"; then
4069 echo "$as_me:4069: result: $PKG_CONFIG" >&5
4070 echo "${ECHO_T}$PKG_CONFIG" >&6
4072 echo "$as_me:4072: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4077 if test -z "$ac_cv_path_PKG_CONFIG"; then
4078 ac_pt_PKG_CONFIG=$PKG_CONFIG
4079 # Extract the first word of "pkg-config", so it can be a program name with args.
4080 set dummy pkg-config; ac_word=$2
4081 echo "$as_me:4081: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 case $ac_pt_PKG_CONFIG in
4088 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4091 ac_save_IFS=$IFS; IFS=$ac_path_separator
4093 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if $as_executable_p "$ac_dir/$ac_word"; then
4097 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4098 echo "$as_me:4098: found $ac_dir/$ac_word" >&5
4103 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4107 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4109 if test -n "$ac_pt_PKG_CONFIG"; then
4110 echo "$as_me:4110: result: $ac_pt_PKG_CONFIG" >&5
4111 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4113 echo "$as_me:4113: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 PKG_CONFIG=$ac_pt_PKG_CONFIG
4119 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4128 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4129 if test "$PKG_CONFIG" != none ; then
4131 if test "x$prefix" != xNONE; then
4132 cf_path_syntax="$prefix"
4134 cf_path_syntax="$ac_default_prefix"
4137 case ".$PKG_CONFIG" in #(vi
4138 .\$\(*\)*|.\'*\'*) #(vi
4142 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4144 .\${*prefix}*|.\${*dir}*) #(vi
4145 eval PKG_CONFIG="$PKG_CONFIG"
4146 case ".$PKG_CONFIG" in #(vi
4148 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4153 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4156 { { echo "$as_me:4156: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4157 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4158 { (exit 1); exit 1; }; }
4164 echo "$as_me:4164: checking if you want to see long compiling messages" >&5
4165 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4167 # Check whether --enable-echo or --disable-echo was given.
4168 if test "${enable_echo+set}" = set; then
4169 enableval="$enable_echo"
4170 test "$enableval" != no && enableval=yes
4171 if test "$enableval" != "yes" ; then
4174 ECHO_LD='@echo linking $@;'
4175 RULE_CC='@echo compiling $<'
4176 SHOW_CC='@echo compiling $@'
4198 echo "$as_me:4198: result: $enableval" >&5
4199 echo "${ECHO_T}$enableval" >&6
4201 echo "$as_me:4201: checking for ncurses wrap-prefix" >&5
4202 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4204 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4205 if test "${with_ncurses_wrap_prefix+set}" = set; then
4206 withval="$with_ncurses_wrap_prefix"
4207 NCURSES_WRAP_PREFIX=$withval
4209 NCURSES_WRAP_PREFIX=_nc_
4211 echo "$as_me:4211: result: $NCURSES_WRAP_PREFIX" >&5
4212 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4214 echo "$as_me:4214: checking if you want to check for wide-character functions" >&5
4215 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4217 # Check whether --enable-widec or --disable-widec was given.
4218 if test "${enable_widec+set}" = set; then
4219 enableval="$enable_widec"
4220 test "$enableval" != no && enableval=yes
4221 if test "$enableval" != "yes" ; then
4231 echo "$as_me:4231: result: $cf_enable_widec" >&5
4232 echo "${ECHO_T}$cf_enable_widec" >&6
4234 echo "$as_me:4234: checking for specific curses-directory" >&5
4235 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4237 # Check whether --with-curses-dir or --without-curses-dir was given.
4238 if test "${with_curses_dir+set}" = set; then
4239 withval="$with_curses_dir"
4240 cf_cv_curses_dir=$withval
4244 echo "$as_me:4244: result: $cf_cv_curses_dir" >&5
4245 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4247 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4250 if test "x$prefix" != xNONE; then
4251 cf_path_syntax="$prefix"
4253 cf_path_syntax="$ac_default_prefix"
4256 case ".$withval" in #(vi
4257 .\$\(*\)*|.\'*\'*) #(vi
4261 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4263 .\${*prefix}*|.\${*dir}*) #(vi
4264 eval withval="$withval"
4265 case ".$withval" in #(vi
4267 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4272 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4275 { { echo "$as_me:4275: error: expected a pathname, not \"$withval\"" >&5
4276 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4277 { (exit 1); exit 1; }; }
4281 if test -d "$cf_cv_curses_dir"
4284 if test -n "$cf_cv_curses_dir/include" ; then
4285 for cf_add_incdir in $cf_cv_curses_dir/include
4287 while test $cf_add_incdir != /usr/include
4289 if test -d $cf_add_incdir
4292 if test -n "$CFLAGS$CPPFLAGS" ; then
4293 # a loop is needed to ensure we can add subdirs of existing dirs
4294 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4295 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4296 cf_have_incdir=yes; break
4301 if test "$cf_have_incdir" = no ; then
4302 if test "$cf_add_incdir" = /usr/local/include ; then
4303 if test "$GCC" = yes
4305 cf_save_CPPFLAGS=$CPPFLAGS
4306 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line 4308 "configure"
4309 #include "confdefs.h"
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:4320: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4323 echo "$as_me:4323: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:4326: \"$ac_try\"") >&5
4329 echo "$as_me:4329: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4333 echo "$as_me: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4338 CPPFLAGS=$cf_save_CPPFLAGS
4343 if test "$cf_have_incdir" = no ; then
4344 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4346 echo "${as_me:-configure}:4346: testing adding $cf_add_incdir to include-path ..." 1>&5
4348 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4350 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4351 test "$cf_top_incdir" = "$cf_add_incdir" && break
4352 cf_add_incdir="$cf_top_incdir"
4361 if test -n "$cf_cv_curses_dir/lib" ; then
4362 for cf_add_libdir in $cf_cv_curses_dir/lib
4364 if test $cf_add_libdir = /usr/lib ; then
4366 elif test -d $cf_add_libdir
4369 if test -n "$LDFLAGS$LIBS" ; then
4370 # a loop is needed to ensure we can add subdirs of existing dirs
4371 for cf_test_libdir in $LDFLAGS $LIBS ; do
4372 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4373 cf_have_libdir=yes; break
4377 if test "$cf_have_libdir" = no ; then
4378 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4380 echo "${as_me:-configure}:4380: testing adding $cf_add_libdir to library-path ..." 1>&5
4382 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4393 echo "$as_me:4393: checking for specified curses library type" >&5
4394 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4396 # Check whether --with-ncursesw or --without-ncursesw was given.
4397 if test "${with_ncursesw+set}" = set; then
4398 withval="$with_ncursesw"
4399 cf_cv_screen=ncursesw
4402 # Check whether --with-ncurses or --without-ncurses was given.
4403 if test "${with_ncurses+set}" = set; then
4404 withval="$with_ncurses"
4405 cf_cv_screen=ncurses
4408 # Check whether --with-pdcurses or --without-pdcurses was given.
4409 if test "${with_pdcurses+set}" = set; then
4410 withval="$with_pdcurses"
4411 cf_cv_screen=pdcurses
4414 # Check whether --with-curses-colr or --without-curses-colr was given.
4415 if test "${with_curses_colr+set}" = set; then
4416 withval="$with_curses_colr"
4417 cf_cv_screen=curses_colr
4420 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4421 if test "${with_curses_5lib+set}" = set; then
4422 withval="$with_curses_5lib"
4423 cf_cv_screen=curses_5lib
4430 echo "$as_me:4430: result: $cf_cv_screen" >&5
4431 echo "${ECHO_T}$cf_cv_screen" >&6
4433 case $cf_cv_screen in #(vi
4434 curses|curses_*) #(vi
4436 echo "$as_me:4436: checking for extra include directories" >&5
4437 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4438 if test "${cf_cv_curses_incdir+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 cf_cv_curses_incdir=no
4443 case $host_os in #(vi
4445 if test "x$cf_cv_screen" = "xcurses_colr"
4447 test -d /usr/include/curses_colr && \
4448 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4452 if test "x$cf_cv_screen" = "xcurses_5lib"
4454 test -d /usr/5lib && \
4455 test -d /usr/5include && \
4456 cf_cv_curses_incdir="-I/usr/5include"
4462 echo "$as_me:4462: result: $cf_cv_curses_incdir" >&5
4463 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4464 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4466 echo "$as_me:4466: checking if we have identified curses headers" >&5
4467 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4468 if test "${cf_cv_ncurses_header+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cf_cv_ncurses_header=none
4475 curses.h ncurses/ncurses.h ncurses/curses.h
4477 cat >conftest.$ac_ext <<_ACEOF
4478 #line 4478 "configure"
4479 #include "confdefs.h"
4480 #include <${cf_header}>
4484 initscr(); tgoto("?", 0,0)
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:4490: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>&5
4493 echo "$as_me:4493: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest.$ac_objext'
4496 { (eval echo "$as_me:4496: \"$ac_try\"") >&5
4499 echo "$as_me:4499: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 cf_cv_ncurses_header=$cf_header; break
4503 echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 rm -f conftest.$ac_objext conftest.$ac_ext
4510 echo "$as_me:4510: result: $cf_cv_ncurses_header" >&5
4511 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4513 if test "$cf_cv_ncurses_header" = none ; then
4514 { { echo "$as_me:4514: error: No curses header-files found" >&5
4515 echo "$as_me: error: No curses header-files found" >&2;}
4516 { (exit 1); exit 1; }; }
4519 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4521 for ac_header in $cf_cv_ncurses_header
4523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4524 echo "$as_me:4524: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4532 #include <$ac_header>
4534 if { (eval echo "$as_me:4534: \"$ac_cpp conftest.$ac_ext\"") >&5
4535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4537 egrep -v '^ *\+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); } >/dev/null; then
4542 if test -s conftest.err; then
4543 ac_cpp_err=$ac_c_preproc_warn_flag
4550 if test -z "$ac_cpp_err"; then
4551 eval "$as_ac_Header=yes"
4553 echo "$as_me: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 eval "$as_ac_Header=no"
4557 rm -f conftest.err conftest.$ac_ext
4559 echo "$as_me:4559: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<EOF
4563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 echo "$as_me:4569: checking for terminfo header" >&5
4570 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4571 if test "${cf_cv_term_header+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 case ${cf_cv_ncurses_header} in #(vi
4576 */ncurses.h|*/ncursesw.h) #(vi
4577 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4580 cf_term_header=term.h
4584 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line 4587 "configure"
4588 #include "confdefs.h"
4590 #include <${cf_cv_ncurses_header:-curses.h}>
4596 int x = auto_left_margin
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:4602: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4605 echo "$as_me:4605: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:4608: \"$ac_try\"") >&5
4611 echo "$as_me:4611: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4614 cf_cv_term_header="$cf_test"
4616 echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 cf_cv_term_header=unknown
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4623 test "$cf_cv_term_header" != unknown && break
4627 echo "$as_me:4627: result: $cf_cv_term_header" >&5
4628 echo "${ECHO_T}$cf_cv_term_header" >&6
4630 # Set definitions to allow ifdef'ing to accommodate subdirectories
4632 case $cf_cv_term_header in # (vi
4635 cat >>confdefs.h <<\EOF
4636 #define HAVE_TERM_H 1
4642 case $cf_cv_term_header in # (vi
4643 ncurses/term.h) #(vi
4645 cat >>confdefs.h <<\EOF
4646 #define HAVE_NCURSES_TERM_H 1
4652 cat >>confdefs.h <<\EOF
4653 #define HAVE_NCURSESW_TERM_H 1
4659 echo "$as_me:4659: checking for ncurses version" >&5
4660 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4661 if test "${cf_cv_ncurses_version+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 cf_cv_ncurses_version=no
4668 if test "$cross_compiling" = yes; then
4670 # This will not work if the preprocessor splits the line after the
4671 # Autoconf token. The 'unproto' program does that.
4672 cat > conftest.$ac_ext <<EOF
4673 #include <${cf_cv_ncurses_header:-curses.h}>
4675 #ifdef NCURSES_VERSION
4676 Autoconf NCURSES_VERSION
4684 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4685 { (eval echo "$as_me:4685: \"$cf_try\"") >&5
4688 echo "$as_me:4688: \$? = $ac_status" >&5
4689 (exit $ac_status); }
4690 if test -f conftest.out ; then
4691 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4692 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line 4698 "configure"
4699 #include "confdefs.h"
4701 #include <${cf_cv_ncurses_header:-curses.h}>
4705 FILE *fp = fopen("$cf_tempfile", "w");
4706 #ifdef NCURSES_VERSION
4707 # ifdef NCURSES_VERSION_PATCH
4708 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4710 fprintf(fp, "%s\n", NCURSES_VERSION);
4714 fprintf(fp, "old\n");
4719 ${cf_cv_main_return:-return}(0);
4722 rm -f conftest$ac_exeext
4723 if { (eval echo "$as_me:4723: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>&5
4726 echo "$as_me:4726: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4728 { (eval echo "$as_me:4728: \"$ac_try\"") >&5
4731 echo "$as_me:4731: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4734 cf_cv_ncurses_version=`cat $cf_tempfile`
4736 echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:4745: result: $cf_cv_ncurses_version" >&5
4746 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4747 test "$cf_cv_ncurses_version" = no ||
4748 cat >>confdefs.h <<\EOF
4752 echo "$as_me:4752: checking if we have identified curses libraries" >&5
4753 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4757 #include <${cf_cv_ncurses_header:-curses.h}>
4761 initscr(); tgoto("?", 0,0)
4766 rm -f conftest.$ac_objext conftest$ac_exeext
4767 if { (eval echo "$as_me:4767: \"$ac_link\"") >&5
4768 (eval $ac_link) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:4773: \"$ac_try\"") >&5
4776 echo "$as_me:4776: \$?&