2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20170501.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
658 --disable-stripping do not strip (debug info) installed executables
659 --enable-string-hacks work around bogus compiler/loader warnings
660 --with-pkg-config{=path} enable/disable use of pkg-config
661 --disable-echo do not display "compiling" commands
662 Curses Version-dependent Options:
663 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
664 --disable-widec disable checks for wide-character functions
665 --with-curses-dir=DIR directory in which (n)curses is installed
666 --with-screen=XXX use specified curses-libraries
667 --with-ncursesw use wide ncurses-libraries
668 --with-ncurses use ncurses-libraries
669 --with-pdcurses compile/link with pdcurses X11 library
670 --with-curses-colr compile/link with HPUX 10.x color-curses
671 --with-curses-5lib compile/link with SunOS 5lib curses
672 --with-Xaw3d link with Xaw 3d library
673 --with-Xaw3dxft link with Xaw 3d xft library
674 --with-neXtaw link with neXT Athena library
675 --with-XawPlus link with Athena-Plus library
676 --with-x use the X Window System
677 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
678 --disable-panel disable checks for panel functions
679 --disable-menu disable checks for menu functions
680 --disable-form disable checks for form functions
681 Testing/development Options:
682 --enable-warnings test: turn on gcc compiler warnings
683 --with-dmalloc test: use Gray Watson's dmalloc library
684 --with-dbmalloc test: use Conor Cahill's dbmalloc library
685 --with-valgrind test: use valgrind
686 --disable-leaks test: free permanent memory, analyze leaks
687 --disable-rpath-hack don't add rpath options for additional libraries
689 Some influential environment variables:
690 CC C compiler command
691 CFLAGS C compiler flags
692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
693 nonstandard directory <lib dir>
694 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
695 headers in a nonstandard directory <include dir>
698 Use these variables to override the choices made by `configure' or to help
699 it to find libraries and programs with nonstandard names/locations.
704 if test "$ac_init_help" = "recursive"; then
705 # If there are subdirs, report their specific --help.
707 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
709 # A "../" for each directory in /$ac_subdir.
710 ac_dots=`echo $ac_subdir |
711 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
714 .) # No --srcdir option. We are building in place.
715 ac_sub_srcdir=$srcdir ;;
716 [\\/]* | ?:[\\/]* ) # Absolute path.
717 ac_sub_srcdir=$srcdir/$ac_subdir ;;
719 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
722 # Check for guested configure; otherwise get Cygnus style configure.
723 if test -f $ac_sub_srcdir/configure.gnu; then
725 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
726 elif test -f $ac_sub_srcdir/configure; then
728 $SHELL $ac_sub_srcdir/configure --help=recursive
729 elif test -f $ac_sub_srcdir/configure.ac ||
730 test -f $ac_sub_srcdir/configure.in; then
734 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
740 test -n "$ac_init_help" && exit 0
741 if $ac_init_version; then
744 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
745 Free Software Foundation, Inc.
746 This configure script is free software; the Free Software Foundation
747 gives unlimited permission to copy, distribute and modify it.
753 This file contains any messages produced by compilers while
754 running configure, to aid debugging if configure makes a mistake.
756 It was created by $as_me, which was
757 generated by GNU Autoconf 2.52.20170501. Invocation command line was
768 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
769 uname -m = `(uname -m) 2>/dev/null || echo unknown`
770 uname -r = `(uname -r) 2>/dev/null || echo unknown`
771 uname -s = `(uname -s) 2>/dev/null || echo unknown`
772 uname -v = `(uname -v) 2>/dev/null || echo unknown`
774 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
775 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
777 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
778 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
779 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
780 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
781 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
782 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
783 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
797 # Keep a trace of the command line.
798 # Strip out --no-create and --no-recursion so they do not pile up.
799 # Also quote any args containing shell meta-characters.
805 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
806 | --no-cr | --no-c) ;;
807 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
808 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
809 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
810 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
811 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
813 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
816 # Get rid of the leading space.
819 # When interrupted or exit'd, cleanup temporary files, and complete
820 # config.log. We remove comments because anyway the quotes in there
821 # would cause problems or look ugly.
823 # Save into config.log some information that might help in debugging.
825 echo "## ----------------- ##" >&5
826 echo "## Cache variables. ##" >&5
827 echo "## ----------------- ##" >&5
829 # The following way of writing the cache mishandles newlines in values,
832 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
835 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
840 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
844 sed "/^$/d" confdefs.h >conftest.log
845 if test -s conftest.log; then
847 echo "## ------------ ##" >&5
848 echo "## confdefs.h. ##" >&5
849 echo "## ------------ ##" >&5
854 test "$ac_signal" != 0 &&
855 echo "$as_me: caught signal $ac_signal" >&5
856 echo "$as_me: exit $exit_status" >&5
857 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
860 for ac_signal in 1 2 13 15; do
861 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
866 rm -rf conftest* confdefs.h
867 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
870 # Let the site file select an alternate cache file if it wants to.
871 # Prefer explicitly selected file to automatically selected ones.
872 if test -z "$CONFIG_SITE"; then
873 if test "x$prefix" != xNONE; then
874 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
876 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
879 for ac_site_file in $CONFIG_SITE; do
880 if test -r "$ac_site_file"; then
881 { echo "$as_me:881: loading site script $ac_site_file" >&5
882 echo "$as_me: loading site script $ac_site_file" >&6;}
883 cat "$ac_site_file" >&5
888 if test -r "$cache_file"; then
889 # Some versions of bash will fail to source /dev/null (special
890 # files actually), so we avoid doing that.
891 if test -f "$cache_file"; then
892 { echo "$as_me:892: loading cache $cache_file" >&5
893 echo "$as_me: loading cache $cache_file" >&6;}
895 [\\/]* | ?:[\\/]* ) . $cache_file;;
900 { echo "$as_me:900: creating cache $cache_file" >&5
901 echo "$as_me: creating cache $cache_file" >&6;}
905 # Check that the precious variables saved in the cache have kept the same
907 ac_cache_corrupted=false
908 for ac_var in `(set) 2>&1 |
909 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
911 eval ac_new_set=\$ac_env_${ac_var}_set
912 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
913 eval ac_new_val="\$ac_env_${ac_var}_value"
914 case $ac_old_set,$ac_new_set in
916 { echo "$as_me:916: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
917 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
918 ac_cache_corrupted=: ;;
920 { echo "$as_me:920: error: \`$ac_var' was not set in the previous run" >&5
921 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
922 ac_cache_corrupted=: ;;
925 if test "x$ac_old_val" != "x$ac_new_val"; then
926 { echo "$as_me:926: error: \`$ac_var' has changed since the previous run:" >&5
927 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
928 { echo "$as_me:928: former value: $ac_old_val" >&5
929 echo "$as_me: former value: $ac_old_val" >&2;}
930 { echo "$as_me:930: current value: $ac_new_val" >&5
931 echo "$as_me: current value: $ac_new_val" >&2;}
935 # Pass precious variables to config.status. It doesn't matter if
936 # we pass some twice (in addition to the command line arguments).
937 if test "$ac_new_set" = set; then
939 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
940 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
941 ac_configure_args="$ac_configure_args '$ac_arg'"
943 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
948 if $ac_cache_corrupted; then
949 { echo "$as_me:949: error: changes in the environment can compromise the build" >&5
950 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
951 { { echo "$as_me:951: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
952 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
953 { (exit 1); exit 1; }; }
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
961 ac_main_return=return
963 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
964 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
966 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
967 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
969 echo "#! $SHELL" >conftest.sh
970 echo "exit 0" >>conftest.sh
972 if { (echo "$as_me:972: PATH=\".;.\"; conftest.sh") >&5
973 (PATH=".;."; conftest.sh) 2>&5
975 echo "$as_me:975: \$? = $ac_status" >&5
976 (exit $ac_status); }; then
977 ac_path_separator=';'
981 PATH_SEPARATOR="$ac_path_separator"
984 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
986 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
988 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
991 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
992 if test -f $ac_dir/install-sh; then
994 ac_install_sh="$ac_aux_dir/install-sh -c"
996 elif test -f $ac_dir/install.sh; then
998 ac_install_sh="$ac_aux_dir/install.sh -c"
1000 elif test -f $ac_dir/shtool; then
1002 ac_install_sh="$ac_aux_dir/shtool install -c"
1006 if test -z "$ac_aux_dir"; then
1007 { { echo "$as_me:1007: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1008 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1009 { (exit 1); exit 1; }; }
1011 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1012 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1013 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1015 # Make sure we can run config.sub.
1016 $ac_config_sub sun4 >/dev/null 2>&1 ||
1017 { { echo "$as_me:1017: error: cannot run $ac_config_sub" >&5
1018 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1019 { (exit 1); exit 1; }; }
1021 echo "$as_me:1021: checking build system type" >&5
1022 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1023 if test "${ac_cv_build+set}" = set; then
1024 echo $ECHO_N "(cached) $ECHO_C" >&6
1026 ac_cv_build_alias=$build_alias
1027 test -z "$ac_cv_build_alias" &&
1028 ac_cv_build_alias=`$ac_config_guess`
1029 test -z "$ac_cv_build_alias" &&
1030 { { echo "$as_me:1030: error: cannot guess build type; you must specify one" >&5
1031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1032 { (exit 1); exit 1; }; }
1033 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1034 { { echo "$as_me:1034: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1035 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1036 { (exit 1); exit 1; }; }
1039 echo "$as_me:1039: result: $ac_cv_build" >&5
1040 echo "${ECHO_T}$ac_cv_build" >&6
1042 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1043 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1044 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1047 echo "$as_me:1047: checking host system type" >&5
1048 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1049 if test "${ac_cv_host+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1052 ac_cv_host_alias=$host_alias
1053 test -z "$ac_cv_host_alias" &&
1054 ac_cv_host_alias=$ac_cv_build_alias
1055 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1056 { { echo "$as_me:1056: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1057 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1058 { (exit 1); exit 1; }; }
1061 echo "$as_me:1061: result: $ac_cv_host" >&5
1062 echo "${ECHO_T}$ac_cv_host" >&6
1064 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068 system_name="$host_os"
1070 system_name="`(uname -s -r) 2>/dev/null`"
1071 if test -z "$system_name" ; then
1072 system_name="`(hostname) 2>/dev/null`"
1075 test -n "$system_name" &&
1076 cat >>confdefs.h <<EOF
1077 #define SYSTEM_NAME "$system_name"
1080 if test "${cf_cv_system_name+set}" = set; then
1081 echo $ECHO_N "(cached) $ECHO_C" >&6
1083 cf_cv_system_name="$system_name"
1086 test -z "$system_name" && system_name="$cf_cv_system_name"
1087 test -n "$cf_cv_system_name" && echo "$as_me:1087: result: Configuring for $cf_cv_system_name" >&5
1088 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1090 if test ".$system_name" != ".$cf_cv_system_name" ; then
1091 echo "$as_me:1091: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1092 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1093 { { echo "$as_me:1093: error: \"Please remove config.cache and try again.\"" >&5
1094 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1095 { (exit 1); exit 1; }; }
1098 test "$program_prefix" != NONE &&
1099 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1100 # Use a double $ so make ignores it.
1101 test "$program_suffix" != NONE &&
1102 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1103 # Double any \ or $. echo might interpret backslashes.
1104 # By default was `s,x,x', remove it if useless.
1105 cat <<\_ACEOF >conftest.sed
1106 s/[\\$]/&&/g;s/;s,x,x,$//
1108 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1111 echo "$as_me:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5
1112 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1113 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1114 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1115 echo $ECHO_N "(cached) $ECHO_C" >&6
1117 cat >conftest.make <<\EOF
1119 @echo 'ac_maketemp="${MAKE}"'
1121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1122 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1123 if test -n "$ac_maketemp"; then
1124 eval ac_cv_prog_make_${ac_make}_set=yes
1126 eval ac_cv_prog_make_${ac_make}_set=no
1130 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1131 echo "$as_me:1131: result: yes" >&5
1132 echo "${ECHO_T}yes" >&6
1135 echo "$as_me:1135: result: no" >&5
1136 echo "${ECHO_T}no" >&6
1137 SET_MAKE="MAKE=${MAKE-make}"
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1145 ac_main_return=return
1146 if test -n "$ac_tool_prefix"; then
1147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1149 echo "$as_me:1149: checking for $ac_word" >&5
1150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1151 if test "${ac_cv_prog_CC+set}" = set; then
1152 echo $ECHO_N "(cached) $ECHO_C" >&6
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC="$CC" # Let the user override the test.
1157 ac_save_IFS=$IFS; IFS=$ac_path_separator
1159 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 $as_executable_p "$ac_dir/$ac_word" || continue
1163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1164 echo "$as_me:1164: found $ac_dir/$ac_word" >&5
1171 if test -n "$CC"; then
1172 echo "$as_me:1172: result: $CC" >&5
1173 echo "${ECHO_T}$CC" >&6
1175 echo "$as_me:1175: result: no" >&5
1176 echo "${ECHO_T}no" >&6
1180 if test -z "$ac_cv_prog_CC"; then
1182 # Extract the first word of "gcc", so it can be a program name with args.
1183 set dummy gcc; ac_word=$2
1184 echo "$as_me:1184: checking for $ac_word" >&5
1185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1187 echo $ECHO_N "(cached) $ECHO_C" >&6
1189 if test -n "$ac_ct_CC"; then
1190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1192 ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 $as_executable_p "$ac_dir/$ac_word" || continue
1198 ac_cv_prog_ac_ct_CC="gcc"
1199 echo "$as_me:1199: found $ac_dir/$ac_word" >&5
1205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1206 if test -n "$ac_ct_CC"; then
1207 echo "$as_me:1207: result: $ac_ct_CC" >&5
1208 echo "${ECHO_T}$ac_ct_CC" >&6
1210 echo "$as_me:1210: result: no" >&5
1211 echo "${ECHO_T}no" >&6
1219 if test -z "$CC"; then
1220 if test -n "$ac_tool_prefix"; then
1221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1222 set dummy ${ac_tool_prefix}cc; ac_word=$2
1223 echo "$as_me:1223: checking for $ac_word" >&5
1224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1225 if test "${ac_cv_prog_CC+set}" = set; then
1226 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 if test -n "$CC"; then
1229 ac_cv_prog_CC="$CC" # Let the user override the test.
1231 ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 $as_executable_p "$ac_dir/$ac_word" || continue
1237 ac_cv_prog_CC="${ac_tool_prefix}cc"
1238 echo "$as_me:1238: found $ac_dir/$ac_word" >&5
1245 if test -n "$CC"; then
1246 echo "$as_me:1246: result: $CC" >&5
1247 echo "${ECHO_T}$CC" >&6
1249 echo "$as_me:1249: result: no" >&5
1250 echo "${ECHO_T}no" >&6
1254 if test -z "$ac_cv_prog_CC"; then
1256 # Extract the first word of "cc", so it can be a program name with args.
1257 set dummy cc; ac_word=$2
1258 echo "$as_me:1258: checking for $ac_word" >&5
1259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 if test -n "$ac_ct_CC"; then
1264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1266 ac_save_IFS=$IFS; IFS=$ac_path_separator
1268 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 $as_executable_p "$ac_dir/$ac_word" || continue
1272 ac_cv_prog_ac_ct_CC="cc"
1273 echo "$as_me:1273: found $ac_dir/$ac_word" >&5
1279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1280 if test -n "$ac_ct_CC"; then
1281 echo "$as_me:1281: result: $ac_ct_CC" >&5
1282 echo "${ECHO_T}$ac_ct_CC" >&6
1284 echo "$as_me:1284: result: no" >&5
1285 echo "${ECHO_T}no" >&6
1294 if test -z "$CC"; then
1295 # Extract the first word of "cc", so it can be a program name with args.
1296 set dummy cc; ac_word=$2
1297 echo "$as_me:1297: checking for $ac_word" >&5
1298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1299 if test "${ac_cv_prog_CC+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 if test -n "$CC"; then
1303 ac_cv_prog_CC="$CC" # Let the user override the test.
1306 ac_save_IFS=$IFS; IFS=$ac_path_separator
1308 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 $as_executable_p "$ac_dir/$ac_word" || continue
1312 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1313 ac_prog_rejected=yes
1317 echo "$as_me:1317: found $ac_dir/$ac_word" >&5
1321 if test $ac_prog_rejected = yes; then
1322 # We found a bogon in the path, so make sure we never use it.
1323 set dummy $ac_cv_prog_CC
1325 if test $# != 0; then
1326 # We chose a different compiler from the bogus one.
1327 # However, it has the same basename, so the bogon will be chosen
1328 # first if we set CC to just the basename; use the full file name.
1330 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1338 if test -n "$CC"; then
1339 echo "$as_me:1339: result: $CC" >&5
1340 echo "${ECHO_T}$CC" >&6
1342 echo "$as_me:1342: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1347 if test -z "$CC"; then
1348 if test -n "$ac_tool_prefix"; then
1351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1353 echo "$as_me:1353: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 if test -n "$CC"; then
1359 ac_cv_prog_CC="$CC" # Let the user override the test.
1361 ac_save_IFS=$IFS; IFS=$ac_path_separator
1363 for ac_dir in $ac_dummy; do
1365 test -z "$ac_dir" && ac_dir=.
1366 $as_executable_p "$ac_dir/$ac_word" || continue
1367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1368 echo "$as_me:1368: found $ac_dir/$ac_word" >&5
1375 if test -n "$CC"; then
1376 echo "$as_me:1376: result: $CC" >&5
1377 echo "${ECHO_T}$CC" >&6
1379 echo "$as_me:1379: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1383 test -n "$CC" && break
1386 if test -z "$CC"; then
1390 # Extract the first word of "$ac_prog", so it can be a program name with args.
1391 set dummy $ac_prog; ac_word=$2
1392 echo "$as_me:1392: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$ac_ct_CC"; then
1398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1400 ac_save_IFS=$IFS; IFS=$ac_path_separator
1402 for ac_dir in $ac_dummy; do
1404 test -z "$ac_dir" && ac_dir=.
1405 $as_executable_p "$ac_dir/$ac_word" || continue
1406 ac_cv_prog_ac_ct_CC="$ac_prog"
1407 echo "$as_me:1407: found $ac_dir/$ac_word" >&5
1413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1414 if test -n "$ac_ct_CC"; then
1415 echo "$as_me:1415: result: $ac_ct_CC" >&5
1416 echo "${ECHO_T}$ac_ct_CC" >&6
1418 echo "$as_me:1418: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1422 test -n "$ac_ct_CC" && break
1430 test -z "$CC" && { { echo "$as_me:1430: error: no acceptable cc found in \$PATH" >&5
1431 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1432 { (exit 1); exit 1; }; }
1434 # Provide some information about the compiler.
1435 echo "$as_me:1435:" \
1436 "checking for C compiler version" >&5
1437 ac_compiler=`set X $ac_compile; echo $2`
1438 { (eval echo "$as_me:1438: \"$ac_compiler --version </dev/null >&5\"") >&5
1439 (eval $ac_compiler --version </dev/null >&5) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }
1443 { (eval echo "$as_me:1443: \"$ac_compiler -v </dev/null >&5\"") >&5
1444 (eval $ac_compiler -v </dev/null >&5) 2>&5
1446 echo "$as_me:1446: \$? = $ac_status" >&5
1447 (exit $ac_status); }
1448 { (eval echo "$as_me:1448: \"$ac_compiler -V </dev/null >&5\"") >&5
1449 (eval $ac_compiler -V </dev/null >&5) 2>&5
1451 echo "$as_me:1451: \$? = $ac_status" >&5
1452 (exit $ac_status); }
1454 cat >conftest.$ac_ext <<_ACEOF
1455 #line 1455 "configure"
1456 #include "confdefs.h"
1466 ac_clean_files_save=$ac_clean_files
1467 ac_clean_files="$ac_clean_files a.out a.exe"
1468 # Try to create an executable without -o first, disregard a.out.
1469 # It will help us diagnose broken compilers, and finding out an intuition
1471 echo "$as_me:1471: checking for C compiler default output" >&5
1472 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1473 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1474 if { (eval echo "$as_me:1474: \"$ac_link_default\"") >&5
1475 (eval $ac_link_default) 2>&5
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }; then
1479 # Find the output, starting from the most likely. This scheme is
1480 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1482 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1483 ls a.out conftest 2>/dev/null;
1484 ls a.* conftest.* 2>/dev/null`; do
1486 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1487 a.out ) # We found the default executable, but exeext='' is most
1490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1491 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1498 echo "$as_me: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1500 { { echo "$as_me:1500: error: C compiler cannot create executables" >&5
1501 echo "$as_me: error: C compiler cannot create executables" >&2;}
1502 { (exit 77); exit 77; }; }
1505 ac_exeext=$ac_cv_exeext
1506 echo "$as_me:1506: result: $ac_file" >&5
1507 echo "${ECHO_T}$ac_file" >&6
1509 # Check the compiler produces executables we can run. If not, either
1510 # the compiler is broken, or we cross compile.
1511 echo "$as_me:1511: checking whether the C compiler works" >&5
1512 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1513 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1514 # If not cross compiling, check that we can run a simple program.
1515 if test "$cross_compiling" != yes; then
1516 if { ac_try='./$ac_file'
1517 { (eval echo "$as_me:1517: \"$ac_try\"") >&5
1520 echo "$as_me:1520: \$? = $ac_status" >&5
1521 (exit $ac_status); }; }; then
1524 if test "$cross_compiling" = maybe; then
1527 { { echo "$as_me:1527: error: cannot run C compiled programs.
1528 If you meant to cross compile, use \`--host'." >&5
1529 echo "$as_me: error: cannot run C compiled programs.
1530 If you meant to cross compile, use \`--host'." >&2;}
1531 { (exit 1); exit 1; }; }
1535 echo "$as_me:1535: result: yes" >&5
1536 echo "${ECHO_T}yes" >&6
1538 rm -f a.out a.exe conftest$ac_cv_exeext
1539 ac_clean_files=$ac_clean_files_save
1540 # Check the compiler produces executables we can run. If not, either
1541 # the compiler is broken, or we cross compile.
1542 echo "$as_me:1542: checking whether we are cross compiling" >&5
1543 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1544 echo "$as_me:1544: result: $cross_compiling" >&5
1545 echo "${ECHO_T}$cross_compiling" >&6
1547 echo "$as_me:1547: checking for executable suffix" >&5
1548 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1549 if { (eval echo "$as_me:1549: \"$ac_link\"") >&5
1550 (eval $ac_link) 2>&5
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit $ac_status); }; then
1554 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1555 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1556 # work properly (i.e., refer to `conftest.exe'), while it won't with
1558 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1560 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1568 { { echo "$as_me:1568: error: cannot compute EXEEXT: cannot compile and link" >&5
1569 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1570 { (exit 1); exit 1; }; }
1573 rm -f conftest$ac_cv_exeext
1574 echo "$as_me:1574: result: $ac_cv_exeext" >&5
1575 echo "${ECHO_T}$ac_cv_exeext" >&6
1577 rm -f conftest.$ac_ext
1578 EXEEXT=$ac_cv_exeext
1580 echo "$as_me:1580: checking for object suffix" >&5
1581 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1582 if test "${ac_cv_objext+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 cat >conftest.$ac_ext <<_ACEOF
1586 #line 1586 "configure"
1587 #include "confdefs.h"
1597 rm -f conftest.o conftest.obj
1598 if { (eval echo "$as_me:1598: \"$ac_compile\"") >&5
1599 (eval $ac_compile) 2>&5
1601 echo "$as_me:1601: \$? = $ac_status" >&5
1602 (exit $ac_status); }; then
1603 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1605 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1611 echo "$as_me: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1613 { { echo "$as_me:1613: error: cannot compute OBJEXT: cannot compile" >&5
1614 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1615 { (exit 1); exit 1; }; }
1618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1620 echo "$as_me:1620: result: $ac_cv_objext" >&5
1621 echo "${ECHO_T}$ac_cv_objext" >&6
1622 OBJEXT=$ac_cv_objext
1624 echo "$as_me:1624: checking whether we are using the GNU C compiler" >&5
1625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 cat >conftest.$ac_ext <<_ACEOF
1630 #line 1630 "configure"
1631 #include "confdefs.h"
1644 rm -f conftest.$ac_objext
1645 if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5
1646 (eval $ac_compile) 2>&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); } &&
1650 { ac_try='test -s conftest.$ac_objext'
1651 { (eval echo "$as_me:1651: \"$ac_try\"") >&5
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1658 echo "$as_me: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1662 rm -f conftest.$ac_objext conftest.$ac_ext
1663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1666 echo "$as_me:1666: result: $ac_cv_c_compiler_gnu" >&5
1667 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1668 GCC=`test $ac_compiler_gnu = yes && echo yes`
1669 ac_test_CFLAGS=${CFLAGS+set}
1670 ac_save_CFLAGS=$CFLAGS
1672 echo "$as_me:1672: checking whether $CC accepts -g" >&5
1673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1674 if test "${ac_cv_prog_cc_g+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 cat >conftest.$ac_ext <<_ACEOF
1678 #line 1678 "configure"
1679 #include "confdefs.h"
1689 rm -f conftest.$ac_objext
1690 if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5
1691 (eval $ac_compile) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); } &&
1695 { ac_try='test -s conftest.$ac_objext'
1696 { (eval echo "$as_me:1696: \"$ac_try\"") >&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }; }; then
1703 echo "$as_me: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1707 rm -f conftest.$ac_objext conftest.$ac_ext
1709 echo "$as_me:1709: result: $ac_cv_prog_cc_g" >&5
1710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1711 if test "$ac_test_CFLAGS" = set; then
1712 CFLAGS=$ac_save_CFLAGS
1713 elif test $ac_cv_prog_cc_g = yes; then
1714 if test "$GCC" = yes; then
1720 if test "$GCC" = yes; then
1726 # Some people use a C++ compiler to compile C. Since we use `exit',
1727 # in C++ we need to declare it. In case someone uses the same compiler
1728 # for both compiling C and C++ we need to have the C++ compiler decide
1729 # the declaration of exit, since it's the most demanding environment.
1730 cat >conftest.$ac_ext <<_ACEOF
1735 rm -f conftest.$ac_objext
1736 if { (eval echo "$as_me:1736: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); } &&
1741 { ac_try='test -s conftest.$ac_objext'
1742 { (eval echo "$as_me:1742: \"$ac_try\"") >&5
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); }; }; then
1747 for ac_declaration in \
1749 '#include <stdlib.h>' \
1750 'extern "C" void std::exit (int) throw (); using std::exit;' \
1751 'extern "C" void std::exit (int); using std::exit;' \
1752 'extern "C" void exit (int) throw ();' \
1753 'extern "C" void exit (int);' \
1756 cat >conftest.$ac_ext <<_ACEOF
1757 #line 1757 "configure"
1758 #include "confdefs.h"
1769 rm -f conftest.$ac_objext
1770 if { (eval echo "$as_me:1770: \"$ac_compile\"") >&5
1771 (eval $ac_compile) 2>&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); } &&
1775 { ac_try='test -s conftest.$ac_objext'
1776 { (eval echo "$as_me:1776: \"$ac_try\"") >&5
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); }; }; then
1783 echo "$as_me: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1787 rm -f conftest.$ac_objext conftest.$ac_ext
1788 cat >conftest.$ac_ext <<_ACEOF
1789 #line 1789 "configure"
1790 #include "confdefs.h"
1800 rm -f conftest.$ac_objext
1801 if { (eval echo "$as_me:1801: \"$ac_compile\"") >&5
1802 (eval $ac_compile) 2>&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); } &&
1806 { ac_try='test -s conftest.$ac_objext'
1807 { (eval echo "$as_me:1807: \"$ac_try\"") >&5
1810 echo "$as_me:1810: \$? = $ac_status" >&5
1811 (exit $ac_status); }; }; then
1814 echo "$as_me: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1817 rm -f conftest.$ac_objext conftest.$ac_ext
1820 if test -n "$ac_declaration"; then
1821 echo '#ifdef __cplusplus' >>confdefs.h
1822 echo $ac_declaration >>confdefs.h
1823 echo '#endif' >>confdefs.h
1827 echo "$as_me: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 rm -f conftest.$ac_objext conftest.$ac_ext
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 ac_main_return=return
1839 if test "$GCC" = yes ; then
1840 echo "$as_me:1840: checking version of $CC" >&5
1841 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1842 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.].*//'`"
1843 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1844 echo "$as_me:1844: result: $GCC_VERSION" >&5
1845 echo "${ECHO_T}$GCC_VERSION" >&6
1848 echo "$as_me:1848: checking for $CC option to accept ANSI C" >&5
1849 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1850 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 ac_cv_prog_cc_stdc=no
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line 1856 "configure"
1857 #include "confdefs.h"
1860 #include <sys/types.h>
1861 #include <sys/stat.h>
1862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1863 struct buf { int x; };
1864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1865 static char *e (p, i)
1871 static char *f (char * (*g) (char **, int), char **p, ...)
1876 s = g (p, va_arg (v,int));
1880 int test (int i, double x);
1881 struct s1 {int (*f) (int a);};
1882 struct s2 {int (*f) (double a);};
1883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1894 # Don't try gcc -ansi; that turns off useful extensions and
1895 # breaks some systems' header files.
1896 # AIX -qlanglvl=ansi
1897 # Ultrix and OSF/1 -std1
1898 # HP-UX 10.20 and later -Ae
1899 # HP-UX older versions -Aa -D_HPUX_SOURCE
1900 # SVR4 -Xc -D__EXTENSIONS__
1901 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1903 CC="$ac_save_CC $ac_arg"
1904 rm -f conftest.$ac_objext
1905 if { (eval echo "$as_me:1905: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); } &&
1910 { ac_try='test -s conftest.$ac_objext'
1911 { (eval echo "$as_me:1911: \"$ac_try\"") >&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); }; }; then
1916 ac_cv_prog_cc_stdc=$ac_arg
1919 echo "$as_me: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1922 rm -f conftest.$ac_objext
1924 rm -f conftest.$ac_ext conftest.$ac_objext
1929 case "x$ac_cv_prog_cc_stdc" in
1931 echo "$as_me:1931: result: none needed" >&5
1932 echo "${ECHO_T}none needed" >&6 ;;
1934 echo "$as_me:1934: result: $ac_cv_prog_cc_stdc" >&5
1935 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1936 CC="$CC $ac_cv_prog_cc_stdc" ;;
1939 # This should have been defined by AC_PROG_CC
1942 echo "$as_me:1942: checking \$CFLAGS variable" >&5
1943 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
1946 echo "$as_me:1946: result: broken" >&5
1947 echo "${ECHO_T}broken" >&6
1948 { echo "$as_me:1948: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
1949 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
1952 for cf_arg in $cf_flags
1958 cf_new_extra_cppflags=
1960 for cf_add_cflags in $cf_arg
1962 case $cf_fix_cppflags in
1964 case $cf_add_cflags in
1965 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1966 case $cf_add_cflags in
1968 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1970 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1971 && test -z "${cf_tst_cflags}" \
1972 && cf_fix_cppflags=yes
1974 if test $cf_fix_cppflags = yes ; then
1976 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1977 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1980 elif test "${cf_tst_cflags}" = "\"'" ; then
1982 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1983 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1993 case $cf_add_cflags in
1995 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1997 CPPFLAGS=`echo "$CPPFLAGS" | \
1998 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1999 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2004 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2005 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2012 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2013 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2020 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2021 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2023 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2025 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2026 && test -z "${cf_tst_cflags}" \
2027 && cf_fix_cppflags=no
2032 if test -n "$cf_new_cflags" ; then
2034 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2035 CFLAGS="${CFLAGS}$cf_new_cflags"
2039 if test -n "$cf_new_cppflags" ; then
2041 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2042 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2046 if test -n "$cf_new_extra_cppflags" ; then
2048 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2049 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2056 echo "$as_me:2056: result: ok" >&5
2057 echo "${ECHO_T}ok" >&6
2061 echo "$as_me:2061: checking \$CC variable" >&5
2062 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2065 echo "$as_me:2065: result: broken" >&5
2066 echo "${ECHO_T}broken" >&6
2067 { echo "$as_me:2067: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2068 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2070 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2071 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2073 for cf_arg in $cf_flags
2081 cf_new_extra_cppflags=
2083 for cf_add_cflags in $cf_arg
2085 case $cf_fix_cppflags in
2087 case $cf_add_cflags in
2088 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2089 case $cf_add_cflags in
2091 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2093 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2094 && test -z "${cf_tst_cflags}" \
2095 && cf_fix_cppflags=yes
2097 if test $cf_fix_cppflags = yes ; then
2099 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2100 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2103 elif test "${cf_tst_cflags}" = "\"'" ; then
2105 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2106 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2116 case $cf_add_cflags in
2118 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2120 CPPFLAGS=`echo "$CPPFLAGS" | \
2121 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2122 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2127 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2128 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2135 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2136 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2143 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2144 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2146 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2148 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2149 && test -z "${cf_tst_cflags}" \
2150 && cf_fix_cppflags=no
2155 if test -n "$cf_new_cflags" ; then
2157 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2158 CFLAGS="${CFLAGS}$cf_new_cflags"
2162 if test -n "$cf_new_cppflags" ; then
2164 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2165 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2169 if test -n "$cf_new_extra_cppflags" ; then
2171 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2172 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2182 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2184 echo "${as_me:-configure}:2184: testing resulting CC: '$CC' ..." 1>&5
2186 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2188 echo "${as_me:-configure}:2188: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2190 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2192 echo "${as_me:-configure}:2192: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2196 echo "$as_me:2196: result: ok" >&5
2197 echo "${ECHO_T}ok" >&6
2201 echo "$as_me:2201: checking for inline" >&5
2202 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2203 if test "${ac_cv_c_inline+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 for ac_kw in inline __inline__ __inline; do
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line 2209 "configure"
2210 #include "confdefs.h"
2212 static $ac_kw int static_foo () {return 0; }
2213 $ac_kw int foo () {return 0; }
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:2218: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>&5
2221 echo "$as_me:2221: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:2224: \"$ac_try\"") >&5
2227 echo "$as_me:2227: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 ac_cv_c_inline=$ac_kw; break
2231 echo "$as_me: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2234 rm -f conftest.$ac_objext conftest.$ac_ext
2238 echo "$as_me:2238: result: $ac_cv_c_inline" >&5
2239 echo "${ECHO_T}$ac_cv_c_inline" >&6
2240 case $ac_cv_c_inline in
2243 cat >>confdefs.h <<\EOF
2247 *) cat >>confdefs.h <<EOF
2248 #define inline $ac_cv_c_inline
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258 ac_main_return=return
2259 echo "$as_me:2259: checking how to run the C preprocessor" >&5
2260 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2261 # On Suns, sometimes $CPP names a directory.
2262 if test -n "$CPP" && test -d "$CPP"; then
2265 if test -z "$CPP"; then
2266 if test "${ac_cv_prog_CPP+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 # Double quotes because CPP needs to be expanded
2270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2273 for ac_c_preproc_warn_flag in '' yes
2275 # Use a header file that comes with gcc, so configuring glibc
2276 # with a fresh cross-compiler works.
2277 # On the NeXT, cc -E runs the code through the compiler's parser,
2278 # not just through cpp. "Syntax error" is here to catch this case.
2279 cat >conftest.$ac_ext <<_ACEOF
2280 #line 2280 "configure"
2281 #include "confdefs.h"
2285 if { (eval echo "$as_me:2285: \"$ac_cpp conftest.$ac_ext\"") >&5
2286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2288 egrep -v '^ *\+' conftest.er1 >conftest.err
2290 cat conftest.err >&5
2291 echo "$as_me:2291: \$? = $ac_status" >&5
2292 (exit $ac_status); } >/dev/null; then
2293 if test -s conftest.err; then
2294 ac_cpp_err=$ac_c_preproc_warn_flag
2301 if test -z "$ac_cpp_err"; then
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 # Broken: fails on valid input.
2309 rm -f conftest.err conftest.$ac_ext
2311 # OK, works on sane cases. Now check whether non-existent headers
2312 # can be detected and how.
2313 cat >conftest.$ac_ext <<_ACEOF
2314 #line 2314 "configure"
2315 #include "confdefs.h"
2316 #include <ac_nonexistent.h>
2318 if { (eval echo "$as_me:2318: \"$ac_cpp conftest.$ac_ext\"") >&5
2319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2321 egrep -v '^ *\+' conftest.er1 >conftest.err
2323 cat conftest.err >&5
2324 echo "$as_me:2324: \$? = $ac_status" >&5
2325 (exit $ac_status); } >/dev/null; then
2326 if test -s conftest.err; then
2327 ac_cpp_err=$ac_c_preproc_warn_flag
2334 if test -z "$ac_cpp_err"; then
2335 # Broken: success on invalid input.
2338 echo "$as_me: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 # Passes both tests.
2344 rm -f conftest.err conftest.$ac_ext
2347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2348 rm -f conftest.err conftest.$ac_ext
2349 if $ac_preproc_ok; then
2361 echo "$as_me:2361: result: $CPP" >&5
2362 echo "${ECHO_T}$CPP" >&6
2364 for ac_c_preproc_warn_flag in '' yes
2366 # Use a header file that comes with gcc, so configuring glibc
2367 # with a fresh cross-compiler works.
2368 # On the NeXT, cc -E runs the code through the compiler's parser,
2369 # not just through cpp. "Syntax error" is here to catch this case.
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line 2371 "configure"
2372 #include "confdefs.h"
2376 if { (eval echo "$as_me:2376: \"$ac_cpp conftest.$ac_ext\"") >&5
2377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2379 egrep -v '^ *\+' conftest.er1 >conftest.err
2381 cat conftest.err >&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); } >/dev/null; then
2384 if test -s conftest.err; then
2385 ac_cpp_err=$ac_c_preproc_warn_flag
2392 if test -z "$ac_cpp_err"; then
2395 echo "$as_me: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 # Broken: fails on valid input.
2400 rm -f conftest.err conftest.$ac_ext
2402 # OK, works on sane cases. Now check whether non-existent headers
2403 # can be detected and how.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #line 2405 "configure"
2406 #include "confdefs.h"
2407 #include <ac_nonexistent.h>
2409 if { (eval echo "$as_me:2409: \"$ac_cpp conftest.$ac_ext\"") >&5
2410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2412 egrep -v '^ *\+' conftest.er1 >conftest.err
2414 cat conftest.err >&5
2415 echo "$as_me:2415: \$? = $ac_status" >&5
2416 (exit $ac_status); } >/dev/null; then
2417 if test -s conftest.err; then
2418 ac_cpp_err=$ac_c_preproc_warn_flag
2425 if test -z "$ac_cpp_err"; then
2426 # Broken: success on invalid input.
2429 echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 # Passes both tests.
2435 rm -f conftest.err conftest.$ac_ext
2438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2439 rm -f conftest.err conftest.$ac_ext
2440 if $ac_preproc_ok; then
2443 { { echo "$as_me:2443: error: C preprocessor \"$CPP\" fails sanity check" >&5
2444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2445 { (exit 1); exit 1; }; }
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 ac_main_return=return
2455 for ac_prog in mawk gawk nawk awk
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:2459: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$AWK"; then
2465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467 ac_save_IFS=$IFS; IFS=$ac_path_separator
2469 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 $as_executable_p "$ac_dir/$ac_word" || continue
2473 ac_cv_prog_AWK="$ac_prog"
2474 echo "$as_me:2474: found $ac_dir/$ac_word" >&5
2481 if test -n "$AWK"; then
2482 echo "$as_me:2482: result: $AWK" >&5
2483 echo "${ECHO_T}$AWK" >&6
2485 echo "$as_me:2485: result: no" >&5
2486 echo "${ECHO_T}no" >&6
2489 test -n "$AWK" && break
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo "$as_me:2504: checking for a BSD compatible install" >&5
2505 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2506 if test -z "$INSTALL"; then
2507 if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_save_IFS=$IFS; IFS=$ac_path_separator
2511 for ac_dir in $PATH; do
2513 # Account for people who put trailing slashes in PATH elements.
2515 / | ./ | .// | /cC/* \
2516 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2522 for ac_prog in ginstall scoinst install; do
2523 if $as_executable_p "$ac_dir/$ac_prog"; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2528 elif test $ac_prog = install &&
2529 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2533 ac_cv_path_install="$ac_dir/$ac_prog -c"
2543 if test "${ac_cv_path_install+set}" = set; then
2544 INSTALL=$ac_cv_path_install
2546 # As a last resort, use the slow shell script. We don't cache a
2547 # path for INSTALL within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the path is relative.
2550 INSTALL=$ac_install_sh
2553 echo "$as_me:2553: result: $INSTALL" >&5
2554 echo "${ECHO_T}$INSTALL" >&6
2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557 # It thinks the first close brace ends the variable substitution.
2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2569 test -z "$cf_dir" && cf_dir=.
2570 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2574 echo "$as_me:2574: checking if you want to install stripped executables" >&5
2575 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2577 # Check whether --enable-stripping or --disable-stripping was given.
2578 if test "${enable_stripping+set}" = set; then
2579 enableval="$enable_stripping"
2580 test "$enableval" != no && enableval=yes
2581 if test "$enableval" != "yes" ; then
2591 echo "$as_me:2591: result: $with_stripping" >&5
2592 echo "${ECHO_T}$with_stripping" >&6
2594 if test "$with_stripping" = yes
2601 : ${INSTALL:=install}
2602 echo "$as_me:2602: checking if install accepts -p option" >&5
2603 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2604 if test "${cf_cv_install_p+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2614 if test -f conftest.out/conftest.in
2616 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2617 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2618 if test -s conftest.err
2633 echo "$as_me:2633: result: $cf_cv_install_p" >&5
2634 echo "${ECHO_T}$cf_cv_install_p" >&6
2636 echo "$as_me:2636: checking if install needs to be told about ownership" >&5
2637 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2638 case `$ac_config_guess` in
2647 echo "$as_me:2647: result: $with_install_o" >&5
2648 echo "${ECHO_T}$with_install_o" >&6
2649 if test "x$with_install_o" = xyes
2651 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
2656 for ac_prog in lint cppcheck splint
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo "$as_me:2660: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_LINT+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$LINT"; then
2666 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2668 ac_save_IFS=$IFS; IFS=$ac_path_separator
2670 for ac_dir in $ac_dummy; do
2672 test -z "$ac_dir" && ac_dir=.
2673 $as_executable_p "$ac_dir/$ac_word" || continue
2674 ac_cv_prog_LINT="$ac_prog"
2675 echo "$as_me:2675: found $ac_dir/$ac_word" >&5
2681 LINT=$ac_cv_prog_LINT
2682 if test -n "$LINT"; then
2683 echo "$as_me:2683: result: $LINT" >&5
2684 echo "${ECHO_T}$LINT" >&6
2686 echo "$as_me:2686: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2690 test -n "$LINT" && break
2693 echo "$as_me:2693: checking if filesystem supports mixed-case filenames" >&5
2694 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2695 if test "${cf_cv_mixedcase+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test "$cross_compiling" = yes ; then
2700 case $target_alias in
2701 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2709 rm -f conftest CONFTEST
2711 if test -f CONFTEST ; then
2716 rm -f conftest CONFTEST
2720 echo "$as_me:2720: result: $cf_cv_mixedcase" >&5
2721 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2722 test "$cf_cv_mixedcase" = yes &&
2723 cat >>confdefs.h <<\EOF
2724 #define MIXEDCASE_FILENAMES 1
2727 for ac_prog in exctags ctags
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 echo "$as_me:2731: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_CTAGS+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$CTAGS"; then
2737 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2739 ac_save_IFS=$IFS; IFS=$ac_path_separator
2741 for ac_dir in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir=.
2744 $as_executable_p "$ac_dir/$ac_word" || continue
2745 ac_cv_prog_CTAGS="$ac_prog"
2746 echo "$as_me:2746: found $ac_dir/$ac_word" >&5
2752 CTAGS=$ac_cv_prog_CTAGS
2753 if test -n "$CTAGS"; then
2754 echo "$as_me:2754: result: $CTAGS" >&5
2755 echo "${ECHO_T}$CTAGS" >&6
2757 echo "$as_me:2757: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2761 test -n "$CTAGS" && break
2764 for ac_prog in exetags etags
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 echo "$as_me:2768: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_ETAGS+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$ETAGS"; then
2774 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2776 ac_save_IFS=$IFS; IFS=$ac_path_separator
2778 for ac_dir in $ac_dummy; do
2780 test -z "$ac_dir" && ac_dir=.
2781 $as_executable_p "$ac_dir/$ac_word" || continue
2782 ac_cv_prog_ETAGS="$ac_prog"
2783 echo "$as_me:2783: found $ac_dir/$ac_word" >&5
2789 ETAGS=$ac_cv_prog_ETAGS
2790 if test -n "$ETAGS"; then
2791 echo "$as_me:2791: result: $ETAGS" >&5
2792 echo "${ECHO_T}$ETAGS" >&6
2794 echo "$as_me:2794: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2798 test -n "$ETAGS" && break
2801 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2802 set dummy ${CTAGS:-ctags}; ac_word=$2
2803 echo "$as_me:2803: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 if test -n "$MAKE_LOWER_TAGS"; then
2809 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2811 ac_save_IFS=$IFS; IFS=$ac_path_separator
2813 for ac_dir in $ac_dummy; do
2815 test -z "$ac_dir" && ac_dir=.
2816 $as_executable_p "$ac_dir/$ac_word" || continue
2817 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2818 echo "$as_me:2818: found $ac_dir/$ac_word" >&5
2822 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2825 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2826 if test -n "$MAKE_LOWER_TAGS"; then
2827 echo "$as_me:2827: result: $MAKE_LOWER_TAGS" >&5
2828 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2830 echo "$as_me:2830: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2834 if test "$cf_cv_mixedcase" = yes ; then
2835 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2836 set dummy ${ETAGS:-etags}; ac_word=$2
2837 echo "$as_me:2837: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$MAKE_UPPER_TAGS"; then
2843 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2845 ac_save_IFS=$IFS; IFS=$ac_path_separator
2847 for ac_dir in $ac_dummy; do
2849 test -z "$ac_dir" && ac_dir=.
2850 $as_executable_p "$ac_dir/$ac_word" || continue
2851 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2852 echo "$as_me:2852: found $ac_dir/$ac_word" >&5
2856 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2859 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2860 if test -n "$MAKE_UPPER_TAGS"; then
2861 echo "$as_me:2861: result: $MAKE_UPPER_TAGS" >&5
2862 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2864 echo "$as_me:2864: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2872 if test "$MAKE_UPPER_TAGS" = yes ; then
2878 if test "$MAKE_LOWER_TAGS" = yes ; then
2884 echo "$as_me:2884: checking if -lm needed for math functions" >&5
2885 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2886 if test "${cf_cv_need_libm+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 cat >conftest.$ac_ext <<_ACEOF
2891 #line 2891 "configure"
2892 #include "confdefs.h"
2901 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2906 rm -f conftest.$ac_objext conftest$ac_exeext
2907 if { (eval echo "$as_me:2907: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -s conftest$ac_exeext'
2913 { (eval echo "$as_me:2913: \"$ac_try\"") >&5
2916 echo "$as_me:2916: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2920 echo "$as_me: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2926 echo "$as_me:2926: result: $cf_cv_need_libm" >&5
2927 echo "${ECHO_T}$cf_cv_need_libm" >&6
2928 if test "$cf_cv_need_libm" = yes
2936 CC_SHARED_OPTS=unknown
2937 CPPFLAGS="$CPPFLAGS"
2939 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2940 DFT_UPR_MODEL="NORMAL"
2953 PACKAGE="ncurses-examples"
2959 TINFO_LIBS='$(LIBS_CURSES)'
2960 cf_cv_abi_version=""
2961 cf_cv_rel_version=""
2967 if test "$GCC" = yes
2969 cat > conftest.i <<EOF
2971 #define GCC_PRINTF 0
2976 #ifndef GCC_NORETURN
2977 #define GCC_NORETURN /* nothing */
2980 #define GCC_UNUSED /* nothing */
2983 if test "$GCC" = yes
2985 { echo "$as_me:2985: checking for $CC __attribute__ directives..." >&5
2986 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2988 "${as_me:-configure}"
2989 #include "confdefs.h"
2990 #include "conftest.h"
2991 #include "conftest.i"
2993 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2995 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2998 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3000 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3002 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3003 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3004 extern void foo(void) GCC_NORETURN;
3005 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3007 cf_printf_attribute=no
3008 cf_scanf_attribute=no
3009 for cf_attribute in scanf printf unused noreturn
3012 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3014 cf_directive="__attribute__(($cf_attribute))"
3015 echo "checking for $CC $cf_directive" 1>&5
3017 case $cf_attribute in
3019 cf_printf_attribute=yes
3020 cat >conftest.h <<EOF
3021 #define GCC_$cf_ATTRIBUTE 1
3025 cf_scanf_attribute=yes
3026 cat >conftest.h <<EOF
3027 #define GCC_$cf_ATTRIBUTE 1
3031 cat >conftest.h <<EOF
3032 #define GCC_$cf_ATTRIBUTE $cf_directive
3037 if { (eval echo "$as_me:3037: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>&5
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); }; then
3042 test -n "$verbose" && echo "$as_me:3042: result: ... $cf_attribute" >&5
3043 echo "${ECHO_T}... $cf_attribute" >&6
3044 cat conftest.h >>confdefs.h
3045 case $cf_attribute in
3048 cat >>confdefs.h <<EOF
3049 #define GCC_NORETURN $cf_directive
3054 cf_value='/* nothing */'
3055 if test "$cf_printf_attribute" != no ; then
3056 cf_value='__attribute__((format(printf,fmt,var)))'
3058 cat >>confdefs.h <<\EOF
3059 #define GCC_PRINTF 1
3064 cat >>confdefs.h <<EOF
3065 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3070 cf_value='/* nothing */'
3071 if test "$cf_scanf_attribute" != no ; then
3072 cf_value='__attribute__((format(scanf,fmt,var)))'
3074 cat >>confdefs.h <<\EOF
3080 cat >>confdefs.h <<EOF
3081 #define GCC_SCANFLIKE(fmt,var) $cf_value
3087 cat >>confdefs.h <<EOF
3088 #define GCC_UNUSED $cf_directive
3096 fgrep define conftest.i >>confdefs.h
3101 echo "$as_me:3101: checking if you want to work around bogus compiler/loader warnings" >&5
3102 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3104 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3105 if test "${enable_string_hacks+set}" = set; then
3106 enableval="$enable_string_hacks"
3107 with_string_hacks=$enableval
3109 with_string_hacks=no
3111 echo "$as_me:3111: result: $with_string_hacks" >&5
3112 echo "${ECHO_T}$with_string_hacks" >&6
3114 if test "x$with_string_hacks" = "xyes"; then
3116 cat >>confdefs.h <<\EOF
3117 #define USE_STRING_HACKS 1
3120 { echo "$as_me:3120: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3121 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3122 echo "$as_me:3122: checking for strlcat" >&5
3123 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3124 if test "${ac_cv_func_strlcat+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line 3128 "configure"
3129 #include "confdefs.h"
3130 /* System header to define __stub macros and hopefully few prototypes,
3131 which can conflict with char strlcat (); below. */
3133 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3145 /* The GNU C library defines this for functions which it implements
3146 to always fail with ENOSYS. Some functions are actually named
3147 something starting with __ and the normal name is an alias. */
3148 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3151 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3158 rm -f conftest.$ac_objext conftest$ac_exeext
3159 if { (eval echo "$as_me:3159: \"$ac_link\"") >&5
3160 (eval $ac_link) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -s conftest$ac_exeext'
3165 { (eval echo "$as_me:3165: \"$ac_try\"") >&5
3168 echo "$as_me:3168: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_func_strlcat=yes
3172 echo "$as_me: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 ac_cv_func_strlcat=no
3176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3178 echo "$as_me:3178: result: $ac_cv_func_strlcat" >&5
3179 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3180 if test $ac_cv_func_strlcat = yes; then
3182 cat >>confdefs.h <<\EOF
3183 #define HAVE_STRLCAT 1
3188 echo "$as_me:3188: checking for strlcat in -lbsd" >&5
3189 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3190 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_check_lib_save_LIBS=$LIBS
3195 cat >conftest.$ac_ext <<_ACEOF
3196 #line 3196 "configure"
3197 #include "confdefs.h"
3199 /* Override any gcc2 internal prototype to avoid an error. */
3203 /* We use char because int might match the return type of a gcc2
3204 builtin and then its argument prototype would still apply. */
3214 rm -f conftest.$ac_objext conftest$ac_exeext
3215 if { (eval echo "$as_me:3215: \"$ac_link\"") >&5
3216 (eval $ac_link) 2>&5
3218 echo "$as_me:3218: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -s conftest$ac_exeext'
3221 { (eval echo "$as_me:3221: \"$ac_try\"") >&5
3224 echo "$as_me:3224: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3226 ac_cv_lib_bsd_strlcat=yes
3228 echo "$as_me: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3230 ac_cv_lib_bsd_strlcat=no
3232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3233 LIBS=$ac_check_lib_save_LIBS
3235 echo "$as_me:3235: result: $ac_cv_lib_bsd_strlcat" >&5
3236 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3237 if test $ac_cv_lib_bsd_strlcat = yes; then
3240 # Filter out duplicates - this happens with badly-designed ".pc" files...
3241 for cf_add_1lib in $LIBS
3243 for cf_add_2lib in $cf_add_libs
3245 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3251 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3255 for ac_header in bsd/string.h
3257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3258 echo "$as_me:3258: checking for $ac_header" >&5
3259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line 3264 "configure"
3265 #include "confdefs.h"
3266 #include <$ac_header>
3268 if { (eval echo "$as_me:3268: \"$ac_cpp conftest.$ac_ext\"") >&5
3269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271 egrep -v '^ *\+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:3274: \$? = $ac_status" >&5
3275 (exit $ac_status); } >/dev/null; then
3276 if test -s conftest.err; then
3277 ac_cpp_err=$ac_c_preproc_warn_flag
3284 if test -z "$ac_cpp_err"; then
3285 eval "$as_ac_Header=yes"
3287 echo "$as_me: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3289 eval "$as_ac_Header=no"
3291 rm -f conftest.err conftest.$ac_ext
3293 echo "$as_me:3293: result: `eval echo '${'$as_ac_Header'}'`" >&5
3294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3296 cat >>confdefs.h <<EOF
3297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3303 cat >>confdefs.h <<\EOF
3304 #define HAVE_STRLCAT 1
3311 for ac_func in strlcpy snprintf
3313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3314 echo "$as_me:3314: checking for $ac_func" >&5
3315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3316 if eval "test \"\${$as_ac_var+set}\" = set"; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 cat >conftest.$ac_ext <<_ACEOF
3320 #line 3320 "configure"
3321 #include "confdefs.h"
3322 /* System header to define __stub macros and hopefully few prototypes,
3323 which can conflict with char $ac_func (); below. */
3325 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3337 /* The GNU C library defines this for functions which it implements
3338 to always fail with ENOSYS. Some functions are actually named
3339 something starting with __ and the normal name is an alias. */
3340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3343 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3350 rm -f conftest.$ac_objext conftest$ac_exeext
3351 if { (eval echo "$as_me:3351: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>&5
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -s conftest$ac_exeext'
3357 { (eval echo "$as_me:3357: \"$ac_try\"") >&5
3360 echo "$as_me:3360: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 eval "$as_ac_var=yes"
3364 echo "$as_me: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3366 eval "$as_ac_var=no"
3368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3370 echo "$as_me:3370: result: `eval echo '${'$as_ac_var'}'`" >&5
3371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3372 if test `eval echo '${'$as_ac_var'}'` = yes; then
3373 cat >>confdefs.h <<EOF
3374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3383 cf_POSIX_C_SOURCE=199506L
3388 cf_xopen_source="-D_ALL_SOURCE"
3394 cf_xopen_source="-D_APPLE_C_SOURCE"
3397 cf_xopen_source="-D_DARWIN_C_SOURCE"
3400 (freebsd*|dragonfly*)
3401 # 5.x headers associate
3402 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3403 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3404 cf_POSIX_C_SOURCE=200112L
3406 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3409 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3412 cf_xopen_source="-D_HPUX_SOURCE"
3415 cf_xopen_source="-D_SGI_SOURCE"
3418 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3420 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3422 echo "$as_me:3422: checking if this is the GNU C library" >&5
3423 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3424 if test "${cf_cv_gnu_library+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3429 #line 3429 "configure"
3430 #include "confdefs.h"
3431 #include <sys/types.h>
3436 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3439 # error not GNU C library
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3455 echo "$as_me:3455: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 cf_cv_gnu_library=yes
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 cf_cv_gnu_library=no
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3466 echo "$as_me:3466: result: $cf_cv_gnu_library" >&5
3467 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3469 if test x$cf_cv_gnu_library = xyes; then
3471 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3472 # was changed to help a little...
3473 echo "$as_me:3473: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3474 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3475 if test "${cf_cv_gnu_library_219+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3482 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line 3485 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3492 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3495 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:3505: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:3508: \"$ac_try\"") >&5
3511 echo "$as_me:3511: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 cf_cv_gnu_library_219=yes
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 cf_cv_gnu_library_219=no
3519 rm -f conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:3523: result: $cf_cv_gnu_library_219" >&5
3524 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3526 if test "x$cf_cv_gnu_library_219" = xyes; then
3528 echo "$as_me:3528: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3529 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3530 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 cf_new_extra_cppflags=
3539 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3541 case $cf_fix_cppflags in
3543 case $cf_add_cflags in
3544 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3545 case $cf_add_cflags in
3547 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3550 && test -z "${cf_tst_cflags}" \
3551 && cf_fix_cppflags=yes
3553 if test $cf_fix_cppflags = yes ; then
3555 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3556 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3559 elif test "${cf_tst_cflags}" = "\"'" ; then
3561 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3562 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3572 case $cf_add_cflags in
3574 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3576 CPPFLAGS=`echo "$CPPFLAGS" | \
3577 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3578 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3583 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3584 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3591 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3592 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3599 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3600 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3602 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3604 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3605 && test -z "${cf_tst_cflags}" \
3606 && cf_fix_cppflags=no
3611 if test -n "$cf_new_cflags" ; then
3613 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3614 CFLAGS="${CFLAGS}$cf_new_cflags"
3618 if test -n "$cf_new_cppflags" ; then
3620 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3621 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3625 if test -n "$cf_new_extra_cppflags" ; then
3627 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3628 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3632 cat >conftest.$ac_ext <<_ACEOF
3633 #line 3633 "configure"
3634 #include "confdefs.h"
3637 #include <sys/types.h>
3643 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3646 # error GNU C library is too old
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3656 echo "$as_me:3656: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:3659: \"$ac_try\"") >&5
3662 echo "$as_me:3662: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 cf_cv_gnu_dftsrc_219=yes
3666 echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 cf_cv_gnu_dftsrc_219=no
3670 rm -f conftest.$ac_objext conftest.$ac_ext
3673 echo "$as_me:3673: result: $cf_cv_gnu_dftsrc_219" >&5
3674 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3675 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3677 cf_cv_gnu_dftsrc_219=maybe
3680 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3682 echo "$as_me:3682: checking if we must define _GNU_SOURCE" >&5
3683 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3684 if test "${cf_cv_gnu_source+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 cat >conftest.$ac_ext <<_ACEOF
3689 #line 3689 "configure"
3690 #include "confdefs.h"
3691 #include <sys/types.h>
3696 #ifndef _XOPEN_SOURCE
3697 #error expected _XOPEN_SOURCE to be defined
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:3704: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:3707: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:3710: \"$ac_try\"") >&5
3713 echo "$as_me:3713: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3724 cf_new_extra_cppflags=
3726 for cf_add_cflags in -D_GNU_SOURCE
3728 case $cf_fix_cppflags in
3730 case $cf_add_cflags in
3731 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3732 case $cf_add_cflags in
3734 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3736 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3737 && test -z "${cf_tst_cflags}" \
3738 && cf_fix_cppflags=yes
3740 if test $cf_fix_cppflags = yes ; then
3742 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3743 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3746 elif test "${cf_tst_cflags}" = "\"'" ; then
3748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3759 case $cf_add_cflags in
3761 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3763 CPPFLAGS=`echo "$CPPFLAGS" | \
3764 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3765 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3770 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3771 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3778 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3779 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3786 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3787 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3789 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3791 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3792 && test -z "${cf_tst_cflags}" \
3793 && cf_fix_cppflags=no
3798 if test -n "$cf_new_cflags" ; then
3800 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3801 CFLAGS="${CFLAGS}$cf_new_cflags"
3805 if test -n "$cf_new_cppflags" ; then
3807 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3808 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3812 if test -n "$cf_new_extra_cppflags" ; then
3814 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3815 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3819 cat >conftest.$ac_ext <<_ACEOF
3820 #line 3820 "configure"
3821 #include "confdefs.h"
3822 #include <sys/types.h>
3827 #ifdef _XOPEN_SOURCE
3828 #error expected _XOPEN_SOURCE to be undefined
3834 rm -f conftest.$ac_objext
3835 if { (eval echo "$as_me:3835: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
3838 echo "$as_me:3838: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:3841: \"$ac_try\"") >&5
3844 echo "$as_me:3844: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3848 echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 cf_cv_gnu_source=yes
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3856 rm -f conftest.$ac_objext conftest.$ac_ext
3859 echo "$as_me:3859: result: $cf_cv_gnu_source" >&5
3860 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3862 if test "$cf_cv_gnu_source" = yes
3864 echo "$as_me:3864: checking if we should also define _DEFAULT_SOURCE" >&5
3865 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3866 if test "${cf_cv_default_source+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3871 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line 3874 "configure"
3875 #include "confdefs.h"
3876 #include <sys/types.h>
3881 #ifdef _DEFAULT_SOURCE
3882 #error expected _DEFAULT_SOURCE to be undefined
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:3889: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3892 echo "$as_me:3892: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:3895: \"$ac_try\"") >&5
3898 echo "$as_me:3898: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 cf_cv_default_source=no
3902 echo "$as_me: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 cf_cv_default_source=yes
3906 rm -f conftest.$ac_objext conftest.$ac_ext
3909 echo "$as_me:3909: result: $cf_cv_default_source" >&5
3910 echo "${ECHO_T}$cf_cv_default_source" >&6
3911 if test "$cf_cv_default_source" = yes
3914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3915 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3925 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3928 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3931 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3933 cf_save_CFLAGS="$CFLAGS"
3934 cf_save_CPPFLAGS="$CPPFLAGS"
3936 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3937 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3938 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3940 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3941 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3942 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3944 echo "$as_me:3944: checking if we should define _POSIX_C_SOURCE" >&5
3945 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3946 if test "${cf_cv_posix_c_source+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 echo "${as_me:-configure}:3950: testing if the symbol is already defined go no further ..." 1>&5
3952 cat >conftest.$ac_ext <<_ACEOF
3953 #line 3953 "configure"
3954 #include "confdefs.h"
3955 #include <sys/types.h>
3960 #ifndef _POSIX_C_SOURCE