2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20210105.
5 # Copyright 2003-2020,2021 Thomas E. Dickey
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
102 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : "${ac_max_here_lines=38}"
109 ac_unique_file="ncurses.c"
111 # Initialize some variables set by options.
113 ac_init_version=false
114 # The variables have the same names as the options, with
115 # dashes changed to underlines.
123 program_transform_name=s,x,x,
131 # Installation directory options.
132 # These are left unexpanded so users can "make install exec_prefix=/foo"
133 # and all the variables that are supposed to be based on exec_prefix
134 # by default will actually change.
135 # Use braces instead of parens because sh, perl, etc. also accept them.
136 bindir='${exec_prefix}/bin'
137 sbindir='${exec_prefix}/sbin'
138 libexecdir='${exec_prefix}/libexec'
139 datarootdir='${prefix}/share'
140 datadir='${datarootdir}'
141 sysconfdir='${prefix}/etc'
142 sharedstatedir='${prefix}/com'
143 localstatedir='${prefix}/var'
144 runstatedir='${localstatedir}/run'
145 libdir='${exec_prefix}/lib'
146 includedir='${prefix}/include'
147 oldincludedir='/usr/include'
148 infodir='${datarootdir}/info'
149 mandir='${datarootdir}/man'
151 # Identity of this package.
161 # If the previous option needs an argument, assign it.
162 if test -n "$ac_prev"; then
163 eval "$ac_prev=\$ac_option"
168 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
170 # Accept the important Cygnus configure options, so we can diagnose typos.
174 -bindir | --bindir | --bindi | --bind | --bin | --bi)
176 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
179 -build | --build | --buil | --bui | --bu)
180 ac_prev=build_alias ;;
181 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
182 build_alias=$ac_optarg ;;
184 -cache-file | --cache-file | --cache-fil | --cache-fi \
185 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
186 ac_prev=cache_file ;;
187 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
188 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
189 cache_file=$ac_optarg ;;
192 cache_file=config.cache ;;
194 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
196 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
198 datadir=$ac_optarg ;;
200 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
201 | --dataroo | --dataro | --datar)
202 ac_prev=datarootdir ;;
203 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
204 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
205 datarootdir=$ac_optarg ;;
207 -disable-* | --disable-*)
208 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
209 # Reject names that are not valid shell variable names.
210 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
211 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
212 { (exit 1); exit 1; }; }
213 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
214 eval "enable_$ac_feature=no" ;;
216 -enable-* | --enable-*)
217 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
218 # Reject names that are not valid shell variable names.
219 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
220 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
221 { (exit 1); exit 1; }; }
222 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
224 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
227 eval "enable_$ac_feature='$ac_optarg'" ;;
229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
231 | --exec | --exe | --ex)
232 ac_prev=exec_prefix ;;
233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
235 | --exec=* | --exe=* | --ex=*)
236 exec_prefix=$ac_optarg ;;
238 -gas | --gas | --ga | --g)
239 # Obsolete; use --with-gas.
242 -help | --help | --hel | --he | -h)
244 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
245 ac_init_help=recursive ;;
246 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
247 ac_init_help=short ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host_alias ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host_alias=$ac_optarg ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir=$ac_optarg ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir=$ac_optarg ;;
266 -libdir | --libdir | --libdi | --libd)
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir=$ac_optarg ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir=$ac_optarg ;;
287 -runstatedir | --runstatedir | --runstatedi | --runstated \
288 | --runstate | --runstat | --runsta | --runst \
289 | --runs | --run | --ru)
290 ac_prev=runstatedir ;;
291 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
292 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
293 | --runs=* | --run=* | --ru=*)
294 runstatedir=$ac_optarg ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 # Obsolete; use --without-fp.
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
315 | --oldin | --oldi | --old | --ol | --o)
316 ac_prev=oldincludedir ;;
317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
320 oldincludedir=$ac_optarg ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
328 | --program-pre | --program-pr | --program-p)
329 ac_prev=program_prefix ;;
330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
332 program_prefix=$ac_optarg ;;
334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
335 | --program-suf | --program-su | --program-s)
336 ac_prev=program_suffix ;;
337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
339 program_suffix=$ac_optarg ;;
341 -program-transform-name | --program-transform-name \
342 | --program-transform-nam | --program-transform-na \
343 | --program-transform-n | --program-transform- \
344 | --program-transform | --program-transfor \
345 | --program-transfo | --program-transf \
346 | --program-trans | --program-tran \
347 | --progr-tra | --program-tr | --program-t)
348 ac_prev=program_transform_name ;;
349 -program-transform-name=* | --program-transform-name=* \
350 | --program-transform-nam=* | --program-transform-na=* \
351 | --program-transform-n=* | --program-transform-=* \
352 | --program-transform=* | --program-transfor=* \
353 | --program-transfo=* | --program-transf=* \
354 | --program-trans=* | --program-tran=* \
355 | --progr-tra=* | --program-tr=* | --program-t=*)
356 program_transform_name=$ac_optarg ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
366 sbindir=$ac_optarg ;;
368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
370 | --sharedst | --shareds | --shared | --share | --shar \
372 ac_prev=sharedstatedir ;;
373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
377 sharedstatedir=$ac_optarg ;;
379 -site | --site | --sit)
381 -site=* | --site=* | --sit=*)
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
390 | --syscon | --sysco | --sysc | --sys | --sy)
391 ac_prev=sysconfdir ;;
392 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
393 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
394 sysconfdir=$ac_optarg ;;
396 -target | --target | --targe | --targ | --tar | --ta | --t)
397 ac_prev=target_alias ;;
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target_alias=$ac_optarg ;;
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
404 -version | --version | --versio | --versi | --vers | -V)
408 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid package name: $ac_package" >&2
412 { (exit 1); exit 1; }; }
413 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "with_$ac_package='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
422 # Reject names that are not valid shell variable names.
423 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
424 { echo "$as_me: error: invalid package name: $ac_package" >&2
425 { (exit 1); exit 1; }; }
426 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
427 eval "with_$ac_package=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes=$ac_optarg ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries=$ac_optarg ;;
447 -*) { echo "$as_me: error: unrecognized option: $ac_option
448 Try \`$0 --help' for more information." >&2
449 { (exit 1); exit 1; }; }
453 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
454 # Reject names that are not valid shell variable names.
455 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
456 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
457 { (exit 1); exit 1; }; }
458 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
459 eval "$ac_envvar='$ac_optarg'"
460 export "$ac_envvar" ;;
463 # FIXME: should be removed in autoconf 3.0.
464 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
465 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
466 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
467 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
473 if test -n "$ac_prev"; then
474 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
475 { echo "$as_me: error: missing argument to $ac_option" >&2
476 { (exit 1); exit 1; }; }
479 # Be sure to have absolute paths.
480 for ac_var in exec_prefix prefix
482 eval ac_val=$`echo "$ac_var"`
484 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # Be sure to have absolute paths.
491 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
492 localstatedir libdir includedir oldincludedir infodir mandir
494 eval ac_val=$`echo "$ac_var"`
496 [\\/$]* | ?:[\\/]* ) ;;
497 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
498 { (exit 1); exit 1; }; };;
502 # There might be people who depend on the old broken behavior: `$host'
503 # used to hold the argument of --host etc.
508 # FIXME: should be removed in autoconf 3.0.
509 if test "x$host_alias" != x; then
510 if test "x$build_alias" = x; then
511 cross_compiling=maybe
512 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
513 If a cross compiler is detected then cross compile mode will be used." >&2
514 elif test "x$build_alias" != "x$host_alias"; then
520 test -n "$host_alias" && ac_tool_prefix=$host_alias-
522 test "$silent" = yes && exec 6>/dev/null
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 if test ! -r "$srcdir/$ac_unique_file"; then
536 ac_srcdir_defaulted=no
538 if test ! -r "$srcdir/$ac_unique_file"; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
541 { (exit 1); exit 1; }; }
543 { echo "$as_me: error: cannot find sources in $srcdir" >&2
544 { (exit 1); exit 1; }; }
547 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
548 ac_env_build_alias_set=${build_alias+set}
549 ac_env_build_alias_value=$build_alias
550 ac_cv_env_build_alias_set=${build_alias+set}
551 ac_cv_env_build_alias_value=$build_alias
552 ac_env_host_alias_set=${host_alias+set}
553 ac_env_host_alias_value=$host_alias
554 ac_cv_env_host_alias_set=${host_alias+set}
555 ac_cv_env_host_alias_value=$host_alias
556 ac_env_target_alias_set=${target_alias+set}
557 ac_env_target_alias_value=$target_alias
558 ac_cv_env_target_alias_set=${target_alias+set}
559 ac_cv_env_target_alias_value=$target_alias
560 ac_env_CC_set=${CC+set}
562 ac_cv_env_CC_set=${CC+set}
563 ac_cv_env_CC_value=$CC
564 ac_env_CFLAGS_set=${CFLAGS+set}
565 ac_env_CFLAGS_value=$CFLAGS
566 ac_cv_env_CFLAGS_set=${CFLAGS+set}
567 ac_cv_env_CFLAGS_value=$CFLAGS
568 ac_env_LDFLAGS_set=${LDFLAGS+set}
569 ac_env_LDFLAGS_value=$LDFLAGS
570 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
571 ac_cv_env_LDFLAGS_value=$LDFLAGS
572 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
573 ac_env_CPPFLAGS_value=$CPPFLAGS
574 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
575 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
576 ac_env_CPP_set=${CPP+set}
577 ac_env_CPP_value=$CPP
578 ac_cv_env_CPP_set=${CPP+set}
579 ac_cv_env_CPP_value=$CPP
582 # Report the --help message.
584 if test "$ac_init_help" = "long"; then
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
588 \`configure' configures this package to adapt to many kinds of systems.
590 Usage: $0 [OPTION]... [VAR=VALUE]...
592 To assign environment variables (e.g., CC, CFLAGS...), specify them as
593 VAR=VALUE. See below for descriptions of some of the useful variables.
595 Defaults for the options are specified in brackets.
598 -h, --help display this help and exit
599 --help=short display options specific to this package
600 --help=recursive display the short help of all the included packages
601 -V, --version display version information and exit
602 -q, --quiet, --silent do not print \`checking...' messages
603 --cache-file=FILE cache test results in FILE [disabled]
604 -C, --config-cache alias for \`--cache-file=config.cache'
605 -n, --no-create do not create output files
606 --srcdir=DIR find the sources in DIR [configure dir or \`..']
611 Installation directories:
612 --prefix=PREFIX install architecture-independent files in PREFIX
614 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
617 By default, \`make install' will install all the files in
618 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
619 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
620 for instance \`--prefix=\$HOME'.
622 For better control, use the options below.
624 Fine tuning of the installation directories:
625 --bindir=DIR user executables [EPREFIX/bin]
626 --sbindir=DIR system admin executables [EPREFIX/sbin]
627 --libexecdir=DIR program executables [EPREFIX/libexec]
628 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
629 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
633 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
634 --libdir=DIR object code libraries [EPREFIX/lib]
635 --includedir=DIR C header files [PREFIX/include]
636 --oldincludedir=DIR C header files for non-gcc [/usr/include]
637 --infodir=DIR info documentation [DATAROOTDIR/info]
638 --mandir=DIR man documentation [DATAROOTDIR/man]
644 --program-prefix=PREFIX prepend PREFIX to installed program names
645 --program-suffix=SUFFIX append SUFFIX to installed program names
646 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
649 --x-includes=DIR X include files are in DIR
650 --x-libraries=DIR X library files are in DIR
653 --build=BUILD configure for building on BUILD [guessed]
654 --host=HOST build programs to run on HOST [BUILD]
658 if test -n "$ac_init_help"; then
663 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
664 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
667 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
668 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
671 --disable-stripping do not strip (debug info) installed executables
672 --enable-string-hacks work around bogus compiler/loader warnings
673 --with-pkg-config{=path} enable/disable use of pkg-config
674 --disable-echo do not display "compiling" commands
675 Curses Version-dependent Options:
676 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
677 --disable-widec disable checks for wide-character functions
678 --with-curses-dir=DIR directory in which (n)curses is installed
679 --with-screen=XXX use specified curses-libraries
680 --with-ncursesw use wide ncurses-libraries
681 --with-ncurses use ncurses-libraries
682 --with-pdcurses compile/link with pdcurses X11 library
683 --with-curses-colr compile/link with HPUX 10.x color-curses
684 --with-curses-5lib compile/link with SunOS 5lib curses
685 --with-Xaw3d link with Xaw 3d library
686 --with-Xaw3dxft link with Xaw 3d xft library
687 --with-neXtaw link with neXT Athena library
688 --with-XawPlus link with Athena-Plus library
689 --with-x use the X Window System
690 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
691 --with-form-libname=XXX override form basename of library
692 --with-menu-libname=XXX override menu basename of library
693 --with-panel-libname=XXX override panel basename of library
694 --disable-panel disable checks for panel functions
695 --disable-menu disable checks for menu functions
696 --disable-form disable checks for form functions
697 Testing/development Options:
698 --enable-warnings test: turn on gcc compiler warnings
699 --with-dmalloc test: use Gray Watson's dmalloc library
700 --with-dbmalloc test: use Conor Cahill's dbmalloc library
701 --with-valgrind test: use valgrind
702 --disable-leaks test: free permanent memory, analyze leaks
703 --disable-rpath-hack don't add rpath options for additional libraries
705 Some influential environment variables:
706 CC C compiler command
707 CFLAGS C compiler flags
708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
709 nonstandard directory <lib dir>
710 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
711 headers in a nonstandard directory <include dir>
714 Use these variables to override the choices made by `configure' or to help
715 it to find libraries and programs with nonstandard names/locations.
720 if test "$ac_init_help" = "recursive"; then
721 # If there are subdirs, report their specific --help.
723 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
725 # A "../" for each directory in /$ac_subdir.
726 ac_dots=`echo "$ac_subdir" |
727 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
730 .) # No --srcdir option. We are building in place.
731 ac_sub_srcdir="$srcdir" ;;
732 [\\/]* | ?:[\\/]* ) # Absolute path.
733 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
735 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
738 # Check for guested configure; otherwise get Cygnus style configure.
739 if test -f "$ac_sub_srcdir/configure.gnu"; then
741 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
742 elif test -f "$ac_sub_srcdir/configure"; then
744 $SHELL "$ac_sub_srcdir/configure" --help=recursive
745 elif test -f "$ac_sub_srcdir/configure.ac" ||
746 test -f "$ac_sub_srcdir/configure.in"; then
748 "$ac_configure" --help
750 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
756 test -n "$ac_init_help" && exit 0
757 if "$ac_init_version"; then
760 Copyright 2003-2020,2021 Thomas E. Dickey
761 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
762 Free Software Foundation, Inc.
763 This configure script is free software; the Free Software Foundation
764 gives unlimited permission to copy, distribute and modify it.
770 This file contains any messages produced by compilers while
771 running configure, to aid debugging if configure makes a mistake.
773 It was created by $as_me, which was
774 generated by GNU Autoconf 2.52.20210105. Invocation command line was
785 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
786 uname -m = `(uname -m) 2>/dev/null || echo unknown`
787 uname -r = `(uname -r) 2>/dev/null || echo unknown`
788 uname -s = `(uname -s) 2>/dev/null || echo unknown`
789 uname -v = `(uname -v) 2>/dev/null || echo unknown`
791 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
792 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
794 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
795 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
796 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
797 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
798 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
799 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
800 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
814 # Keep a trace of the command line.
815 # Strip out --no-create and --no-recursion so they do not pile up.
816 # Also quote any args containing shell meta-characters.
822 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
823 | --no-cr | --no-c) ;;
824 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
825 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
826 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
827 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
828 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
830 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
833 # Get rid of the leading space.
836 # When interrupted or exit'd, cleanup temporary files, and complete
837 # config.log. We remove comments because anyway the quotes in there
838 # would cause problems or look ugly.
840 # Save into config.log some information that might help in debugging.
842 echo "## ----------------- ##" >&5
843 echo "## Cache variables. ##" >&5
844 echo "## ----------------- ##" >&5
846 # The following way of writing the cache mishandles newlines in values,
849 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
852 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
861 sed "/^$/d" confdefs.h >conftest.log
862 if test -s conftest.log; then
864 echo "## ------------ ##" >&5
865 echo "## confdefs.h. ##" >&5
866 echo "## ------------ ##" >&5
871 test "$ac_signal" != 0 &&
872 echo "$as_me: caught signal $ac_signal" >&5
873 echo "$as_me: exit $exit_status" >&5
874 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
877 for ac_signal in 1 2 13 15; do
878 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
883 rm -rf conftest* confdefs.h
884 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
887 # Let the site file select an alternate cache file if it wants to.
888 # Prefer explicitly selected file to automatically selected ones.
889 if test -z "$CONFIG_SITE"; then
890 if test "x$prefix" != xNONE; then
891 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
893 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
896 for ac_site_file in $CONFIG_SITE; do
897 if test -r "$ac_site_file"; then
898 { echo "$as_me:898: loading site script $ac_site_file" >&5
899 echo "$as_me: loading site script $ac_site_file" >&6;}
900 cat "$ac_site_file" >&5
905 if test -r "$cache_file"; then
906 # Some versions of bash will fail to source /dev/null (special
907 # files actually), so we avoid doing that.
908 if test -f "$cache_file"; then
909 { echo "$as_me:909: loading cache $cache_file" >&5
910 echo "$as_me: loading cache $cache_file" >&6;}
912 [\\/]* | ?:[\\/]* ) . $cache_file;;
917 { echo "$as_me:917: creating cache $cache_file" >&5
918 echo "$as_me: creating cache $cache_file" >&6;}
922 # Check that the precious variables saved in the cache have kept the same
924 ac_cache_corrupted=false
925 for ac_var in `(set) 2>&1 |
926 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
928 eval ac_new_set=\$ac_env_${ac_var}_set
929 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
930 eval ac_new_val="\$ac_env_${ac_var}_value"
931 case "$ac_old_set,$ac_new_set" in
933 { echo "$as_me:933: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
937 { echo "$as_me:937: error: \`$ac_var' was not set in the previous run" >&5
938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
939 ac_cache_corrupted=: ;;
942 if test "x$ac_old_val" != "x$ac_new_val"; then
943 { echo "$as_me:943: error: \`$ac_var' has changed since the previous run:" >&5
944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
945 { echo "$as_me:945: former value: $ac_old_val" >&5
946 echo "$as_me: former value: $ac_old_val" >&2;}
947 { echo "$as_me:947: current value: $ac_new_val" >&5
948 echo "$as_me: current value: $ac_new_val" >&2;}
952 # Pass precious variables to config.status. It doesn't matter if
953 # we pass some twice (in addition to the command line arguments).
954 if test "$ac_new_set" = set; then
955 case "$ac_new_val" in
956 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
957 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
958 ac_configure_args="$ac_configure_args '$ac_arg'"
960 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
965 if "$ac_cache_corrupted"; then
966 { echo "$as_me:966: error: changes in the environment can compromise the build" >&5
967 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
968 { { echo "$as_me:968: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
969 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
970 { (exit 1); exit 1; }; }
974 ac_cpp='$CPP $CPPFLAGS'
975 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
976 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
978 ac_main_return="return"
980 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
982 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
994 echo "#! $SHELL" >conftest.sh
995 echo "exit 0" >>conftest.sh
997 if { (echo "$as_me:997: PATH=\".;.\"; conftest.sh") >&5
998 (PATH=".;."; conftest.sh) 2>&5
1000 echo "$as_me:1000: \$? = $ac_status" >&5
1001 (exit "$ac_status"); }; then
1002 ac_path_separator=';'
1006 PATH_SEPARATOR="$ac_path_separator"
1009 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
1011 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1013 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1016 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1017 if test -f "$ac_dir/install-sh"; then
1019 ac_install_sh="$ac_aux_dir/install-sh -c"
1021 elif test -f "$ac_dir/install.sh"; then
1023 ac_install_sh="$ac_aux_dir/install.sh -c"
1025 elif test -f "$ac_dir/shtool"; then
1027 ac_install_sh="$ac_aux_dir/shtool install -c"
1031 if test -z "$ac_aux_dir"; then
1032 { { echo "$as_me:1032: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1033 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1034 { (exit 1); exit 1; }; }
1036 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1037 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1038 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1040 # Make sure we can run config.sub.
1041 $ac_config_sub sun4 >/dev/null 2>&1 ||
1042 { { echo "$as_me:1042: error: cannot run $ac_config_sub" >&5
1043 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1044 { (exit 1); exit 1; }; }
1046 echo "$as_me:1046: checking build system type" >&5
1047 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1048 if test "${ac_cv_build+set}" = set; then
1049 echo $ECHO_N "(cached) $ECHO_C" >&6
1051 ac_cv_build_alias=$build_alias
1052 test -z "$ac_cv_build_alias" &&
1053 ac_cv_build_alias=`$ac_config_guess`
1054 test -z "$ac_cv_build_alias" &&
1055 { { echo "$as_me:1055: error: cannot guess build type; you must specify one" >&5
1056 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1057 { (exit 1); exit 1; }; }
1058 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1059 { { echo "$as_me:1059: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1060 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1061 { (exit 1); exit 1; }; }
1064 echo "$as_me:1064: result: $ac_cv_build" >&5
1065 echo "${ECHO_T}$ac_cv_build" >&6
1067 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1068 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1069 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1072 echo "$as_me:1072: checking host system type" >&5
1073 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1074 if test "${ac_cv_host+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 ac_cv_host_alias=$host_alias
1078 test -z "$ac_cv_host_alias" &&
1079 ac_cv_host_alias=$ac_cv_build_alias
1080 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1081 { { echo "$as_me:1081: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1082 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1083 { (exit 1); exit 1; }; }
1086 echo "$as_me:1086: result: $ac_cv_host" >&5
1087 echo "${ECHO_T}$ac_cv_host" >&6
1089 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 system_name="$host_os"
1095 system_name="`(uname -s -r) 2>/dev/null`"
1096 if test -z "$system_name" ; then
1097 system_name="`(hostname) 2>/dev/null`"
1100 test -n "$system_name" &&
1101 cat >>confdefs.h <<EOF
1102 #define SYSTEM_NAME "$system_name"
1105 if test "${cf_cv_system_name+set}" = set; then
1106 echo $ECHO_N "(cached) $ECHO_C" >&6
1108 cf_cv_system_name="$system_name"
1111 test -z "$system_name" && system_name="$cf_cv_system_name"
1112 test -n "$cf_cv_system_name" && echo "$as_me:1112: result: Configuring for $cf_cv_system_name" >&5
1113 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1115 if test ".$system_name" != ".$cf_cv_system_name" ; then
1116 echo "$as_me:1116: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1117 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1118 { { echo "$as_me:1118: error: \"Please remove config.cache and try again.\"" >&5
1119 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1120 { (exit 1); exit 1; }; }
1123 test "$program_prefix" != NONE &&
1124 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1125 # Use a double $ so make ignores it.
1126 test "$program_suffix" != NONE &&
1127 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1128 # Double any \ or $. echo might interpret backslashes.
1129 # By default was `s,x,x', remove it if useless.
1130 cat <<\_ACEOF >conftest.sed
1131 s/[\\$]/&&/g;s/;s,x,x,$//
1133 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1136 echo "$as_me:1136: checking whether ${MAKE-make} sets \${MAKE}" >&5
1137 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1138 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1139 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1140 echo $ECHO_N "(cached) $ECHO_C" >&6
1142 cat >conftest.make <<\EOF
1144 @echo 'ac_maketemp="${MAKE}"'
1146 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1147 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1148 if test -n "$ac_maketemp"; then
1149 eval ac_cv_prog_make_${ac_make}_set=yes
1151 eval ac_cv_prog_make_${ac_make}_set=no
1155 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1156 echo "$as_me:1156: result: yes" >&5
1157 echo "${ECHO_T}yes" >&6
1160 echo "$as_me:1160: result: no" >&5
1161 echo "${ECHO_T}no" >&6
1162 SET_MAKE="MAKE=${MAKE-make}"
1166 ac_cpp='$CPP $CPPFLAGS'
1167 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1168 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1170 ac_main_return="return"
1171 if test -n "$ac_tool_prefix"; then
1172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1174 echo "$as_me:1174: checking for $ac_word" >&5
1175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1176 if test "${ac_cv_prog_CC+set}" = set; then
1177 echo $ECHO_N "(cached) $ECHO_C" >&6
1179 if test -n "$CC"; then
1180 ac_cv_prog_CC="$CC" # Let the user override the test.
1182 ac_save_IFS=$IFS; IFS=$ac_path_separator
1184 for ac_dir in $ac_dummy; do
1186 test -z "$ac_dir" && ac_dir=.
1187 $as_executable_p "$ac_dir/$ac_word" || continue
1188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1189 echo "$as_me:1189: found $ac_dir/$ac_word" >&5
1196 if test -n "$CC"; then
1197 echo "$as_me:1197: result: $CC" >&5
1198 echo "${ECHO_T}$CC" >&6
1200 echo "$as_me:1200: result: no" >&5
1201 echo "${ECHO_T}no" >&6
1205 if test -z "$ac_cv_prog_CC"; then
1207 # Extract the first word of "gcc", so it can be a program name with args.
1208 set dummy gcc; ac_word=$2
1209 echo "$as_me:1209: checking for $ac_word" >&5
1210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1212 echo $ECHO_N "(cached) $ECHO_C" >&6
1214 if test -n "$ac_ct_CC"; then
1215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1217 ac_save_IFS=$IFS; IFS=$ac_path_separator
1219 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 $as_executable_p "$ac_dir/$ac_word" || continue
1223 ac_cv_prog_ac_ct_CC="gcc"
1224 echo "$as_me:1224: found $ac_dir/$ac_word" >&5
1230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1231 if test -n "$ac_ct_CC"; then
1232 echo "$as_me:1232: result: $ac_ct_CC" >&5
1233 echo "${ECHO_T}$ac_ct_CC" >&6
1235 echo "$as_me:1235: result: no" >&5
1236 echo "${ECHO_T}no" >&6
1244 if test -z "$CC"; then
1245 if test -n "$ac_tool_prefix"; then
1246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1247 set dummy ${ac_tool_prefix}cc; ac_word=$2
1248 echo "$as_me:1248: checking for $ac_word" >&5
1249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1250 if test "${ac_cv_prog_CC+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 if test -n "$CC"; then
1254 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 ac_save_IFS=$IFS; IFS=$ac_path_separator
1258 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 $as_executable_p "$ac_dir/$ac_word" || continue
1262 ac_cv_prog_CC="${ac_tool_prefix}cc"
1263 echo "$as_me:1263: found $ac_dir/$ac_word" >&5
1270 if test -n "$CC"; then
1271 echo "$as_me:1271: result: $CC" >&5
1272 echo "${ECHO_T}$CC" >&6
1274 echo "$as_me:1274: result: no" >&5
1275 echo "${ECHO_T}no" >&6
1279 if test -z "$ac_cv_prog_CC"; then
1281 # Extract the first word of "cc", so it can be a program name with args.
1282 set dummy cc; ac_word=$2
1283 echo "$as_me:1283: checking for $ac_word" >&5
1284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1286 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 if test -n "$ac_ct_CC"; then
1289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 ac_save_IFS=$IFS; IFS=$ac_path_separator
1293 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 $as_executable_p "$ac_dir/$ac_word" || continue
1297 ac_cv_prog_ac_ct_CC="cc"
1298 echo "$as_me:1298: found $ac_dir/$ac_word" >&5
1304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1305 if test -n "$ac_ct_CC"; then
1306 echo "$as_me:1306: result: $ac_ct_CC" >&5
1307 echo "${ECHO_T}$ac_ct_CC" >&6
1309 echo "$as_me:1309: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1319 if test -z "$CC"; then
1320 # Extract the first word of "cc", so it can be a program name with args.
1321 set dummy cc; ac_word=$2
1322 echo "$as_me:1322: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_CC+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test.
1331 ac_save_IFS=$IFS; IFS=$ac_path_separator
1333 for ac_dir in $ac_dummy; do
1335 test -z "$ac_dir" && ac_dir=.
1336 $as_executable_p "$ac_dir/$ac_word" || continue
1337 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1338 ac_prog_rejected=yes
1342 echo "$as_me:1342: found $ac_dir/$ac_word" >&5
1346 if test "$ac_prog_rejected" = yes; then
1347 # We found a bogon in the path, so make sure we never use it.
1348 set dummy $ac_cv_prog_CC
1350 if test $# != 0; then
1351 # We chose a different compiler from the bogus one.
1352 # However, it has the same basename, so the bogon will be chosen
1353 # first if we set CC to just the basename; use the full file name.
1355 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1363 if test -n "$CC"; then
1364 echo "$as_me:1364: result: $CC" >&5
1365 echo "${ECHO_T}$CC" >&6
1367 echo "$as_me:1367: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1372 if test -z "$CC"; then
1373 if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1378 echo "$as_me:1378: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 ac_save_IFS=$IFS; IFS=$ac_path_separator
1388 for ac_dir in $ac_dummy; do
1390 test -z "$ac_dir" && ac_dir=.
1391 $as_executable_p "$ac_dir/$ac_word" || continue
1392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1393 echo "$as_me:1393: found $ac_dir/$ac_word" >&5
1400 if test -n "$CC"; then
1401 echo "$as_me:1401: result: $CC" >&5
1402 echo "${ECHO_T}$CC" >&6
1404 echo "$as_me:1404: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1408 test -n "$CC" && break
1411 if test -z "$CC"; then
1415 # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:1417: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 if test -n "$ac_ct_CC"; then
1423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425 ac_save_IFS=$IFS; IFS=$ac_path_separator
1427 for ac_dir in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 $as_executable_p "$ac_dir/$ac_word" || continue
1431 ac_cv_prog_ac_ct_CC="$ac_prog"
1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:1440: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1443 echo "$as_me:1443: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1447 test -n "$ac_ct_CC" && break
1455 test -z "$CC" && { { echo "$as_me:1455: error: no acceptable cc found in \$PATH" >&5
1456 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1457 { (exit 1); exit 1; }; }
1459 # Provide some information about the compiler.
1460 echo "$as_me:1460:" \
1461 "checking for C compiler version" >&5
1462 ac_compiler=`set X $ac_compile; echo "$2"`
1463 { (eval echo "$as_me:1463: \"$ac_compiler --version </dev/null >&5\"") >&5
1464 (eval $ac_compiler --version </dev/null >&5) 2>&5
1466 echo "$as_me:1466: \$? = $ac_status" >&5
1467 (exit "$ac_status"); }
1468 { (eval echo "$as_me:1468: \"$ac_compiler -v </dev/null >&5\"") >&5
1469 (eval $ac_compiler -v </dev/null >&5) 2>&5
1471 echo "$as_me:1471: \$? = $ac_status" >&5
1472 (exit "$ac_status"); }
1473 { (eval echo "$as_me:1473: \"$ac_compiler -V </dev/null >&5\"") >&5
1474 (eval $ac_compiler -V </dev/null >&5) 2>&5
1476 echo "$as_me:1476: \$? = $ac_status" >&5
1477 (exit "$ac_status"); }
1479 cat >"conftest.$ac_ext" <<_ACEOF
1480 #line 1480 "configure"
1481 #include "confdefs.h"
1491 ac_clean_files_save=$ac_clean_files
1492 ac_clean_files="$ac_clean_files a.out a.exe"
1493 # Try to create an executable without -o first, disregard a.out.
1494 # It will help us diagnose broken compilers, and finding out an intuition
1496 echo "$as_me:1496: checking for C compiler default output" >&5
1497 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1498 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1499 if { (eval echo "$as_me:1499: \"$ac_link_default\"") >&5
1500 (eval $ac_link_default) 2>&5
1502 echo "$as_me:1502: \$? = $ac_status" >&5
1503 (exit "$ac_status"); }; then
1504 # Find the output, starting from the most likely. This scheme is
1505 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1507 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1508 ls a.out conftest 2>/dev/null;
1509 ls a.* conftest.* 2>/dev/null`; do
1511 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1512 a.out ) # We found the default executable, but exeext='' is most
1515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1516 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1523 echo "$as_me: failed program was:" >&5
1524 cat "conftest.$ac_ext" >&5
1525 { { echo "$as_me:1525: error: C compiler cannot create executables" >&5
1526 echo "$as_me: error: C compiler cannot create executables" >&2;}
1527 { (exit 77); exit 77; }; }
1530 ac_exeext=$ac_cv_exeext
1531 echo "$as_me:1531: result: $ac_file" >&5
1532 echo "${ECHO_T}$ac_file" >&6
1534 # Check the compiler produces executables we can run. If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether the C compiler works" >&5
1537 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1539 # If not cross compiling, check that we can run a simple program.
1540 if test "$cross_compiling" != yes; then
1541 if { ac_try='./$ac_file'
1542 { (eval echo "$as_me:1542: \"$ac_try\"") >&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit "$ac_status"); }; }; then
1549 if test "$cross_compiling" = maybe; then
1552 { { echo "$as_me:1552: error: cannot run C compiled programs.
1553 If you meant to cross compile, use \`--host'." >&5
1554 echo "$as_me: error: cannot run C compiled programs.
1555 If you meant to cross compile, use \`--host'." >&2;}
1556 { (exit 1); exit 1; }; }
1560 echo "$as_me:1560: result: yes" >&5
1561 echo "${ECHO_T}yes" >&6
1563 rm -f a.out a.exe "conftest$ac_cv_exeext"
1564 ac_clean_files=$ac_clean_files_save
1565 # Check the compiler produces executables we can run. If not, either
1566 # the compiler is broken, or we cross compile.
1567 echo "$as_me:1567: checking whether we are cross compiling" >&5
1568 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1569 echo "$as_me:1569: result: $cross_compiling" >&5
1570 echo "${ECHO_T}$cross_compiling" >&6
1572 echo "$as_me:1572: checking for executable suffix" >&5
1573 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1574 if { (eval echo "$as_me:1574: \"$ac_link\"") >&5
1575 (eval $ac_link) 2>&5
1577 echo "$as_me:1577: \$? = $ac_status" >&5
1578 (exit "$ac_status"); }; then
1579 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1580 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1581 # work properly (i.e., refer to `conftest.exe'), while it won't with
1583 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1585 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1593 { { echo "$as_me:1593: error: cannot compute EXEEXT: cannot compile and link" >&5
1594 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1595 { (exit 1); exit 1; }; }
1598 rm -f "conftest$ac_cv_exeext"
1599 echo "$as_me:1599: result: $ac_cv_exeext" >&5
1600 echo "${ECHO_T}$ac_cv_exeext" >&6
1602 rm -f "conftest.$ac_ext"
1603 EXEEXT=$ac_cv_exeext
1605 echo "$as_me:1605: checking for object suffix" >&5
1606 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1607 if test "${ac_cv_objext+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 cat >"conftest.$ac_ext" <<_ACEOF
1611 #line 1611 "configure"
1612 #include "confdefs.h"
1622 rm -f conftest.o conftest.obj
1623 if { (eval echo "$as_me:1623: \"$ac_compile\"") >&5
1624 (eval $ac_compile) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit "$ac_status"); }; then
1628 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1630 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1636 echo "$as_me: failed program was:" >&5
1637 cat "conftest.$ac_ext" >&5
1638 { { echo "$as_me:1638: error: cannot compute OBJEXT: cannot compile" >&5
1639 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1640 { (exit 1); exit 1; }; }
1643 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1645 echo "$as_me:1645: result: $ac_cv_objext" >&5
1646 echo "${ECHO_T}$ac_cv_objext" >&6
1647 OBJEXT=$ac_cv_objext
1649 echo "$as_me:1649: checking whether we are using the GNU C compiler" >&5
1650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 cat >"conftest.$ac_ext" <<_ACEOF
1655 #line 1655 "configure"
1656 #include "confdefs.h"
1669 rm -f "conftest.$ac_objext"
1670 if { (eval echo "$as_me:1670: \"$ac_compile\"") >&5
1671 (eval $ac_compile) 2>&5
1673 echo "$as_me:1673: \$? = $ac_status" >&5
1674 (exit "$ac_status"); } &&
1675 { ac_try='test -s "conftest.$ac_objext"'
1676 { (eval echo "$as_me:1676: \"$ac_try\"") >&5
1679 echo "$as_me:1679: \$? = $ac_status" >&5
1680 (exit "$ac_status"); }; }; then
1683 echo "$as_me: failed program was:" >&5
1684 cat "conftest.$ac_ext" >&5
1687 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1691 echo "$as_me:1691: result: $ac_cv_c_compiler_gnu" >&5
1692 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1693 GCC=`test $ac_compiler_gnu = yes && echo yes`
1694 ac_test_CFLAGS=${CFLAGS+set}
1695 ac_save_CFLAGS=$CFLAGS
1697 echo "$as_me:1697: checking whether $CC accepts -g" >&5
1698 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1699 if test "${ac_cv_prog_cc_g+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 cat >"conftest.$ac_ext" <<_ACEOF
1703 #line 1703 "configure"
1704 #include "confdefs.h"
1714 rm -f "conftest.$ac_objext"
1715 if { (eval echo "$as_me:1715: \"$ac_compile\"") >&5
1716 (eval $ac_compile) 2>&5
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit "$ac_status"); } &&
1720 { ac_try='test -s "conftest.$ac_objext"'
1721 { (eval echo "$as_me:1721: \"$ac_try\"") >&5
1724 echo "$as_me:1724: \$? = $ac_status" >&5
1725 (exit "$ac_status"); }; }; then
1728 echo "$as_me: failed program was:" >&5
1729 cat "conftest.$ac_ext" >&5
1732 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1734 echo "$as_me:1734: result: $ac_cv_prog_cc_g" >&5
1735 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1736 if test "$ac_test_CFLAGS" = set; then
1737 CFLAGS=$ac_save_CFLAGS
1738 elif test $ac_cv_prog_cc_g = yes; then
1739 if test "$GCC" = yes; then
1745 if test "$GCC" = yes; then
1751 # Some people use a C++ compiler to compile C. Since we use `exit',
1752 # in C++ we need to declare it. In case someone uses the same compiler
1753 # for both compiling C and C++ we need to have the C++ compiler decide
1754 # the declaration of exit, since it's the most demanding environment.
1755 cat >"conftest.$ac_ext" <<_ACEOF
1760 rm -f "conftest.$ac_objext"
1761 if { (eval echo "$as_me:1761: \"$ac_compile\"") >&5
1762 (eval $ac_compile) 2>&5
1764 echo "$as_me:1764: \$? = $ac_status" >&5
1765 (exit "$ac_status"); } &&
1766 { ac_try='test -s "conftest.$ac_objext"'
1767 { (eval echo "$as_me:1767: \"$ac_try\"") >&5
1770 echo "$as_me:1770: \$? = $ac_status" >&5
1771 (exit "$ac_status"); }; }; then
1772 for ac_declaration in \
1774 '#include <stdlib.h>' \
1775 'extern "C" void std::exit (int) throw (); using std::exit;' \
1776 'extern "C" void std::exit (int); using std::exit;' \
1777 'extern "C" void exit (int) throw ();' \
1778 'extern "C" void exit (int);' \
1781 cat >"conftest.$ac_ext" <<_ACEOF
1782 #line 1782 "configure"
1783 #include "confdefs.h"
1794 rm -f "conftest.$ac_objext"
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit "$ac_status"); } &&
1800 { ac_try='test -s "conftest.$ac_objext"'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit "$ac_status"); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat "conftest.$ac_ext" >&5
1812 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1813 cat >"conftest.$ac_ext" <<_ACEOF
1814 #line 1814 "configure"
1815 #include "confdefs.h"
1825 rm -f "conftest.$ac_objext"
1826 if { (eval echo "$as_me:1826: \"$ac_compile\"") >&5
1827 (eval $ac_compile) 2>&5
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit "$ac_status"); } &&
1831 { ac_try='test -s "conftest.$ac_objext"'
1832 { (eval echo "$as_me:1832: \"$ac_try\"") >&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit "$ac_status"); }; }; then
1839 echo "$as_me: failed program was:" >&5
1840 cat "conftest.$ac_ext" >&5
1842 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1845 if test -n "$ac_declaration"; then
1846 echo '#ifdef __cplusplus' >>confdefs.h
1847 echo "$ac_declaration" >>confdefs.h
1848 echo '#endif' >>confdefs.h
1852 echo "$as_me: failed program was:" >&5
1853 cat "conftest.$ac_ext" >&5
1855 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1859 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 ac_main_return="return"
1864 if test "$GCC" = yes ; then
1865 echo "$as_me:1865: checking version of $CC" >&5
1866 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1867 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.].*//'`"
1868 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1869 echo "$as_me:1869: result: $GCC_VERSION" >&5
1870 echo "${ECHO_T}$GCC_VERSION" >&6
1875 if test "$GCC" = yes ; then
1878 echo "$as_me:1878: checking if this is really Intel C compiler" >&5
1879 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1880 cf_save_CFLAGS="$CFLAGS"
1881 CFLAGS="$CFLAGS -no-gcc"
1882 cat >"conftest.$ac_ext" <<_ACEOF
1883 #line 1883 "configure"
1884 #include "confdefs.h"
1890 #ifdef __INTEL_COMPILER
1899 rm -f "conftest.$ac_objext"
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit "$ac_status"); } &&
1905 { ac_try='test -s "conftest.$ac_objext"'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit "$ac_status"); }; }; then
1912 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1915 echo "$as_me: failed program was:" >&5
1916 cat "conftest.$ac_ext" >&5
1918 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1919 CFLAGS="$cf_save_CFLAGS"
1920 echo "$as_me:1920: result: $INTEL_COMPILER" >&5
1921 echo "${ECHO_T}$INTEL_COMPILER" >&6
1928 if test "$GCC" = yes ; then
1929 echo "$as_me:1929: checking if this is really Clang C compiler" >&5
1930 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1931 cf_save_CFLAGS="$CFLAGS"
1932 cat >"conftest.$ac_ext" <<_ACEOF
1933 #line 1933 "configure"
1934 #include "confdefs.h"
1949 rm -f "conftest.$ac_objext"
1950 if { (eval echo "$as_me:1950: \"$ac_compile\"") >&5
1951 (eval $ac_compile) 2>&5
1953 echo "$as_me:1953: \$? = $ac_status" >&5
1954 (exit "$ac_status"); } &&
1955 { ac_try='test -s "conftest.$ac_objext"'
1956 { (eval echo "$as_me:1956: \"$ac_try\"") >&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit "$ac_status"); }; }; then
1964 echo "$as_me: failed program was:" >&5
1965 cat "conftest.$ac_ext" >&5
1967 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1968 CFLAGS="$cf_save_CFLAGS"
1969 echo "$as_me:1969: result: $CLANG_COMPILER" >&5
1970 echo "${ECHO_T}$CLANG_COMPILER" >&6
1975 if test "x$CLANG_COMPILER" = "xyes" ; then
1977 (c[1-9][0-9]|*/c[1-9][0-9])
1978 { echo "$as_me:1978: WARNING: replacing broken compiler alias $CC" >&5
1979 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
1980 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1985 echo "$as_me:1985: checking version of $CC" >&5
1986 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1987 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1988 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
1989 echo "$as_me:1989: result: $CLANG_VERSION" >&5
1990 echo "${ECHO_T}$CLANG_VERSION" >&6
1992 for cf_clang_opt in \
1993 -Qunused-arguments \
1994 -Wno-error=implicit-function-declaration
1996 echo "$as_me:1996: checking if option $cf_clang_opt works" >&5
1997 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
1998 cf_save_CFLAGS="$CFLAGS"
1999 CFLAGS="$CFLAGS $cf_clang_opt"
2000 cat >"conftest.$ac_ext" <<_ACEOF
2001 #line 2001 "configure"
2002 #include "confdefs.h"
2009 printf("hello!\\n");
2014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2015 if { (eval echo "$as_me:2015: \"$ac_link\"") >&5
2016 (eval $ac_link) 2>&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit "$ac_status"); } &&
2020 { ac_try='test -s "conftest$ac_exeext"'
2021 { (eval echo "$as_me:2021: \"$ac_try\"") >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit "$ac_status"); }; }; then
2029 echo "$as_me: failed program was:" >&5
2030 cat "conftest.$ac_ext" >&5
2034 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2035 echo "$as_me:2035: result: $cf_clang_optok" >&5
2036 echo "${ECHO_T}$cf_clang_optok" >&6
2037 CFLAGS="$cf_save_CFLAGS"
2038 if test "$cf_clang_optok" = yes; then
2039 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2041 echo "${as_me:-configure}:2041: testing adding option $cf_clang_opt ..." 1>&5
2043 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2044 CFLAGS="${CFLAGS}$cf_clang_opt"
2050 echo "$as_me:2050: checking for $CC option to accept ANSI C" >&5
2051 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2052 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 ac_cv_prog_cc_stdc=no
2057 cat >"conftest.$ac_ext" <<_ACEOF
2058 #line 2058 "configure"
2059 #include "confdefs.h"
2062 #include <sys/types.h>
2063 #include <sys/stat.h>
2064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2065 struct buf { int x; };
2066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2067 static char *e (p, i)
2073 static char *f (char * (*g) (char **, int), char **p, ...)
2078 s = g (p, va_arg (v,int));
2082 int test (int i, double x);
2083 struct s1 {int (*f) (int a);};
2084 struct s2 {int (*f) (double a);};
2085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2096 # Don't try gcc -ansi; that turns off useful extensions and
2097 # breaks some systems' header files.
2098 # AIX -qlanglvl=ansi
2099 # Ultrix and OSF/1 -std1
2100 # HP-UX 10.20 and later -Ae
2101 # HP-UX older versions -Aa -D_HPUX_SOURCE
2102 # SVR4 -Xc -D__EXTENSIONS__
2103 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2105 CC="$ac_save_CC $ac_arg"
2106 rm -f "conftest.$ac_objext"
2107 if { (eval echo "$as_me:2107: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>&5
2110 echo "$as_me:2110: \$? = $ac_status" >&5
2111 (exit "$ac_status"); } &&
2112 { ac_try='test -s "conftest.$ac_objext"'
2113 { (eval echo "$as_me:2113: \"$ac_try\"") >&5
2116 echo "$as_me:2116: \$? = $ac_status" >&5
2117 (exit "$ac_status"); }; }; then
2118 ac_cv_prog_cc_stdc=$ac_arg
2121 echo "$as_me: failed program was:" >&5
2122 cat "conftest.$ac_ext" >&5
2124 rm -f "conftest.$ac_objext"
2126 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2131 case "x$ac_cv_prog_cc_stdc" in
2133 echo "$as_me:2133: result: none needed" >&5
2134 echo "${ECHO_T}none needed" >&6 ;;
2136 echo "$as_me:2136: result: $ac_cv_prog_cc_stdc" >&5
2137 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2138 CC="$CC $ac_cv_prog_cc_stdc" ;;
2141 # This should have been defined by AC_PROG_CC
2144 echo "$as_me:2144: checking \$CFLAGS variable" >&5
2145 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2148 echo "$as_me:2148: result: broken" >&5
2149 echo "${ECHO_T}broken" >&6
2150 { echo "$as_me:2150: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2151 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2154 for cf_arg in $cf_flags
2160 cf_new_extra_cppflags=
2162 for cf_add_cflags in $cf_arg
2164 case "$cf_fix_cppflags" in
2166 case "$cf_add_cflags" in
2167 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2168 case "$cf_add_cflags" in
2170 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2172 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2173 && test -z "${cf_tst_cflags}" \
2174 && cf_fix_cppflags=yes
2176 if test "$cf_fix_cppflags" = yes ; then
2178 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2179 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2182 elif test "${cf_tst_cflags}" = "\"'" ; then
2184 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2185 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2195 case "$cf_add_cflags" in
2197 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2199 CPPFLAGS=`echo "$CPPFLAGS" | \
2200 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2201 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2206 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2207 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2214 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2215 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2222 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2223 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2225 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2227 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2228 && test -z "${cf_tst_cflags}" \
2229 && cf_fix_cppflags=no
2234 if test -n "$cf_new_cflags" ; then
2236 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2237 CFLAGS="${CFLAGS}$cf_new_cflags"
2241 if test -n "$cf_new_cppflags" ; then
2243 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2244 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2248 if test -n "$cf_new_extra_cppflags" ; then
2250 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2251 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2258 echo "$as_me:2258: result: ok" >&5
2259 echo "${ECHO_T}ok" >&6
2263 echo "$as_me:2263: checking \$CC variable" >&5
2264 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2267 echo "$as_me:2267: result: broken" >&5
2268 echo "${ECHO_T}broken" >&6
2269 { echo "$as_me:2269: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2270 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2272 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2273 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2275 for cf_arg in $cf_flags
2283 cf_new_extra_cppflags=
2285 for cf_add_cflags in $cf_arg
2287 case "$cf_fix_cppflags" in
2289 case "$cf_add_cflags" in
2290 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2291 case "$cf_add_cflags" in
2293 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2295 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2296 && test -z "${cf_tst_cflags}" \
2297 && cf_fix_cppflags=yes
2299 if test "$cf_fix_cppflags" = yes ; then
2301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2305 elif test "${cf_tst_cflags}" = "\"'" ; then
2307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2318 case "$cf_add_cflags" in
2320 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2322 CPPFLAGS=`echo "$CPPFLAGS" | \
2323 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2324 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2329 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2330 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2337 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2338 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2345 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2346 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2348 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2350 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2351 && test -z "${cf_tst_cflags}" \
2352 && cf_fix_cppflags=no
2357 if test -n "$cf_new_cflags" ; then
2359 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2360 CFLAGS="${CFLAGS}$cf_new_cflags"
2364 if test -n "$cf_new_cppflags" ; then
2366 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2367 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2371 if test -n "$cf_new_extra_cppflags" ; then
2373 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2374 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2384 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2386 echo "${as_me:-configure}:2386: testing resulting CC: '$CC' ..." 1>&5
2388 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2390 echo "${as_me:-configure}:2390: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2392 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2394 echo "${as_me:-configure}:2394: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2398 echo "$as_me:2398: result: ok" >&5
2399 echo "${ECHO_T}ok" >&6
2403 echo "$as_me:2403: checking for inline" >&5
2404 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2405 if test "${ac_cv_c_inline+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 for ac_kw in inline __inline__ __inline; do
2410 cat >"conftest.$ac_ext" <<_ACEOF
2411 #line 2411 "configure"
2412 #include "confdefs.h"
2414 static $ac_kw int static_foo () {return 0; }
2415 $ac_kw int foo () {return 0; }
2419 rm -f "conftest.$ac_objext"
2420 if { (eval echo "$as_me:2420: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>&5
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit "$ac_status"); } &&
2425 { ac_try='test -s "conftest.$ac_objext"'
2426 { (eval echo "$as_me:2426: \"$ac_try\"") >&5
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit "$ac_status"); }; }; then
2431 ac_cv_c_inline=$ac_kw; break
2433 echo "$as_me: failed program was:" >&5
2434 cat "conftest.$ac_ext" >&5
2436 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2440 echo "$as_me:2440: result: $ac_cv_c_inline" >&5
2441 echo "${ECHO_T}$ac_cv_c_inline" >&6
2442 case $ac_cv_c_inline in
2445 cat >>confdefs.h <<\EOF
2449 *) cat >>confdefs.h <<EOF
2450 #define inline $ac_cv_c_inline
2455 for ac_prog in ggrep grep
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:2459: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_GREP+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$GREP"; then
2465 ac_cv_prog_GREP="$GREP" # Let the user override the test.
2467 ac_save_IFS=$IFS; IFS=$ac_path_separator
2469 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 $as_executable_p "$ac_dir/$ac_word" || continue
2473 ac_cv_prog_GREP="$ac_prog"
2474 echo "$as_me:2474: found $ac_dir/$ac_word" >&5
2480 GREP=$ac_cv_prog_GREP
2481 if test -n "$GREP"; then
2482 echo "$as_me:2482: result: $GREP" >&5
2483 echo "${ECHO_T}$GREP" >&6
2485 echo "$as_me:2485: result: no" >&5
2486 echo "${ECHO_T}no" >&6
2489 test -n "$GREP" && break
2491 test -n "$GREP" || GREP=": "
2493 echo "$as_me:2493: checking for egrep" >&5
2494 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2495 if test "${ac_cv_path_EGREP+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2499 then ac_cv_path_EGREP="$GREP -E"
2501 for ac_prog in gegrep egrep
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:2505: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_path_EGREP+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2515 ac_save_IFS=$IFS; IFS=$ac_path_separator
2517 for ac_dir in $ac_dummy; do
2519 test -z "$ac_dir" && ac_dir=.
2520 if $as_executable_p "$ac_dir/$ac_word"; then
2521 ac_cv_path_EGREP="$ac_dir/$ac_word"
2522 echo "$as_me:2522: found $ac_dir/$ac_word" >&5
2530 EGREP=$ac_cv_path_EGREP
2532 if test -n "$EGREP"; then
2533 echo "$as_me:2533: result: $EGREP" >&5
2534 echo "${ECHO_T}$EGREP" >&6
2536 echo "$as_me:2536: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2540 test -n "$EGREP" && break
2542 test -n "$EGREP" || EGREP=": "
2544 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2544: error: cannot find workable egrep" >&5
2545 echo "$as_me: error: cannot find workable egrep" >&2;}
2546 { (exit 1); exit 1; }; }
2549 echo "$as_me:2549: result: $ac_cv_path_EGREP" >&5
2550 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
2551 EGREP="$ac_cv_path_EGREP"
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2556 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 ac_main_return="return"
2559 echo "$as_me:2559: checking how to run the C preprocessor" >&5
2560 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2561 # On Suns, sometimes $CPP names a directory.
2562 if test -n "$CPP" && test -d "$CPP"; then
2565 if test -z "$CPP"; then
2566 if test "${ac_cv_prog_CPP+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 # Double quotes because CPP needs to be expanded
2570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2573 for ac_c_preproc_warn_flag in '' yes
2575 # Use a header file that comes with gcc, so configuring glibc
2576 # with a fresh cross-compiler works.
2577 # On the NeXT, cc -E runs the code through the compiler's parser,
2578 # not just through cpp. "Syntax error" is here to catch this case.
2579 cat >"conftest.$ac_ext" <<_ACEOF
2580 #line 2580 "configure"
2581 #include "confdefs.h"
2585 if { (eval echo "$as_me:2585: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2586 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2588 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2590 cat conftest.err >&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit "$ac_status"); } >/dev/null; then
2593 if test -s conftest.err; then
2594 ac_cpp_err=$ac_c_preproc_warn_flag
2601 if test -z "$ac_cpp_err"; then
2604 echo "$as_me: failed program was:" >&5
2605 cat "conftest.$ac_ext" >&5
2606 # Broken: fails on valid input.
2609 rm -f conftest.err "conftest.$ac_ext"
2611 # OK, works on sane cases. Now check whether non-existent headers
2612 # can be detected and how.
2613 cat >"conftest.$ac_ext" <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2616 #include <ac_nonexistent.h>
2618 if { (eval echo "$as_me:2618: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2619 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2621 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit "$ac_status"); } >/dev/null; then
2626 if test -s conftest.err; then
2627 ac_cpp_err=$ac_c_preproc_warn_flag
2634 if test -z "$ac_cpp_err"; then
2635 # Broken: success on invalid input.
2638 echo "$as_me: failed program was:" >&5
2639 cat "conftest.$ac_ext" >&5
2640 # Passes both tests.
2644 rm -f conftest.err "conftest.$ac_ext"
2647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2648 rm -f conftest.err "conftest.$ac_ext"
2649 if $ac_preproc_ok; then
2661 echo "$as_me:2661: result: $CPP" >&5
2662 echo "${ECHO_T}$CPP" >&6
2664 for ac_c_preproc_warn_flag in '' yes
2666 # Use a header file that comes with gcc, so configuring glibc
2667 # with a fresh cross-compiler works.
2668 # On the NeXT, cc -E runs the code through the compiler's parser,
2669 # not just through cpp. "Syntax error" is here to catch this case.
2670 cat >"conftest.$ac_ext" <<_ACEOF
2671 #line 2671 "configure"
2672 #include "confdefs.h"
2676 if { (eval echo "$as_me:2676: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2677 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2679 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:2682: \$? = $ac_status" >&5
2683 (exit "$ac_status"); } >/dev/null; then
2684 if test -s conftest.err; then
2685 ac_cpp_err=$ac_c_preproc_warn_flag
2692 if test -z "$ac_cpp_err"; then
2695 echo "$as_me: failed program was:" >&5
2696 cat "conftest.$ac_ext" >&5
2697 # Broken: fails on valid input.
2700 rm -f conftest.err "conftest.$ac_ext"
2702 # OK, works on sane cases. Now check whether non-existent headers
2703 # can be detected and how.
2704 cat >"conftest.$ac_ext" <<_ACEOF
2705 #line 2705 "configure"
2706 #include "confdefs.h"
2707 #include <ac_nonexistent.h>
2709 if { (eval echo "$as_me:2709: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2710 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2712 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:2715: \$? = $ac_status" >&5
2716 (exit "$ac_status"); } >/dev/null; then
2717 if test -s conftest.err; then
2718 ac_cpp_err=$ac_c_preproc_warn_flag
2725 if test -z "$ac_cpp_err"; then
2726 # Broken: success on invalid input.
2729 echo "$as_me: failed program was:" >&5
2730 cat "conftest.$ac_ext" >&5
2731 # Passes both tests.
2735 rm -f conftest.err "conftest.$ac_ext"
2738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2739 rm -f conftest.err "conftest.$ac_ext"
2740 if $ac_preproc_ok; then
2743 { { echo "$as_me:2743: error: C preprocessor \"$CPP\" fails sanity check" >&5
2744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2745 { (exit 1); exit 1; }; }
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2751 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 ac_main_return="return"
2755 for ac_prog in mawk gawk nawk awk
2757 # Extract the first word of "$ac_prog", so it can be a program name with args.
2758 set dummy $ac_prog; ac_word=$2
2759 echo "$as_me:2759: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_AWK+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$AWK"; then
2765 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2767 ac_save_IFS=$IFS; IFS=$ac_path_separator
2769 for ac_dir in $ac_dummy; do
2771 test -z "$ac_dir" && ac_dir=.
2772 $as_executable_p "$ac_dir/$ac_word" || continue
2773 ac_cv_prog_AWK="$ac_prog"
2774 echo "$as_me:2774: found $ac_dir/$ac_word" >&5
2781 if test -n "$AWK"; then
2782 echo "$as_me:2782: result: $AWK" >&5
2783 echo "${ECHO_T}$AWK" >&6
2785 echo "$as_me:2785: result: no" >&5
2786 echo "${ECHO_T}no" >&6
2789 test -n "$AWK" && break
2792 # Find a good install program. We prefer a C program (faster),
2793 # so one script is as good as another. But avoid the broken or
2794 # incompatible versions:
2795 # SysV /etc/install, /usr/sbin/install
2796 # SunOS /usr/etc/install
2797 # IRIX /sbin/install
2799 # AmigaOS /C/install, which installs bootblocks on floppy discs
2800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2803 # ./install, which can be erroneously created by make from ./install.sh.
2804 echo "$as_me:2804: checking for a BSD compatible install" >&5
2805 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2806 if test -z "$INSTALL"; then
2807 if test "${ac_cv_path_install+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 ac_save_IFS=$IFS; IFS=$ac_path_separator
2811 for ac_dir in $PATH; do
2813 # Account for people who put trailing slashes in PATH elements.
2815 / | ./ | .// | /cC/* \
2816 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2819 # OSF1 and SCO ODT 3.0 have their own names for install.
2820 # Don't use installbsd from OSF since it installs stuff as root
2822 for ac_prog in ginstall scoinst install; do
2823 if $as_executable_p "$ac_dir/$ac_prog"; then
2824 if test $ac_prog = install &&
2825 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2826 # AIX install. It has an incompatible calling convention.
2828 elif test $ac_prog = install &&
2829 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2830 # program-specific install script used by HP pwplus--don't use.
2833 ac_cv_path_install="$ac_dir/$ac_prog -c"
2843 if test "${ac_cv_path_install+set}" = set; then
2844 INSTALL=$ac_cv_path_install
2846 # As a last resort, use the slow shell script. We don't cache a
2847 # path for INSTALL within a source directory, because that will
2848 # break other packages using the cache if that directory is
2849 # removed, or if the path is relative.
2850 INSTALL=$ac_install_sh
2853 echo "$as_me:2853: result: $INSTALL" >&5
2854 echo "${ECHO_T}$INSTALL" >&6
2856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2857 # It thinks the first close brace ends the variable substitution.
2858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
2869 test -z "$cf_dir" && cf_dir=.
2870 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
2874 echo "$as_me:2874: checking if you want to install stripped executables" >&5
2875 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2877 # Check whether --enable-stripping or --disable-stripping was given.
2878 if test "${enable_stripping+set}" = set; then
2879 enableval="$enable_stripping"
2880 test "$enableval" != no && enableval=yes
2881 if test "$enableval" != "yes" ; then
2884 enable_stripping=yes
2888 enable_stripping=yes
2891 echo "$as_me:2891: result: $enable_stripping" >&5
2892 echo "${ECHO_T}$enable_stripping" >&6
2894 if test "$enable_stripping" = yes
2901 : "${INSTALL:=install}"
2902 echo "$as_me:2902: checking if install accepts -p option" >&5
2903 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2904 if test "${cf_cv_install_p+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2914 if test -f conftest.out/conftest.in
2916 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2917 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2918 if test -s conftest.err
2933 echo "$as_me:2933: result: $cf_cv_install_p" >&5
2934 echo "${ECHO_T}$cf_cv_install_p" >&6
2936 echo "$as_me:2936: checking if install needs to be told about ownership" >&5
2937 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2938 case `$ac_config_guess` in
2947 echo "$as_me:2947: result: $with_install_o" >&5
2948 echo "${ECHO_T}$with_install_o" >&6
2949 if test "x$with_install_o" = xyes
2951 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'`"
2956 for ac_prog in lint cppcheck splint
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 echo "$as_me:2960: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2962 if test "${ac_cv_prog_LINT+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -n "$LINT"; then
2966 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2968 ac_save_IFS=$IFS; IFS=$ac_path_separator
2970 for ac_dir in $ac_dummy; do
2972 test -z "$ac_dir" && ac_dir=.
2973 $as_executable_p "$ac_dir/$ac_word" || continue
2974 ac_cv_prog_LINT="$ac_prog"
2975 echo "$as_me:2975: found $ac_dir/$ac_word" >&5
2981 LINT=$ac_cv_prog_LINT
2982 if test -n "$LINT"; then
2983 echo "$as_me:2983: result: $LINT" >&5
2984 echo "${ECHO_T}$LINT" >&6
2986 echo "$as_me:2986: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2990 test -n "$LINT" && break
2994 (xcppcheck|x*/cppcheck)
2995 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2999 echo "$as_me:2999: checking if filesystem supports mixed-case filenames" >&5
3000 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3001 if test "${cf_cv_mixedcase+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test "$cross_compiling" = yes ; then
3006 case "$target_alias" in
3007 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3015 rm -f conftest CONFTEST
3017 if test -f CONFTEST ; then
3022 rm -f conftest CONFTEST
3026 echo "$as_me:3026: result: $cf_cv_mixedcase" >&5
3027 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3028 test "$cf_cv_mixedcase" = yes &&
3029 cat >>confdefs.h <<\EOF
3030 #define MIXEDCASE_FILENAMES 1
3033 for ac_prog in exctags ctags
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 echo "$as_me:3037: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039 if test "${ac_cv_prog_CTAGS+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 if test -n "$CTAGS"; then
3043 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3045 ac_save_IFS=$IFS; IFS=$ac_path_separator
3047 for ac_dir in $ac_dummy; do
3049 test -z "$ac_dir" && ac_dir=.
3050 $as_executable_p "$ac_dir/$ac_word" || continue
3051 ac_cv_prog_CTAGS="$ac_prog"
3052 echo "$as_me:3052: found $ac_dir/$ac_word" >&5
3058 CTAGS=$ac_cv_prog_CTAGS
3059 if test -n "$CTAGS"; then
3060 echo "$as_me:3060: result: $CTAGS" >&5
3061 echo "${ECHO_T}$CTAGS" >&6
3063 echo "$as_me:3063: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CTAGS" && break
3070 for ac_prog in exetags etags
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 echo "$as_me:3074: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_ETAGS+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 if test -n "$ETAGS"; then
3080 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3082 ac_save_IFS=$IFS; IFS=$ac_path_separator
3084 for ac_dir in $ac_dummy; do
3086 test -z "$ac_dir" && ac_dir=.
3087 $as_executable_p "$ac_dir/$ac_word" || continue
3088 ac_cv_prog_ETAGS="$ac_prog"
3089 echo "$as_me:3089: found $ac_dir/$ac_word" >&5
3095 ETAGS=$ac_cv_prog_ETAGS
3096 if test -n "$ETAGS"; then
3097 echo "$as_me:3097: result: $ETAGS" >&5
3098 echo "${ECHO_T}$ETAGS" >&6
3100 echo "$as_me:3100: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3104 test -n "$ETAGS" && break
3107 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3108 set dummy ${CTAGS:-ctags}; ac_word=$2
3109 echo "$as_me:3109: checking for $ac_word" >&5
3110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3111 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if test -n "$MAKE_LOWER_TAGS"; then
3115 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3117 ac_save_IFS=$IFS; IFS=$ac_path_separator
3119 for ac_dir in $ac_dummy; do
3121 test -z "$ac_dir" && ac_dir=.
3122 $as_executable_p "$ac_dir/$ac_word" || continue
3123 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3124 echo "$as_me:3124: found $ac_dir/$ac_word" >&5
3128 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3131 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3132 if test -n "$MAKE_LOWER_TAGS"; then
3133 echo "$as_me:3133: result: $MAKE_LOWER_TAGS" >&5
3134 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3136 echo "$as_me:3136: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 if test "$cf_cv_mixedcase" = yes ; then
3141 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3142 set dummy ${ETAGS:-etags}; ac_word=$2
3143 echo "$as_me:3143: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if test -n "$MAKE_UPPER_TAGS"; then
3149 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3151 ac_save_IFS=$IFS; IFS=$ac_path_separator
3153 for ac_dir in $ac_dummy; do
3155 test -z "$ac_dir" && ac_dir=.
3156 $as_executable_p "$ac_dir/$ac_word" || continue
3157 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3158 echo "$as_me:3158: found $ac_dir/$ac_word" >&5
3162 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3165 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3166 if test -n "$MAKE_UPPER_TAGS"; then
3167 echo "$as_me:3167: result: $MAKE_UPPER_TAGS" >&5
3168 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3170 echo "$as_me:3170: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3178 if test "$MAKE_UPPER_TAGS" = yes ; then
3184 if test "$MAKE_LOWER_TAGS" = yes ; then
3190 echo "$as_me:3190: checking if -lm needed for math functions" >&5
3191 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3192 if test "${cf_cv_need_libm+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 cat >"conftest.$ac_ext" <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3207 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
3212 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3213 if { (eval echo "$as_me:3213: \"$ac_link\"") >&5
3214 (eval $ac_link) 2>&5
3216 echo "$as_me:3216: \$? = $ac_status" >&5
3217 (exit "$ac_status"); } &&
3218 { ac_try='test -s "conftest$ac_exeext"'
3219 { (eval echo "$as_me:3219: \"$ac_try\"") >&5
3222 echo "$as_me:3222: \$? = $ac_status" >&5
3223 (exit "$ac_status"); }; }; then
3226 echo "$as_me: failed program was:" >&5
3227 cat "conftest.$ac_ext" >&5
3230 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3232 echo "$as_me:3232: result: $cf_cv_need_libm" >&5
3233 echo "${ECHO_T}$cf_cv_need_libm" >&6
3234 if test "$cf_cv_need_libm" = yes
3242 CC_SHARED_OPTS=unknown
3243 CPPFLAGS="$CPPFLAGS"
3245 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3246 DFT_UPR_MODEL="NORMAL"
3259 PACKAGE="ncurses-examples"
3265 TINFO_LIBS='$(LIBS_CURSES)'
3266 cf_cv_abi_version=""
3267 cf_cv_rel_version=""
3273 echo "$as_me:3273: checking for fgrep" >&5
3274 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3275 if test "${ac_cv_path_FGREP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3279 then ac_cv_path_FGREP="$GREP -F"
3281 for ac_prog in gfgrep fgrep
3283 # Extract the first word of "$ac_prog", so it can be a program name with args.
3284 set dummy $ac_prog; ac_word=$2
3285 echo "$as_me:3285: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287 if test "${ac_cv_path_FGREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
3295 ac_save_IFS=$IFS; IFS=$ac_path_separator
3297 for ac_dir in $ac_dummy; do
3299 test -z "$ac_dir" && ac_dir=.
3300 if $as_executable_p "$ac_dir/$ac_word"; then
3301 ac_cv_path_FGREP="$ac_dir/$ac_word"
3302 echo "$as_me:3302: found $ac_dir/$ac_word" >&5
3310 FGREP=$ac_cv_path_FGREP
3312 if test -n "$FGREP"; then
3313 echo "$as_me:3313: result: $FGREP" >&5
3314 echo "${ECHO_T}$FGREP" >&6
3316 echo "$as_me:3316: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3320 test -n "$FGREP" && break
3322 test -n "$FGREP" || FGREP=": "
3324 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:3324: error: cannot find workable fgrep" >&5
3325 echo "$as_me: error: cannot find workable fgrep" >&2;}
3326 { (exit 1); exit 1; }; }
3329 echo "$as_me:3329: result: $ac_cv_path_FGREP" >&5
3330 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
3331 FGREP="$ac_cv_path_FGREP"
3333 if test "$GCC" = yes || test "$GXX" = yes
3335 cat > conftest.i <<EOF
3337 #define GCC_PRINTF 0
3342 #ifndef GCC_NORETURN
3343 #define GCC_NORETURN /* nothing */
3346 #define GCC_UNUSED /* nothing */
3349 if test "$GCC" = yes
3351 { echo "$as_me:3351: checking for $CC __attribute__ directives..." >&5
3352 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3353 cat > "conftest.$ac_ext" <<EOF
3354 #line 3354 "${as_me:-configure}"
3355 #include "confdefs.h"
3356 #include "conftest.h"
3357 #include "conftest.i"
3359 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3361 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3364 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3366 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3368 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3369 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3370 extern void foo(void) GCC_NORETURN;
3371 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3373 cf_printf_attribute=no
3374 cf_scanf_attribute=no
3375 for cf_attribute in scanf printf unused noreturn
3378 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3380 cf_directive="__attribute__(($cf_attribute))"
3381 echo "checking for $CC $cf_directive" 1>&5
3383 case "$cf_attribute" in
3385 cf_printf_attribute=yes
3386 cat >conftest.h <<EOF
3387 #define GCC_$cf_ATTRIBUTE 1
3391 cf_scanf_attribute=yes
3392 cat >conftest.h <<EOF
3393 #define GCC_$cf_ATTRIBUTE 1
3397 cat >conftest.h <<EOF
3398 #define GCC_$cf_ATTRIBUTE $cf_directive
3403 if { (eval echo "$as_me:3403: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>&5
3406 echo "$as_me:3406: \$? = $ac_status" >&5
3407 (exit "$ac_status"); }; then
3408 test -n "$verbose" && echo "$as_me:3408: result: ... $cf_attribute" >&5
3409 echo "${ECHO_T}... $cf_attribute" >&6
3410 cat conftest.h >>confdefs.h
3411 case "$cf_attribute" in
3414 cat >>confdefs.h <<EOF
3415 #define GCC_NORETURN $cf_directive
3420 cf_value='/* nothing */'
3421 if test "$cf_printf_attribute" != no ; then
3422 cf_value='__attribute__((format(printf,fmt,var)))'
3424 cat >>confdefs.h <<\EOF
3425 #define GCC_PRINTF 1
3430 cat >>confdefs.h <<EOF
3431 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3436 cf_value='/* nothing */'
3437 if test "$cf_scanf_attribute" != no ; then
3438 cf_value='__attribute__((format(scanf,fmt,var)))'
3440 cat >>confdefs.h <<\EOF
3446 cat >>confdefs.h <<EOF
3447 #define GCC_SCANFLIKE(fmt,var) $cf_value
3453 cat >>confdefs.h <<EOF
3454 #define GCC_UNUSED $cf_directive
3462 ${FGREP-fgrep} define conftest.i >>confdefs.h
3467 echo "$as_me:3467: checking if you want to work around bogus compiler/loader warnings" >&5
3468 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3470 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3471 if test "${enable_string_hacks+set}" = set; then
3472 enableval="$enable_string_hacks"
3473 enable_string_hacks=$enableval
3475 enable_string_hacks=no
3477 echo "$as_me:3477: result: $enable_string_hacks" >&5
3478 echo "${ECHO_T}$enable_string_hacks" >&6
3480 if test "x$enable_string_hacks" = "xyes"; then
3482 cat >>confdefs.h <<\EOF
3483 #define USE_STRING_HACKS 1
3486 { echo "$as_me:3486: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3487 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3488 echo "$as_me:3488: checking for strlcat" >&5
3489 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3490 if test "${ac_cv_func_strlcat+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 cat >"conftest.$ac_ext" <<_ACEOF
3494 #line 3494 "configure"
3495 #include "confdefs.h"
3496 #define strlcat autoconf_temporary
3497 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3506 char strlcat (void);
3512 /* The GNU C library defines stubs for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3516 #error found stub for strlcat
3524 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3525 if { (eval echo "$as_me:3525: \"$ac_link\"") >&5
3526 (eval $ac_link) 2>&5
3528 echo "$as_me:3528: \$? = $ac_status" >&5
3529 (exit "$ac_status"); } &&
3530 { ac_try='test -s "conftest$ac_exeext"'
3531 { (eval echo "$as_me:3531: \"$ac_try\"") >&5
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit "$ac_status"); }; }; then
3536 ac_cv_func_strlcat=yes
3538 echo "$as_me: failed program was:" >&5
3539 cat "conftest.$ac_ext" >&5
3540 ac_cv_func_strlcat=no
3542 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3544 echo "$as_me:3544: result: $ac_cv_func_strlcat" >&5
3545 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3546 if test "$ac_cv_func_strlcat" = yes; then
3548 cat >>confdefs.h <<\EOF
3549 #define HAVE_STRLCAT 1
3554 echo "$as_me:3554: checking for strlcat in -lbsd" >&5
3555 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3556 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_check_lib_save_LIBS=$LIBS
3561 cat >"conftest.$ac_ext" <<_ACEOF
3562 #line 3562 "configure"
3563 #include "confdefs.h"
3565 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3580 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3581 if { (eval echo "$as_me:3581: \"$ac_link\"") >&5
3582 (eval $ac_link) 2>&5
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit "$ac_status"); } &&
3586 { ac_try='test -s "conftest$ac_exeext"'
3587 { (eval echo "$as_me:3587: \"$ac_try\"") >&5
3590 echo "$as_me:3590: \$? = $ac_status" >&5
3591 (exit "$ac_status"); }; }; then
3592 ac_cv_lib_bsd_strlcat=yes
3594 echo "$as_me: failed program was:" >&5
3595 cat "conftest.$ac_ext" >&5
3596 ac_cv_lib_bsd_strlcat=no
3598 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3599 LIBS=$ac_check_lib_save_LIBS
3601 echo "$as_me:3601: result: $ac_cv_lib_bsd_strlcat" >&5
3602 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3603 if test "$ac_cv_lib_bsd_strlcat" = yes; then
3608 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3610 for cf_add_1lib in $cf_add_0lib; do
3611 for cf_add_2lib in $cf_add_libs; do
3612 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3617 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3621 for ac_header in bsd/string.h
3623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3624 echo "$as_me:3624: checking for $ac_header" >&5
3625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 cat >"conftest.$ac_ext" <<_ACEOF
3630 #line 3630 "configure"
3631 #include "confdefs.h"
3632 #include <$ac_header>
3634 if { (eval echo "$as_me:3634: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3635 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3637 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 echo "$as_me:3640: \$? = $ac_status" >&5
3641 (exit "$ac_status"); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3650 if test -z "$ac_cpp_err"; then
3651 eval "$as_ac_Header=yes"
3653 echo "$as_me: failed program was:" >&5
3654 cat "conftest.$ac_ext" >&5
3655 eval "$as_ac_Header=no"
3657 rm -f conftest.err "conftest.$ac_ext"
3659 echo "$as_me:3659: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
3660 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
3661 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
3662 cat >>confdefs.h <<EOF
3663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3669 cat >>confdefs.h <<\EOF
3670 #define HAVE_STRLCAT 1
3677 for ac_func in strlcpy snprintf
3679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3680 echo "$as_me:3680: checking for $ac_func" >&5
3681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3682 if eval "test \"\${$as_ac_var+set}\" = set"; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 cat >"conftest.$ac_ext" <<_ACEOF
3686 #line 3686 "configure"
3687 #include "confdefs.h"
3688 #define $ac_func autoconf_temporary
3689 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3696 /* We use char because int might match the return type of a gcc2
3697 builtin and then its argument prototype would still apply. */
3698 char $ac_func (void);
3704 /* The GNU C library defines stubs for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3708 #error found stub for $ac_func
3716 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3717 if { (eval echo "$as_me:3717: \"$ac_link\"") >&5
3718 (eval $ac_link) 2>&5
3720 echo "$as_me:3720: \$? = $ac_status" >&5
3721 (exit "$ac_status"); } &&
3722 { ac_try='test -s "conftest$ac_exeext"'
3723 { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit "$ac_status"); }; }; then
3728 eval "$as_ac_var=yes"
3730 echo "$as_me: failed program was:" >&5
3731 cat "conftest.$ac_ext" >&5
3732 eval "$as_ac_var=no"
3734 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3736 echo "$as_me:3736: result: `eval echo '${'"$as_ac_var"'}'`" >&5
3737 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
3738 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
3739 cat >>confdefs.h <<EOF
3740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3748 echo "$as_me:3748: checking if the POSIX test-macros are already defined" >&5
3749 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3750 if test "${cf_cv_posix_visible+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 cat >"conftest.$ac_ext" <<_ACEOF
3755 #line 3755 "configure"
3756 #include "confdefs.h"
3762 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3763 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3764 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3765 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3766 #error conflicting symbols found
3773 rm -f "conftest.$ac_objext"
3774 if { (eval echo "$as_me:3774: \"$ac_compile\"") >&5
3775 (eval $ac_compile) 2>&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit "$ac_status"); } &&
3779 { ac_try='test -s "conftest.$ac_objext"'
3780 { (eval echo "$as_me:3780: \"$ac_try\"") >&5
3783 echo "$as_me:3783: \$? = $ac_status" >&5
3784 (exit "$ac_status"); }; }; then
3785 cf_cv_posix_visible=no
3787 echo "$as_me: failed program was:" >&5
3788 cat "conftest.$ac_ext" >&5
3789 cf_cv_posix_visible=yes
3791 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3794 echo "$as_me:3794: result: $cf_cv_posix_visible" >&5
3795 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3797 if test "$cf_cv_posix_visible" = no; then
3800 cf_POSIX_C_SOURCE=199506L
3805 cf_xopen_source="-D_ALL_SOURCE"
3811 cf_xopen_source="-D_APPLE_C_SOURCE"
3814 cf_xopen_source="-D_DARWIN_C_SOURCE"
3817 (freebsd*|dragonfly*|midnightbsd*)
3818 # 5.x headers associate
3819 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3820 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3821 cf_POSIX_C_SOURCE=200112L
3823 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3826 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3829 cf_xopen_source="-D_HPUX_SOURCE"
3832 cf_xopen_source="-D_SGI_SOURCE"
3835 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3837 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3839 echo "$as_me:3839: checking if this is the GNU C library" >&5
3840 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3841 if test "${cf_cv_gnu_library+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 cat >"conftest.$ac_ext" <<_ACEOF
3846 #line 3846 "configure"
3847 #include "confdefs.h"
3848 #include <sys/types.h>
3853 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3855 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3858 # error not GNU C library
3864 rm -f "conftest.$ac_objext"
3865 if { (eval echo "$as_me:3865: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>&5
3868 echo "$as_me:3868: \$? = $ac_status" >&5
3869 (exit "$ac_status"); } &&
3870 { ac_try='test -s "conftest.$ac_objext"'
3871 { (eval echo "$as_me:3871: \"$ac_try\"") >&5
3874 echo "$as_me:3874: \$? = $ac_status" >&5
3875 (exit "$ac_status"); }; }; then
3876 cf_cv_gnu_library=yes
3878 echo "$as_me: failed program was:" >&5
3879 cat "conftest.$ac_ext" >&5
3880 cf_cv_gnu_library=no
3882 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3885 echo "$as_me:3885: result: $cf_cv_gnu_library" >&5
3886 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3888 if test x$cf_cv_gnu_library = xyes; then
3890 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3891 # was changed to help a little. newlib incorporated the change about 4
3893 echo "$as_me:3893: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3894 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3895 if test "${cf_cv_gnu_library_219+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3902 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3904 cat >"conftest.$ac_ext" <<_ACEOF
3905 #line 3905 "configure"
3906 #include "confdefs.h"
3907 #include <sys/types.h>
3912 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3914 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3917 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3923 rm -f "conftest.$ac_objext"
3924 if { (eval echo "$as_me:3924: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>&5
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit "$ac_status"); } &&
3929 { ac_try='test -s "conftest.$ac_objext"'
3930 { (eval echo "$as_me:3930: \"$ac_try\"") >&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit "$ac_status"); }; }; then
3935 cf_cv_gnu_library_219=yes
3937 echo "$as_me: failed program was:" >&5
3938 cat "conftest.$ac_ext" >&5
3939 cf_cv_gnu_library_219=no
3941 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3945 echo "$as_me:3945: result: $cf_cv_gnu_library_219" >&5
3946 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3948 if test "x$cf_cv_gnu_library_219" = xyes; then
3950 echo "$as_me:3950: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3951 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3952 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 cf_new_extra_cppflags=
3961 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3963 case "$cf_fix_cppflags" in
3965 case "$cf_add_cflags" in
3966 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3967 case "$cf_add_cflags" in
3969 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3971 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3972 && test -z "${cf_tst_cflags}" \
3973 && cf_fix_cppflags=yes
3975 if test "$cf_fix_cppflags" = yes ; then
3977 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3978 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3981 elif test "${cf_tst_cflags}" = "\"'" ; then
3983 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3984 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3994 case "$cf_add_cflags" in
3996 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3998 CPPFLAGS=`echo "$CPPFLAGS" | \
3999 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4000 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4005 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4006 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4013 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4014 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4021 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4022 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4024 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4026 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4027 && test -z "${cf_tst_cflags}" \
4028 && cf_fix_cppflags=no
4033 if test -n "$cf_new_cflags" ; then
4035 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4036 CFLAGS="${CFLAGS}$cf_new_cflags"
4040 if test -n "$cf_new_cppflags" ; then
4042 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4043 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4047 if test -n "$cf_new_extra_cppflags" ; then
4049 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4050 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4054 cat >"conftest.$ac_ext" <<_ACEOF
4055 #line 4055 "configure"
4056 #include "confdefs.h"
4059 #include <sys/types.h>
4065 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
4068 # error GNU C library is too old
4074 rm -f "conftest.$ac_objext"
4075 if { (eval echo "$as_me:4075: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4078 echo "$as_me:4078: \$? = $ac_status" >&5
4079 (exit "$ac_status"); } &&
4080 { ac_try='test -s "conftest.$ac_objext"'
4081 { (eval echo "$as_me:4081: \"$ac_try\"") >&5
4084 echo "$as_me:4084: \$? = $ac_status" >&5
4085 (exit "$ac_status"); }; }; then
4086 cf_cv_gnu_dftsrc_219=yes
4088 echo "$as_me: failed program was:" >&5
4089 cat "conftest.$ac_ext" >&5
4090 cf_cv_gnu_dftsrc_219=no
4092 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4095 echo "$as_me:4095: result: $cf_cv_gnu_dftsrc_219" >&5
4096 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
4097 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
4099 cf_cv_gnu_dftsrc_219=maybe
4102 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
4104 echo "$as_me:4104: checking if we must define _GNU_SOURCE" >&5
4105 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
4106 if test "${cf_cv_gnu_source+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 cat >"conftest.$ac_ext" <<_ACEOF
4111 #line 4111 "configure"
4112 #include "confdefs.h"
4113 #include <sys/types.h>
4118 #ifndef _XOPEN_SOURCE
4119 #error expected _XOPEN_SOURCE to be defined
4125 rm -f "conftest.$ac_objext"
4126 if { (eval echo "$as_me:4126: \"$ac_compile\"") >&5
4127 (eval $ac_compile) 2>&5
4129 echo "$as_me:4129: \$? = $ac_status" >&5
4130 (exit "$ac_status"); } &&
4131 { ac_try='test -s "conftest.$ac_objext"'
4132 { (eval echo "$as_me:4132: \"$ac_try\"") >&5
4135 echo "$as_me:4135: \$? = $ac_status" >&5
4136 (exit "$ac_status"); }; }; then
4139 echo "$as_me: failed program was:" >&5
4140 cat "conftest.$ac_ext" >&5
4146 cf_new_extra_cppflags=
4148 for cf_add_cflags in -D_GNU_SOURCE
4150 case "$cf_fix_cppflags" in
4152 case "$cf_add_cflags" in
4153 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4154 case "$cf_add_cflags" in
4156 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4158 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4159 && test -z "${cf_tst_cflags}" \
4160 && cf_fix_cppflags=yes
4162 if test "$cf_fix_cppflags" = yes ; then
4164 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4165 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4168 elif test "${cf_tst_cflags}" = "\"'" ; then
4170 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4171 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4181 case "$cf_add_cflags" in
4183 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4185 CPPFLAGS=`echo "$CPPFLAGS" | \
4186 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4187 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4192 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4193 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4200 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4201 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4208 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4209 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4211 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4213 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4214 && test -z "${cf_tst_cflags}" \
4215 && cf_fix_cppflags=no
4220 if test -n "$cf_new_cflags" ; then
4222 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4223 CFLAGS="${CFLAGS}$cf_new_cflags"
4227 if test -n "$cf_new_cppflags" ; then
4229 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4230 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4234 if test -n "$cf_new_extra_cppflags" ; then
4236 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4237 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4241 cat >"conftest.$ac_ext" <<_ACEOF
4242 #line 4242 "configure"
4243 #include "confdefs.h"
4244 #include <sys/types.h>
4249 #ifdef _XOPEN_SOURCE
4250 #error expected _XOPEN_SOURCE to be undefined
4256 rm -f "conftest.$ac_objext"
4257 if { (eval echo "$as_me:4257: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>&5
4260 echo "$as_me:4260: \$? = $ac_status" >&5
4261 (exit "$ac_status"); } &&
4262 { ac_try='test -s "conftest.$ac_objext"'
4263 { (eval echo "$as_me:4263: \"$ac_try\"") >&5
4266 echo "$as_me:4266: \$? = $ac_status" >&5
4267 (exit "$ac_status"); }; }; then
4270 echo "$as_me: failed program was:" >&5
4271 cat "conftest.$ac_ext" >&5
4272 cf_cv_gnu_source=yes
4274 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4278 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4281 echo "$as_me:4281: result: $cf_cv_gnu_source" >&5
4282 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4284 if test "$cf_cv_gnu_source" = yes
4286 echo "$as_me:4286: checking if we should also define _DEFAULT_SOURCE" >&5
4287 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4288 if test "${cf_cv_default_source+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4293 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4295 cat >"conftest.$ac_ext" <<_ACEOF
4296 #line 4296 "configure"
4297 #include "confdefs.h"
4298 #include <sys/types.h>
4303 #ifdef _DEFAULT_SOURCE
4304 #error expected _DEFAULT_SOURCE to be undefined
4310 rm -f "conftest.$ac_objext"
4311 if { (eval echo "$as_me:4311: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>&5
4314 echo "$as_me:4314: \$? = $ac_status" >&5
4315 (exit "$ac_status"); } &&
4316 { ac_try='test -s "conftest.$ac_objext"'
4317 { (eval echo "$as_me:4317: \"$ac_try\"") >&5
4320 echo "$as_me:4320: \$? = $ac_status" >&5
4321 (exit "$ac_status"); }; }; then
4322 cf_cv_default_source=no
4324 echo "$as_me: failed program was:" >&5
4325 cat "conftest.$ac_ext" >&5
4326 cf_cv_default_source=yes
4328 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4331 echo "$as_me:4331: result: $cf_cv_default_source" >&5
4332 echo "${ECHO_T}$cf_cv_default_source" >&6
4333 if test "$cf_cv_default_source" = yes
4336 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4337 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4347 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4350 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4353 if test "$cf_cv_posix_visible" = no; then
4355 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4357 cf_save_CFLAGS="$CFLAGS"
4358 cf_save_CPPFLAGS="$CPPFLAGS"
4360 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4361 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4362 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4364 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4365 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4366 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4368 echo "$as_me:4368: checking if we should define _POSIX_C_SOURCE" >&5
4369 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4370 if test "${cf_cv_posix_c_source+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 echo "${as_me:-configure}:4374: testing if the symbol is already defined go no further ..." 1>&5
4376 cat >"conftest.$ac_ext" <<_ACEOF
4377 #line 4377 "configure"
4378 #include "confdefs.h"
4379 #include <sys/types.h>
4384 #ifndef _POSIX_C_SOURCE
4391 rm -f "conftest.$ac_objext"
4392 if { (eval echo "$as_me:4392: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4395 echo "$as_me:4395: \$? = $ac_status" >&5
4396 (exit "$ac_status"); } &&
4397 { ac_try='test -s "conftest.$ac_objext"'
4398 { (eval echo "$as_me:4398: \"$ac_try\"") >&5
4401 echo "$as_me:4401: \$? = $ac_status" >&5
4402 (exit "$ac_status"); }; }; then
4403 cf_cv_posix_c_source=no
4405 echo "$as_me: failed program was:" >&5
4406 cat "conftest.$ac_ext" >&5
4407 cf_want_posix_source=no
4408 case .$cf_POSIX_C_SOURCE in
4410 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4413 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4414 cf_want_posix_source=yes
4417 cf_want_posix_source=yes
4420 if test "$cf_want_posix_source" = yes ; then
4421 cat >"conftest.$ac_ext" <<_ACEOF
4422 #line 4422 "configure"
4423 #include "confdefs.h"
4424 #include <sys/types.h>
4429 #ifdef _POSIX_SOURCE
4436 rm -f "conftest.$ac_objext"
4437 if { (eval echo "$as_me:4437: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit "$ac_status"); } &&
4442 { ac_try='test -s "conftest.$ac_objext"'
4443 { (eval echo "$as_me:4443: \"$ac_try\"") >&5
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit "$ac_status"); }; }; then
4450 echo "$as_me: failed program was:" >&5
4451 cat "conftest.$ac_ext" >&5
4452 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4454 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4457 echo "${as_me:-configure}:4457: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4459 CFLAGS="$cf_trim_CFLAGS"
4460 CPPFLAGS="$cf_trim_CPPFLAGS"
4462 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4463 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4465 echo "${as_me:-configure}:4465: testing if the second compile does not leave our definition intact error ..." 1>&5
4467 cat >"conftest.$ac_ext" <<_ACEOF
4468 #line 4468 "configure"
4469 #include "confdefs.h"
4470 #include <sys/types.h>
4475 #ifndef _POSIX_C_SOURCE
4482 rm -f "conftest.$ac_objext"
4483 if { (eval echo "$as_me:4483: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>&5
4486 echo "$as_me:4486: \$? = $ac_status" >&5
4487 (exit "$ac_status"); } &&
4488 { ac_try='test -s "conftest.$ac_objext"'
4489 { (eval echo "$as_me:4489: \"$ac_try\"") >&5
4492 echo "$as_me:4492: \$? = $ac_status" >&5
4493 (exit "$ac_status"); }; }; then
4496 echo "$as_me: failed program was:" >&5
4497 cat "conftest.$ac_ext" >&5
4498 cf_cv_posix_c_source=no
4500 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4501 CFLAGS="$cf_save_CFLAGS"
4502 CPPFLAGS="$cf_save_CPPFLAGS"
4505 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4508 echo "$as_me:4508: result: $cf_cv_posix_c_source" >&5
4509 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4511 if test "$cf_cv_posix_c_source" != no ; then
4512 CFLAGS="$cf_trim_CFLAGS"
4513 CPPFLAGS="$cf_trim_CPPFLAGS"
4518 cf_new_extra_cppflags=
4520 for cf_add_cflags in $cf_cv_posix_c_source
4522 case "$cf_fix_cppflags" in
4524 case "$cf_add_cflags" in
4525 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4526 case "$cf_add_cflags" in
4528 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4530 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4531 && test -z "${cf_tst_cflags}" \
4532 && cf_fix_cppflags=yes
4534 if test "$cf_fix_cppflags" = yes ; then
4536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4540 elif test "${cf_tst_cflags}" = "\"'" ; then
4542 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4543 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4553 case "$cf_add_cflags" in
4555 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4557 CPPFLAGS=`echo "$CPPFLAGS" | \
4558 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4559 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4564 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4565 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"