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 cat >conftest.$ac_ext <<_ACEOF
1970 #line 1970 "configure"
1971 #include "confdefs.h"
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { (eval echo "$as_me:1984: \"$ac_link\"") >&5
1985 (eval $ac_link) 2>&5
1987 echo "$as_me:1987: \$? = $ac_status" >&5
1988 (exit $ac_status); } &&
1989 { ac_try='test -s conftest$ac_exeext'
1990 { (eval echo "$as_me:1990: \"$ac_try\"") >&5
1993 echo "$as_me:1993: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1998 echo "$as_me: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2004 echo "$as_me:2004: result: $cf_clang_optok" >&5
2005 echo "${ECHO_T}$cf_clang_optok" >&6
2006 if test $cf_clang_optok = yes; then
2007 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2009 echo "${as_me:-configure}:2009: testing adding option $cf_clang_opt ..." 1>&5
2011 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2012 CFLAGS="${CFLAGS}$cf_clang_opt"
2018 echo "$as_me:2018: checking for $CC option to accept ANSI C" >&5
2019 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2020 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 ac_cv_prog_cc_stdc=no
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line 2026 "configure"
2027 #include "confdefs.h"
2030 #include <sys/types.h>
2031 #include <sys/stat.h>
2032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2033 struct buf { int x; };
2034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2035 static char *e (p, i)
2041 static char *f (char * (*g) (char **, int), char **p, ...)
2046 s = g (p, va_arg (v,int));
2050 int test (int i, double x);
2051 struct s1 {int (*f) (int a);};
2052 struct s2 {int (*f) (double a);};
2053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2064 # Don't try gcc -ansi; that turns off useful extensions and
2065 # breaks some systems' header files.
2066 # AIX -qlanglvl=ansi
2067 # Ultrix and OSF/1 -std1
2068 # HP-UX 10.20 and later -Ae
2069 # HP-UX older versions -Aa -D_HPUX_SOURCE
2070 # SVR4 -Xc -D__EXTENSIONS__
2071 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2073 CC="$ac_save_CC $ac_arg"
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:2075: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>&5
2078 echo "$as_me:2078: \$? = $ac_status" >&5
2079 (exit $ac_status); } &&
2080 { ac_try='test -s conftest.$ac_objext'
2081 { (eval echo "$as_me:2081: \"$ac_try\"") >&5
2084 echo "$as_me:2084: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2086 ac_cv_prog_cc_stdc=$ac_arg
2089 echo "$as_me: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 rm -f conftest.$ac_objext
2094 rm -f conftest.$ac_ext conftest.$ac_objext
2099 case "x$ac_cv_prog_cc_stdc" in
2101 echo "$as_me:2101: result: none needed" >&5
2102 echo "${ECHO_T}none needed" >&6 ;;
2104 echo "$as_me:2104: result: $ac_cv_prog_cc_stdc" >&5
2105 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2106 CC="$CC $ac_cv_prog_cc_stdc" ;;
2109 # This should have been defined by AC_PROG_CC
2112 echo "$as_me:2112: checking \$CFLAGS variable" >&5
2113 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2116 echo "$as_me:2116: result: broken" >&5
2117 echo "${ECHO_T}broken" >&6
2118 { echo "$as_me:2118: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2119 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2122 for cf_arg in $cf_flags
2128 cf_new_extra_cppflags=
2130 for cf_add_cflags in $cf_arg
2132 case $cf_fix_cppflags in
2134 case $cf_add_cflags in
2135 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2136 case $cf_add_cflags in
2138 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2141 && test -z "${cf_tst_cflags}" \
2142 && cf_fix_cppflags=yes
2144 if test $cf_fix_cppflags = yes ; then
2146 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2147 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2150 elif test "${cf_tst_cflags}" = "\"'" ; then
2152 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2153 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2163 case $cf_add_cflags in
2165 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2167 CPPFLAGS=`echo "$CPPFLAGS" | \
2168 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2169 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2174 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2175 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2182 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2183 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2190 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2191 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2193 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2195 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2196 && test -z "${cf_tst_cflags}" \
2197 && cf_fix_cppflags=no
2202 if test -n "$cf_new_cflags" ; then
2204 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2205 CFLAGS="${CFLAGS}$cf_new_cflags"
2209 if test -n "$cf_new_cppflags" ; then
2211 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2212 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2216 if test -n "$cf_new_extra_cppflags" ; then
2218 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2219 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2226 echo "$as_me:2226: result: ok" >&5
2227 echo "${ECHO_T}ok" >&6
2231 echo "$as_me:2231: checking \$CC variable" >&5
2232 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2235 echo "$as_me:2235: result: broken" >&5
2236 echo "${ECHO_T}broken" >&6
2237 { echo "$as_me:2237: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2238 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2240 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2241 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2243 for cf_arg in $cf_flags
2251 cf_new_extra_cppflags=
2253 for cf_add_cflags in $cf_arg
2255 case $cf_fix_cppflags in
2257 case $cf_add_cflags in
2258 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2259 case $cf_add_cflags in
2261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2263 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2264 && test -z "${cf_tst_cflags}" \
2265 && cf_fix_cppflags=yes
2267 if test $cf_fix_cppflags = yes ; then
2269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2273 elif test "${cf_tst_cflags}" = "\"'" ; then
2275 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2276 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2286 case $cf_add_cflags in
2288 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2290 CPPFLAGS=`echo "$CPPFLAGS" | \
2291 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2292 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2297 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2298 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2305 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2306 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2313 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2314 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2316 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2318 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2319 && test -z "${cf_tst_cflags}" \
2320 && cf_fix_cppflags=no
2325 if test -n "$cf_new_cflags" ; then
2327 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2328 CFLAGS="${CFLAGS}$cf_new_cflags"
2332 if test -n "$cf_new_cppflags" ; then
2334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2335 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2339 if test -n "$cf_new_extra_cppflags" ; then
2341 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2342 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2352 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2354 echo "${as_me:-configure}:2354: testing resulting CC: '$CC' ..." 1>&5
2356 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2358 echo "${as_me:-configure}:2358: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2360 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2362 echo "${as_me:-configure}:2362: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2366 echo "$as_me:2366: result: ok" >&5
2367 echo "${ECHO_T}ok" >&6
2371 echo "$as_me:2371: checking for inline" >&5
2372 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2373 if test "${ac_cv_c_inline+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 for ac_kw in inline __inline__ __inline; do
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line 2379 "configure"
2380 #include "confdefs.h"
2382 static $ac_kw int static_foo () {return 0; }
2383 $ac_kw int foo () {return 0; }
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:2388: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2391 echo "$as_me:2391: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:2394: \"$ac_try\"") >&5
2397 echo "$as_me:2397: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 ac_cv_c_inline=$ac_kw; break
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2408 echo "$as_me:2408: result: $ac_cv_c_inline" >&5
2409 echo "${ECHO_T}$ac_cv_c_inline" >&6
2410 case $ac_cv_c_inline in
2413 cat >>confdefs.h <<\EOF
2417 *) cat >>confdefs.h <<EOF
2418 #define inline $ac_cv_c_inline
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 ac_main_return=return
2429 echo "$as_me:2429: checking how to run the C preprocessor" >&5
2430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2431 # On Suns, sometimes $CPP names a directory.
2432 if test -n "$CPP" && test -d "$CPP"; then
2435 if test -z "$CPP"; then
2436 if test "${ac_cv_prog_CPP+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 # Double quotes because CPP needs to be expanded
2440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2443 for ac_c_preproc_warn_flag in '' yes
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # On the NeXT, cc -E runs the code through the compiler's parser,
2448 # not just through cpp. "Syntax error" is here to catch this case.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line 2450 "configure"
2451 #include "confdefs.h"
2455 if { (eval echo "$as_me:2455: \"$ac_cpp conftest.$ac_ext\"") >&5
2456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458 egrep -v '^ *\+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:2461: \$? = $ac_status" >&5
2462 (exit $ac_status); } >/dev/null; then
2463 if test -s conftest.err; then
2464 ac_cpp_err=$ac_c_preproc_warn_flag
2471 if test -z "$ac_cpp_err"; then
2474 echo "$as_me: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 # Broken: fails on valid input.
2479 rm -f conftest.err conftest.$ac_ext
2481 # OK, works on sane cases. Now check whether non-existent headers
2482 # can be detected and how.
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line 2484 "configure"
2485 #include "confdefs.h"
2486 #include <ac_nonexistent.h>
2488 if { (eval echo "$as_me:2488: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2491 egrep -v '^ *\+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:2494: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2504 if test -z "$ac_cpp_err"; then
2505 # Broken: success on invalid input.
2508 echo "$as_me: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 # Passes both tests.
2514 rm -f conftest.err conftest.$ac_ext
2517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2518 rm -f conftest.err conftest.$ac_ext
2519 if $ac_preproc_ok; then
2531 echo "$as_me:2531: result: $CPP" >&5
2532 echo "${ECHO_T}$CPP" >&6
2534 for ac_c_preproc_warn_flag in '' yes
2536 # Use a header file that comes with gcc, so configuring glibc
2537 # with a fresh cross-compiler works.
2538 # On the NeXT, cc -E runs the code through the compiler's parser,
2539 # not just through cpp. "Syntax error" is here to catch this case.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line 2541 "configure"
2542 #include "confdefs.h"
2546 if { (eval echo "$as_me:2546: \"$ac_cpp conftest.$ac_ext\"") >&5
2547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2549 egrep -v '^ *\+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); } >/dev/null; then
2554 if test -s conftest.err; then
2555 ac_cpp_err=$ac_c_preproc_warn_flag
2562 if test -z "$ac_cpp_err"; then
2565 echo "$as_me: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 # Broken: fails on valid input.
2570 rm -f conftest.err conftest.$ac_ext
2572 # OK, works on sane cases. Now check whether non-existent headers
2573 # can be detected and how.
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line 2575 "configure"
2576 #include "confdefs.h"
2577 #include <ac_nonexistent.h>
2579 if { (eval echo "$as_me:2579: \"$ac_cpp conftest.$ac_ext\"") >&5
2580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2582 egrep -v '^ *\+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:2585: \$? = $ac_status" >&5
2586 (exit $ac_status); } >/dev/null; then
2587 if test -s conftest.err; then
2588 ac_cpp_err=$ac_c_preproc_warn_flag
2595 if test -z "$ac_cpp_err"; then
2596 # Broken: success on invalid input.
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 # Passes both tests.
2605 rm -f conftest.err conftest.$ac_ext
2608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2609 rm -f conftest.err conftest.$ac_ext
2610 if $ac_preproc_ok; then
2613 { { echo "$as_me:2613: error: C preprocessor \"$CPP\" fails sanity check" >&5
2614 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2615 { (exit 1); exit 1; }; }
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 ac_main_return=return
2625 for ac_prog in mawk gawk nawk awk
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 echo "$as_me:2629: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_AWK+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$AWK"; then
2635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2637 ac_save_IFS=$IFS; IFS=$ac_path_separator
2639 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 $as_executable_p "$ac_dir/$ac_word" || continue
2643 ac_cv_prog_AWK="$ac_prog"
2644 echo "$as_me:2644: found $ac_dir/$ac_word" >&5
2651 if test -n "$AWK"; then
2652 echo "$as_me:2652: result: $AWK" >&5
2653 echo "${ECHO_T}$AWK" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 test -n "$AWK" && break
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # ./install, which can be erroneously created by make from ./install.sh.
2674 echo "$as_me:2674: checking for a BSD compatible install" >&5
2675 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2676 if test -z "$INSTALL"; then
2677 if test "${ac_cv_path_install+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_save_IFS=$IFS; IFS=$ac_path_separator
2681 for ac_dir in $PATH; do
2683 # Account for people who put trailing slashes in PATH elements.
2685 / | ./ | .// | /cC/* \
2686 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2689 # OSF1 and SCO ODT 3.0 have their own names for install.
2690 # Don't use installbsd from OSF since it installs stuff as root
2692 for ac_prog in ginstall scoinst install; do
2693 if $as_executable_p "$ac_dir/$ac_prog"; then
2694 if test $ac_prog = install &&
2695 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2696 # AIX install. It has an incompatible calling convention.
2698 elif test $ac_prog = install &&
2699 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2700 # program-specific install script used by HP pwplus--don't use.
2703 ac_cv_path_install="$ac_dir/$ac_prog -c"
2713 if test "${ac_cv_path_install+set}" = set; then
2714 INSTALL=$ac_cv_path_install
2716 # As a last resort, use the slow shell script. We don't cache a
2717 # path for INSTALL within a source directory, because that will
2718 # break other packages using the cache if that directory is
2719 # removed, or if the path is relative.
2720 INSTALL=$ac_install_sh
2723 echo "$as_me:2723: result: $INSTALL" >&5
2724 echo "${ECHO_T}$INSTALL" >&6
2726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727 # It thinks the first close brace ends the variable substitution.
2728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2739 test -z "$cf_dir" && cf_dir=.
2740 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2744 echo "$as_me:2744: checking if you want to install stripped executables" >&5
2745 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2747 # Check whether --enable-stripping or --disable-stripping was given.
2748 if test "${enable_stripping+set}" = set; then
2749 enableval="$enable_stripping"
2750 test "$enableval" != no && enableval=yes
2751 if test "$enableval" != "yes" ; then
2761 echo "$as_me:2761: result: $with_stripping" >&5
2762 echo "${ECHO_T}$with_stripping" >&6
2764 if test "$with_stripping" = yes
2771 : ${INSTALL:=install}
2772 echo "$as_me:2772: checking if install accepts -p option" >&5
2773 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2774 if test "${cf_cv_install_p+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2784 if test -f conftest.out/conftest.in
2786 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2787 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2788 if test -s conftest.err
2803 echo "$as_me:2803: result: $cf_cv_install_p" >&5
2804 echo "${ECHO_T}$cf_cv_install_p" >&6
2806 echo "$as_me:2806: checking if install needs to be told about ownership" >&5
2807 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2808 case `$ac_config_guess` in
2817 echo "$as_me:2817: result: $with_install_o" >&5
2818 echo "${ECHO_T}$with_install_o" >&6
2819 if test "x$with_install_o" = xyes
2821 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'`
2826 for ac_prog in lint cppcheck splint
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 echo "$as_me:2830: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_LINT+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 if test -n "$LINT"; then
2836 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2838 ac_save_IFS=$IFS; IFS=$ac_path_separator
2840 for ac_dir in $ac_dummy; do
2842 test -z "$ac_dir" && ac_dir=.
2843 $as_executable_p "$ac_dir/$ac_word" || continue
2844 ac_cv_prog_LINT="$ac_prog"
2845 echo "$as_me:2845: found $ac_dir/$ac_word" >&5
2851 LINT=$ac_cv_prog_LINT
2852 if test -n "$LINT"; then
2853 echo "$as_me:2853: result: $LINT" >&5
2854 echo "${ECHO_T}$LINT" >&6
2856 echo "$as_me:2856: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 test -n "$LINT" && break
2864 (xcppcheck|x*/cppcheck)
2865 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2869 echo "$as_me:2869: checking if filesystem supports mixed-case filenames" >&5
2870 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2871 if test "${cf_cv_mixedcase+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 if test "$cross_compiling" = yes ; then
2876 case $target_alias in
2877 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2885 rm -f conftest CONFTEST
2887 if test -f CONFTEST ; then
2892 rm -f conftest CONFTEST
2896 echo "$as_me:2896: result: $cf_cv_mixedcase" >&5
2897 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2898 test "$cf_cv_mixedcase" = yes &&
2899 cat >>confdefs.h <<\EOF
2900 #define MIXEDCASE_FILENAMES 1
2903 for ac_prog in exctags ctags
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 echo "$as_me:2907: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909 if test "${ac_cv_prog_CTAGS+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$CTAGS"; then
2913 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2915 ac_save_IFS=$IFS; IFS=$ac_path_separator
2917 for ac_dir in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir=.
2920 $as_executable_p "$ac_dir/$ac_word" || continue
2921 ac_cv_prog_CTAGS="$ac_prog"
2922 echo "$as_me:2922: found $ac_dir/$ac_word" >&5
2928 CTAGS=$ac_cv_prog_CTAGS
2929 if test -n "$CTAGS"; then
2930 echo "$as_me:2930: result: $CTAGS" >&5
2931 echo "${ECHO_T}$CTAGS" >&6
2933 echo "$as_me:2933: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2937 test -n "$CTAGS" && break
2940 for ac_prog in exetags etags
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 echo "$as_me:2944: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_ETAGS+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -n "$ETAGS"; then
2950 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2952 ac_save_IFS=$IFS; IFS=$ac_path_separator
2954 for ac_dir in $ac_dummy; do
2956 test -z "$ac_dir" && ac_dir=.
2957 $as_executable_p "$ac_dir/$ac_word" || continue
2958 ac_cv_prog_ETAGS="$ac_prog"
2959 echo "$as_me:2959: found $ac_dir/$ac_word" >&5
2965 ETAGS=$ac_cv_prog_ETAGS
2966 if test -n "$ETAGS"; then
2967 echo "$as_me:2967: result: $ETAGS" >&5
2968 echo "${ECHO_T}$ETAGS" >&6
2970 echo "$as_me:2970: result: no" >&5
2971 echo "${ECHO_T}no" >&6
2974 test -n "$ETAGS" && break
2977 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2978 set dummy ${CTAGS:-ctags}; ac_word=$2
2979 echo "$as_me:2979: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if test -n "$MAKE_LOWER_TAGS"; then
2985 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2987 ac_save_IFS=$IFS; IFS=$ac_path_separator
2989 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 $as_executable_p "$ac_dir/$ac_word" || continue
2993 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2994 echo "$as_me:2994: found $ac_dir/$ac_word" >&5
2998 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3001 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3002 if test -n "$MAKE_LOWER_TAGS"; then
3003 echo "$as_me:3003: result: $MAKE_LOWER_TAGS" >&5
3004 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3006 echo "$as_me:3006: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3010 if test "$cf_cv_mixedcase" = yes ; then
3011 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3012 set dummy ${ETAGS:-etags}; ac_word=$2
3013 echo "$as_me:3013: checking for $ac_word" >&5
3014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3015 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 if test -n "$MAKE_UPPER_TAGS"; then
3019 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3021 ac_save_IFS=$IFS; IFS=$ac_path_separator
3023 for ac_dir in $ac_dummy; do
3025 test -z "$ac_dir" && ac_dir=.
3026 $as_executable_p "$ac_dir/$ac_word" || continue
3027 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3028 echo "$as_me:3028: found $ac_dir/$ac_word" >&5
3032 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3035 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3036 if test -n "$MAKE_UPPER_TAGS"; then
3037 echo "$as_me:3037: result: $MAKE_UPPER_TAGS" >&5
3038 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3040 echo "$as_me:3040: result: no" >&5
3041 echo "${ECHO_T}no" >&6
3048 if test "$MAKE_UPPER_TAGS" = yes ; then
3054 if test "$MAKE_LOWER_TAGS" = yes ; then
3060 echo "$as_me:3060: checking if -lm needed for math functions" >&5
3061 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3062 if test "${cf_cv_need_libm+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 cat >conftest.$ac_ext <<_ACEOF
3067 #line 3067 "configure"
3068 #include "confdefs.h"
3077 double x = rand(); printf("result = %g\n", pow(sin(x),x))
3082 rm -f conftest.$ac_objext conftest$ac_exeext
3083 if { (eval echo "$as_me:3083: \"$ac_link\"") >&5
3084 (eval $ac_link) 2>&5
3086 echo "$as_me:3086: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -s conftest$ac_exeext'
3089 { (eval echo "$as_me:3089: \"$ac_try\"") >&5
3092 echo "$as_me:3092: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3102 echo "$as_me:3102: result: $cf_cv_need_libm" >&5
3103 echo "${ECHO_T}$cf_cv_need_libm" >&6
3104 if test "$cf_cv_need_libm" = yes
3112 CC_SHARED_OPTS=unknown
3113 CPPFLAGS="$CPPFLAGS"
3115 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3116 DFT_UPR_MODEL="NORMAL"
3129 PACKAGE="ncurses-examples"
3135 TINFO_LIBS='$(LIBS_CURSES)'
3136 cf_cv_abi_version=""
3137 cf_cv_rel_version=""
3143 if ( test "$GCC" = yes || test "$GXX" = yes )
3145 cat > conftest.i <<EOF
3147 #define GCC_PRINTF 0
3152 #ifndef GCC_NORETURN
3153 #define GCC_NORETURN /* nothing */
3156 #define GCC_UNUSED /* nothing */
3159 if test "$GCC" = yes
3161 { echo "$as_me:3161: checking for $CC __attribute__ directives..." >&5
3162 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3164 "${as_me:-configure}"
3165 #include "confdefs.h"
3166 #include "conftest.h"
3167 #include "conftest.i"
3169 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3171 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3174 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3176 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3178 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3179 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3180 extern void foo(void) GCC_NORETURN;
3181 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3183 cf_printf_attribute=no
3184 cf_scanf_attribute=no
3185 for cf_attribute in scanf printf unused noreturn
3188 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3190 cf_directive="__attribute__(($cf_attribute))"
3191 echo "checking for $CC $cf_directive" 1>&5
3193 case $cf_attribute in
3195 cf_printf_attribute=yes
3196 cat >conftest.h <<EOF
3197 #define GCC_$cf_ATTRIBUTE 1
3201 cf_scanf_attribute=yes
3202 cat >conftest.h <<EOF
3203 #define GCC_$cf_ATTRIBUTE 1
3207 cat >conftest.h <<EOF
3208 #define GCC_$cf_ATTRIBUTE $cf_directive
3213 if { (eval echo "$as_me:3213: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>&5
3216 echo "$as_me:3216: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 test -n "$verbose" && echo "$as_me:3218: result: ... $cf_attribute" >&5
3219 echo "${ECHO_T}... $cf_attribute" >&6
3220 cat conftest.h >>confdefs.h
3221 case $cf_attribute in
3224 cat >>confdefs.h <<EOF
3225 #define GCC_NORETURN $cf_directive
3230 cf_value='/* nothing */'
3231 if test "$cf_printf_attribute" != no ; then
3232 cf_value='__attribute__((format(printf,fmt,var)))'
3234 cat >>confdefs.h <<\EOF
3235 #define GCC_PRINTF 1
3240 cat >>confdefs.h <<EOF
3241 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3246 cf_value='/* nothing */'
3247 if test "$cf_scanf_attribute" != no ; then
3248 cf_value='__attribute__((format(scanf,fmt,var)))'
3250 cat >>confdefs.h <<\EOF
3256 cat >>confdefs.h <<EOF
3257 #define GCC_SCANFLIKE(fmt,var) $cf_value
3263 cat >>confdefs.h <<EOF
3264 #define GCC_UNUSED $cf_directive
3272 fgrep define conftest.i >>confdefs.h
3277 echo "$as_me:3277: checking if you want to work around bogus compiler/loader warnings" >&5
3278 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3280 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3281 if test "${enable_string_hacks+set}" = set; then
3282 enableval="$enable_string_hacks"
3283 with_string_hacks=$enableval
3285 with_string_hacks=no
3287 echo "$as_me:3287: result: $with_string_hacks" >&5
3288 echo "${ECHO_T}$with_string_hacks" >&6
3290 if test "x$with_string_hacks" = "xyes"; then
3292 cat >>confdefs.h <<\EOF
3293 #define USE_STRING_HACKS 1
3296 { echo "$as_me:3296: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3297 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3298 echo "$as_me:3298: checking for strlcat" >&5
3299 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3300 if test "${ac_cv_func_strlcat+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 cat >conftest.$ac_ext <<_ACEOF
3304 #line 3304 "configure"
3305 #include "confdefs.h"
3306 #define strlcat autoconf_temporary
3307 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char strlcat (void);
3322 /* The GNU C library defines stubs for functions which it implements
3323 to always fail with ENOSYS. Some functions are actually named
3324 something starting with __ and the normal name is an alias. */
3325 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3326 #error found stub for strlcat
3334 rm -f conftest.$ac_objext conftest$ac_exeext
3335 if { (eval echo "$as_me:3335: \"$ac_link\"") >&5
3336 (eval $ac_link) 2>&5
3338 echo "$as_me:3338: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -s conftest$ac_exeext'
3341 { (eval echo "$as_me:3341: \"$ac_try\"") >&5
3344 echo "$as_me:3344: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 ac_cv_func_strlcat=yes
3348 echo "$as_me: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3350 ac_cv_func_strlcat=no
3352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3354 echo "$as_me:3354: result: $ac_cv_func_strlcat" >&5
3355 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3356 if test $ac_cv_func_strlcat = yes; then
3358 cat >>confdefs.h <<\EOF
3359 #define HAVE_STRLCAT 1
3364 echo "$as_me:3364: checking for strlcat in -lbsd" >&5
3365 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3366 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 ac_check_lib_save_LIBS=$LIBS
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3375 /* Override any gcc2 internal prototype to avoid an error. */
3379 /* We use char because int might match the return type of a gcc2
3380 builtin and then its argument prototype would still apply. */
3390 rm -f conftest.$ac_objext conftest$ac_exeext
3391 if { (eval echo "$as_me:3391: \"$ac_link\"") >&5
3392 (eval $ac_link) 2>&5
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -s conftest$ac_exeext'
3397 { (eval echo "$as_me:3397: \"$ac_try\"") >&5
3400 echo "$as_me:3400: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_lib_bsd_strlcat=yes
3404 echo "$as_me: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 ac_cv_lib_bsd_strlcat=no
3408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3409 LIBS=$ac_check_lib_save_LIBS
3411 echo "$as_me:3411: result: $ac_cv_lib_bsd_strlcat" >&5
3412 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3413 if test $ac_cv_lib_bsd_strlcat = yes; then
3418 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3420 for cf_add_1lib in $cf_add_0lib; do
3421 for cf_add_2lib in $cf_add_libs; do
3422 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3427 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3431 for ac_header in bsd/string.h
3433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434 echo "$as_me:3434: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line 3440 "configure"
3441 #include "confdefs.h"
3442 #include <$ac_header>
3444 if { (eval echo "$as_me:3444: \"$ac_cpp conftest.$ac_ext\"") >&5
3445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3447 egrep -v '^ *\+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:3450: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3460 if test -z "$ac_cpp_err"; then
3461 eval "$as_ac_Header=yes"
3463 echo "$as_me: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3465 eval "$as_ac_Header=no"
3467 rm -f conftest.err conftest.$ac_ext
3469 echo "$as_me:3469: result: `eval echo '${'$as_ac_Header'}'`" >&5
3470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3472 cat >>confdefs.h <<EOF
3473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3479 cat >>confdefs.h <<\EOF
3480 #define HAVE_STRLCAT 1
3487 for ac_func in strlcpy snprintf
3489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3490 echo "$as_me:3490: checking for $ac_func" >&5
3491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3492 if eval "test \"\${$as_ac_var+set}\" = set"; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #line 3496 "configure"
3497 #include "confdefs.h"
3498 #define $ac_func autoconf_temporary
3499 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char $ac_func (void);
3514 /* The GNU C library defines stubs for functions which it implements
3515 to always fail with ENOSYS. Some functions are actually named
3516 something starting with __ and the normal name is an alias. */
3517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3518 #error found stub for $ac_func
3526 rm -f conftest.$ac_objext conftest$ac_exeext
3527 if { (eval echo "$as_me:3527: \"$ac_link\"") >&5
3528 (eval $ac_link) 2>&5
3530 echo "$as_me:3530: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -s conftest$ac_exeext'
3533 { (eval echo "$as_me:3533: \"$ac_try\"") >&5
3536 echo "$as_me:3536: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 eval "$as_ac_var=yes"
3540 echo "$as_me: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3542 eval "$as_ac_var=no"
3544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3546 echo "$as_me:3546: result: `eval echo '${'$as_ac_var'}'`" >&5
3547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3548 if test `eval echo '${'$as_ac_var'}'` = yes; then
3549 cat >>confdefs.h <<EOF
3550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3558 echo "$as_me:3558: checking if the POSIX test-macros are already defined" >&5
3559 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3560 if test "${cf_cv_posix_visible+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line 3565 "configure"
3566 #include "confdefs.h"
3572 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3573 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3574 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3575 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3576 #error conflicting symbols found
3583 rm -f conftest.$ac_objext
3584 if { (eval echo "$as_me:3584: \"$ac_compile\"") >&5
3585 (eval $ac_compile) 2>&5
3587 echo "$as_me:3587: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:3590: \"$ac_try\"") >&5
3593 echo "$as_me:3593: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 cf_cv_posix_visible=no
3597 echo "$as_me: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 cf_cv_posix_visible=yes
3601 rm -f conftest.$ac_objext conftest.$ac_ext
3604 echo "$as_me:3604: result: $cf_cv_posix_visible" >&5
3605 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3607 if test "$cf_cv_posix_visible" = no; then
3610 cf_POSIX_C_SOURCE=199506L
3615 cf_xopen_source="-D_ALL_SOURCE"
3621 cf_xopen_source="-D_APPLE_C_SOURCE"
3624 cf_xopen_source="-D_DARWIN_C_SOURCE"
3627 (freebsd*|dragonfly*|midnightbsd*)
3628 # 5.x headers associate
3629 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3630 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3631 cf_POSIX_C_SOURCE=200112L
3633 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3636 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3639 cf_xopen_source="-D_HPUX_SOURCE"
3642 cf_xopen_source="-D_SGI_SOURCE"
3645 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3647 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3649 echo "$as_me:3649: checking if this is the GNU C library" >&5
3650 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3651 if test "${cf_cv_gnu_library+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line 3656 "configure"
3657 #include "confdefs.h"
3658 #include <sys/types.h>
3663 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3665 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3668 # error not GNU C library
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:3675: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:3678: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:3681: \"$ac_try\"") >&5
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 cf_cv_gnu_library=yes
3688 echo "$as_me: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 cf_cv_gnu_library=no
3692 rm -f conftest.$ac_objext conftest.$ac_ext
3695 echo "$as_me:3695: result: $cf_cv_gnu_library" >&5
3696 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3698 if test x$cf_cv_gnu_library = xyes; then
3700 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3701 # was changed to help a little. newlib incorporated the change about 4
3703 echo "$as_me:3703: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3704 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3705 if test "${cf_cv_gnu_library_219+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3712 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line 3715 "configure"
3716 #include "confdefs.h"
3717 #include <sys/types.h>
3722 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3724 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3727 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:3734: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 cf_cv_gnu_library_219=yes
3747 echo "$as_me: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 cf_cv_gnu_library_219=no
3751 rm -f conftest.$ac_objext conftest.$ac_ext
3755 echo "$as_me:3755: result: $cf_cv_gnu_library_219" >&5
3756 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3758 if test "x$cf_cv_gnu_library_219" = xyes; then
3760 echo "$as_me:3760: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3761 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3762 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 cf_new_extra_cppflags=
3771 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3773 case $cf_fix_cppflags in
3775 case $cf_add_cflags in
3776 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3777 case $cf_add_cflags in
3779 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3781 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3782 && test -z "${cf_tst_cflags}" \
3783 && cf_fix_cppflags=yes
3785 if test $cf_fix_cppflags = yes ; then
3787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3791 elif test "${cf_tst_cflags}" = "\"'" ; then
3793 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3804 case $cf_add_cflags in
3806 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3808 CPPFLAGS=`echo "$CPPFLAGS" | \
3809 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3810 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3815 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3816 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3823 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3824 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3831 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3832 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3834 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3836 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3837 && test -z "${cf_tst_cflags}" \
3838 && cf_fix_cppflags=no
3843 if test -n "$cf_new_cflags" ; then
3845 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3846 CFLAGS="${CFLAGS}$cf_new_cflags"
3850 if test -n "$cf_new_cppflags" ; then
3852 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3853 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3857 if test -n "$cf_new_extra_cppflags" ; then
3859 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3860 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line 3865 "configure"
3866 #include "confdefs.h"
3869 #include <sys/types.h>
3875 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3878 # error GNU C library is too old
3884 rm -f conftest.$ac_objext
3885 if { (eval echo "$as_me:3885: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3888 echo "$as_me:3888: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:3891: \"$ac_try\"") >&5
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 cf_cv_gnu_dftsrc_219=yes
3898 echo "$as_me: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 cf_cv_gnu_dftsrc_219=no
3902 rm -f conftest.$ac_objext conftest.$ac_ext
3905 echo "$as_me:3905: result: $cf_cv_gnu_dftsrc_219" >&5
3906 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3907 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3909 cf_cv_gnu_dftsrc_219=maybe
3912 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3914 echo "$as_me:3914: checking if we must define _GNU_SOURCE" >&5
3915 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3916 if test "${cf_cv_gnu_source+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 cat >conftest.$ac_ext <<_ACEOF
3921 #line 3921 "configure"
3922 #include "confdefs.h"
3923 #include <sys/types.h>
3928 #ifndef _XOPEN_SOURCE
3929 #error expected _XOPEN_SOURCE to be defined
3935 rm -f conftest.$ac_objext
3936 if { (eval echo "$as_me:3936: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:3942: \"$ac_try\"") >&5
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3949 echo "$as_me: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3956 cf_new_extra_cppflags=
3958 for cf_add_cflags in -D_GNU_SOURCE
3960 case $cf_fix_cppflags in
3962 case $cf_add_cflags in
3963 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3964 case $cf_add_cflags in
3966 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3968 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3969 && test -z "${cf_tst_cflags}" \
3970 && cf_fix_cppflags=yes
3972 if test $cf_fix_cppflags = yes ; then
3974 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3975 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3978 elif test "${cf_tst_cflags}" = "\"'" ; then
3980 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3981 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3991 case $cf_add_cflags in
3993 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3995 CPPFLAGS=`echo "$CPPFLAGS" | \
3996 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3997 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4002 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4003 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4010 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4011 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4018 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4019 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4021 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4023 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4024 && test -z "${cf_tst_cflags}" \
4025 && cf_fix_cppflags=no
4030 if test -n "$cf_new_cflags" ; then
4032 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4033 CFLAGS="${CFLAGS}$cf_new_cflags"
4037 if test -n "$cf_new_cppflags" ; then
4039 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4040 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4044 if test -n "$cf_new_extra_cppflags" ; then
4046 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4047 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 #include <sys/types.h>
4059 #ifdef _XOPEN_SOURCE
4060 #error expected _XOPEN_SOURCE to be undefined
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:4067: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:4070: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 cf_cv_gnu_source=yes
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4088 rm -f conftest.$ac_objext conftest.$ac_ext
4091 echo "$as_me:4091: result: $cf_cv_gnu_source" >&5
4092 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4094 if test "$cf_cv_gnu_source" = yes
4096 echo "$as_me:4096: checking if we should also define _DEFAULT_SOURCE" >&5
4097 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4098 if test "${cf_cv_default_source+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4103 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4105 cat >conftest.$ac_ext <<_ACEOF
4106 #line 4106 "configure"
4107 #include "confdefs.h"
4108 #include <sys/types.h>
4113 #ifdef _DEFAULT_SOURCE
4114 #error expected _DEFAULT_SOURCE to be undefined
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4130 echo "$as_me:4130: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 cf_cv_default_source=no
4134 echo "$as_me: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4136 cf_cv_default_source=yes
4138 rm -f conftest.$ac_objext conftest.$ac_ext
4141 echo "$as_me:4141: result: $cf_cv_default_source" >&5
4142 echo "${ECHO_T}$cf_cv_default_source" >&6
4143 if test "$cf_cv_default_source" = yes
4146 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4147 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4157 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4160 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4163 if test "$cf_cv_posix_visible" = no; then
4165 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4167 cf_save_CFLAGS="$CFLAGS"
4168 cf_save_CPPFLAGS="$CPPFLAGS"
4170 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4171 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4172 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4174 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4175 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4176 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4178 echo "$as_me:4178: checking if we should define _POSIX_C_SOURCE" >&5
4179 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4180 if test "${cf_cv_posix_c_source+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 echo "${as_me:-configure}:4184: testing if the symbol is already defined go no further ..." 1>&5
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line 4187 "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4194 #ifndef _POSIX_C_SOURCE
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:4202: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4205 echo "$as_me:4205: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:4208: \"$ac_try\"") >&5
4211 echo "$as_me:4211: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 cf_cv_posix_c_source=no
4215 echo "$as_me: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4217 cf_want_posix_source=no
4218 case .$cf_POSIX_C_SOURCE in
4220 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4223 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4224 cf_want_posix_source=yes
4227 cf_want_posix_source=yes
4230 if test "$cf_want_posix_source" = yes ; then
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line 4232 "configure"
4233 #include "confdefs.h"
4234 #include <sys/types.h>
4239 #ifdef _POSIX_SOURCE
4246 rm -f conftest.$ac_objext
4247 if { (eval echo "$as_me:4247: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>&5
4250 echo "$as_me:4250: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:4253: \"$ac_try\"") >&5
4256 echo "$as_me:4256: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4264 rm -f conftest.$ac_objext conftest.$ac_ext
4267 echo "${as_me:-configure}:4267: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4269 CFLAGS="$cf_trim_CFLAGS"
4270 CPPFLAGS="$cf_trim_CPPFLAGS"
4272 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4273 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4275 echo "${as_me:-configure}:4275: testing if the second compile does not leave our definition intact error ..." 1>&5
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line 4278 "configure"
4279 #include "confdefs.h"
4280 #include <sys/types.h>
4285 #ifndef _POSIX_C_SOURCE
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:4293: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:4299: \"$ac_try\"") >&5
4302 echo "$as_me:4302: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4306 echo "$as_me: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4308 cf_cv_posix_c_source=no
4310 rm -f conftest.$ac_objext conftest.$ac_ext
4311 CFLAGS="$cf_save_CFLAGS"
4312 CPPFLAGS="$cf_save_CPPFLAGS"
4315 rm -f conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:4318: result: $cf_cv_posix_c_source" >&5
4319 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4321 if test "$cf_cv_posix_c_source" != no ; then
4322 CFLAGS="$cf_trim_CFLAGS"
4323 CPPFLAGS="$cf_trim_CPPFLAGS"
4328 cf_new_extra_cppflags=
4330 for cf_add_cflags in $cf_cv_posix_c_source
4332 case $cf_fix_cppflags in
4334 case $cf_add_cflags in
4335 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4336 case $cf_add_cflags in
4338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4340 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4341 && test -z "${cf_tst_cflags}" \
4342 && cf_fix_cppflags=yes
4344 if test $cf_fix_cppflags = yes ; then
4346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4350 elif test "${cf_tst_cflags}" = "\"'" ; then
4352 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4353 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4363 case $cf_add_cflags in
4365 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4367 CPPFLAGS=`echo "$CPPFLAGS" | \
4368 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4369 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4374 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4375 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4382 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4383 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4393 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4395 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4396 && test -z "${cf_tst_cflags}" \
4397 && cf_fix_cppflags=no
4402 if test -n "$cf_new_cflags" ; then
4404 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4405 CFLAGS="${CFLAGS}$cf_new_cflags"
4409 if test -n "$cf_new_cppflags" ; then
4411 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4412 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4416 if test -n "$cf_new_extra_cppflags" ; then
4418 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4419 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4425 fi # cf_cv_posix_visible
4429 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4432 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4433 cf_xopen_source="-D_BSD_SOURCE"
4437 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4440 cf_xopen_source="-D_OSF_SOURCE"
4443 cf_xopen_source="-D_QNX_SOURCE"
4446 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4449 cf_xopen_source="-D__EXTENSIONS__"
4450 cf_cv_xopen_source=broken
4452 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4458 echo "$as_me:4458: checking if we should define _XOPEN_SOURCE" >&5
4459 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4460 if test "${cf_cv_xopen_source+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line 4465 "configure"
4466 #include "confdefs.h"
4470 #include <sys/types.h>
4476 #ifndef _XOPEN_SOURCE
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:4484: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>&5
4487 echo "$as_me:4487: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:4490: \"$ac_try\"") >&5
4493 echo "$as_me:4493: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 cf_cv_xopen_source=no
4497 echo "$as_me: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4501 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4502 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line 4505 "configure"
4506 #include "confdefs.h"
4510 #include <sys/types.h>
4516 #ifdef _XOPEN_SOURCE
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:4524: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4527 echo "$as_me:4527: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -s conftest.$ac_objext'
4530 { (eval echo "$as_me:4530: \"$ac_try\"") >&5
4533 echo "$as_me:4533: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 cf_cv_xopen_source=no
4537 echo "$as_me: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4539 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4545 rm -f conftest.$ac_objext conftest.$ac_ext
4548 echo "$as_me:4548: result: $cf_cv_xopen_source" >&5
4549 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4551 if test "$cf_cv_xopen_source" != no ; then
4553 CFLAGS=`echo "$CFLAGS" | \
4554 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4555 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4557 CPPFLAGS=`echo "$CPPFLAGS" | \
4558 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4559 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4561 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4566 cf_new_extra_cppflags=
4568 for cf_add_cflags in $cf_temp_xopen_source
4570 case $cf_fix_cppflags in
4572 case $cf_add_cflags in
4573 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4574 case $cf_add_cflags in
4576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4578 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4579 && test -z "${cf_tst_cflags}" \
4580 && cf_fix_cppflags=yes
4582 if test $cf_fix_cppflags = yes ; then
4584 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4585 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4588 elif test "${cf_tst_cflags}" = "\"'" ; then
4590 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4591 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4601 case $cf_add_cflags in
4603 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4605 CPPFLAGS=`echo "$CPPFLAGS" | \
4606 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4607 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4612 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4613 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4620 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4621 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4633 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4634 && test -z "${cf_tst_cflags}" \
4635 && cf_fix_cppflags=no
4640 if test -n "$cf_new_cflags" ; then
4642 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4643 CFLAGS="${CFLAGS}$cf_new_cflags"
4647 if test -n "$cf_new_cppflags" ; then
4649 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4650 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4654 if test -n "$cf_new_extra_cppflags" ; then
4656 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4657 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4663 if test "$cf_cv_posix_visible" = no; then
4665 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4667 cf_save_CFLAGS="$CFLAGS"
4668 cf_save_CPPFLAGS="$CPPFLAGS"
4670 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4671 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4672 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4674 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4675 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4676 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4678 echo "$as_me:4678: checking if we should define _POSIX_C_SOURCE" >&5
4679 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4680 if test "${cf_cv_posix_c_source+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 echo "${as_me:-configure}:4684: testing if the symbol is already defined go no further ..." 1>&5
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line 4687 "configure"
4688 #include "confdefs.h"
4689 #include <sys/types.h>
4694 #ifndef _POSIX_C_SOURCE
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:4702: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>&5
4705 echo "$as_me:4705: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:4708: \"$ac_try\"") >&5
4711 echo "$as_me:4711: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 cf_cv_posix_c_source=no
4715 echo "$as_me: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4717 cf_want_posix_source=no
4718 case .$cf_POSIX_C_SOURCE in
4720 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4723 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4724 cf_want_posix_source=yes
4727 cf_want_posix_source=yes
4730 if test "$cf_want_posix_source" = yes ; then
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line 4732 "configure"
4733 #include "confdefs.h"
4734 #include <sys/types.h>
4739 #ifdef _POSIX_SOURCE
4746 rm -f conftest.$ac_objext
4747 if { (eval echo "$as_me:4747: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>&5
4750 echo "$as_me:4750: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:4753: \"$ac_try\"") >&5