2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20200802.
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 runstatedir='${localstatedir}/run'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -runstatedir | --runstatedir | --runstatedi | --runstated \
286 | --runstate | --runstat | --runsta | --runst \
287 | --runs | --run | --ru)
288 ac_prev=runstatedir ;;
289 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
290 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
291 | --runs=* | --run=* | --ru=*)
292 runstatedir=$ac_optarg ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir=$ac_optarg ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix=$ac_optarg ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix=$ac_optarg ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name=$ac_optarg ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir=$ac_optarg ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir=$ac_optarg ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir=$ac_optarg ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
395 ac_prev=target_alias ;;
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target_alias=$ac_optarg ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers | -V)
406 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid package name: $ac_package" >&2
410 { (exit 1); exit 1; }; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "with_$ac_package='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
420 # Reject names that are not valid shell variable names.
421 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
422 { echo "$as_me: error: invalid package name: $ac_package" >&2
423 { (exit 1); exit 1; }; }
424 ac_package=`echo $ac_package | sed 's/-/_/g'`
425 eval "with_$ac_package=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes=$ac_optarg ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries=$ac_optarg ;;
445 -*) { echo "$as_me: error: unrecognized option: $ac_option
446 Try \`$0 --help' for more information." >&2
447 { (exit 1); exit 1; }; }
451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
452 # Reject names that are not valid shell variable names.
453 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
454 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
455 { (exit 1); exit 1; }; }
456 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
457 eval "$ac_envvar='$ac_optarg'"
461 # FIXME: should be removed in autoconf 3.0.
462 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
464 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
465 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
471 if test -n "$ac_prev"; then
472 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
473 { echo "$as_me: error: missing argument to $ac_option" >&2
474 { (exit 1); exit 1; }; }
477 # Be sure to have absolute paths.
478 for ac_var in exec_prefix prefix
480 eval ac_val=$`echo $ac_var`
482 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
483 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
484 { (exit 1); exit 1; }; };;
488 # Be sure to have absolute paths.
489 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
490 localstatedir libdir includedir oldincludedir infodir mandir
492 eval ac_val=$`echo $ac_var`
494 [\\/$]* | ?:[\\/]* ) ;;
495 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
496 { (exit 1); exit 1; }; };;
500 # There might be people who depend on the old broken behavior: `$host'
501 # used to hold the argument of --host etc.
506 # FIXME: should be removed in autoconf 3.0.
507 if test "x$host_alias" != x; then
508 if test "x$build_alias" = x; then
509 cross_compiling=maybe
510 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
511 If a cross compiler is detected then cross compile mode will be used." >&2
512 elif test "x$build_alias" != "x$host_alias"; then
518 test -n "$host_alias" && ac_tool_prefix=$host_alias-
520 test "$silent" = yes && exec 6>/dev/null
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
539 { (exit 1); exit 1; }; }
541 { echo "$as_me: error: cannot find sources in $srcdir" >&2
542 { (exit 1); exit 1; }; }
545 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
546 ac_env_build_alias_set=${build_alias+set}
547 ac_env_build_alias_value=$build_alias
548 ac_cv_env_build_alias_set=${build_alias+set}
549 ac_cv_env_build_alias_value=$build_alias
550 ac_env_host_alias_set=${host_alias+set}
551 ac_env_host_alias_value=$host_alias
552 ac_cv_env_host_alias_set=${host_alias+set}
553 ac_cv_env_host_alias_value=$host_alias
554 ac_env_target_alias_set=${target_alias+set}
555 ac_env_target_alias_value=$target_alias
556 ac_cv_env_target_alias_set=${target_alias+set}
557 ac_cv_env_target_alias_value=$target_alias
558 ac_env_CC_set=${CC+set}
560 ac_cv_env_CC_set=${CC+set}
561 ac_cv_env_CC_value=$CC
562 ac_env_CFLAGS_set=${CFLAGS+set}
563 ac_env_CFLAGS_value=$CFLAGS
564 ac_cv_env_CFLAGS_set=${CFLAGS+set}
565 ac_cv_env_CFLAGS_value=$CFLAGS
566 ac_env_LDFLAGS_set=${LDFLAGS+set}
567 ac_env_LDFLAGS_value=$LDFLAGS
568 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
569 ac_cv_env_LDFLAGS_value=$LDFLAGS
570 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
571 ac_env_CPPFLAGS_value=$CPPFLAGS
572 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
573 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
574 ac_env_CPP_set=${CPP+set}
575 ac_env_CPP_value=$CPP
576 ac_cv_env_CPP_set=${CPP+set}
577 ac_cv_env_CPP_value=$CPP
580 # Report the --help message.
582 if test "$ac_init_help" = "long"; then
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
586 \`configure' configures this package to adapt to many kinds of systems.
588 Usage: $0 [OPTION]... [VAR=VALUE]...
590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
591 VAR=VALUE. See below for descriptions of some of the useful variables.
593 Defaults for the options are specified in brackets.
596 -h, --help display this help and exit
597 --help=short display options specific to this package
598 --help=recursive display the short help of all the included packages
599 -V, --version display version information and exit
600 -q, --quiet, --silent do not print \`checking...' messages
601 --cache-file=FILE cache test results in FILE [disabled]
602 -C, --config-cache alias for \`--cache-file=config.cache'
603 -n, --no-create do not create output files
604 --srcdir=DIR find the sources in DIR [configure dir or \`..']
609 Installation directories:
610 --prefix=PREFIX install architecture-independent files in PREFIX
612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
615 By default, \`make install' will install all the files in
616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
618 for instance \`--prefix=\$HOME'.
620 For better control, use the options below.
622 Fine tuning of the installation directories:
623 --bindir=DIR user executables [EPREFIX/bin]
624 --sbindir=DIR system admin executables [EPREFIX/sbin]
625 --libexecdir=DIR program executables [EPREFIX/libexec]
626 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
631 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
632 --libdir=DIR object code libraries [EPREFIX/lib]
633 --includedir=DIR C header files [PREFIX/include]
634 --oldincludedir=DIR C header files for non-gcc [/usr/include]
635 --infodir=DIR info documentation [DATAROOTDIR/info]
636 --mandir=DIR man documentation [DATAROOTDIR/man]
642 --program-prefix=PREFIX prepend PREFIX to installed program names
643 --program-suffix=SUFFIX append SUFFIX to installed program names
644 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
647 --x-includes=DIR X include files are in DIR
648 --x-libraries=DIR X library files are in DIR
651 --build=BUILD configure for building on BUILD [guessed]
652 --host=HOST build programs to run on HOST [BUILD]
656 if test -n "$ac_init_help"; then
661 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
662 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
665 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
666 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
669 --disable-stripping do not strip (debug info) installed executables
670 --enable-string-hacks work around bogus compiler/loader warnings
671 --with-pkg-config{=path} enable/disable use of pkg-config
672 --disable-echo do not display "compiling" commands
673 Curses Version-dependent Options:
674 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
675 --disable-widec disable checks for wide-character functions
676 --with-curses-dir=DIR directory in which (n)curses is installed
677 --with-screen=XXX use specified curses-libraries
678 --with-ncursesw use wide ncurses-libraries
679 --with-ncurses use ncurses-libraries
680 --with-pdcurses compile/link with pdcurses X11 library
681 --with-curses-colr compile/link with HPUX 10.x color-curses
682 --with-curses-5lib compile/link with SunOS 5lib curses
683 --with-Xaw3d link with Xaw 3d library
684 --with-Xaw3dxft link with Xaw 3d xft library
685 --with-neXtaw link with neXT Athena library
686 --with-XawPlus link with Athena-Plus library
687 --with-x use the X Window System
688 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
689 --with-form-libname=XXX override form basename of library
690 --with-menu-libname=XXX override menu basename of library
691 --with-panel-libname=XXX override panel basename of library
692 --disable-panel disable checks for panel functions
693 --disable-menu disable checks for menu functions
694 --disable-form disable checks for form functions
695 Testing/development Options:
696 --enable-warnings test: turn on gcc compiler warnings
697 --with-dmalloc test: use Gray Watson's dmalloc library
698 --with-dbmalloc test: use Conor Cahill's dbmalloc library
699 --with-valgrind test: use valgrind
700 --disable-leaks test: free permanent memory, analyze leaks
701 --disable-rpath-hack don't add rpath options for additional libraries
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20200802. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
1000 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1002 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1005 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1006 if test -f $ac_dir/install-sh; then
1008 ac_install_sh="$ac_aux_dir/install-sh -c"
1010 elif test -f $ac_dir/install.sh; then
1012 ac_install_sh="$ac_aux_dir/install.sh -c"
1014 elif test -f $ac_dir/shtool; then
1016 ac_install_sh="$ac_aux_dir/shtool install -c"
1020 if test -z "$ac_aux_dir"; then
1021 { { echo "$as_me:1021: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1022 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1023 { (exit 1); exit 1; }; }
1025 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1026 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1027 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1029 # Make sure we can run config.sub.
1030 $ac_config_sub sun4 >/dev/null 2>&1 ||
1031 { { echo "$as_me:1031: error: cannot run $ac_config_sub" >&5
1032 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1033 { (exit 1); exit 1; }; }
1035 echo "$as_me:1035: checking build system type" >&5
1036 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1037 if test "${ac_cv_build+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1040 ac_cv_build_alias=$build_alias
1041 test -z "$ac_cv_build_alias" &&
1042 ac_cv_build_alias=`$ac_config_guess`
1043 test -z "$ac_cv_build_alias" &&
1044 { { echo "$as_me:1044: error: cannot guess build type; you must specify one" >&5
1045 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1046 { (exit 1); exit 1; }; }
1047 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_build" >&5
1054 echo "${ECHO_T}$ac_cv_build" >&6
1056 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1061 echo "$as_me:1061: checking host system type" >&5
1062 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1063 if test "${ac_cv_host+set}" = set; then
1064 echo $ECHO_N "(cached) $ECHO_C" >&6
1066 ac_cv_host_alias=$host_alias
1067 test -z "$ac_cv_host_alias" &&
1068 ac_cv_host_alias=$ac_cv_build_alias
1069 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1070 { { echo "$as_me:1070: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1071 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1072 { (exit 1); exit 1; }; }
1075 echo "$as_me:1075: result: $ac_cv_host" >&5
1076 echo "${ECHO_T}$ac_cv_host" >&6
1078 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1082 system_name="$host_os"
1084 system_name="`(uname -s -r) 2>/dev/null`"
1085 if test -z "$system_name" ; then
1086 system_name="`(hostname) 2>/dev/null`"
1089 test -n "$system_name" &&
1090 cat >>confdefs.h <<EOF
1091 #define SYSTEM_NAME "$system_name"
1094 if test "${cf_cv_system_name+set}" = set; then
1095 echo $ECHO_N "(cached) $ECHO_C" >&6
1097 cf_cv_system_name="$system_name"
1100 test -z "$system_name" && system_name="$cf_cv_system_name"
1101 test -n "$cf_cv_system_name" && echo "$as_me:1101: result: Configuring for $cf_cv_system_name" >&5
1102 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1104 if test ".$system_name" != ".$cf_cv_system_name" ; then
1105 echo "$as_me:1105: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1106 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1107 { { echo "$as_me:1107: error: \"Please remove config.cache and try again.\"" >&5
1108 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1109 { (exit 1); exit 1; }; }
1112 test "$program_prefix" != NONE &&
1113 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1114 # Use a double $ so make ignores it.
1115 test "$program_suffix" != NONE &&
1116 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1117 # Double any \ or $. echo might interpret backslashes.
1118 # By default was `s,x,x', remove it if useless.
1119 cat <<\_ACEOF >conftest.sed
1120 s/[\\$]/&&/g;s/;s,x,x,$//
1122 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1125 echo "$as_me:1125: checking whether ${MAKE-make} sets \${MAKE}" >&5
1126 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1127 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1128 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1129 echo $ECHO_N "(cached) $ECHO_C" >&6
1131 cat >conftest.make <<\EOF
1133 @echo 'ac_maketemp="${MAKE}"'
1135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1136 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1137 if test -n "$ac_maketemp"; then
1138 eval ac_cv_prog_make_${ac_make}_set=yes
1140 eval ac_cv_prog_make_${ac_make}_set=no
1144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1145 echo "$as_me:1145: result: yes" >&5
1146 echo "${ECHO_T}yes" >&6
1149 echo "$as_me:1149: result: no" >&5
1150 echo "${ECHO_T}no" >&6
1151 SET_MAKE="MAKE=${MAKE-make}"
1155 ac_cpp='$CPP $CPPFLAGS'
1156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1159 ac_main_return=return
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1163 echo "$as_me:1163: checking for $ac_word" >&5
1164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1165 if test "${ac_cv_prog_CC+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if test -n "$CC"; then
1169 ac_cv_prog_CC="$CC" # Let the user override the test.
1171 ac_save_IFS=$IFS; IFS=$ac_path_separator
1173 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 $as_executable_p "$ac_dir/$ac_word" || continue
1177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1178 echo "$as_me:1178: found $ac_dir/$ac_word" >&5
1185 if test -n "$CC"; then
1186 echo "$as_me:1186: result: $CC" >&5
1187 echo "${ECHO_T}$CC" >&6
1189 echo "$as_me:1189: result: no" >&5
1190 echo "${ECHO_T}no" >&6
1194 if test -z "$ac_cv_prog_CC"; then
1196 # Extract the first word of "gcc", so it can be a program name with args.
1197 set dummy gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1203 if test -n "$ac_ct_CC"; then
1204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1206 ac_save_IFS=$IFS; IFS=$ac_path_separator
1208 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_ac_ct_CC="gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1220 if test -n "$ac_ct_CC"; then
1221 echo "$as_me:1221: result: $ac_ct_CC" >&5
1222 echo "${ECHO_T}$ac_ct_CC" >&6
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1233 if test -z "$CC"; then
1234 if test -n "$ac_tool_prefix"; then
1235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1236 set dummy ${ac_tool_prefix}cc; ac_word=$2
1237 echo "$as_me:1237: checking for $ac_word" >&5
1238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1239 if test "${ac_cv_prog_CC+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 if test -n "$CC"; then
1243 ac_cv_prog_CC="$CC" # Let the user override the test.
1245 ac_save_IFS=$IFS; IFS=$ac_path_separator
1247 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 $as_executable_p "$ac_dir/$ac_word" || continue
1251 ac_cv_prog_CC="${ac_tool_prefix}cc"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1259 if test -n "$CC"; then
1260 echo "$as_me:1260: result: $CC" >&5
1261 echo "${ECHO_T}$CC" >&6
1263 echo "$as_me:1263: result: no" >&5
1264 echo "${ECHO_T}no" >&6
1268 if test -z "$ac_cv_prog_CC"; then
1270 # Extract the first word of "cc", so it can be a program name with args.
1271 set dummy cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 if test -n "$ac_ct_CC"; then
1278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1280 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_ac_ct_CC="cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1294 if test -n "$ac_ct_CC"; then
1295 echo "$as_me:1295: result: $ac_ct_CC" >&5
1296 echo "${ECHO_T}$ac_ct_CC" >&6
1298 echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1308 if test -z "$CC"; then
1309 # Extract the first word of "cc", so it can be a program name with args.
1310 set dummy cc; ac_word=$2
1311 echo "$as_me:1311: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 ac_save_IFS=$IFS; IFS=$ac_path_separator
1322 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 $as_executable_p "$ac_dir/$ac_word" || continue
1326 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1327 ac_prog_rejected=yes
1331 echo "$as_me:1331: found $ac_dir/$ac_word" >&5
1335 if test $ac_prog_rejected = yes; then
1336 # We found a bogon in the path, so make sure we never use it.
1337 set dummy $ac_cv_prog_CC
1339 if test $# != 0; then
1340 # We chose a different compiler from the bogus one.
1341 # However, it has the same basename, so the bogon will be chosen
1342 # first if we set CC to just the basename; use the full file name.
1344 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1352 if test -n "$CC"; then
1353 echo "$as_me:1353: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1356 echo "$as_me:1356: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1361 if test -z "$CC"; then
1362 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1367 echo "$as_me:1367: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1375 ac_save_IFS=$IFS; IFS=$ac_path_separator
1377 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 $as_executable_p "$ac_dir/$ac_word" || continue
1381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1382 echo "$as_me:1382: found $ac_dir/$ac_word" >&5
1389 if test -n "$CC"; then
1390 echo "$as_me:1390: result: $CC" >&5
1391 echo "${ECHO_T}$CC" >&6
1393 echo "$as_me:1393: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 test -n "$CC" && break
1400 if test -z "$CC"; then
1404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo "$as_me:1406: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 ac_save_IFS=$IFS; IFS=$ac_path_separator
1416 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 $as_executable_p "$ac_dir/$ac_word" || continue
1420 ac_cv_prog_ac_ct_CC="$ac_prog"
1421 echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:1429: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1432 echo "$as_me:1432: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1436 test -n "$ac_ct_CC" && break
1444 test -z "$CC" && { { echo "$as_me:1444: error: no acceptable cc found in \$PATH" >&5
1445 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1446 { (exit 1); exit 1; }; }
1448 # Provide some information about the compiler.
1449 echo "$as_me:1449:" \
1450 "checking for C compiler version" >&5
1451 ac_compiler=`set X $ac_compile; echo $2`
1452 { (eval echo "$as_me:1452: \"$ac_compiler --version </dev/null >&5\"") >&5
1453 (eval $ac_compiler --version </dev/null >&5) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }
1457 { (eval echo "$as_me:1457: \"$ac_compiler -v </dev/null >&5\"") >&5
1458 (eval $ac_compiler -v </dev/null >&5) 2>&5
1460 echo "$as_me:1460: \$? = $ac_status" >&5
1461 (exit $ac_status); }
1462 { (eval echo "$as_me:1462: \"$ac_compiler -V </dev/null >&5\"") >&5
1463 (eval $ac_compiler -V </dev/null >&5) 2>&5
1465 echo "$as_me:1465: \$? = $ac_status" >&5
1466 (exit $ac_status); }
1468 cat >conftest.$ac_ext <<_ACEOF
1469 #line 1469 "configure"
1470 #include "confdefs.h"
1480 ac_clean_files_save=$ac_clean_files
1481 ac_clean_files="$ac_clean_files a.out a.exe"
1482 # Try to create an executable without -o first, disregard a.out.
1483 # It will help us diagnose broken compilers, and finding out an intuition
1485 echo "$as_me:1485: checking for C compiler default output" >&5
1486 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1488 if { (eval echo "$as_me:1488: \"$ac_link_default\"") >&5
1489 (eval $ac_link_default) 2>&5
1491 echo "$as_me:1491: \$? = $ac_status" >&5
1492 (exit $ac_status); }; then
1493 # Find the output, starting from the most likely. This scheme is
1494 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1496 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1497 ls a.out conftest 2>/dev/null;
1498 ls a.* conftest.* 2>/dev/null`; do
1500 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1501 a.out ) # We found the default executable, but exeext='' is most
1504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1505 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1512 echo "$as_me: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1514 { { echo "$as_me:1514: error: C compiler cannot create executables" >&5
1515 echo "$as_me: error: C compiler cannot create executables" >&2;}
1516 { (exit 77); exit 77; }; }
1519 ac_exeext=$ac_cv_exeext
1520 echo "$as_me:1520: result: $ac_file" >&5
1521 echo "${ECHO_T}$ac_file" >&6
1523 # Check the compiler produces executables we can run. If not, either
1524 # the compiler is broken, or we cross compile.
1525 echo "$as_me:1525: checking whether the C compiler works" >&5
1526 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1528 # If not cross compiling, check that we can run a simple program.
1529 if test "$cross_compiling" != yes; then
1530 if { ac_try='./$ac_file'
1531 { (eval echo "$as_me:1531: \"$ac_try\"") >&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); }; }; then
1538 if test "$cross_compiling" = maybe; then
1541 { { echo "$as_me:1541: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&5
1543 echo "$as_me: error: cannot run C compiled programs.
1544 If you meant to cross compile, use \`--host'." >&2;}
1545 { (exit 1); exit 1; }; }
1549 echo "$as_me:1549: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1552 rm -f a.out a.exe conftest$ac_cv_exeext
1553 ac_clean_files=$ac_clean_files_save
1554 # Check the compiler produces executables we can run. If not, either
1555 # the compiler is broken, or we cross compile.
1556 echo "$as_me:1556: checking whether we are cross compiling" >&5
1557 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1558 echo "$as_me:1558: result: $cross_compiling" >&5
1559 echo "${ECHO_T}$cross_compiling" >&6
1561 echo "$as_me:1561: checking for executable suffix" >&5
1562 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1563 if { (eval echo "$as_me:1563: \"$ac_link\"") >&5
1564 (eval $ac_link) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; then
1568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1570 # work properly (i.e., refer to `conftest.exe'), while it won't with
1572 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1574 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1582 { { echo "$as_me:1582: error: cannot compute EXEEXT: cannot compile and link" >&5
1583 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1584 { (exit 1); exit 1; }; }
1587 rm -f conftest$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_cv_exeext" >&5
1589 echo "${ECHO_T}$ac_cv_exeext" >&6
1591 rm -f conftest.$ac_ext
1592 EXEEXT=$ac_cv_exeext
1594 echo "$as_me:1594: checking for object suffix" >&5
1595 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1596 if test "${ac_cv_objext+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 cat >conftest.$ac_ext <<_ACEOF
1600 #line 1600 "configure"
1601 #include "confdefs.h"
1611 rm -f conftest.o conftest.obj
1612 if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
1613 (eval $ac_compile) 2>&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; then
1617 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1619 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1620 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1625 echo "$as_me: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 { { echo "$as_me:1627: error: cannot compute OBJEXT: cannot compile" >&5
1628 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1629 { (exit 1); exit 1; }; }
1632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1634 echo "$as_me:1634: result: $ac_cv_objext" >&5
1635 echo "${ECHO_T}$ac_cv_objext" >&6
1636 OBJEXT=$ac_cv_objext
1638 echo "$as_me:1638: checking whether we are using the GNU C compiler" >&5
1639 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1640 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 cat >conftest.$ac_ext <<_ACEOF
1644 #line 1644 "configure"
1645 #include "confdefs.h"
1658 rm -f conftest.$ac_objext
1659 if { (eval echo "$as_me:1659: \"$ac_compile\"") >&5
1660 (eval $ac_compile) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); } &&
1664 { ac_try='test -s conftest.$ac_objext'
1665 { (eval echo "$as_me:1665: \"$ac_try\"") >&5
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); }; }; then
1672 echo "$as_me: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1676 rm -f conftest.$ac_objext conftest.$ac_ext
1677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1680 echo "$as_me:1680: result: $ac_cv_c_compiler_gnu" >&5
1681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1682 GCC=`test $ac_compiler_gnu = yes && echo yes`
1683 ac_test_CFLAGS=${CFLAGS+set}
1684 ac_save_CFLAGS=$CFLAGS
1686 echo "$as_me:1686: checking whether $CC accepts -g" >&5
1687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1688 if test "${ac_cv_prog_cc_g+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 cat >conftest.$ac_ext <<_ACEOF
1692 #line 1692 "configure"
1693 #include "confdefs.h"
1703 rm -f conftest.$ac_objext
1704 if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
1705 (eval $ac_compile) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); } &&
1709 { ac_try='test -s conftest.$ac_objext'
1710 { (eval echo "$as_me:1710: \"$ac_try\"") >&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }; }; then
1717 echo "$as_me: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1723 echo "$as_me:1723: result: $ac_cv_prog_cc_g" >&5
1724 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1725 if test "$ac_test_CFLAGS" = set; then
1726 CFLAGS=$ac_save_CFLAGS
1727 elif test $ac_cv_prog_cc_g = yes; then
1728 if test "$GCC" = yes; then
1734 if test "$GCC" = yes; then
1740 # Some people use a C++ compiler to compile C. Since we use `exit',
1741 # in C++ we need to declare it. In case someone uses the same compiler
1742 # for both compiling C and C++ we need to have the C++ compiler decide
1743 # the declaration of exit, since it's the most demanding environment.
1744 cat >conftest.$ac_ext <<_ACEOF
1749 rm -f conftest.$ac_objext
1750 if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
1751 (eval $ac_compile) 2>&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); } &&
1755 { ac_try='test -s conftest.$ac_objext'
1756 { (eval echo "$as_me:1756: \"$ac_try\"") >&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); }; }; then
1761 for ac_declaration in \
1763 '#include <stdlib.h>' \
1764 'extern "C" void std::exit (int) throw (); using std::exit;' \
1765 'extern "C" void std::exit (int); using std::exit;' \
1766 'extern "C" void exit (int) throw ();' \
1767 'extern "C" void exit (int);' \
1770 cat >conftest.$ac_ext <<_ACEOF
1771 #line 1771 "configure"
1772 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 rm -f conftest.$ac_objext conftest.$ac_ext
1834 if test -n "$ac_declaration"; then
1835 echo '#ifdef __cplusplus' >>confdefs.h
1836 echo $ac_declaration >>confdefs.h
1837 echo '#endif' >>confdefs.h
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 rm -f conftest.$ac_objext conftest.$ac_ext
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 ac_main_return=return
1853 if test "$GCC" = yes ; then
1854 echo "$as_me:1854: checking version of $CC" >&5
1855 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1856 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.].*//'`"
1857 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1858 echo "$as_me:1858: result: $GCC_VERSION" >&5
1859 echo "${ECHO_T}$GCC_VERSION" >&6
1864 if test "$GCC" = yes ; then
1867 echo "$as_me:1867: checking if this is really Intel C compiler" >&5
1868 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1869 cf_save_CFLAGS="$CFLAGS"
1870 CFLAGS="$CFLAGS -no-gcc"
1871 cat >conftest.$ac_ext <<_ACEOF
1872 #line 1872 "configure"
1873 #include "confdefs.h"
1879 #ifdef __INTEL_COMPILER
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -s conftest.$ac_objext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1901 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 CFLAGS="$cf_save_CFLAGS"
1909 echo "$as_me:1909: result: $INTEL_COMPILER" >&5
1910 echo "${ECHO_T}$INTEL_COMPILER" >&6
1917 if test "$GCC" = yes ; then
1918 echo "$as_me:1918: checking if this is really Clang C compiler" >&5
1919 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1920 cf_save_CFLAGS="$CFLAGS"
1921 cat >conftest.$ac_ext <<_ACEOF
1922 #line 1922 "configure"
1923 #include "confdefs.h"
1938 rm -f conftest.$ac_objext
1939 if { (eval echo "$as_me:1939: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1942 echo "$as_me:1942: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:1945: \"$ac_try\"") >&5
1948 echo "$as_me:1948: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1953 echo "$as_me: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 rm -f conftest.$ac_objext conftest.$ac_ext
1957 CFLAGS="$cf_save_CFLAGS"
1958 echo "$as_me:1958: result: $CLANG_COMPILER" >&5
1959 echo "${ECHO_T}$CLANG_COMPILER" >&6
1962 if test "x$CLANG_COMPILER" = "xyes" ; then
1963 for cf_clang_opt in \
1964 -Qunused-arguments \
1965 -Wno-error=implicit-function-declaration
1967 echo "$as_me:1967: checking if option $cf_clang_opt works" >&5
1968 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
1969 cf_save_CFLAGS="$CFLAGS"
1970 CFLAGS="$CFLAGS $cf_clang_opt"
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line 1972 "configure"
1973 #include "confdefs.h"
1985 rm -f conftest.$ac_objext conftest$ac_exeext
1986 if { (eval echo "$as_me:1986: \"$ac_link\"") >&5
1987 (eval $ac_link) 2>&5
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -s conftest$ac_exeext'
1992 { (eval echo "$as_me:1992: \"$ac_try\"") >&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2006 echo "$as_me:2006: result: $cf_clang_optok" >&5
2007 echo "${ECHO_T}$cf_clang_optok" >&6
2008 CFLAGS="$cf_save_CFLAGS"
2009 if test $cf_clang_optok = yes; then
2010 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2012 echo "${as_me:-configure}:2012: testing adding option $cf_clang_opt ..." 1>&5
2014 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2015 CFLAGS="${CFLAGS}$cf_clang_opt"
2021 echo "$as_me:2021: checking for $CC option to accept ANSI C" >&5
2022 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_cv_prog_cc_stdc=no
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2033 #include <sys/types.h>
2034 #include <sys/stat.h>
2035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2036 struct buf { int x; };
2037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2038 static char *e (p, i)
2044 static char *f (char * (*g) (char **, int), char **p, ...)
2049 s = g (p, va_arg (v,int));
2053 int test (int i, double x);
2054 struct s1 {int (*f) (int a);};
2055 struct s2 {int (*f) (double a);};
2056 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2062 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2067 # Don't try gcc -ansi; that turns off useful extensions and
2068 # breaks some systems' header files.
2069 # AIX -qlanglvl=ansi
2070 # Ultrix and OSF/1 -std1
2071 # HP-UX 10.20 and later -Ae
2072 # HP-UX older versions -Aa -D_HPUX_SOURCE
2073 # SVR4 -Xc -D__EXTENSIONS__
2074 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2076 CC="$ac_save_CC $ac_arg"
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:2078: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>&5
2081 echo "$as_me:2081: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:2084: \"$ac_try\"") >&5
2087 echo "$as_me:2087: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2089 ac_cv_prog_cc_stdc=$ac_arg
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 rm -f conftest.$ac_objext
2097 rm -f conftest.$ac_ext conftest.$ac_objext
2102 case "x$ac_cv_prog_cc_stdc" in
2104 echo "$as_me:2104: result: none needed" >&5
2105 echo "${ECHO_T}none needed" >&6 ;;
2107 echo "$as_me:2107: result: $ac_cv_prog_cc_stdc" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2109 CC="$CC $ac_cv_prog_cc_stdc" ;;
2112 # This should have been defined by AC_PROG_CC
2115 echo "$as_me:2115: checking \$CFLAGS variable" >&5
2116 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2119 echo "$as_me:2119: result: broken" >&5
2120 echo "${ECHO_T}broken" >&6
2121 { echo "$as_me:2121: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2122 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2125 for cf_arg in $cf_flags
2131 cf_new_extra_cppflags=
2133 for cf_add_cflags in $cf_arg
2135 case $cf_fix_cppflags in
2137 case $cf_add_cflags in
2138 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2139 case $cf_add_cflags in
2141 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2144 && test -z "${cf_tst_cflags}" \
2145 && cf_fix_cppflags=yes
2147 if test $cf_fix_cppflags = yes ; then
2149 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2150 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2153 elif test "${cf_tst_cflags}" = "\"'" ; then
2155 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2156 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2166 case $cf_add_cflags in
2168 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2170 CPPFLAGS=`echo "$CPPFLAGS" | \
2171 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2172 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2177 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2178 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2185 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2186 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2193 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2194 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2198 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2199 && test -z "${cf_tst_cflags}" \
2200 && cf_fix_cppflags=no
2205 if test -n "$cf_new_cflags" ; then
2207 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2208 CFLAGS="${CFLAGS}$cf_new_cflags"
2212 if test -n "$cf_new_cppflags" ; then
2214 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2215 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2219 if test -n "$cf_new_extra_cppflags" ; then
2221 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2222 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2229 echo "$as_me:2229: result: ok" >&5
2230 echo "${ECHO_T}ok" >&6
2234 echo "$as_me:2234: checking \$CC variable" >&5
2235 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2238 echo "$as_me:2238: result: broken" >&5
2239 echo "${ECHO_T}broken" >&6
2240 { echo "$as_me:2240: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2241 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2243 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2244 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2246 for cf_arg in $cf_flags
2254 cf_new_extra_cppflags=
2256 for cf_add_cflags in $cf_arg
2258 case $cf_fix_cppflags in
2260 case $cf_add_cflags in
2261 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2262 case $cf_add_cflags in
2264 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2266 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2267 && test -z "${cf_tst_cflags}" \
2268 && cf_fix_cppflags=yes
2270 if test $cf_fix_cppflags = yes ; then
2272 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2273 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2276 elif test "${cf_tst_cflags}" = "\"'" ; then
2278 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2279 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2289 case $cf_add_cflags in
2291 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2293 CPPFLAGS=`echo "$CPPFLAGS" | \
2294 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2295 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2300 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2301 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2308 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2309 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2316 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2317 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2319 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2321 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2322 && test -z "${cf_tst_cflags}" \
2323 && cf_fix_cppflags=no
2328 if test -n "$cf_new_cflags" ; then
2330 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2331 CFLAGS="${CFLAGS}$cf_new_cflags"
2335 if test -n "$cf_new_cppflags" ; then
2337 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2338 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2342 if test -n "$cf_new_extra_cppflags" ; then
2344 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2345 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2355 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2357 echo "${as_me:-configure}:2357: testing resulting CC: '$CC' ..." 1>&5
2359 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2361 echo "${as_me:-configure}:2361: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2363 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2365 echo "${as_me:-configure}:2365: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2369 echo "$as_me:2369: result: ok" >&5
2370 echo "${ECHO_T}ok" >&6
2374 echo "$as_me:2374: checking for inline" >&5
2375 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2376 if test "${ac_cv_c_inline+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 for ac_kw in inline __inline__ __inline; do
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line 2382 "configure"
2383 #include "confdefs.h"
2385 static $ac_kw int static_foo () {return 0; }
2386 $ac_kw int foo () {return 0; }
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:2391: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2394 echo "$as_me:2394: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:2397: \"$ac_try\"") >&5
2400 echo "$as_me:2400: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_c_inline=$ac_kw; break
2404 echo "$as_me: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2411 echo "$as_me:2411: result: $ac_cv_c_inline" >&5
2412 echo "${ECHO_T}$ac_cv_c_inline" >&6
2413 case $ac_cv_c_inline in
2416 cat >>confdefs.h <<\EOF
2420 *) cat >>confdefs.h <<EOF
2421 #define inline $ac_cv_c_inline
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 ac_main_return=return
2432 echo "$as_me:2432: checking how to run the C preprocessor" >&5
2433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2434 # On Suns, sometimes $CPP names a directory.
2435 if test -n "$CPP" && test -d "$CPP"; then
2438 if test -z "$CPP"; then
2439 if test "${ac_cv_prog_CPP+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 # Double quotes because CPP needs to be expanded
2443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2446 for ac_c_preproc_warn_flag in '' yes
2448 # Use a header file that comes with gcc, so configuring glibc
2449 # with a fresh cross-compiler works.
2450 # On the NeXT, cc -E runs the code through the compiler's parser,
2451 # not just through cpp. "Syntax error" is here to catch this case.
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line 2453 "configure"
2454 #include "confdefs.h"
2458 if { (eval echo "$as_me:2458: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461 egrep -v '^ *\+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:2464: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2474 if test -z "$ac_cpp_err"; then
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 # Broken: fails on valid input.
2482 rm -f conftest.err conftest.$ac_ext
2484 # OK, works on sane cases. Now check whether non-existent headers
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line 2487 "configure"
2488 #include "confdefs.h"
2489 #include <ac_nonexistent.h>
2491 if { (eval echo "$as_me:2491: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 egrep -v '^ *\+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:2497: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2507 if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 # Passes both tests.
2517 rm -f conftest.err conftest.$ac_ext
2520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2521 rm -f conftest.err conftest.$ac_ext
2522 if $ac_preproc_ok; then
2534 echo "$as_me:2534: result: $CPP" >&5
2535 echo "${ECHO_T}$CPP" >&6
2537 for ac_c_preproc_warn_flag in '' yes
2539 # Use a header file that comes with gcc, so configuring glibc
2540 # with a fresh cross-compiler works.
2541 # On the NeXT, cc -E runs the code through the compiler's parser,
2542 # not just through cpp. "Syntax error" is here to catch this case.
2543 cat >conftest.$ac_ext <<_ACEOF
2544 #line 2544 "configure"
2545 #include "confdefs.h"
2549 if { (eval echo "$as_me:2549: \"$ac_cpp conftest.$ac_ext\"") >&5
2550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2552 egrep -v '^ *\+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 echo "$as_me:2555: \$? = $ac_status" >&5
2556 (exit $ac_status); } >/dev/null; then
2557 if test -s conftest.err; then
2558 ac_cpp_err=$ac_c_preproc_warn_flag
2565 if test -z "$ac_cpp_err"; then
2568 echo "$as_me: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 # Broken: fails on valid input.
2573 rm -f conftest.err conftest.$ac_ext
2575 # OK, works on sane cases. Now check whether non-existent headers
2576 # can be detected and how.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line 2578 "configure"
2579 #include "confdefs.h"
2580 #include <ac_nonexistent.h>
2582 if { (eval echo "$as_me:2582: \"$ac_cpp conftest.$ac_ext\"") >&5
2583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2585 egrep -v '^ *\+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:2588: \$? = $ac_status" >&5
2589 (exit $ac_status); } >/dev/null; then
2590 if test -s conftest.err; then
2591 ac_cpp_err=$ac_c_preproc_warn_flag
2598 if test -z "$ac_cpp_err"; then
2599 # Broken: success on invalid input.
2602 echo "$as_me: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 # Passes both tests.
2608 rm -f conftest.err conftest.$ac_ext
2611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2612 rm -f conftest.err conftest.$ac_ext
2613 if $ac_preproc_ok; then
2616 { { echo "$as_me:2616: error: C preprocessor \"$CPP\" fails sanity check" >&5
2617 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2618 { (exit 1); exit 1; }; }
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 ac_main_return=return
2628 for ac_prog in mawk gawk nawk awk
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 echo "$as_me:2632: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_AWK+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 if test -n "$AWK"; then
2638 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2640 ac_save_IFS=$IFS; IFS=$ac_path_separator
2642 for ac_dir in $ac_dummy; do
2644 test -z "$ac_dir" && ac_dir=.
2645 $as_executable_p "$ac_dir/$ac_word" || continue
2646 ac_cv_prog_AWK="$ac_prog"
2647 echo "$as_me:2647: found $ac_dir/$ac_word" >&5
2654 if test -n "$AWK"; then
2655 echo "$as_me:2655: result: $AWK" >&5
2656 echo "${ECHO_T}$AWK" >&6
2658 echo "$as_me:2658: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2662 test -n "$AWK" && break
2665 # Find a good install program. We prefer a C program (faster),
2666 # so one script is as good as another. But avoid the broken or
2667 # incompatible versions:
2668 # SysV /etc/install, /usr/sbin/install
2669 # SunOS /usr/etc/install
2670 # IRIX /sbin/install
2672 # AmigaOS /C/install, which installs bootblocks on floppy discs
2673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2676 # ./install, which can be erroneously created by make from ./install.sh.
2677 echo "$as_me:2677: checking for a BSD compatible install" >&5
2678 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2679 if test -z "$INSTALL"; then
2680 if test "${ac_cv_path_install+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 ac_save_IFS=$IFS; IFS=$ac_path_separator
2684 for ac_dir in $PATH; do
2686 # Account for people who put trailing slashes in PATH elements.
2688 / | ./ | .// | /cC/* \
2689 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2692 # OSF1 and SCO ODT 3.0 have their own names for install.
2693 # Don't use installbsd from OSF since it installs stuff as root
2695 for ac_prog in ginstall scoinst install; do
2696 if $as_executable_p "$ac_dir/$ac_prog"; then
2697 if test $ac_prog = install &&
2698 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2699 # AIX install. It has an incompatible calling convention.
2701 elif test $ac_prog = install &&
2702 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2703 # program-specific install script used by HP pwplus--don't use.
2706 ac_cv_path_install="$ac_dir/$ac_prog -c"
2716 if test "${ac_cv_path_install+set}" = set; then
2717 INSTALL=$ac_cv_path_install
2719 # As a last resort, use the slow shell script. We don't cache a
2720 # path for INSTALL within a source directory, because that will
2721 # break other packages using the cache if that directory is
2722 # removed, or if the path is relative.
2723 INSTALL=$ac_install_sh
2726 echo "$as_me:2726: result: $INSTALL" >&5
2727 echo "${ECHO_T}$INSTALL" >&6
2729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730 # It thinks the first close brace ends the variable substitution.
2731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2741 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2742 test -z "$cf_dir" && cf_dir=.
2743 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2747 echo "$as_me:2747: checking if you want to install stripped executables" >&5
2748 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2750 # Check whether --enable-stripping or --disable-stripping was given.
2751 if test "${enable_stripping+set}" = set; then
2752 enableval="$enable_stripping"
2753 test "$enableval" != no && enableval=yes
2754 if test "$enableval" != "yes" ; then
2764 echo "$as_me:2764: result: $with_stripping" >&5
2765 echo "${ECHO_T}$with_stripping" >&6
2767 if test "$with_stripping" = yes
2774 : ${INSTALL:=install}
2775 echo "$as_me:2775: checking if install accepts -p option" >&5
2776 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2777 if test "${cf_cv_install_p+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2787 if test -f conftest.out/conftest.in
2789 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2790 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2791 if test -s conftest.err
2806 echo "$as_me:2806: result: $cf_cv_install_p" >&5
2807 echo "${ECHO_T}$cf_cv_install_p" >&6
2809 echo "$as_me:2809: checking if install needs to be told about ownership" >&5
2810 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2811 case `$ac_config_guess` in
2820 echo "$as_me:2820: result: $with_install_o" >&5
2821 echo "${ECHO_T}$with_install_o" >&6
2822 if test "x$with_install_o" = xyes
2824 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'`
2829 for ac_prog in lint cppcheck splint
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 echo "$as_me:2833: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_LINT+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$LINT"; then
2839 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2841 ac_save_IFS=$IFS; IFS=$ac_path_separator
2843 for ac_dir in $ac_dummy; do
2845 test -z "$ac_dir" && ac_dir=.
2846 $as_executable_p "$ac_dir/$ac_word" || continue
2847 ac_cv_prog_LINT="$ac_prog"
2848 echo "$as_me:2848: found $ac_dir/$ac_word" >&5
2854 LINT=$ac_cv_prog_LINT
2855 if test -n "$LINT"; then
2856 echo "$as_me:2856: result: $LINT" >&5
2857 echo "${ECHO_T}$LINT" >&6
2859 echo "$as_me:2859: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2863 test -n "$LINT" && break
2867 (xcppcheck|x*/cppcheck)
2868 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2872 echo "$as_me:2872: checking if filesystem supports mixed-case filenames" >&5
2873 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2874 if test "${cf_cv_mixedcase+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test "$cross_compiling" = yes ; then
2879 case $target_alias in
2880 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
2888 rm -f conftest CONFTEST
2890 if test -f CONFTEST ; then
2895 rm -f conftest CONFTEST
2899 echo "$as_me:2899: result: $cf_cv_mixedcase" >&5
2900 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2901 test "$cf_cv_mixedcase" = yes &&
2902 cat >>confdefs.h <<\EOF
2903 #define MIXEDCASE_FILENAMES 1
2906 for ac_prog in exctags ctags
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 echo "$as_me:2910: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CTAGS+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CTAGS"; then
2916 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2918 ac_save_IFS=$IFS; IFS=$ac_path_separator
2920 for ac_dir in $ac_dummy; do
2922 test -z "$ac_dir" && ac_dir=.
2923 $as_executable_p "$ac_dir/$ac_word" || continue
2924 ac_cv_prog_CTAGS="$ac_prog"
2925 echo "$as_me:2925: found $ac_dir/$ac_word" >&5
2931 CTAGS=$ac_cv_prog_CTAGS
2932 if test -n "$CTAGS"; then
2933 echo "$as_me:2933: result: $CTAGS" >&5
2934 echo "${ECHO_T}$CTAGS" >&6
2936 echo "$as_me:2936: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2940 test -n "$CTAGS" && break
2943 for ac_prog in exetags etags
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 echo "$as_me:2947: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_ETAGS+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 if test -n "$ETAGS"; then
2953 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2955 ac_save_IFS=$IFS; IFS=$ac_path_separator
2957 for ac_dir in $ac_dummy; do
2959 test -z "$ac_dir" && ac_dir=.
2960 $as_executable_p "$ac_dir/$ac_word" || continue
2961 ac_cv_prog_ETAGS="$ac_prog"
2962 echo "$as_me:2962: found $ac_dir/$ac_word" >&5
2968 ETAGS=$ac_cv_prog_ETAGS
2969 if test -n "$ETAGS"; then
2970 echo "$as_me:2970: result: $ETAGS" >&5
2971 echo "${ECHO_T}$ETAGS" >&6
2973 echo "$as_me:2973: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2977 test -n "$ETAGS" && break
2980 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2981 set dummy ${CTAGS:-ctags}; ac_word=$2
2982 echo "$as_me:2982: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$MAKE_LOWER_TAGS"; then
2988 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2990 ac_save_IFS=$IFS; IFS=$ac_path_separator
2992 for ac_dir in $ac_dummy; do
2994 test -z "$ac_dir" && ac_dir=.
2995 $as_executable_p "$ac_dir/$ac_word" || continue
2996 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2997 echo "$as_me:2997: found $ac_dir/$ac_word" >&5
3001 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3004 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3005 if test -n "$MAKE_LOWER_TAGS"; then
3006 echo "$as_me:3006: result: $MAKE_LOWER_TAGS" >&5
3007 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3009 echo "$as_me:3009: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 if test "$cf_cv_mixedcase" = yes ; then
3014 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3015 set dummy ${ETAGS:-etags}; ac_word=$2
3016 echo "$as_me:3016: checking for $ac_word" >&5
3017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3018 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 if test -n "$MAKE_UPPER_TAGS"; then
3022 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3024 ac_save_IFS=$IFS; IFS=$ac_path_separator
3026 for ac_dir in $ac_dummy; do
3028 test -z "$ac_dir" && ac_dir=.
3029 $as_executable_p "$ac_dir/$ac_word" || continue
3030 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3031 echo "$as_me:3031: found $ac_dir/$ac_word" >&5
3035 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3038 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3039 if test -n "$MAKE_UPPER_TAGS"; then
3040 echo "$as_me:3040: result: $MAKE_UPPER_TAGS" >&5
3041 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3043 echo "$as_me:3043: result: no" >&5
3044 echo "${ECHO_T}no" >&6
3051 if test "$MAKE_UPPER_TAGS" = yes ; then
3057 if test "$MAKE_LOWER_TAGS" = yes ; then
3063 echo "$as_me:3063: checking if -lm needed for math functions" >&5
3064 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3065 if test "${cf_cv_need_libm+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line 3070 "configure"
3071 #include "confdefs.h"
3080 double x = rand(); printf("result = %g\n", pow(sin(x),x))
3085 rm -f conftest.$ac_objext conftest$ac_exeext
3086 if { (eval echo "$as_me:3086: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>&5
3089 echo "$as_me:3089: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -s conftest$ac_exeext'
3092 { (eval echo "$as_me:3092: \"$ac_try\"") >&5
3095 echo "$as_me:3095: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3099 echo "$as_me: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3105 echo "$as_me:3105: result: $cf_cv_need_libm" >&5
3106 echo "${ECHO_T}$cf_cv_need_libm" >&6
3107 if test "$cf_cv_need_libm" = yes
3115 CC_SHARED_OPTS=unknown
3116 CPPFLAGS="$CPPFLAGS"
3118 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3119 DFT_UPR_MODEL="NORMAL"
3132 PACKAGE="ncurses-examples"
3138 TINFO_LIBS='$(LIBS_CURSES)'
3139 cf_cv_abi_version=""
3140 cf_cv_rel_version=""
3146 if ( test "$GCC" = yes || test "$GXX" = yes )
3148 cat > conftest.i <<EOF
3150 #define GCC_PRINTF 0
3155 #ifndef GCC_NORETURN
3156 #define GCC_NORETURN /* nothing */
3159 #define GCC_UNUSED /* nothing */
3162 if test "$GCC" = yes
3164 { echo "$as_me:3164: checking for $CC __attribute__ directives..." >&5
3165 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3167 "${as_me:-configure}"
3168 #include "confdefs.h"
3169 #include "conftest.h"
3170 #include "conftest.i"
3172 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3174 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3177 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3179 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3181 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3182 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3183 extern void foo(void) GCC_NORETURN;
3184 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3186 cf_printf_attribute=no
3187 cf_scanf_attribute=no
3188 for cf_attribute in scanf printf unused noreturn
3191 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3193 cf_directive="__attribute__(($cf_attribute))"
3194 echo "checking for $CC $cf_directive" 1>&5
3196 case $cf_attribute in
3198 cf_printf_attribute=yes
3199 cat >conftest.h <<EOF
3200 #define GCC_$cf_ATTRIBUTE 1
3204 cf_scanf_attribute=yes
3205 cat >conftest.h <<EOF
3206 #define GCC_$cf_ATTRIBUTE 1
3210 cat >conftest.h <<EOF
3211 #define GCC_$cf_ATTRIBUTE $cf_directive
3216 if { (eval echo "$as_me:3216: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>&5
3219 echo "$as_me:3219: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 test -n "$verbose" && echo "$as_me:3221: result: ... $cf_attribute" >&5
3222 echo "${ECHO_T}... $cf_attribute" >&6
3223 cat conftest.h >>confdefs.h
3224 case $cf_attribute in
3227 cat >>confdefs.h <<EOF
3228 #define GCC_NORETURN $cf_directive
3233 cf_value='/* nothing */'
3234 if test "$cf_printf_attribute" != no ; then
3235 cf_value='__attribute__((format(printf,fmt,var)))'
3237 cat >>confdefs.h <<\EOF
3238 #define GCC_PRINTF 1
3243 cat >>confdefs.h <<EOF
3244 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3249 cf_value='/* nothing */'
3250 if test "$cf_scanf_attribute" != no ; then
3251 cf_value='__attribute__((format(scanf,fmt,var)))'
3253 cat >>confdefs.h <<\EOF
3259 cat >>confdefs.h <<EOF
3260 #define GCC_SCANFLIKE(fmt,var) $cf_value
3266 cat >>confdefs.h <<EOF
3267 #define GCC_UNUSED $cf_directive
3275 fgrep define conftest.i >>confdefs.h
3280 echo "$as_me:3280: checking if you want to work around bogus compiler/loader warnings" >&5
3281 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3283 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3284 if test "${enable_string_hacks+set}" = set; then
3285 enableval="$enable_string_hacks"
3286 with_string_hacks=$enableval
3288 with_string_hacks=no
3290 echo "$as_me:3290: result: $with_string_hacks" >&5
3291 echo "${ECHO_T}$with_string_hacks" >&6
3293 if test "x$with_string_hacks" = "xyes"; then
3295 cat >>confdefs.h <<\EOF
3296 #define USE_STRING_HACKS 1
3299 { echo "$as_me:3299: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3300 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3301 echo "$as_me:3301: checking for strlcat" >&5
3302 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3303 if test "${ac_cv_func_strlcat+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3307 #line 3307 "configure"
3308 #include "confdefs.h"
3309 #define strlcat autoconf_temporary
3310 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3319 char strlcat (void);
3325 /* The GNU C library defines stubs for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3329 #error found stub for strlcat
3337 rm -f conftest.$ac_objext conftest$ac_exeext
3338 if { (eval echo "$as_me:3338: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3341 echo "$as_me:3341: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -s conftest$ac_exeext'
3344 { (eval echo "$as_me:3344: \"$ac_try\"") >&5
3347 echo "$as_me:3347: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_func_strlcat=yes
3351 echo "$as_me: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3353 ac_cv_func_strlcat=no
3355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3357 echo "$as_me:3357: result: $ac_cv_func_strlcat" >&5
3358 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3359 if test $ac_cv_func_strlcat = yes; then
3361 cat >>confdefs.h <<\EOF
3362 #define HAVE_STRLCAT 1
3367 echo "$as_me:3367: checking for strlcat in -lbsd" >&5
3368 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3369 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 ac_check_lib_save_LIBS=$LIBS
3374 cat >conftest.$ac_ext <<_ACEOF
3375 #line 3375 "configure"
3376 #include "confdefs.h"
3378 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3393 rm -f conftest.$ac_objext conftest$ac_exeext
3394 if { (eval echo "$as_me:3394: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3397 echo "$as_me:3397: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -s conftest$ac_exeext'
3400 { (eval echo "$as_me:3400: \"$ac_try\"") >&5
3403 echo "$as_me:3403: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_cv_lib_bsd_strlcat=yes
3407 echo "$as_me: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3409 ac_cv_lib_bsd_strlcat=no
3411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3412 LIBS=$ac_check_lib_save_LIBS
3414 echo "$as_me:3414: result: $ac_cv_lib_bsd_strlcat" >&5
3415 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3416 if test $ac_cv_lib_bsd_strlcat = yes; then
3421 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3423 for cf_add_1lib in $cf_add_0lib; do
3424 for cf_add_2lib in $cf_add_libs; do
3425 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3430 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3434 for ac_header in bsd/string.h
3436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 echo "$as_me:3437: checking for $ac_header" >&5
3438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3443 #line 3443 "configure"
3444 #include "confdefs.h"
3445 #include <$ac_header>
3447 if { (eval echo "$as_me:3447: \"$ac_cpp conftest.$ac_ext\"") >&5
3448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450 egrep -v '^ *\+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:3453: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3463 if test -z "$ac_cpp_err"; then
3464 eval "$as_ac_Header=yes"
3466 echo "$as_me: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3468 eval "$as_ac_Header=no"
3470 rm -f conftest.err conftest.$ac_ext
3472 echo "$as_me:3472: result: `eval echo '${'$as_ac_Header'}'`" >&5
3473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3475 cat >>confdefs.h <<EOF
3476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3482 cat >>confdefs.h <<\EOF
3483 #define HAVE_STRLCAT 1
3490 for ac_func in strlcpy snprintf
3492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3493 echo "$as_me:3493: checking for $ac_func" >&5
3494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_var+set}\" = set"; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line 3499 "configure"
3500 #include "confdefs.h"
3501 #define $ac_func autoconf_temporary
3502 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3509 /* We use char because int might match the return type of a gcc2
3510 builtin and then its argument prototype would still apply. */
3511 char $ac_func (void);
3517 /* The GNU C library defines stubs for functions which it implements
3518 to always fail with ENOSYS. Some functions are actually named
3519 something starting with __ and the normal name is an alias. */
3520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3521 #error found stub for $ac_func
3529 rm -f conftest.$ac_objext conftest$ac_exeext
3530 if { (eval echo "$as_me:3530: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest$ac_exeext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 eval "$as_ac_var=yes"
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 eval "$as_ac_var=no"
3547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3549 echo "$as_me:3549: result: `eval echo '${'$as_ac_var'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3551 if test `eval echo '${'$as_ac_var'}'` = yes; then
3552 cat >>confdefs.h <<EOF
3553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3561 echo "$as_me:3561: checking if the POSIX test-macros are already defined" >&5
3562 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3563 if test "${cf_cv_posix_visible+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 cat >conftest.$ac_ext <<_ACEOF
3568 #line 3568 "configure"
3569 #include "confdefs.h"
3575 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3576 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3577 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3578 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3579 #error conflicting symbols found
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:3587: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>&5
3590 echo "$as_me:3590: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:3593: \"$ac_try\"") >&5
3596 echo "$as_me:3596: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 cf_cv_posix_visible=no
3600 echo "$as_me: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602 cf_cv_posix_visible=yes
3604 rm -f conftest.$ac_objext conftest.$ac_ext
3607 echo "$as_me:3607: result: $cf_cv_posix_visible" >&5
3608 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3610 if test "$cf_cv_posix_visible" = no; then
3613 cf_POSIX_C_SOURCE=199506L
3618 cf_xopen_source="-D_ALL_SOURCE"
3624 cf_xopen_source="-D_APPLE_C_SOURCE"
3627 cf_xopen_source="-D_DARWIN_C_SOURCE"
3630 (freebsd*|dragonfly*|midnightbsd*)
3631 # 5.x headers associate
3632 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3633 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3634 cf_POSIX_C_SOURCE=200112L
3636 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3639 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3642 cf_xopen_source="-D_HPUX_SOURCE"
3645 cf_xopen_source="-D_SGI_SOURCE"
3648 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3650 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3652 echo "$as_me:3652: checking if this is the GNU C library" >&5
3653 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3654 if test "${cf_cv_gnu_library+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line 3659 "configure"
3660 #include "confdefs.h"
3661 #include <sys/types.h>
3666 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3668 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3671 # error not GNU C library
3677 rm -f conftest.$ac_objext
3678 if { (eval echo "$as_me:3678: \"$ac_compile\"") >&5
3679 (eval $ac_compile) 2>&5
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:3684: \"$ac_try\"") >&5
3687 echo "$as_me:3687: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 cf_cv_gnu_library=yes
3691 echo "$as_me: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 cf_cv_gnu_library=no
3695 rm -f conftest.$ac_objext conftest.$ac_ext
3698 echo "$as_me:3698: result: $cf_cv_gnu_library" >&5
3699 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3701 if test x$cf_cv_gnu_library = xyes; then
3703 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3704 # was changed to help a little. newlib incorporated the change about 4
3706 echo "$as_me:3706: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3707 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3708 if test "${cf_cv_gnu_library_219+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3715 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line 3718 "configure"
3719 #include "confdefs.h"
3720 #include <sys/types.h>
3725 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3727 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3730 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:3737: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3740 echo "$as_me:3740: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:3743: \"$ac_try\"") >&5
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 cf_cv_gnu_library_219=yes
3750 echo "$as_me: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3752 cf_cv_gnu_library_219=no
3754 rm -f conftest.$ac_objext conftest.$ac_ext
3758 echo "$as_me:3758: result: $cf_cv_gnu_library_219" >&5
3759 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3761 if test "x$cf_cv_gnu_library_219" = xyes; then
3763 echo "$as_me:3763: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3764 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3765 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 cf_new_extra_cppflags=
3774 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3776 case $cf_fix_cppflags in
3778 case $cf_add_cflags in
3779 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3780 case $cf_add_cflags in
3782 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3784 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3785 && test -z "${cf_tst_cflags}" \
3786 && cf_fix_cppflags=yes
3788 if test $cf_fix_cppflags = yes ; then
3790 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3791 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3794 elif test "${cf_tst_cflags}" = "\"'" ; then
3796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3807 case $cf_add_cflags in
3809 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3811 CPPFLAGS=`echo "$CPPFLAGS" | \
3812 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3813 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3818 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3819 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3826 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3827 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3834 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3835 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3837 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3839 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3840 && test -z "${cf_tst_cflags}" \
3841 && cf_fix_cppflags=no
3846 if test -n "$cf_new_cflags" ; then
3848 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3849 CFLAGS="${CFLAGS}$cf_new_cflags"
3853 if test -n "$cf_new_cppflags" ; then
3855 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3856 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3860 if test -n "$cf_new_extra_cppflags" ; then
3862 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3863 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3867 cat >conftest.$ac_ext <<_ACEOF
3868 #line 3868 "configure"
3869 #include "confdefs.h"
3872 #include <sys/types.h>
3878 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3881 # error GNU C library is too old
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:3888: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:3894: \"$ac_try\"") >&5
3897 echo "$as_me:3897: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 cf_cv_gnu_dftsrc_219=yes
3901 echo "$as_me: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3903 cf_cv_gnu_dftsrc_219=no
3905 rm -f conftest.$ac_objext conftest.$ac_ext
3908 echo "$as_me:3908: result: $cf_cv_gnu_dftsrc_219" >&5
3909 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3910 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3912 cf_cv_gnu_dftsrc_219=maybe
3915 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3917 echo "$as_me:3917: checking if we must define _GNU_SOURCE" >&5
3918 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3919 if test "${cf_cv_gnu_source+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 cat >conftest.$ac_ext <<_ACEOF
3924 #line 3924 "configure"
3925 #include "confdefs.h"
3926 #include <sys/types.h>
3931 #ifndef _XOPEN_SOURCE
3932 #error expected _XOPEN_SOURCE to be defined
3938 rm -f conftest.$ac_objext
3939 if { (eval echo "$as_me:3939: \"$ac_compile\"") >&5
3940 (eval $ac_compile) 2>&5
3942 echo "$as_me:3942: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (eval echo "$as_me:3945: \"$ac_try\"") >&5
3948 echo "$as_me:3948: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3952 echo "$as_me: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3959 cf_new_extra_cppflags=
3961 for cf_add_cflags in -D_GNU_SOURCE
3963 case $cf_fix_cppflags in
3965 case $cf_add_cflags in
3966 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3967 case $cf_add_cflags in
3969 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3971 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3972 && test -z "${cf_tst_cflags}" \