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-Xaw3dxft link with Xaw 3d xft library
671 --with-neXtaw link with neXT Athena library
672 --with-XawPlus link with Athena-Plus library
673 --with-x use the X Window System
674 Testing/development Options:
675 --enable-warnings test: turn on gcc compiler warnings
676 --with-dmalloc test: use Gray Watson's dmalloc library
677 --with-dbmalloc test: use Conor Cahill's dbmalloc library
678 --with-valgrind test: use valgrind
679 --disable-leaks test: free permanent memory, analyze leaks
680 --disable-rpath-hack don't add rpath options for additional libraries
682 Some influential environment variables:
683 CC C compiler command
684 CFLAGS C compiler flags
685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
686 nonstandard directory <lib dir>
687 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
688 headers in a nonstandard directory <include dir>
691 Use these variables to override the choices made by `configure' or to help
692 it to find libraries and programs with nonstandard names/locations.
697 if test "$ac_init_help" = "recursive"; then
698 # If there are subdirs, report their specific --help.
700 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
702 # A "../" for each directory in /$ac_subdir.
703 ac_dots=`echo $ac_subdir |
704 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
707 .) # No --srcdir option. We are building in place.
708 ac_sub_srcdir=$srcdir ;;
709 [\\/]* | ?:[\\/]* ) # Absolute path.
710 ac_sub_srcdir=$srcdir/$ac_subdir ;;
712 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
715 # Check for guested configure; otherwise get Cygnus style configure.
716 if test -f $ac_sub_srcdir/configure.gnu; then
718 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
719 elif test -f $ac_sub_srcdir/configure; then
721 $SHELL $ac_sub_srcdir/configure --help=recursive
722 elif test -f $ac_sub_srcdir/configure.ac ||
723 test -f $ac_sub_srcdir/configure.in; then
727 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
733 test -n "$ac_init_help" && exit 0
734 if $ac_init_version; then
737 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
738 Free Software Foundation, Inc.
739 This configure script is free software; the Free Software Foundation
740 gives unlimited permission to copy, distribute and modify it.
746 This file contains any messages produced by compilers while
747 running configure, to aid debugging if configure makes a mistake.
749 It was created by $as_me, which was
750 generated by GNU Autoconf 2.52.20121002. Invocation command line was
761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
773 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
790 # Keep a trace of the command line.
791 # Strip out --no-create and --no-recursion so they do not pile up.
792 # Also quote any args containing shell meta-characters.
798 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
799 | --no-cr | --no-c) ;;
800 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
801 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
802 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
803 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
804 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
806 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
809 # Get rid of the leading space.
812 # When interrupted or exit'd, cleanup temporary files, and complete
813 # config.log. We remove comments because anyway the quotes in there
814 # would cause problems or look ugly.
816 # Save into config.log some information that might help in debugging.
818 echo "## ----------------- ##" >&5
819 echo "## Cache variables. ##" >&5
820 echo "## ----------------- ##" >&5
822 # The following way of writing the cache mishandles newlines in values,
825 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
828 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
833 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
837 sed "/^$/d" confdefs.h >conftest.log
838 if test -s conftest.log; then
840 echo "## ------------ ##" >&5
841 echo "## confdefs.h. ##" >&5
842 echo "## ------------ ##" >&5
847 test "$ac_signal" != 0 &&
848 echo "$as_me: caught signal $ac_signal" >&5
849 echo "$as_me: exit $exit_status" >&5
850 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
853 for ac_signal in 1 2 13 15; do
854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
859 rm -rf conftest* confdefs.h
860 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
863 # Let the site file select an alternate cache file if it wants to.
864 # Prefer explicitly selected file to automatically selected ones.
865 if test -z "$CONFIG_SITE"; then
866 if test "x$prefix" != xNONE; then
867 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
869 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
872 for ac_site_file in $CONFIG_SITE; do
873 if test -r "$ac_site_file"; then
874 { echo "$as_me:874: loading site script $ac_site_file" >&5
875 echo "$as_me: loading site script $ac_site_file" >&6;}
876 cat "$ac_site_file" >&5
881 if test -r "$cache_file"; then
882 # Some versions of bash will fail to source /dev/null (special
883 # files actually), so we avoid doing that.
884 if test -f "$cache_file"; then
885 { echo "$as_me:885: loading cache $cache_file" >&5
886 echo "$as_me: loading cache $cache_file" >&6;}
888 [\\/]* | ?:[\\/]* ) . $cache_file;;
893 { echo "$as_me:893: creating cache $cache_file" >&5
894 echo "$as_me: creating cache $cache_file" >&6;}
898 # Check that the precious variables saved in the cache have kept the same
900 ac_cache_corrupted=false
901 for ac_var in `(set) 2>&1 |
902 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
904 eval ac_new_set=\$ac_env_${ac_var}_set
905 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
906 eval ac_new_val="\$ac_env_${ac_var}_value"
907 case $ac_old_set,$ac_new_set in
909 { echo "$as_me:909: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
910 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
911 ac_cache_corrupted=: ;;
913 { echo "$as_me:913: error: \`$ac_var' was not set in the previous run" >&5
914 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
915 ac_cache_corrupted=: ;;
918 if test "x$ac_old_val" != "x$ac_new_val"; then
919 { echo "$as_me:919: error: \`$ac_var' has changed since the previous run:" >&5
920 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
921 { echo "$as_me:921: former value: $ac_old_val" >&5
922 echo "$as_me: former value: $ac_old_val" >&2;}
923 { echo "$as_me:923: current value: $ac_new_val" >&5
924 echo "$as_me: current value: $ac_new_val" >&2;}
928 # Pass precious variables to config.status. It doesn't matter if
929 # we pass some twice (in addition to the command line arguments).
930 if test "$ac_new_set" = set; then
932 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
933 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
934 ac_configure_args="$ac_configure_args '$ac_arg'"
936 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
941 if $ac_cache_corrupted; then
942 { echo "$as_me:942: error: changes in the environment can compromise the build" >&5
943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
944 { { echo "$as_me:944: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
946 { (exit 1); exit 1; }; }
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
954 ac_main_return=return
956 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
957 *c*,-n*) ECHO_N= ECHO_C='
959 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
960 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
962 echo "#! $SHELL" >conftest.sh
963 echo "exit 0" >>conftest.sh
965 if { (echo "$as_me:965: PATH=\".;.\"; conftest.sh") >&5
966 (PATH=".;."; conftest.sh) 2>&5
968 echo "$as_me:968: \$? = $ac_status" >&5
969 (exit $ac_status); }; then
970 ac_path_separator=';'
974 PATH_SEPARATOR="$ac_path_separator"
977 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
979 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
981 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
984 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
985 if test -f $ac_dir/install-sh; then
987 ac_install_sh="$ac_aux_dir/install-sh -c"
989 elif test -f $ac_dir/install.sh; then
991 ac_install_sh="$ac_aux_dir/install.sh -c"
993 elif test -f $ac_dir/shtool; then
995 ac_install_sh="$ac_aux_dir/shtool install -c"
999 if test -z "$ac_aux_dir"; then
1000 { { echo "$as_me:1000: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1001 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1002 { (exit 1); exit 1; }; }
1004 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1005 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1006 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1008 # Make sure we can run config.sub.
1009 $ac_config_sub sun4 >/dev/null 2>&1 ||
1010 { { echo "$as_me:1010: error: cannot run $ac_config_sub" >&5
1011 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1012 { (exit 1); exit 1; }; }
1014 echo "$as_me:1014: checking build system type" >&5
1015 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1016 if test "${ac_cv_build+set}" = set; then
1017 echo $ECHO_N "(cached) $ECHO_C" >&6
1019 ac_cv_build_alias=$build_alias
1020 test -z "$ac_cv_build_alias" &&
1021 ac_cv_build_alias=`$ac_config_guess`
1022 test -z "$ac_cv_build_alias" &&
1023 { { echo "$as_me:1023: error: cannot guess build type; you must specify one" >&5
1024 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1025 { (exit 1); exit 1; }; }
1026 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1027 { { echo "$as_me:1027: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1028 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1029 { (exit 1); exit 1; }; }
1032 echo "$as_me:1032: result: $ac_cv_build" >&5
1033 echo "${ECHO_T}$ac_cv_build" >&6
1035 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1040 echo "$as_me:1040: checking host system type" >&5
1041 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1042 if test "${ac_cv_host+set}" = set; then
1043 echo $ECHO_N "(cached) $ECHO_C" >&6
1045 ac_cv_host_alias=$host_alias
1046 test -z "$ac_cv_host_alias" &&
1047 ac_cv_host_alias=$ac_cv_build_alias
1048 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1049 { { echo "$as_me:1049: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1050 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1051 { (exit 1); exit 1; }; }
1054 echo "$as_me:1054: result: $ac_cv_host" >&5
1055 echo "${ECHO_T}$ac_cv_host" >&6
1057 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1061 system_name="$host_os"
1063 system_name="`(uname -s -r) 2>/dev/null`"
1064 if test -z "$system_name" ; then
1065 system_name="`(hostname) 2>/dev/null`"
1068 test -n "$system_name" &&
1069 cat >>confdefs.h <<EOF
1070 #define SYSTEM_NAME "$system_name"
1073 if test "${cf_cv_system_name+set}" = set; then
1074 echo $ECHO_N "(cached) $ECHO_C" >&6
1076 cf_cv_system_name="$system_name"
1079 test -z "$system_name" && system_name="$cf_cv_system_name"
1080 test -n "$cf_cv_system_name" && echo "$as_me:1080: result: Configuring for $cf_cv_system_name" >&5
1081 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1083 if test ".$system_name" != ".$cf_cv_system_name" ; then
1084 echo "$as_me:1084: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1085 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1086 { { echo "$as_me:1086: error: \"Please remove config.cache and try again.\"" >&5
1087 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1088 { (exit 1); exit 1; }; }
1091 test "$program_prefix" != NONE &&
1092 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1093 # Use a double $ so make ignores it.
1094 test "$program_suffix" != NONE &&
1095 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1096 # Double any \ or $. echo might interpret backslashes.
1097 # By default was `s,x,x', remove it if useless.
1098 cat <<\_ACEOF >conftest.sed
1099 s/[\\$]/&&/g;s/;s,x,x,$//
1101 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1104 echo "$as_me:1104: checking whether ${MAKE-make} sets \${MAKE}" >&5
1105 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1106 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1107 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1108 echo $ECHO_N "(cached) $ECHO_C" >&6
1110 cat >conftest.make <<\EOF
1112 @echo 'ac_maketemp="${MAKE}"'
1114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1115 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1116 if test -n "$ac_maketemp"; then
1117 eval ac_cv_prog_make_${ac_make}_set=yes
1119 eval ac_cv_prog_make_${ac_make}_set=no
1123 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1124 echo "$as_me:1124: result: yes" >&5
1125 echo "${ECHO_T}yes" >&6
1128 echo "$as_me:1128: result: no" >&5
1129 echo "${ECHO_T}no" >&6
1130 SET_MAKE="MAKE=${MAKE-make}"
1134 ac_cpp='$CPP $CPPFLAGS'
1135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1138 ac_main_return=return
1139 if test -n "$ac_tool_prefix"; then
1140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1142 echo "$as_me:1142: checking for $ac_word" >&5
1143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1144 if test "${ac_cv_prog_CC+set}" = set; then
1145 echo $ECHO_N "(cached) $ECHO_C" >&6
1147 if test -n "$CC"; then
1148 ac_cv_prog_CC="$CC" # Let the user override the test.
1150 ac_save_IFS=$IFS; IFS=$ac_path_separator
1152 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 $as_executable_p "$ac_dir/$ac_word" || continue
1156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1157 echo "$as_me:1157: found $ac_dir/$ac_word" >&5
1164 if test -n "$CC"; then
1165 echo "$as_me:1165: result: $CC" >&5
1166 echo "${ECHO_T}$CC" >&6
1168 echo "$as_me:1168: result: no" >&5
1169 echo "${ECHO_T}no" >&6
1173 if test -z "$ac_cv_prog_CC"; then
1175 # Extract the first word of "gcc", so it can be a program name with args.
1176 set dummy gcc; ac_word=$2
1177 echo "$as_me:1177: checking for $ac_word" >&5
1178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1180 echo $ECHO_N "(cached) $ECHO_C" >&6
1182 if test -n "$ac_ct_CC"; then
1183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1185 ac_save_IFS=$IFS; IFS=$ac_path_separator
1187 for ac_dir in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir=.
1190 $as_executable_p "$ac_dir/$ac_word" || continue
1191 ac_cv_prog_ac_ct_CC="gcc"
1192 echo "$as_me:1192: found $ac_dir/$ac_word" >&5
1198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1199 if test -n "$ac_ct_CC"; then
1200 echo "$as_me:1200: result: $ac_ct_CC" >&5
1201 echo "${ECHO_T}$ac_ct_CC" >&6
1203 echo "$as_me:1203: result: no" >&5
1204 echo "${ECHO_T}no" >&6
1212 if test -z "$CC"; then
1213 if test -n "$ac_tool_prefix"; then
1214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1215 set dummy ${ac_tool_prefix}cc; ac_word=$2
1216 echo "$as_me:1216: checking for $ac_word" >&5
1217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1218 if test "${ac_cv_prog_CC+set}" = set; then
1219 echo $ECHO_N "(cached) $ECHO_C" >&6
1221 if test -n "$CC"; then
1222 ac_cv_prog_CC="$CC" # Let the user override the test.
1224 ac_save_IFS=$IFS; IFS=$ac_path_separator
1226 for ac_dir in $ac_dummy; do
1228 test -z "$ac_dir" && ac_dir=.
1229 $as_executable_p "$ac_dir/$ac_word" || continue
1230 ac_cv_prog_CC="${ac_tool_prefix}cc"
1231 echo "$as_me:1231: found $ac_dir/$ac_word" >&5
1238 if test -n "$CC"; then
1239 echo "$as_me:1239: result: $CC" >&5
1240 echo "${ECHO_T}$CC" >&6
1242 echo "$as_me:1242: result: no" >&5
1243 echo "${ECHO_T}no" >&6
1247 if test -z "$ac_cv_prog_CC"; then
1249 # Extract the first word of "cc", so it can be a program name with args.
1250 set dummy cc; ac_word=$2
1251 echo "$as_me:1251: checking for $ac_word" >&5
1252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 if test -n "$ac_ct_CC"; then
1257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1259 ac_save_IFS=$IFS; IFS=$ac_path_separator
1261 for ac_dir in $ac_dummy; do
1263 test -z "$ac_dir" && ac_dir=.
1264 $as_executable_p "$ac_dir/$ac_word" || continue
1265 ac_cv_prog_ac_ct_CC="cc"
1266 echo "$as_me:1266: found $ac_dir/$ac_word" >&5
1272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1273 if test -n "$ac_ct_CC"; then
1274 echo "$as_me:1274: result: $ac_ct_CC" >&5
1275 echo "${ECHO_T}$ac_ct_CC" >&6
1277 echo "$as_me:1277: result: no" >&5
1278 echo "${ECHO_T}no" >&6
1287 if test -z "$CC"; then
1288 # Extract the first word of "cc", so it can be a program name with args.
1289 set dummy cc; ac_word=$2
1290 echo "$as_me:1290: checking for $ac_word" >&5
1291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1292 if test "${ac_cv_prog_CC+set}" = set; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 if test -n "$CC"; then
1296 ac_cv_prog_CC="$CC" # Let the user override the test.
1299 ac_save_IFS=$IFS; IFS=$ac_path_separator
1301 for ac_dir in $ac_dummy; do
1303 test -z "$ac_dir" && ac_dir=.
1304 $as_executable_p "$ac_dir/$ac_word" || continue
1305 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1306 ac_prog_rejected=yes
1310 echo "$as_me:1310: found $ac_dir/$ac_word" >&5
1314 if test $ac_prog_rejected = yes; then
1315 # We found a bogon in the path, so make sure we never use it.
1316 set dummy $ac_cv_prog_CC
1318 if test $# != 0; then
1319 # We chose a different compiler from the bogus one.
1320 # However, it has the same basename, so the bogon will be chosen
1321 # first if we set CC to just the basename; use the full file name.
1323 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1331 if test -n "$CC"; then
1332 echo "$as_me:1332: result: $CC" >&5
1333 echo "${ECHO_T}$CC" >&6
1335 echo "$as_me:1335: result: no" >&5
1336 echo "${ECHO_T}no" >&6
1340 if test -z "$CC"; then
1341 if test -n "$ac_tool_prefix"; then
1344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1346 echo "$as_me:1346: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_CC+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 if test -n "$CC"; then
1352 ac_cv_prog_CC="$CC" # Let the user override the test.
1354 ac_save_IFS=$IFS; IFS=$ac_path_separator
1356 for ac_dir in $ac_dummy; do
1358 test -z "$ac_dir" && ac_dir=.
1359 $as_executable_p "$ac_dir/$ac_word" || continue
1360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1361 echo "$as_me:1361: found $ac_dir/$ac_word" >&5
1368 if test -n "$CC"; then
1369 echo "$as_me:1369: result: $CC" >&5
1370 echo "${ECHO_T}$CC" >&6
1372 echo "$as_me:1372: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1376 test -n "$CC" && break
1379 if test -z "$CC"; then
1383 # Extract the first word of "$ac_prog", so it can be a program name with args.
1384 set dummy $ac_prog; ac_word=$2
1385 echo "$as_me:1385: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$ac_ct_CC"; then
1391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1393 ac_save_IFS=$IFS; IFS=$ac_path_separator
1395 for ac_dir in $ac_dummy; do
1397 test -z "$ac_dir" && ac_dir=.
1398 $as_executable_p "$ac_dir/$ac_word" || continue
1399 ac_cv_prog_ac_ct_CC="$ac_prog"
1400 echo "$as_me:1400: found $ac_dir/$ac_word" >&5
1406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1407 if test -n "$ac_ct_CC"; then
1408 echo "$as_me:1408: result: $ac_ct_CC" >&5
1409 echo "${ECHO_T}$ac_ct_CC" >&6
1411 echo "$as_me:1411: result: no" >&5
1412 echo "${ECHO_T}no" >&6
1415 test -n "$ac_ct_CC" && break
1423 test -z "$CC" && { { echo "$as_me:1423: error: no acceptable cc found in \$PATH" >&5
1424 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1425 { (exit 1); exit 1; }; }
1427 # Provide some information about the compiler.
1428 echo "$as_me:1428:" \
1429 "checking for C compiler version" >&5
1430 ac_compiler=`set X $ac_compile; echo $2`
1431 { (eval echo "$as_me:1431: \"$ac_compiler --version </dev/null >&5\"") >&5
1432 (eval $ac_compiler --version </dev/null >&5) 2>&5
1434 echo "$as_me:1434: \$? = $ac_status" >&5
1435 (exit $ac_status); }
1436 { (eval echo "$as_me:1436: \"$ac_compiler -v </dev/null >&5\"") >&5
1437 (eval $ac_compiler -v </dev/null >&5) 2>&5
1439 echo "$as_me:1439: \$? = $ac_status" >&5
1440 (exit $ac_status); }
1441 { (eval echo "$as_me:1441: \"$ac_compiler -V </dev/null >&5\"") >&5
1442 (eval $ac_compiler -V </dev/null >&5) 2>&5
1444 echo "$as_me:1444: \$? = $ac_status" >&5
1445 (exit $ac_status); }
1447 cat >conftest.$ac_ext <<_ACEOF
1448 #line 1448 "configure"
1449 #include "confdefs.h"
1459 ac_clean_files_save=$ac_clean_files
1460 ac_clean_files="$ac_clean_files a.out a.exe"
1461 # Try to create an executable without -o first, disregard a.out.
1462 # It will help us diagnose broken compilers, and finding out an intuition
1464 echo "$as_me:1464: checking for C compiler default output" >&5
1465 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1466 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1467 if { (eval echo "$as_me:1467: \"$ac_link_default\"") >&5
1468 (eval $ac_link_default) 2>&5
1470 echo "$as_me:1470: \$? = $ac_status" >&5
1471 (exit $ac_status); }; then
1472 # Find the output, starting from the most likely. This scheme is
1473 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1475 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1476 ls a.out conftest 2>/dev/null;
1477 ls a.* conftest.* 2>/dev/null`; do
1479 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1480 a.out ) # We found the default executable, but exeext='' is most
1483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1484 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1491 echo "$as_me: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 { { echo "$as_me:1493: error: C compiler cannot create executables" >&5
1494 echo "$as_me: error: C compiler cannot create executables" >&2;}
1495 { (exit 77); exit 77; }; }
1498 ac_exeext=$ac_cv_exeext
1499 echo "$as_me:1499: result: $ac_file" >&5
1500 echo "${ECHO_T}$ac_file" >&6
1502 # Check the compiler produces executables we can run. If not, either
1503 # the compiler is broken, or we cross compile.
1504 echo "$as_me:1504: checking whether the C compiler works" >&5
1505 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1506 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1507 # If not cross compiling, check that we can run a simple program.
1508 if test "$cross_compiling" != yes; then
1509 if { ac_try='./$ac_file'
1510 { (eval echo "$as_me:1510: \"$ac_try\"") >&5
1513 echo "$as_me:1513: \$? = $ac_status" >&5
1514 (exit $ac_status); }; }; then
1517 if test "$cross_compiling" = maybe; then
1520 { { echo "$as_me:1520: error: cannot run C compiled programs.
1521 If you meant to cross compile, use \`--host'." >&5
1522 echo "$as_me: error: cannot run C compiled programs.
1523 If you meant to cross compile, use \`--host'." >&2;}
1524 { (exit 1); exit 1; }; }
1528 echo "$as_me:1528: result: yes" >&5
1529 echo "${ECHO_T}yes" >&6
1531 rm -f a.out a.exe conftest$ac_cv_exeext
1532 ac_clean_files=$ac_clean_files_save
1533 # Check the compiler produces executables we can run. If not, either
1534 # the compiler is broken, or we cross compile.
1535 echo "$as_me:1535: checking whether we are cross compiling" >&5
1536 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1537 echo "$as_me:1537: result: $cross_compiling" >&5
1538 echo "${ECHO_T}$cross_compiling" >&6
1540 echo "$as_me:1540: checking for executable suffix" >&5
1541 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1542 if { (eval echo "$as_me:1542: \"$ac_link\"") >&5
1543 (eval $ac_link) 2>&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit $ac_status); }; then
1547 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1548 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1549 # work properly (i.e., refer to `conftest.exe'), while it won't with
1551 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1553 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1561 { { echo "$as_me:1561: error: cannot compute EXEEXT: cannot compile and link" >&5
1562 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1563 { (exit 1); exit 1; }; }
1566 rm -f conftest$ac_cv_exeext
1567 echo "$as_me:1567: result: $ac_cv_exeext" >&5
1568 echo "${ECHO_T}$ac_cv_exeext" >&6
1570 rm -f conftest.$ac_ext
1571 EXEEXT=$ac_cv_exeext
1573 echo "$as_me:1573: checking for object suffix" >&5
1574 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1575 if test "${ac_cv_objext+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 cat >conftest.$ac_ext <<_ACEOF
1579 #line 1579 "configure"
1580 #include "confdefs.h"
1590 rm -f conftest.o conftest.obj
1591 if { (eval echo "$as_me:1591: \"$ac_compile\"") >&5
1592 (eval $ac_compile) 2>&5
1594 echo "$as_me:1594: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1604 echo "$as_me: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1606 { { echo "$as_me:1606: error: cannot compute OBJEXT: cannot compile" >&5
1607 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1608 { (exit 1); exit 1; }; }
1611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1613 echo "$as_me:1613: result: $ac_cv_objext" >&5
1614 echo "${ECHO_T}$ac_cv_objext" >&6
1615 OBJEXT=$ac_cv_objext
1617 echo "$as_me:1617: checking whether we are using the GNU C compiler" >&5
1618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 cat >conftest.$ac_ext <<_ACEOF
1623 #line 1623 "configure"
1624 #include "confdefs.h"
1637 rm -f conftest.$ac_objext
1638 if { (eval echo "$as_me:1638: \"$ac_compile\"") >&5
1639 (eval $ac_compile) 2>&5
1641 echo "$as_me:1641: \$? = $ac_status" >&5
1642 (exit $ac_status); } &&
1643 { ac_try='test -s conftest.$ac_objext'
1644 { (eval echo "$as_me:1644: \"$ac_try\"") >&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); }; }; then
1651 echo "$as_me: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1655 rm -f conftest.$ac_objext conftest.$ac_ext
1656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1659 echo "$as_me:1659: result: $ac_cv_c_compiler_gnu" >&5
1660 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1661 GCC=`test $ac_compiler_gnu = yes && echo yes`
1662 ac_test_CFLAGS=${CFLAGS+set}
1663 ac_save_CFLAGS=$CFLAGS
1665 echo "$as_me:1665: checking whether $CC accepts -g" >&5
1666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1667 if test "${ac_cv_prog_cc_g+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 cat >conftest.$ac_ext <<_ACEOF
1671 #line 1671 "configure"
1672 #include "confdefs.h"
1682 rm -f conftest.$ac_objext
1683 if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5
1684 (eval $ac_compile) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); } &&
1688 { ac_try='test -s conftest.$ac_objext'
1689 { (eval echo "$as_me:1689: \"$ac_try\"") >&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }; }; then
1696 echo "$as_me: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1700 rm -f conftest.$ac_objext conftest.$ac_ext
1702 echo "$as_me:1702: result: $ac_cv_prog_cc_g" >&5
1703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1704 if test "$ac_test_CFLAGS" = set; then
1705 CFLAGS=$ac_save_CFLAGS
1706 elif test $ac_cv_prog_cc_g = yes; then
1707 if test "$GCC" = yes; then
1713 if test "$GCC" = yes; then
1719 # Some people use a C++ compiler to compile C. Since we use `exit',
1720 # in C++ we need to declare it. In case someone uses the same compiler
1721 # for both compiling C and C++ we need to have the C++ compiler decide
1722 # the declaration of exit, since it's the most demanding environment.
1723 cat >conftest.$ac_ext <<_ACEOF
1728 rm -f conftest.$ac_objext
1729 if { (eval echo "$as_me:1729: \"$ac_compile\"") >&5
1730 (eval $ac_compile) 2>&5
1732 echo "$as_me:1732: \$? = $ac_status" >&5
1733 (exit $ac_status); } &&
1734 { ac_try='test -s conftest.$ac_objext'
1735 { (eval echo "$as_me:1735: \"$ac_try\"") >&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 for ac_declaration in \
1742 '#include <stdlib.h>' \
1743 'extern "C" void std::exit (int) throw (); using std::exit;' \
1744 'extern "C" void std::exit (int); using std::exit;' \
1745 'extern "C" void exit (int) throw ();' \
1746 'extern "C" void exit (int);' \
1749 cat >conftest.$ac_ext <<_ACEOF
1750 #line 1750 "configure"
1751 #include "confdefs.h"
1762 rm -f conftest.$ac_objext
1763 if { (eval echo "$as_me:1763: \"$ac_compile\"") >&5
1764 (eval $ac_compile) 2>&5
1766 echo "$as_me:1766: \$? = $ac_status" >&5
1767 (exit $ac_status); } &&
1768 { ac_try='test -s conftest.$ac_objext'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1776 echo "$as_me: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1780 rm -f conftest.$ac_objext conftest.$ac_ext
1781 cat >conftest.$ac_ext <<_ACEOF
1782 #line 1782 "configure"
1783 #include "confdefs.h"
1793 rm -f conftest.$ac_objext
1794 if { (eval echo "$as_me:1794: \"$ac_compile\"") >&5
1795 (eval $ac_compile) 2>&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); } &&
1799 { ac_try='test -s conftest.$ac_objext'
1800 { (eval echo "$as_me:1800: \"$ac_try\"") >&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); }; }; then
1807 echo "$as_me: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1810 rm -f conftest.$ac_objext conftest.$ac_ext
1813 if test -n "$ac_declaration"; then
1814 echo '#ifdef __cplusplus' >>confdefs.h
1815 echo $ac_declaration >>confdefs.h
1816 echo '#endif' >>confdefs.h
1820 echo "$as_me: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 rm -f conftest.$ac_objext conftest.$ac_ext
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 ac_main_return=return
1832 if test "$GCC" = yes ; then
1833 echo "$as_me:1833: checking version of $CC" >&5
1834 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1835 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.].*//'`"
1836 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1837 echo "$as_me:1837: result: $GCC_VERSION" >&5
1838 echo "${ECHO_T}$GCC_VERSION" >&6
1841 echo "$as_me:1841: checking for $CC option to accept ANSI C" >&5
1842 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1843 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 ac_cv_prog_cc_stdc=no
1848 cat >conftest.$ac_ext <<_ACEOF
1849 #line 1849 "configure"
1850 #include "confdefs.h"
1853 #include <sys/types.h>
1854 #include <sys/stat.h>
1855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1856 struct buf { int x; };
1857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1858 static char *e (p, i)
1864 static char *f (char * (*g) (char **, int), char **p, ...)
1869 s = g (p, va_arg (v,int));
1873 int test (int i, double x);
1874 struct s1 {int (*f) (int a);};
1875 struct s2 {int (*f) (double a);};
1876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1887 # Don't try gcc -ansi; that turns off useful extensions and
1888 # breaks some systems' header files.
1889 # AIX -qlanglvl=ansi
1890 # Ultrix and OSF/1 -std1
1891 # HP-UX 10.20 and later -Ae
1892 # HP-UX older versions -Aa -D_HPUX_SOURCE
1893 # SVR4 -Xc -D__EXTENSIONS__
1894 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1896 CC="$ac_save_CC $ac_arg"
1897 rm -f conftest.$ac_objext
1898 if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); } &&
1903 { ac_try='test -s conftest.$ac_objext'
1904 { (eval echo "$as_me:1904: \"$ac_try\"") >&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); }; }; then
1909 ac_cv_prog_cc_stdc=$ac_arg
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 rm -f conftest.$ac_objext
1917 rm -f conftest.$ac_ext conftest.$ac_objext
1922 case "x$ac_cv_prog_cc_stdc" in
1924 echo "$as_me:1924: result: none needed" >&5
1925 echo "${ECHO_T}none needed" >&6 ;;
1927 echo "$as_me:1927: result: $ac_cv_prog_cc_stdc" >&5
1928 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1929 CC="$CC $ac_cv_prog_cc_stdc" ;;
1932 # This should have been defined by AC_PROG_CC
1935 echo "$as_me:1935: checking \$CC variable" >&5
1936 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1939 echo "$as_me:1939: result: broken" >&5
1940 echo "${ECHO_T}broken" >&6
1941 { echo "$as_me:1941: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1942 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1944 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1945 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1950 cf_new_extra_cppflags=
1952 for cf_add_cflags in $cf_flags
1954 case $cf_fix_cppflags in
1956 case $cf_add_cflags in #(vi
1957 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1958 case $cf_add_cflags in
1960 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1962 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1963 && test -z "${cf_tst_cflags}" \
1964 && cf_fix_cppflags=yes
1966 if test $cf_fix_cppflags = yes ; then
1967 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1969 elif test "${cf_tst_cflags}" = "\"'" ; then
1970 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1976 *$cf_add_cflags) #(vi
1979 case $cf_add_cflags in #(vi
1981 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1983 CPPFLAGS=`echo "$CPPFLAGS" | \
1984 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1985 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1989 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1994 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1999 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2001 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2003 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2004 && test -z "${cf_tst_cflags}" \
2005 && cf_fix_cppflags=no
2010 if test -n "$cf_new_cflags" ; then
2012 CFLAGS="$CFLAGS $cf_new_cflags"
2015 if test -n "$cf_new_cppflags" ; then
2017 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2020 if test -n "$cf_new_extra_cppflags" ; then
2022 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2027 echo "$as_me:2027: result: ok" >&5
2028 echo "${ECHO_T}ok" >&6
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 ac_main_return=return
2038 echo "$as_me:2038: checking how to run the C preprocessor" >&5
2039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2040 # On Suns, sometimes $CPP names a directory.
2041 if test -n "$CPP" && test -d "$CPP"; then
2044 if test -z "$CPP"; then
2045 if test "${ac_cv_prog_CPP+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 # Double quotes because CPP needs to be expanded
2049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2052 for ac_c_preproc_warn_flag in '' yes
2054 # Use a header file that comes with gcc, so configuring glibc
2055 # with a fresh cross-compiler works.
2056 # On the NeXT, cc -E runs the code through the compiler's parser,
2057 # not just through cpp. "Syntax error" is here to catch this case.
2058 cat >conftest.$ac_ext <<_ACEOF
2059 #line 2059 "configure"
2060 #include "confdefs.h"
2064 if { (eval echo "$as_me:2064: \"$ac_cpp conftest.$ac_ext\"") >&5
2065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2067 egrep -v '^ *\+' conftest.er1 >conftest.err
2069 cat conftest.err >&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } >/dev/null; then
2072 if test -s conftest.err; then
2073 ac_cpp_err=$ac_c_preproc_warn_flag
2080 if test -z "$ac_cpp_err"; then
2083 echo "$as_me: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2085 # Broken: fails on valid input.
2088 rm -f conftest.err conftest.$ac_ext
2090 # OK, works on sane cases. Now check whether non-existent headers
2091 # can be detected and how.
2092 cat >conftest.$ac_ext <<_ACEOF
2093 #line 2093 "configure"
2094 #include "confdefs.h"
2095 #include <ac_nonexistent.h>
2097 if { (eval echo "$as_me:2097: \"$ac_cpp conftest.$ac_ext\"") >&5
2098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2100 egrep -v '^ *\+' conftest.er1 >conftest.err
2102 cat conftest.err >&5
2103 echo "$as_me:2103: \$? = $ac_status" >&5
2104 (exit $ac_status); } >/dev/null; then
2105 if test -s conftest.err; then
2106 ac_cpp_err=$ac_c_preproc_warn_flag
2113 if test -z "$ac_cpp_err"; then
2114 # Broken: success on invalid input.
2117 echo "$as_me: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 # Passes both tests.
2123 rm -f conftest.err conftest.$ac_ext
2126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2127 rm -f conftest.err conftest.$ac_ext
2128 if $ac_preproc_ok; then
2140 echo "$as_me:2140: result: $CPP" >&5
2141 echo "${ECHO_T}$CPP" >&6
2143 for ac_c_preproc_warn_flag in '' yes
2145 # Use a header file that comes with gcc, so configuring glibc
2146 # with a fresh cross-compiler works.
2147 # On the NeXT, cc -E runs the code through the compiler's parser,
2148 # not just through cpp. "Syntax error" is here to catch this case.
2149 cat >conftest.$ac_ext <<_ACEOF
2150 #line 2150 "configure"
2151 #include "confdefs.h"
2155 if { (eval echo "$as_me:2155: \"$ac_cpp conftest.$ac_ext\"") >&5
2156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2158 egrep -v '^ *\+' conftest.er1 >conftest.err
2160 cat conftest.err >&5
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit $ac_status); } >/dev/null; then
2163 if test -s conftest.err; then
2164 ac_cpp_err=$ac_c_preproc_warn_flag
2171 if test -z "$ac_cpp_err"; then
2174 echo "$as_me: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 # Broken: fails on valid input.
2179 rm -f conftest.err conftest.$ac_ext
2181 # OK, works on sane cases. Now check whether non-existent headers
2182 # can be detected and how.
2183 cat >conftest.$ac_ext <<_ACEOF
2184 #line 2184 "configure"
2185 #include "confdefs.h"
2186 #include <ac_nonexistent.h>
2188 if { (eval echo "$as_me:2188: \"$ac_cpp conftest.$ac_ext\"") >&5
2189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2191 egrep -v '^ *\+' conftest.er1 >conftest.err
2193 cat conftest.err >&5
2194 echo "$as_me:2194: \$? = $ac_status" >&5
2195 (exit $ac_status); } >/dev/null; then
2196 if test -s conftest.err; then
2197 ac_cpp_err=$ac_c_preproc_warn_flag
2204 if test -z "$ac_cpp_err"; then
2205 # Broken: success on invalid input.
2208 echo "$as_me: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2210 # Passes both tests.
2214 rm -f conftest.err conftest.$ac_ext
2217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2218 rm -f conftest.err conftest.$ac_ext
2219 if $ac_preproc_ok; then
2222 { { echo "$as_me:2222: error: C preprocessor \"$CPP\" fails sanity check" >&5
2223 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2224 { (exit 1); exit 1; }; }
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 ac_main_return=return
2234 for ac_prog in mawk gawk nawk awk
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 echo "$as_me:2238: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_AWK+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$AWK"; then
2244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2246 ac_save_IFS=$IFS; IFS=$ac_path_separator
2248 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 $as_executable_p "$ac_dir/$ac_word" || continue
2252 ac_cv_prog_AWK="$ac_prog"
2253 echo "$as_me:2253: found $ac_dir/$ac_word" >&5
2260 if test -n "$AWK"; then
2261 echo "$as_me:2261: result: $AWK" >&5
2262 echo "${ECHO_T}$AWK" >&6
2264 echo "$as_me:2264: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2268 test -n "$AWK" && break
2271 # Find a good install program. We prefer a C program (faster),
2272 # so one script is as good as another. But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # ./install, which can be erroneously created by make from ./install.sh.
2283 echo "$as_me:2283: checking for a BSD compatible install" >&5
2284 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2285 if test -z "$INSTALL"; then
2286 if test "${ac_cv_path_install+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 ac_save_IFS=$IFS; IFS=$ac_path_separator
2290 for ac_dir in $PATH; do
2292 # Account for people who put trailing slashes in PATH elements.
2294 / | ./ | .// | /cC/* \
2295 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2298 # OSF1 and SCO ODT 3.0 have their own names for install.
2299 # Don't use installbsd from OSF since it installs stuff as root
2301 for ac_prog in ginstall scoinst install; do
2302 if $as_executable_p "$ac_dir/$ac_prog"; then
2303 if test $ac_prog = install &&
2304 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2305 # AIX install. It has an incompatible calling convention.
2307 elif test $ac_prog = install &&
2308 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2309 # program-specific install script used by HP pwplus--don't use.
2312 ac_cv_path_install="$ac_dir/$ac_prog -c"
2322 if test "${ac_cv_path_install+set}" = set; then
2323 INSTALL=$ac_cv_path_install
2325 # As a last resort, use the slow shell script. We don't cache a
2326 # path for INSTALL within a source directory, because that will
2327 # break other packages using the cache if that directory is
2328 # removed, or if the path is relative.
2329 INSTALL=$ac_install_sh
2332 echo "$as_me:2332: result: $INSTALL" >&5
2333 echo "${ECHO_T}$INSTALL" >&6
2335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2336 # It thinks the first close brace ends the variable substitution.
2337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2348 test -z "$cf_dir" && cf_dir=.
2349 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2353 for ac_prog in tdlint lint alint splint lclint
2355 # Extract the first word of "$ac_prog", so it can be a program name with args.
2356 set dummy $ac_prog; ac_word=$2
2357 echo "$as_me:2357: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_LINT+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$LINT"; then
2363 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2365 ac_save_IFS=$IFS; IFS=$ac_path_separator
2367 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 $as_executable_p "$ac_dir/$ac_word" || continue
2371 ac_cv_prog_LINT="$ac_prog"
2372 echo "$as_me:2372: found $ac_dir/$ac_word" >&5
2378 LINT=$ac_cv_prog_LINT
2379 if test -n "$LINT"; then
2380 echo "$as_me:2380: result: $LINT" >&5
2381 echo "${ECHO_T}$LINT" >&6
2383 echo "$as_me:2383: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2387 test -n "$LINT" && break
2390 echo "$as_me:2390: checking if filesystem supports mixed-case filenames" >&5
2391 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2392 if test "${cf_cv_mixedcase+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 if test "$cross_compiling" = yes ; then
2397 case $target_alias in #(vi
2398 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2406 rm -f conftest CONFTEST
2408 if test -f CONFTEST ; then
2413 rm -f conftest CONFTEST
2417 echo "$as_me:2417: result: $cf_cv_mixedcase" >&5
2418 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2419 test "$cf_cv_mixedcase" = yes &&
2420 cat >>confdefs.h <<\EOF
2421 #define MIXEDCASE_FILENAMES 1
2424 for ac_prog in exctags ctags
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 echo "$as_me:2428: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CTAGS+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CTAGS"; then
2434 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2436 ac_save_IFS=$IFS; IFS=$ac_path_separator
2438 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 $as_executable_p "$ac_dir/$ac_word" || continue
2442 ac_cv_prog_CTAGS="$ac_prog"
2443 echo "$as_me:2443: found $ac_dir/$ac_word" >&5
2449 CTAGS=$ac_cv_prog_CTAGS
2450 if test -n "$CTAGS"; then
2451 echo "$as_me:2451: result: $CTAGS" >&5
2452 echo "${ECHO_T}$CTAGS" >&6
2454 echo "$as_me:2454: result: no" >&5
2455 echo "${ECHO_T}no" >&6
2458 test -n "$CTAGS" && break
2461 for ac_prog in exetags etags
2463 # Extract the first word of "$ac_prog", so it can be a program name with args.
2464 set dummy $ac_prog; ac_word=$2
2465 echo "$as_me:2465: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2467 if test "${ac_cv_prog_ETAGS+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$ETAGS"; then
2471 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2473 ac_save_IFS=$IFS; IFS=$ac_path_separator
2475 for ac_dir in $ac_dummy; do
2477 test -z "$ac_dir" && ac_dir=.
2478 $as_executable_p "$ac_dir/$ac_word" || continue
2479 ac_cv_prog_ETAGS="$ac_prog"
2480 echo "$as_me:2480: found $ac_dir/$ac_word" >&5
2486 ETAGS=$ac_cv_prog_ETAGS
2487 if test -n "$ETAGS"; then
2488 echo "$as_me:2488: result: $ETAGS" >&5
2489 echo "${ECHO_T}$ETAGS" >&6
2491 echo "$as_me:2491: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2495 test -n "$ETAGS" && break
2498 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2499 set dummy ${CTAGS:-ctags}; ac_word=$2
2500 echo "$as_me:2500: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 if test -n "$MAKE_LOWER_TAGS"; then
2506 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2508 ac_save_IFS=$IFS; IFS=$ac_path_separator
2510 for ac_dir in $ac_dummy; do
2512 test -z "$ac_dir" && ac_dir=.
2513 $as_executable_p "$ac_dir/$ac_word" || continue
2514 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2515 echo "$as_me:2515: found $ac_dir/$ac_word" >&5
2519 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2522 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2523 if test -n "$MAKE_LOWER_TAGS"; then
2524 echo "$as_me:2524: result: $MAKE_LOWER_TAGS" >&5
2525 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2527 echo "$as_me:2527: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 if test "$cf_cv_mixedcase" = yes ; then
2532 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2533 set dummy ${ETAGS:-etags}; ac_word=$2
2534 echo "$as_me:2534: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2536 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$MAKE_UPPER_TAGS"; then
2540 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2542 ac_save_IFS=$IFS; IFS=$ac_path_separator
2544 for ac_dir in $ac_dummy; do
2546 test -z "$ac_dir" && ac_dir=.
2547 $as_executable_p "$ac_dir/$ac_word" || continue
2548 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2549 echo "$as_me:2549: found $ac_dir/$ac_word" >&5
2553 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2556 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2557 if test -n "$MAKE_UPPER_TAGS"; then
2558 echo "$as_me:2558: result: $MAKE_UPPER_TAGS" >&5
2559 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2561 echo "$as_me:2561: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2569 if test "$MAKE_UPPER_TAGS" = yes ; then
2575 if test "$MAKE_LOWER_TAGS" = yes ; then
2581 echo "$as_me:2581: checking if -lm needed for math functions" >&5
2582 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2583 if test "${cf_cv_need_libm+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #line 2588 "configure"
2589 #include "confdefs.h"
2597 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2602 rm -f conftest.$ac_objext conftest$ac_exeext
2603 if { (eval echo "$as_me:2603: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>&5
2606 echo "$as_me:2606: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -s conftest$ac_exeext'
2609 { (eval echo "$as_me:2609: \"$ac_try\"") >&5
2612 echo "$as_me:2612: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2616 echo "$as_me: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2622 echo "$as_me:2622: result: $cf_cv_need_libm" >&5
2623 echo "${ECHO_T}$cf_cv_need_libm" >&6
2624 if test "$cf_cv_need_libm" = yes
2632 CC_SHARED_OPTS=unknown
2633 CPPFLAGS="$CPPFLAGS"
2635 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2636 DFT_UPR_MODEL="NORMAL"
2653 TINFO_LIBS='$(LIBS_CURSES)'
2654 cf_cv_abi_version=""
2655 cf_cv_rel_version=""
2661 if test "$GCC" = yes
2663 cat > conftest.i <<EOF
2665 #define GCC_PRINTF 0
2670 #ifndef GCC_NORETURN
2671 #define GCC_NORETURN /* nothing */
2674 #define GCC_UNUSED /* nothing */
2677 if test "$GCC" = yes
2679 { echo "$as_me:2679: checking for $CC __attribute__ directives..." >&5
2680 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2682 "${as_me:-configure}"
2683 #include "confdefs.h"
2684 #include "conftest.h"
2685 #include "conftest.i"
2687 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2689 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2692 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2694 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2696 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2697 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2698 extern void foo(void) GCC_NORETURN;
2699 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2701 cf_printf_attribute=no
2702 cf_scanf_attribute=no
2703 for cf_attribute in scanf printf unused noreturn
2706 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2708 cf_directive="__attribute__(($cf_attribute))"
2709 echo "checking for $CC $cf_directive" 1>&5
2711 case $cf_attribute in #(vi
2713 cf_printf_attribute=yes
2714 cat >conftest.h <<EOF
2715 #define GCC_$cf_ATTRIBUTE 1
2719 cf_scanf_attribute=yes
2720 cat >conftest.h <<EOF
2721 #define GCC_$cf_ATTRIBUTE 1
2725 cat >conftest.h <<EOF
2726 #define GCC_$cf_ATTRIBUTE $cf_directive
2731 if { (eval echo "$as_me:2731: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>&5
2734 echo "$as_me:2734: \$? = $ac_status" >&5
2735 (exit $ac_status); }; then
2736 test -n "$verbose" && echo "$as_me:2736: result: ... $cf_attribute" >&5
2737 echo "${ECHO_T}... $cf_attribute" >&6
2738 cat conftest.h >>confdefs.h
2739 case $cf_attribute in #(vi
2742 cat >>confdefs.h <<EOF
2743 #define GCC_NORETURN $cf_directive
2748 cf_value='/* nothing */'
2749 if test "$cf_printf_attribute" != no ; then
2750 cf_value='__attribute__((format(printf,fmt,var)))'
2752 cat >>confdefs.h <<\EOF
2753 #define GCC_PRINTF 1
2758 cat >>confdefs.h <<EOF
2759 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2764 cf_value='/* nothing */'
2765 if test "$cf_scanf_attribute" != no ; then
2766 cf_value='__attribute__((format(scanf,fmt,var)))'
2768 cat >>confdefs.h <<\EOF
2774 cat >>confdefs.h <<EOF
2775 #define GCC_SCANFLIKE(fmt,var) $cf_value
2781 cat >>confdefs.h <<EOF
2782 #define GCC_UNUSED $cf_directive
2790 fgrep define conftest.i >>confdefs.h
2796 cf_POSIX_C_SOURCE=199506L
2799 case $host_os in #(vi
2801 cf_xopen_source="-D_ALL_SOURCE"
2807 cf_xopen_source="-D_APPLE_C_SOURCE"
2810 cf_xopen_source="-D_DARWIN_C_SOURCE"
2813 freebsd*|dragonfly*) #(vi
2814 # 5.x headers associate
2815 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2816 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2817 cf_POSIX_C_SOURCE=200112L
2819 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2822 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2825 cf_xopen_source="-D_HPUX_SOURCE"
2828 cf_xopen_source="-D_SGI_SOURCE"
2831 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2833 echo "$as_me:2833: checking if we must define _GNU_SOURCE" >&5
2834 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2835 if test "${cf_cv_gnu_source+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line 2840 "configure"
2841 #include "confdefs.h"
2842 #include <sys/types.h>
2847 #ifndef _XOPEN_SOURCE
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:2855: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:2861: \"$ac_try\"") >&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2868 echo "$as_me: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2871 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2880 #ifdef _XOPEN_SOURCE
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 cf_cv_gnu_source=yes
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2909 rm -f conftest.$ac_objext conftest.$ac_ext
2912 echo "$as_me:2912: result: $cf_cv_gnu_source" >&5
2913 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2914 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2918 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2921 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2923 cf_save_CFLAGS="$CFLAGS"
2924 cf_save_CPPFLAGS="$CPPFLAGS"
2926 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2927 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2928 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2930 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2931 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2932 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2934 echo "$as_me:2934: checking if we should define _POSIX_C_SOURCE" >&5
2935 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2936 if test "${cf_cv_posix_c_source+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 echo "${as_me:-configure}:2940: testing if the symbol is already defined go no further ..." 1>&5
2942 cat >conftest.$ac_ext <<_ACEOF
2943 #line 2943 "configure"
2944 #include "confdefs.h"
2945 #include <sys/types.h>
2950 #ifndef _POSIX_C_SOURCE
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:2958: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>&5
2961 echo "$as_me:2961: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (eval echo "$as_me:2964: \"$ac_try\"") >&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 cf_cv_posix_c_source=no
2971 echo "$as_me: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2973 cf_want_posix_source=no
2974 case .$cf_POSIX_C_SOURCE in #(vi
2976 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2979 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2980 cf_want_posix_source=yes
2983 cf_want_posix_source=yes
2986 if test "$cf_want_posix_source" = yes ; then
2987 cat >conftest.$ac_ext <<_ACEOF
2988 #line 2988 "configure"
2989 #include "confdefs.h"
2990 #include <sys/types.h>
2995 #ifdef _POSIX_SOURCE
3002 rm -f conftest.$ac_objext
3003 if { (eval echo "$as_me:3003: \"$ac_compile\"") >&5
3004 (eval $ac_compile) 2>&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:3009: \"$ac_try\"") >&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3016 echo "$as_me: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3018 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3020 rm -f conftest.$ac_objext conftest.$ac_ext
3023 echo "${as_me:-configure}:3023: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3025 CFLAGS="$cf_trim_CFLAGS"
3026 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3028 echo "${as_me:-configure}:3028: testing if the second compile does not leave our definition intact error ..." 1>&5
3030 cat >conftest.$ac_ext <<_ACEOF
3031 #line 3031 "configure"
3032 #include "confdefs.h"
3033 #include <sys/types.h>
3038 #ifndef _POSIX_C_SOURCE
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:3046: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3049 echo "$as_me:3049: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:3052: \"$ac_try\"") >&5
3055 echo "$as_me:3055: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 cf_cv_posix_c_source=no
3063 rm -f conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$cf_save_CFLAGS"
3065 CPPFLAGS="$cf_save_CPPFLAGS"
3068 rm -f conftest.$ac_objext conftest.$ac_ext
3071 echo "$as_me:3071: result: $cf_cv_posix_c_source" >&5
3072 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3074 if test "$cf_cv_posix_c_source" != no ; then
3075 CFLAGS="$cf_trim_CFLAGS"
3076 CPPFLAGS="$cf_trim_CPPFLAGS"
3081 cf_new_extra_cppflags=
3083 for cf_add_cflags in $cf_cv_posix_c_source
3085 case $cf_fix_cppflags in
3087 case $cf_add_cflags in #(vi
3088 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3089 case $cf_add_cflags in
3091 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3093 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3094 && test -z "${cf_tst_cflags}" \
3095 && cf_fix_cppflags=yes
3097 if test $cf_fix_cppflags = yes ; then
3098 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3100 elif test "${cf_tst_cflags}" = "\"'" ; then
3101 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3107 *$cf_add_cflags) #(vi
3110 case $cf_add_cflags in #(vi
3112 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3114 CPPFLAGS=`echo "$CPPFLAGS" | \
3115 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3116 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3120 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3125 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3130 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3132 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3134 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3135 && test -z "${cf_tst_cflags}" \
3136 && cf_fix_cppflags=no
3141 if test -n "$cf_new_cflags" ; then
3143 CFLAGS="$CFLAGS $cf_new_cflags"
3146 if test -n "$cf_new_cppflags" ; then
3148 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3151 if test -n "$cf_new_extra_cppflags" ; then
3153 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3160 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3163 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3164 cf_xopen_source="-D_BSD_SOURCE"
3168 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3171 cf_xopen_source="-D_OSF_SOURCE"
3174 cf_xopen_source="-D_QNX_SOURCE"
3177 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3180 cf_xopen_source="-D__EXTENSIONS__"
3181 cf_cv_xopen_source=broken
3185 echo "$as_me:3185: checking if we should define _XOPEN_SOURCE" >&5
3186 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3187 if test "${cf_cv_xopen_source+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 cat >conftest.$ac_ext <<_ACEOF
3192 #line 3192 "configure"
3193 #include "confdefs.h"
3197 #include <sys/types.h>
3203 #ifndef _XOPEN_SOURCE
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:3211: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>&5
3214 echo "$as_me:3214: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:3217: \"$ac_try\"") >&5
3220 echo "$as_me:3220: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3222 cf_cv_xopen_source=no
3224 echo "$as_me: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line 3229 "configure"
3230 #include "confdefs.h"
3234 #include <sys/types.h>
3240 #ifdef _XOPEN_SOURCE
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:3254: \"$ac_try\"") >&5
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cf_cv_xopen_source=no
3261 echo "$as_me: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3263 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3269 rm -f conftest.$ac_objext conftest.$ac_ext
3272 echo "$as_me:3272: result: $cf_cv_xopen_source" >&5
3273 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3275 if test "$cf_cv_xopen_source" != no ; then
3277 CFLAGS=`echo "$CFLAGS" | \
3278 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3279 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3281 CPPFLAGS=`echo "$CPPFLAGS" | \
3282 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3283 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3285 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3290 cf_new_extra_cppflags=
3292 for cf_add_cflags in $cf_temp_xopen_source
3294 case $cf_fix_cppflags in
3296 case $cf_add_cflags in #(vi
3297 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3298 case $cf_add_cflags in
3300 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3302 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3303 && test -z "${cf_tst_cflags}" \
3304 && cf_fix_cppflags=yes
3306 if test $cf_fix_cppflags = yes ; then
3307 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3309 elif test "${cf_tst_cflags}" = "\"'" ; then
3310 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3316 *$cf_add_cflags) #(vi
3319 case $cf_add_cflags in #(vi
3321 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3323 CPPFLAGS=`echo "$CPPFLAGS" | \
3324 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3325 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3329 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3334 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3339 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3341 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3343 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3344 && test -z "${cf_tst_cflags}" \
3345 && cf_fix_cppflags=no
3350 if test -n "$cf_new_cflags" ; then
3352 CFLAGS="$CFLAGS $cf_new_cflags"
3355 if test -n "$cf_new_cppflags" ; then
3357 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3360 if test -n "$cf_new_extra_cppflags" ; then
3362 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3367 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3369 cf_save_CFLAGS="$CFLAGS"
3370 cf_save_CPPFLAGS="$CPPFLAGS"
3372 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3373 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3374 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3376 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3377 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3378 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3380 echo "$as_me:3380: checking if we should define _POSIX_C_SOURCE" >&5
3381 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3382 if test "${cf_cv_posix_c_source+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 echo "${as_me:-configure}:3386: testing if the symbol is already defined go no further ..." 1>&5
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #line 3389 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3396 #ifndef _POSIX_C_SOURCE
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:3404: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3407 echo "$as_me:3407: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:3410: \"$ac_try\"") >&5
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 cf_cv_posix_c_source=no
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3419 cf_want_posix_source=no
3420 case .$cf_POSIX_C_SOURCE in #(vi
3422 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3425 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3426 cf_want_posix_source=yes
3429 cf_want_posix_source=yes
3432 if test "$cf_want_posix_source" = yes ; then
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line 3434 "configure"
3435 #include "confdefs.h"
3436 #include <sys/types.h>
3441 #ifdef _POSIX_SOURCE
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:3449: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3452 echo "$as_me:3452: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:3455: \"$ac_try\"") >&5
3458 echo "$as_me:3458: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3469 echo "${as_me:-configure}:3469: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3471 CFLAGS="$cf_trim_CFLAGS"
3472 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3474 echo "${as_me:-configure}:3474: testing if the second compile does not leave our definition intact error ..." 1>&5
3476 cat >conftest.$ac_ext <<_ACEOF
3477 #line 3477 "configure"
3478 #include "confdefs.h"
3479 #include <sys/types.h>
3484 #ifndef _POSIX_C_SOURCE
3491 rm -f conftest.$ac_objext
3492 if { (eval echo "$as_me:3492: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>&5
3495 echo "$as_me:3495: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:3498: \"$ac_try\"") >&5
3501 echo "$as_me:3501: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3505 echo "$as_me: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3507 cf_cv_posix_c_source=no
3509 rm -f conftest.$ac_objext conftest.$ac_ext
3510 CFLAGS="$cf_save_CFLAGS"
3511 CPPFLAGS="$cf_save_CPPFLAGS"
3514 rm -f conftest.$ac_objext conftest.$ac_ext
3517 echo "$as_me:3517: result: $cf_cv_posix_c_source" >&5
3518 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3520 if test "$cf_cv_posix_c_source" != no ; then
3521 CFLAGS="$cf_trim_CFLAGS"
3522 CPPFLAGS="$cf_trim_CPPFLAGS"
3527 cf_new_extra_cppflags=
3529 for cf_add_cflags in $cf_cv_posix_c_source
3531 case $cf_fix_cppflags in
3533 case $cf_add_cflags in #(vi
3534 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3535 case $cf_add_cflags in
3537 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3539 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3540 && test -z "${cf_tst_cflags}" \
3541 && cf_fix_cppflags=yes
3543 if test $cf_fix_cppflags = yes ; then
3544 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3546 elif test "${cf_tst_cflags}" = "\"'" ; then
3547 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3553 *$cf_add_cflags) #(vi
3556 case $cf_add_cflags in #(vi
3558 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3560 CPPFLAGS=`echo "$CPPFLAGS" | \
3561 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3562 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3566 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3571 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3576 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3578 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3580 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3581 && test -z "${cf_tst_cflags}" \
3582 && cf_fix_cppflags=no
3587 if test -n "$cf_new_cflags" ; then
3589 CFLAGS="$CFLAGS $cf_new_cflags"
3592 if test -n "$cf_new_cppflags" ; then
3594 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3597 if test -n "$cf_new_extra_cppflags" ; then
3599 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3607 if test -n "$cf_xopen_source" ; then
3612 cf_new_extra_cppflags=
3614 for cf_add_cflags in $cf_xopen_source
3616 case $cf_fix_cppflags in
3618 case $cf_add_cflags in #(vi
3619 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3620 case $cf_add_cflags in
3622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3624 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3625 && test -z "${cf_tst_cflags}" \
3626 && cf_fix_cppflags=yes
3628 if test $cf_fix_cppflags = yes ; then
3629 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3631 elif test "${cf_tst_cflags}" = "\"'" ; then
3632 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3638 *$cf_add_cflags) #(vi
3641 case $cf_add_cflags in #(vi
3643 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3645 CPPFLAGS=`echo "$CPPFLAGS" | \
3646 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3647 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3651 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3656 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3661 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3663 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3665 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3666 && test -z "${cf_tst_cflags}" \
3667 && cf_fix_cppflags=no
3672 if test -n "$cf_new_cflags" ; then
3674 CFLAGS="$CFLAGS $cf_new_cflags"
3677 if test -n "$cf_new_cppflags" ; then
3679 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3682 if test -n "$cf_new_extra_cppflags" ; then
3684 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3689 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3690 echo "$as_me:3690: checking if _XOPEN_SOURCE really is set" >&5
3691 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3692 cat >conftest.$ac_ext <<_ACEOF
3693 #line 3693 "configure"
3694 #include "confdefs.h"
3700 #ifndef _XOPEN_SOURCE
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:3708: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>&5
3711 echo "$as_me:3711: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (eval echo "$as_me:3714: \"$ac_try\"") >&5
3717 echo "$as_me:3717: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 cf_XOPEN_SOURCE_set=yes
3721 echo "$as_me: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 cf_XOPEN_SOURCE_set=no
3725 rm -f conftest.$ac_objext conftest.$ac_ext
3726 echo "$as_me:3726: result: $cf_XOPEN_SOURCE_set" >&5
3727 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3728 if test $cf_XOPEN_SOURCE_set = yes
3730 cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
3738 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:3746: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>&5
3749 echo "$as_me:3749: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3755 echo "$as_me:3755: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 cf_XOPEN_SOURCE_set_ok=yes
3759 echo "$as_me: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3761 cf_XOPEN_SOURCE_set_ok=no
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3764 if test $cf_XOPEN_SOURCE_set_ok = no
3766 { echo "$as_me:3766: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3767 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3771 echo "$as_me:3771: checking if we should define _XOPEN_SOURCE" >&5
3772 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3773 if test "${cf_cv_xopen_source+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 cat >conftest.$ac_ext <<_ACEOF
3778 #line 3778 "configure"
3779 #include "confdefs.h"
3783 #include <sys/types.h>
3789 #ifndef _XOPEN_SOURCE
3796 rm -f conftest.$ac_objext
3797 if { (eval echo "$as_me:3797: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>&5
3800 echo "$as_me:3800: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:3803: \"$ac_try\"") >&5
3806 echo "$as_me:3806: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 cf_cv_xopen_source=no
3810 echo "$as_me: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3813 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line 3815 "configure"
3816 #include "confdefs.h"
3820 #include <sys/types.h>
3826 #ifdef _XOPEN_SOURCE
3833 rm -f conftest.$ac_objext
3834 if { (eval echo "$as_me:3834: \"$ac_compile\"") >&5
3835 (eval $ac_compile) 2>&5
3837 echo "$as_me:3837: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:3840: \"$ac_try\"") >&5
3843 echo "$as_me:3843: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 cf_cv_xopen_source=no
3847 echo "$as_me: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3851 rm -f conftest.$ac_objext conftest.$ac_ext
3855 rm -f conftest.$ac_objext conftest.$ac_ext
3858 echo "$as_me:3858: result: $cf_cv_xopen_source" >&5
3859 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3861 if test "$cf_cv_xopen_source" != no ; then
3863 CFLAGS=`echo "$CFLAGS" | \
3864 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3865 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3867 CPPFLAGS=`echo "$CPPFLAGS" | \
3868 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3869 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3871 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3876 cf_new_extra_cppflags=
3878 for cf_add_cflags in $cf_temp_xopen_source
3880 case $cf_fix_cppflags in
3882 case $cf_add_cflags in #(vi
3883 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3884 case $cf_add_cflags in
3886 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3888 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3889 && test -z "${cf_tst_cflags}" \
3890 && cf_fix_cppflags=yes
3892 if test $cf_fix_cppflags = yes ; then
3893 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3895 elif test "${cf_tst_cflags}" = "\"'" ; then
3896 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3902 *$cf_add_cflags) #(vi
3905 case $cf_add_cflags in #(vi
3907 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3909 CPPFLAGS=`echo "$CPPFLAGS" | \
3910 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3911 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3915 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3920 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3925 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3927 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3929 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3930 && test -z "${cf_tst_cflags}" \
3931 && cf_fix_cppflags=no
3936 if test -n "$cf_new_cflags" ; then
3938 CFLAGS="$CFLAGS $cf_new_cflags"
3941 if test -n "$cf_new_cppflags" ; then
3943 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3946 if test -n "$cf_new_extra_cppflags" ; then
3948 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3956 echo "$as_me:3956: checking for signal global datatype" >&5
3957 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3958 if test "${cf_cv_sig_atomic_t+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 "volatile sig_atomic_t" \
3967 cat >conftest.$ac_ext <<_ACEOF
3968 #line 3968 "configure"
3969 #include "confdefs.h"
3971 #include <sys/types.h>
3977 static void handler(int sig)
3984 signal(SIGINT, handler);
3990 rm -f conftest.$ac_objext
3991 if { (eval echo "$as_me:3991: \"$ac_compile\"") >&5
3992 (eval $ac_compile) 2>&5
3994 echo "$as_me:3994: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:3997: \"$ac_try\"") >&5
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 cf_cv_sig_atomic_t=$cf_type
4004 echo "$as_me: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 cf_cv_sig_atomic_t=no
4008 rm -f conftest.$ac_objext conftest.$ac_ext
4009 test "$cf_cv_sig_atomic_t" != no && break
4014 echo "$as_me:4014: result: $cf_cv_sig_atomic_t" >&5
4015 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4016 test "$cf_cv_sig_atomic_t" != no &&
4017 cat >>confdefs.h <<EOF
4018 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4021 echo "$as_me:4021: checking if you want to use pkg-config" >&5
4022 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4024 # Check whether --with-pkg-config or --without-pkg-config was given.
4025 if test "${with_pkg_config+set}" = set; then
4026 withval="$with_pkg_config"
4027 cf_pkg_config=$withval
4031 echo "$as_me:4031: result: $cf_pkg_config" >&5
4032 echo "${ECHO_T}$cf_pkg_config" >&6
4034 case $cf_pkg_config in #(vi
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4043 echo "$as_me:4043: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4053 ac_save_IFS=$IFS; IFS=$ac_path_separator
4055 for ac_dir in $ac_dummy; do
4057 test -z "$ac_dir" && ac_dir=.
4058 if $as_executable_p "$ac_dir/$ac_word"; then
4059 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4060 echo "$as_me:4060: found $ac_dir/$ac_word" >&5
4068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4070 if test -n "$PKG_CONFIG"; then
4071 echo "$as_me:4071: result: $PKG_CONFIG" >&5
4072 echo "${ECHO_T}$PKG_CONFIG" >&6
4074 echo "$as_me:4074: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4079 if test -z "$ac_cv_path_PKG_CONFIG"; then
4080 ac_pt_PKG_CONFIG=$PKG_CONFIG
4081 # Extract the first word of "pkg-config", so it can be a program name with args.
4082 set dummy pkg-config; ac_word=$2
4083 echo "$as_me:4083: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 case $ac_pt_PKG_CONFIG in
4090 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4093 ac_save_IFS=$IFS; IFS=$ac_path_separator
4095 for ac_dir in $ac_dummy; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if $as_executable_p "$ac_dir/$ac_word"; then
4099 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4100 echo "$as_me:4100: found $ac_dir/$ac_word" >&5
4105 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4109 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4111 if test -n "$ac_pt_PKG_CONFIG"; then
4112 echo "$as_me:4112: result: $ac_pt_PKG_CONFIG" >&5
4113 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4115 echo "$as_me:4115: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4119 PKG_CONFIG=$ac_pt_PKG_CONFIG
4121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4130 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4131 if test "$PKG_CONFIG" != none ; then
4133 if test "x$prefix" != xNONE; then
4134 cf_path_syntax="$prefix"
4136 cf_path_syntax="$ac_default_prefix"
4139 case ".$PKG_CONFIG" in #(vi
4140 .\$\(*\)*|.\'*\'*) #(vi
4144 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4146 .\${*prefix}*|.\${*dir}*) #(vi
4147 eval PKG_CONFIG="$PKG_CONFIG"
4148 case ".$PKG_CONFIG" in #(vi
4150 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4155 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4158 { { echo "$as_me:4158: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4159 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4160 { (exit 1); exit 1; }; }
4166 echo "$as_me:4166: checking if you want to see long compiling messages" >&5
4167 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4169 # Check whether --enable-echo or --disable-echo was given.
4170 if test "${enable_echo+set}" = set; then
4171 enableval="$enable_echo"
4172 test "$enableval" != no && enableval=yes
4173 if test "$enableval" != "yes" ; then
4176 ECHO_LD='@echo linking $@;'
4177 RULE_CC='@echo compiling $<'
4178 SHOW_CC='@echo compiling $@'
4200 echo "$as_me:4200: result: $enableval" >&5
4201 echo "${ECHO_T}$enableval" >&6
4203 echo "$as_me:4203: checking for ncurses wrap-prefix" >&5
4204 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4206 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4207 if test "${with_ncurses_wrap_prefix+set}" = set; then
4208 withval="$with_ncurses_wrap_prefix"
4209 NCURSES_WRAP_PREFIX=$withval
4211 NCURSES_WRAP_PREFIX=_nc_
4213 echo "$as_me:4213: result: $NCURSES_WRAP_PREFIX" >&5
4214 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4216 echo "$as_me:4216: checking if you want to check for wide-character functions" >&5
4217 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4219 # Check whether --enable-widec or --disable-widec was given.
4220 if test "${enable_widec+set}" = set; then
4221 enableval="$enable_widec"
4222 test "$enableval" != no && enableval=yes
4223 if test "$enableval" != "yes" ; then
4233 echo "$as_me:4233: result: $cf_enable_widec" >&5
4234 echo "${ECHO_T}$cf_enable_widec" >&6
4236 echo "$as_me:4236: checking for specific curses-directory" >&5
4237 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4239 # Check whether --with-curses-dir or --without-curses-dir was given.
4240 if test "${with_curses_dir+set}" = set; then
4241 withval="$with_curses_dir"
4242 cf_cv_curses_dir=$withval
4246 echo "$as_me:4246: result: $cf_cv_curses_dir" >&5
4247 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4249 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4252 if test "x$prefix" != xNONE; then
4253 cf_path_syntax="$prefix"
4255 cf_path_syntax="$ac_default_prefix"
4258 case ".$withval" in #(vi
4259 .\$\(*\)*|.\'*\'*) #(vi
4263 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4265 .\${*prefix}*|.\${*dir}*) #(vi
4266 eval withval="$withval"
4267 case ".$withval" in #(vi
4269 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4274 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4277 { { echo "$as_me:4277: error: expected a pathname, not \"$withval\"" >&5
4278 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4279 { (exit 1); exit 1; }; }
4283 if test -d "$cf_cv_curses_dir"
4286 if test -n "$cf_cv_curses_dir/include" ; then
4287 for cf_add_incdir in $cf_cv_curses_dir/include
4289 while test $cf_add_incdir != /usr/include
4291 if test -d $cf_add_incdir
4294 if test -n "$CFLAGS$CPPFLAGS" ; then
4295 # a loop is needed to ensure we can add subdirs of existing dirs
4296 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4297 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4298 cf_have_incdir=yes; break
4303 if test "$cf_have_incdir" = no ; then
4304 if test "$cf_add_incdir" = /usr/local/include ; then
4305 if test "$GCC" = yes
4307 cf_save_CPPFLAGS=$CPPFLAGS
4308 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4309 cat >conftest.$ac_ext <<_ACEOF
4310 #line 4310 "configure"
4311 #include "confdefs.h"
4321 rm -f conftest.$ac_objext
4322 if { (eval echo "$as_me:4322: \"$ac_compile\"") >&5
4323 (eval $ac_compile) 2>&5
4325 echo "$as_me:4325: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:4328: \"$ac_try\"") >&5
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4335 echo "$as_me: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4339 rm -f conftest.$ac_objext conftest.$ac_ext
4340 CPPFLAGS=$cf_save_CPPFLAGS
4345 if test "$cf_have_incdir" = no ; then
4346 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4348 echo "${as_me:-configure}:4348: testing adding $cf_add_incdir to include-path ..." 1>&5
4350 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4352 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4353 test "$cf_top_incdir" = "$cf_add_incdir" && break
4354 cf_add_incdir="$cf_top_incdir"
4363 if test -n "$cf_cv_curses_dir/lib" ; then
4364 for cf_add_libdir in $cf_cv_curses_dir/lib
4366 if test $cf_add_libdir = /usr/lib ; then
4368 elif test -d $cf_add_libdir
4371 if test -n "$LDFLAGS$LIBS" ; then
4372 # a loop is needed to ensure we can add subdirs of existing dirs
4373 for cf_test_libdir in $LDFLAGS $LIBS ; do
4374 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4375 cf_have_libdir=yes; break
4379 if test "$cf_have_libdir" = no ; then
4380 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4382 echo "${as_me:-configure}:4382: testing adding $cf_add_libdir to library-path ..." 1>&5
4384 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4395 echo "$as_me:4395: checking for specified curses library type" >&5
4396 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4398 # Check whether --with-ncursesw or --without-ncursesw was given.
4399 if test "${with_ncursesw+set}" = set; then
4400 withval="$with_ncursesw"
4401 cf_cv_screen=ncursesw
4404 # Check whether --with-ncurses or --without-ncurses was given.
4405 if test "${with_ncurses+set}" = set; then
4406 withval="$with_ncurses"
4407 cf_cv_screen=ncurses
4410 # Check whether --with-pdcurses or --without-pdcurses was given.
4411 if test "${with_pdcurses+set}" = set; then
4412 withval="$with_pdcurses"
4413 cf_cv_screen=pdcurses
4416 # Check whether --with-curses-colr or --without-curses-colr was given.
4417 if test "${with_curses_colr+set}" = set; then
4418 withval="$with_curses_colr"
4419 cf_cv_screen=curses_colr
4422 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4423 if test "${with_curses_5lib+set}" = set; then
4424 withval="$with_curses_5lib"
4425 cf_cv_screen=curses_5lib
4432 echo "$as_me:4432: result: $cf_cv_screen" >&5
4433 echo "${ECHO_T}$cf_cv_screen" >&6
4435 case $cf_cv_screen in #(vi
4436 curses|curses_*) #(vi
4438 echo "$as_me:4438: checking for extra include directories" >&5
4439 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4440 if test "${cf_cv_curses_incdir+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cf_cv_curses_incdir=no
4445 case $host_os in #(vi
4447 if test "x$cf_cv_screen" = "xcurses_colr"
4449 test -d /usr/include/curses_colr && \
4450 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4454 if test "x$cf_cv_screen" = "xcurses_5lib"
4456 test -d /usr/5lib && \
4457 test -d /usr/5include && \
4458 cf_cv_curses_incdir="-I/usr/5include"
4464 echo "$as_me:4464: result: $cf_cv_curses_incdir" >&5
4465 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4466 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4468 echo "$as_me:4468: checking if we have identified curses headers" >&5
4469 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4470 if test "${cf_cv_ncurses_header+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 cf_cv_ncurses_header=none
4477 curses.h ncurses/ncurses.h ncurses/curses.h
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line 4480 "configure"
4481 #include "confdefs.h"
4482 #include <${cf_header}>
4486 initscr(); tgoto("?", 0,0)
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:4492: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4495 echo "$as_me:4495: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:4498: \"$ac_try\"") >&5
4501 echo "$as_me:4501: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 cf_cv_ncurses_header=$cf_header; break
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 rm -f conftest.$ac_objext conftest.$ac_ext
4512 echo "$as_me:4512: result: $cf_cv_ncurses_header" >&5
4513 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4515 if test "$cf_cv_ncurses_header" = none ; then
4516 { { echo "$as_me:4516: error: No curses header-files found" >&5
4517 echo "$as_me: error: No curses header-files found" >&2;}
4518 { (exit 1); exit 1; }; }
4521 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4523 for ac_header in $cf_cv_ncurses_header
4525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4526 echo "$as_me:4526: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.$ac_ext <<_ACEOF
4532 #line 4532 "configure"
4533 #include "confdefs.h"
4534 #include <$ac_header>
4536 if { (eval echo "$as_me:4536: \"$ac_cpp conftest.$ac_ext\"") >&5
4537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539 egrep -v '^ *\+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); } >/dev/null; then
4544 if test -s conftest.err; then
4545 ac_cpp_err=$ac_c_preproc_warn_flag
4552 if test -z "$ac_cpp_err"; then
4553 eval "$as_ac_Header=yes"
4555 echo "$as_me: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4557 eval "$as_ac_Header=no"
4559 rm -f conftest.err conftest.$ac_ext
4561 echo "$as_me:4561: result: `eval echo '${'$as_ac_Header'}'`" >&5
4562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4564 cat >>confdefs.h <<EOF
4565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 echo "$as_me:4571: checking for terminfo header" >&5
4572 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4573 if test "${cf_cv_term_header+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 case ${cf_cv_ncurses_header} in #(vi
4578 */ncurses.h|*/ncursesw.h) #(vi
4579 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4582 cf_term_header=term.h
4586 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line 4589 "configure"
4590 #include "confdefs.h"
4592 #include <${cf_cv_ncurses_header:-curses.h}>
4598 int x = auto_left_margin
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:4604: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:4610: \"$ac_try\"") >&5
4613 echo "$as_me:4613: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4616 cf_cv_term_header="$cf_test"
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 cf_cv_term_header=unknown
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4625 test "$cf_cv_term_header" != unknown && break
4629 echo "$as_me:4629: result: $cf_cv_term_header" >&5
4630 echo "${ECHO_T}$cf_cv_term_header" >&6
4632 # Set definitions to allow ifdef'ing to accommodate subdirectories
4634 case $cf_cv_term_header in # (vi
4637 cat >>confdefs.h <<\EOF
4638 #define HAVE_TERM_H 1
4644 case $cf_cv_term_header in # (vi
4645 ncurses/term.h) #(vi
4647 cat >>confdefs.h <<\EOF
4648 #define HAVE_NCURSES_TERM_H 1
4654 cat >>confdefs.h <<\EOF
4655 #define HAVE_NCURSESW_TERM_H 1
4661 echo "$as_me:4661: checking for ncurses version" >&5
4662 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4663 if test "${cf_cv_ncurses_version+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 cf_cv_ncurses_version=no
4670 if test "$cross_compiling" = yes; then
4672 # This will not work if the preprocessor splits the line after the
4673 # Autoconf token. The 'unproto' program does that.
4674 cat > conftest.$ac_ext <<EOF
4675 #include <${cf_cv_ncurses_header:-curses.h}>
4677 #ifdef NCURSES_VERSION
4678 Autoconf NCURSES_VERSION
4686 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4687 { (eval echo "$as_me:4687: \"$cf_try\"") >&5
4690 echo "$as_me:4690: \$? = $ac_status" >&5
4691 (exit $ac_status); }
4692 if test -f conftest.out ; then
4693 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4694 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 #line 4700 "configure"
4701 #include "confdefs.h"
4703 #include <${cf_cv_ncurses_header:-curses.h}>
4707 FILE *fp = fopen("$cf_tempfile", "w");
4708 #ifdef NCURSES_VERSION
4709 # ifdef NCURSES_VERSION_PATCH
4710 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4712 fprintf(fp, "%s\n", NCURSES_VERSION);
4716 fprintf(fp, "old\n");
4721 ${cf_cv_main_return:-return}(0);
4724 rm -f conftest$ac_exeext
4725 if { (eval echo "$as_me:4725: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>&5
4728 echo "$as_me:4728: \$? = $ac_status" >&5
4729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4730 { (eval echo "$as_me:4730: \"$ac_try\"") >&5
4733 echo "$as_me:4733: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4736 cf_cv_ncurses_version=`cat $cf_tempfile`
4738 echo "$as_me: program exited with status $ac_status" >&5
4739 echo "$as_me: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:4747: result: $cf_cv_ncurses_version" >&5
4748 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4749 test "$cf_cv_ncurses_version" = no ||
4750 cat >>confdefs.h <<\EOF
4754 echo "$as_me:4754: checking if we have identified curses libraries" >&5
4755 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line 4757 "configure"
4758 #include "confdefs.h"
4759 #include <${cf_cv_ncurses_header:-curses.h}>
4763 initscr(); tgoto("?", 0,0)
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:4769: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>&5
4772 echo "$as_me:4772: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:4775: \"$ac_try\"") >&5