2 # From configure.in Revision: 1.66 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
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
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="gen/gen.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
607 # Report the --help message.
609 if test "$ac_init_help" = "long"; then
610 # Omit some internal or obsolete options to make the list less imposing.
611 # This message is too long to be a string in the A/UX 3.1 sh.
613 \`configure' configures this package to adapt to many kinds of systems.
615 Usage: $0 [OPTION]... [VAR=VALUE]...
617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
618 VAR=VALUE. See below for descriptions of some of the useful variables.
620 Defaults for the options are specified in brackets.
623 -h, --help display this help and exit
624 --help=short display options specific to this package
625 --help=recursive display the short help of all the included packages
626 -V, --version display version information and exit
627 -q, --quiet, --silent do not print \`checking...' messages
628 --cache-file=FILE cache test results in FILE [disabled]
629 -C, --config-cache alias for \`--cache-file=config.cache'
630 -n, --no-create do not create output files
631 --srcdir=DIR find the sources in DIR [configure dir or \`..']
636 Installation directories:
637 --prefix=PREFIX install architecture-independent files in PREFIX
639 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
642 By default, \`make install' will install all the files in
643 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
644 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
645 for instance \`--prefix=\$HOME'.
647 For better control, use the options below.
649 Fine tuning of the installation directories:
650 --bindir=DIR user executables [EPREFIX/bin]
651 --sbindir=DIR system admin executables [EPREFIX/sbin]
652 --libexecdir=DIR program executables [EPREFIX/libexec]
653 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
654 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
655 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
656 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
657 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
658 --libdir=DIR object code libraries [EPREFIX/lib]
659 --includedir=DIR C header files [PREFIX/include]
660 --oldincludedir=DIR C header files for non-gcc [/usr/include]
661 --infodir=DIR info documentation [DATAROOTDIR/info]
662 --mandir=DIR man documentation [DATAROOTDIR/man]
668 --program-prefix=PREFIX prepend PREFIX to installed program names
669 --program-suffix=SUFFIX append SUFFIX to installed program names
670 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
673 --build=BUILD configure for building on BUILD [guessed]
674 --host=HOST build programs to run on HOST [BUILD]
675 --target=TARGET configure for building compilers for TARGET [HOST]
679 if test -n "$ac_init_help"; then
684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
692 --with-system-type=XXX test: override derived host system-type
693 --disable-stripping do not strip (debug info) installed executables
694 --with-pkg-config{=path} enable/disable use of pkg-config
695 --with-pkg-config-libdir=XXX use given directory for installing pc-files
696 --without-tests suppress build with test-programs
697 --enable-mixed-case tic should assume mixed-case filenames
698 --with-install-prefix prefixes actual install-location ($DESTDIR)
699 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
700 --with-build-cc=XXX the build C compiler ($BUILD_CC)
701 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
702 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
703 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
704 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
705 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
706 Options to Specify the Libraries Built/Used:
707 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
708 --with-curses-dir=DIR directory in which (n)curses is installed
709 --enable-widec compile with wide-char/UTF-8 code
710 --with-lib-prefix override library-prefix
711 --with-shlib-version=X Specify rel or abi version for shared libs
712 --enable-rpath-link link sample programs with rpath option
713 Fine-Tuning Your Configuration:
714 --enable-broken_linker compile with broken-linker support code
715 --disable-largefile omit support for large files
716 --with-rcs-ids compile-in RCS identifiers
718 --disable-ext-funcs disable function-extensions
719 --enable-const compile with extra/non-standard const
721 --without-develop disable development options
723 --with-pthread use POSIX thread library
724 --enable-weak-symbols enable weak-symbols for pthreads
725 --enable-reentrant compile with experimental reentrant code
726 --with-wrap-prefix=XXX override prefix used for public variables
727 Testing/development Options:
728 --disable-echo do not display "compiling" commands
729 --enable-warnings build: turn on GCC compiler warnings
730 --enable-assertions test: turn on generation of assertion code
731 --enable-expanded test: generate functions for certain macros
732 --disable-macros test: use functions rather than macros
733 --with-trace test: add trace() function to all models of ncurses
734 --disable-gnat-projects test: disable GNAT projects even if usable
735 Ada95 Binding Options:
736 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
737 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
738 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
739 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
741 Some influential environment variables:
742 CC C compiler command
743 CFLAGS C compiler flags
744 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
745 nonstandard directory <lib dir>
746 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
747 headers in a nonstandard directory <include dir>
750 Use these variables to override the choices made by `configure' or to help
751 it to find libraries and programs with nonstandard names/locations.
756 if test "$ac_init_help" = "recursive"; then
757 # If there are subdirs, report their specific --help.
759 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
761 # A "../" for each directory in /$ac_subdir.
762 ac_dots=`echo $ac_subdir |
763 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
766 .) # No --srcdir option. We are building in place.
767 ac_sub_srcdir=$srcdir ;;
768 [\\/]* | ?:[\\/]* ) # Absolute path.
769 ac_sub_srcdir=$srcdir/$ac_subdir ;;
771 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
774 # Check for guested configure; otherwise get Cygnus style configure.
775 if test -f $ac_sub_srcdir/configure.gnu; then
777 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
778 elif test -f $ac_sub_srcdir/configure; then
780 $SHELL $ac_sub_srcdir/configure --help=recursive
781 elif test -f $ac_sub_srcdir/configure.ac ||
782 test -f $ac_sub_srcdir/configure.in; then
786 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
792 test -n "$ac_init_help" && exit 0
793 if $ac_init_version; then
796 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
797 Free Software Foundation, Inc.
798 This configure script is free software; the Free Software Foundation
799 gives unlimited permission to copy, distribute and modify it.
805 This file contains any messages produced by compilers while
806 running configure, to aid debugging if configure makes a mistake.
808 It was created by $as_me, which was
809 generated by GNU Autoconf 2.52.20170501. Invocation command line was
820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
832 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
849 # Keep a trace of the command line.
850 # Strip out --no-create and --no-recursion so they do not pile up.
851 # Also quote any args containing shell meta-characters.
857 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
858 | --no-cr | --no-c) ;;
859 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
860 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
861 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
863 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
865 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
868 # Get rid of the leading space.
871 # When interrupted or exit'd, cleanup temporary files, and complete
872 # config.log. We remove comments because anyway the quotes in there
873 # would cause problems or look ugly.
875 # Save into config.log some information that might help in debugging.
877 echo "## ----------------- ##" >&5
878 echo "## Cache variables. ##" >&5
879 echo "## ----------------- ##" >&5
881 # The following way of writing the cache mishandles newlines in values,
884 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
887 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
892 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
896 sed "/^$/d" confdefs.h >conftest.log
897 if test -s conftest.log; then
899 echo "## ------------ ##" >&5
900 echo "## confdefs.h. ##" >&5
901 echo "## ------------ ##" >&5
906 test "$ac_signal" != 0 &&
907 echo "$as_me: caught signal $ac_signal" >&5
908 echo "$as_me: exit $exit_status" >&5
909 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
912 for ac_signal in 1 2 13 15; do
913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
917 # confdefs.h avoids OS command line length limits that DEFS can exceed.
918 rm -rf conftest* confdefs.h
919 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
922 # Let the site file select an alternate cache file if it wants to.
923 # Prefer explicitly selected file to automatically selected ones.
924 if test -z "$CONFIG_SITE"; then
925 if test "x$prefix" != xNONE; then
926 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
931 for ac_site_file in $CONFIG_SITE; do
932 if test -r "$ac_site_file"; then
933 { echo "$as_me:933: loading site script $ac_site_file" >&5
934 echo "$as_me: loading site script $ac_site_file" >&6;}
935 cat "$ac_site_file" >&5
940 if test -r "$cache_file"; then
941 # Some versions of bash will fail to source /dev/null (special
942 # files actually), so we avoid doing that.
943 if test -f "$cache_file"; then
944 { echo "$as_me:944: loading cache $cache_file" >&5
945 echo "$as_me: loading cache $cache_file" >&6;}
947 [\\/]* | ?:[\\/]* ) . $cache_file;;
952 { echo "$as_me:952: creating cache $cache_file" >&5
953 echo "$as_me: creating cache $cache_file" >&6;}
957 # Check that the precious variables saved in the cache have kept the same
959 ac_cache_corrupted=false
960 for ac_var in `(set) 2>&1 |
961 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
963 eval ac_new_set=\$ac_env_${ac_var}_set
964 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
965 eval ac_new_val="\$ac_env_${ac_var}_value"
966 case $ac_old_set,$ac_new_set in
968 { echo "$as_me:968: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
969 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
970 ac_cache_corrupted=: ;;
972 { echo "$as_me:972: error: \`$ac_var' was not set in the previous run" >&5
973 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
974 ac_cache_corrupted=: ;;
977 if test "x$ac_old_val" != "x$ac_new_val"; then
978 { echo "$as_me:978: error: \`$ac_var' has changed since the previous run:" >&5
979 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
980 { echo "$as_me:980: former value: $ac_old_val" >&5
981 echo "$as_me: former value: $ac_old_val" >&2;}
982 { echo "$as_me:982: current value: $ac_new_val" >&5
983 echo "$as_me: current value: $ac_new_val" >&2;}
987 # Pass precious variables to config.status. It doesn't matter if
988 # we pass some twice (in addition to the command line arguments).
989 if test "$ac_new_set" = set; then
991 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
992 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
993 ac_configure_args="$ac_configure_args '$ac_arg'"
995 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1000 if $ac_cache_corrupted; then
1001 { echo "$as_me:1001: error: changes in the environment can compromise the build" >&5
1002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1003 { { echo "$as_me:1003: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1005 { (exit 1); exit 1; }; }
1009 ac_cpp='$CPP $CPPFLAGS'
1010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1013 ac_main_return=return
1015 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1016 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1018 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1019 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1021 echo "#! $SHELL" >conftest.sh
1022 echo "exit 0" >>conftest.sh
1023 chmod +x conftest.sh
1024 if { (echo "$as_me:1024: PATH=\".;.\"; conftest.sh") >&5
1025 (PATH=".;."; conftest.sh) 2>&5
1027 echo "$as_me:1027: \$? = $ac_status" >&5
1028 (exit $ac_status); }; then
1029 ac_path_separator=';'
1033 PATH_SEPARATOR="$ac_path_separator"
1036 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1041 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1042 if test -f $ac_dir/install-sh; then
1044 ac_install_sh="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh; then
1048 ac_install_sh="$ac_aux_dir/install.sh -c"
1050 elif test -f $ac_dir/shtool; then
1052 ac_install_sh="$ac_aux_dir/shtool install -c"
1056 if test -z "$ac_aux_dir"; then
1057 { { echo "$as_me:1057: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1058 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1059 { (exit 1); exit 1; }; }
1061 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1062 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1063 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1065 # Make sure we can run config.sub.
1066 $ac_config_sub sun4 >/dev/null 2>&1 ||
1067 { { echo "$as_me:1067: error: cannot run $ac_config_sub" >&5
1068 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1069 { (exit 1); exit 1; }; }
1071 echo "$as_me:1071: checking build system type" >&5
1072 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1073 if test "${ac_cv_build+set}" = set; then
1074 echo $ECHO_N "(cached) $ECHO_C" >&6
1076 ac_cv_build_alias=$build_alias
1077 test -z "$ac_cv_build_alias" &&
1078 ac_cv_build_alias=`$ac_config_guess`
1079 test -z "$ac_cv_build_alias" &&
1080 { { echo "$as_me:1080: error: cannot guess build type; you must specify one" >&5
1081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1082 { (exit 1); exit 1; }; }
1083 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1084 { { echo "$as_me:1084: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1085 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1086 { (exit 1); exit 1; }; }
1089 echo "$as_me:1089: result: $ac_cv_build" >&5
1090 echo "${ECHO_T}$ac_cv_build" >&6
1092 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1093 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1094 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$as_me:1096: checking host system type" >&5
1097 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1098 if test "${ac_cv_host+set}" = set; then
1099 echo $ECHO_N "(cached) $ECHO_C" >&6
1101 ac_cv_host_alias=$host_alias
1102 test -z "$ac_cv_host_alias" &&
1103 ac_cv_host_alias=$ac_cv_build_alias
1104 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1105 { { echo "$as_me:1105: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1106 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1107 { (exit 1); exit 1; }; }
1110 echo "$as_me:1110: result: $ac_cv_host" >&5
1111 echo "${ECHO_T}$ac_cv_host" >&6
1113 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1117 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1118 echo "$as_me:1118: checking target system type" >&5
1119 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1120 if test "${ac_cv_target+set}" = set; then
1121 echo $ECHO_N "(cached) $ECHO_C" >&6
1123 ac_cv_target_alias=$target_alias
1124 test "x$ac_cv_target_alias" = "x" &&
1125 ac_cv_target_alias=$ac_cv_host_alias
1126 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1127 { { echo "$as_me:1127: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1128 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1129 { (exit 1); exit 1; }; }
1132 echo "$as_me:1132: result: $ac_cv_target" >&5
1133 echo "${ECHO_T}$ac_cv_target" >&6
1134 target=$ac_cv_target
1135 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1136 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1137 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1139 # The aliases save the names the user supplied, while $host etc.
1140 # will get canonicalized.
1141 test -n "$target_alias" &&
1142 test "$program_prefix$program_suffix$program_transform_name" = \
1144 program_prefix=${target_alias}-
1145 system_name="$host_os"
1147 system_name="`(uname -s -r) 2>/dev/null`"
1148 if test -z "$system_name" ; then
1149 system_name="`(hostname) 2>/dev/null`"
1152 test -n "$system_name" &&
1153 cat >>confdefs.h <<EOF
1154 #define SYSTEM_NAME "$system_name"
1157 if test "${cf_cv_system_name+set}" = set; then
1158 echo $ECHO_N "(cached) $ECHO_C" >&6
1160 cf_cv_system_name="$system_name"
1163 test -z "$system_name" && system_name="$cf_cv_system_name"
1164 test -n "$cf_cv_system_name" && echo "$as_me:1164: result: Configuring for $cf_cv_system_name" >&5
1165 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1167 if test ".$system_name" != ".$cf_cv_system_name" ; then
1168 echo "$as_me:1168: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1169 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1170 { { echo "$as_me:1170: error: \"Please remove config.cache and try again.\"" >&5
1171 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1172 { (exit 1); exit 1; }; }
1175 # Check whether --with-system-type or --without-system-type was given.
1176 if test "${with_system_type+set}" = set; then
1177 withval="$with_system_type"
1178 { echo "$as_me:1178: WARNING: overriding system type to $withval" >&5
1179 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1180 cf_cv_system_name=$withval
1185 ### Save the given $CFLAGS to allow user-override.
1186 cf_user_CFLAGS="$CFLAGS"
1188 ### Default install-location
1190 echo "$as_me:1190: checking for prefix" >&5
1191 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1192 if test "x$prefix" = "xNONE" ; then
1193 case "$cf_cv_system_name" in
1194 # non-vendor systems don't have a conflict
1195 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1198 (*) prefix=$ac_default_prefix
1202 echo "$as_me:1202: result: $prefix" >&5
1203 echo "${ECHO_T}$prefix" >&6
1205 if test "x$prefix" = "xNONE" ; then
1206 echo "$as_me:1206: checking for default include-directory" >&5
1207 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1208 test -n "$verbose" && echo 1>&6
1211 $includedir/ncurses \
1213 $prefix/include/ncurses \
1214 /usr/local/include \
1215 /usr/local/include/ncurses \
1217 /usr/include/ncurses
1219 cf_dir=`eval echo $cf_symbol`
1220 if test -f $cf_dir/curses.h ; then
1221 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1222 includedir="$cf_symbol"
1223 test -n "$verbose" && echo $ac_n " found " 1>&6
1227 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1229 echo "$as_me:1229: result: $includedir" >&5
1230 echo "${ECHO_T}$includedir" >&6
1233 ### Checks for programs.
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240 ac_main_return=return
1241 if test -n "$ac_tool_prefix"; then
1242 for ac_prog in gnatgcc gcc cc
1244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1246 echo "$as_me:1246: checking for $ac_word" >&5
1247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1248 if test "${ac_cv_prog_CC+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1254 ac_save_IFS=$IFS; IFS=$ac_path_separator
1256 for ac_dir in $ac_dummy; do
1258 test -z "$ac_dir" && ac_dir=.
1259 $as_executable_p "$ac_dir/$ac_word" || continue
1260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1261 echo "$as_me:1261: found $ac_dir/$ac_word" >&5
1268 if test -n "$CC"; then
1269 echo "$as_me:1269: result: $CC" >&5
1270 echo "${ECHO_T}$CC" >&6
1272 echo "$as_me:1272: result: no" >&5
1273 echo "${ECHO_T}no" >&6
1276 test -n "$CC" && break
1279 if test -z "$CC"; then
1281 for ac_prog in gnatgcc gcc cc
1283 # Extract the first word of "$ac_prog", so it can be a program name with args.
1284 set dummy $ac_prog; ac_word=$2
1285 echo "$as_me:1285: checking for $ac_word" >&5
1286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 if test -n "$ac_ct_CC"; then
1291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1293 ac_save_IFS=$IFS; IFS=$ac_path_separator
1295 for ac_dir in $ac_dummy; do
1297 test -z "$ac_dir" && ac_dir=.
1298 $as_executable_p "$ac_dir/$ac_word" || continue
1299 ac_cv_prog_ac_ct_CC="$ac_prog"
1300 echo "$as_me:1300: found $ac_dir/$ac_word" >&5
1306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1307 if test -n "$ac_ct_CC"; then
1308 echo "$as_me:1308: result: $ac_ct_CC" >&5
1309 echo "${ECHO_T}$ac_ct_CC" >&6
1311 echo "$as_me:1311: result: no" >&5
1312 echo "${ECHO_T}no" >&6
1315 test -n "$ac_ct_CC" && break
1321 test -z "$CC" && { { echo "$as_me:1321: error: no acceptable cc found in \$PATH" >&5
1322 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1323 { (exit 1); exit 1; }; }
1325 # Provide some information about the compiler.
1326 echo "$as_me:1326:" \
1327 "checking for C compiler version" >&5
1328 ac_compiler=`set X $ac_compile; echo $2`
1329 { (eval echo "$as_me:1329: \"$ac_compiler --version </dev/null >&5\"") >&5
1330 (eval $ac_compiler --version </dev/null >&5) 2>&5
1332 echo "$as_me:1332: \$? = $ac_status" >&5
1333 (exit $ac_status); }
1334 { (eval echo "$as_me:1334: \"$ac_compiler -v </dev/null >&5\"") >&5
1335 (eval $ac_compiler -v </dev/null >&5) 2>&5
1337 echo "$as_me:1337: \$? = $ac_status" >&5
1338 (exit $ac_status); }
1339 { (eval echo "$as_me:1339: \"$ac_compiler -V </dev/null >&5\"") >&5
1340 (eval $ac_compiler -V </dev/null >&5) 2>&5
1342 echo "$as_me:1342: \$? = $ac_status" >&5
1343 (exit $ac_status); }
1345 cat >conftest.$ac_ext <<_ACEOF
1346 #line 1346 "configure"
1347 #include "confdefs.h"
1357 ac_clean_files_save=$ac_clean_files
1358 ac_clean_files="$ac_clean_files a.out a.exe"
1359 # Try to create an executable without -o first, disregard a.out.
1360 # It will help us diagnose broken compilers, and finding out an intuition
1362 echo "$as_me:1362: checking for C compiler default output" >&5
1363 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1365 if { (eval echo "$as_me:1365: \"$ac_link_default\"") >&5
1366 (eval $ac_link_default) 2>&5
1368 echo "$as_me:1368: \$? = $ac_status" >&5
1369 (exit $ac_status); }; then
1370 # Find the output, starting from the most likely. This scheme is
1371 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1373 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1374 ls a.out conftest 2>/dev/null;
1375 ls a.* conftest.* 2>/dev/null`; do
1377 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1378 a.out ) # We found the default executable, but exeext='' is most
1381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1382 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1389 echo "$as_me: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 { { echo "$as_me:1391: error: C compiler cannot create executables" >&5
1392 echo "$as_me: error: C compiler cannot create executables" >&2;}
1393 { (exit 77); exit 77; }; }
1396 ac_exeext=$ac_cv_exeext
1397 echo "$as_me:1397: result: $ac_file" >&5
1398 echo "${ECHO_T}$ac_file" >&6
1400 # Check the compiler produces executables we can run. If not, either
1401 # the compiler is broken, or we cross compile.
1402 echo "$as_me:1402: checking whether the C compiler works" >&5
1403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1405 # If not cross compiling, check that we can run a simple program.
1406 if test "$cross_compiling" != yes; then
1407 if { ac_try='./$ac_file'
1408 { (eval echo "$as_me:1408: \"$ac_try\"") >&5
1411 echo "$as_me:1411: \$? = $ac_status" >&5
1412 (exit $ac_status); }; }; then
1415 if test "$cross_compiling" = maybe; then
1418 { { echo "$as_me:1418: error: cannot run C compiled programs.
1419 If you meant to cross compile, use \`--host'." >&5
1420 echo "$as_me: error: cannot run C compiled programs.
1421 If you meant to cross compile, use \`--host'." >&2;}
1422 { (exit 1); exit 1; }; }
1426 echo "$as_me:1426: result: yes" >&5
1427 echo "${ECHO_T}yes" >&6
1429 rm -f a.out a.exe conftest$ac_cv_exeext
1430 ac_clean_files=$ac_clean_files_save
1431 # Check the compiler produces executables we can run. If not, either
1432 # the compiler is broken, or we cross compile.
1433 echo "$as_me:1433: checking whether we are cross compiling" >&5
1434 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1435 echo "$as_me:1435: result: $cross_compiling" >&5
1436 echo "${ECHO_T}$cross_compiling" >&6
1438 echo "$as_me:1438: checking for executable suffix" >&5
1439 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1440 if { (eval echo "$as_me:1440: \"$ac_link\"") >&5
1441 (eval $ac_link) 2>&5
1443 echo "$as_me:1443: \$? = $ac_status" >&5
1444 (exit $ac_status); }; then
1445 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1446 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1447 # work properly (i.e., refer to `conftest.exe'), while it won't with
1449 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1451 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1459 { { echo "$as_me:1459: error: cannot compute EXEEXT: cannot compile and link" >&5
1460 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1461 { (exit 1); exit 1; }; }
1464 rm -f conftest$ac_cv_exeext
1465 echo "$as_me:1465: result: $ac_cv_exeext" >&5
1466 echo "${ECHO_T}$ac_cv_exeext" >&6
1468 rm -f conftest.$ac_ext
1469 EXEEXT=$ac_cv_exeext
1471 echo "$as_me:1471: checking for object suffix" >&5
1472 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1473 if test "${ac_cv_objext+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 cat >conftest.$ac_ext <<_ACEOF
1477 #line 1477 "configure"
1478 #include "confdefs.h"
1488 rm -f conftest.o conftest.obj
1489 if { (eval echo "$as_me:1489: \"$ac_compile\"") >&5
1490 (eval $ac_compile) 2>&5
1492 echo "$as_me:1492: \$? = $ac_status" >&5
1493 (exit $ac_status); }; then
1494 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1496 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1497 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1502 echo "$as_me: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1504 { { echo "$as_me:1504: error: cannot compute OBJEXT: cannot compile" >&5
1505 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1506 { (exit 1); exit 1; }; }
1509 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1511 echo "$as_me:1511: result: $ac_cv_objext" >&5
1512 echo "${ECHO_T}$ac_cv_objext" >&6
1513 OBJEXT=$ac_cv_objext
1515 echo "$as_me:1515: checking whether we are using the GNU C compiler" >&5
1516 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1517 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 cat >conftest.$ac_ext <<_ACEOF
1521 #line 1521 "configure"
1522 #include "confdefs.h"
1535 rm -f conftest.$ac_objext
1536 if { (eval echo "$as_me:1536: \"$ac_compile\"") >&5
1537 (eval $ac_compile) 2>&5
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); } &&
1541 { ac_try='test -s conftest.$ac_objext'
1542 { (eval echo "$as_me:1542: \"$ac_try\"") >&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit $ac_status); }; }; then
1549 echo "$as_me: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1553 rm -f conftest.$ac_objext conftest.$ac_ext
1554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1557 echo "$as_me:1557: result: $ac_cv_c_compiler_gnu" >&5
1558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1559 GCC=`test $ac_compiler_gnu = yes && echo yes`
1560 ac_test_CFLAGS=${CFLAGS+set}
1561 ac_save_CFLAGS=$CFLAGS
1563 echo "$as_me:1563: checking whether $CC accepts -g" >&5
1564 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1565 if test "${ac_cv_prog_cc_g+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 cat >conftest.$ac_ext <<_ACEOF
1569 #line 1569 "configure"
1570 #include "confdefs.h"
1580 rm -f conftest.$ac_objext
1581 if { (eval echo "$as_me:1581: \"$ac_compile\"") >&5
1582 (eval $ac_compile) 2>&5
1584 echo "$as_me:1584: \$? = $ac_status" >&5
1585 (exit $ac_status); } &&
1586 { ac_try='test -s conftest.$ac_objext'
1587 { (eval echo "$as_me:1587: \"$ac_try\"") >&5
1590 echo "$as_me:1590: \$? = $ac_status" >&5
1591 (exit $ac_status); }; }; then
1594 echo "$as_me: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1598 rm -f conftest.$ac_objext conftest.$ac_ext
1600 echo "$as_me:1600: result: $ac_cv_prog_cc_g" >&5
1601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1602 if test "$ac_test_CFLAGS" = set; then
1603 CFLAGS=$ac_save_CFLAGS
1604 elif test $ac_cv_prog_cc_g = yes; then
1605 if test "$GCC" = yes; then
1611 if test "$GCC" = yes; then
1617 # Some people use a C++ compiler to compile C. Since we use `exit',
1618 # in C++ we need to declare it. In case someone uses the same compiler
1619 # for both compiling C and C++ we need to have the C++ compiler decide
1620 # the declaration of exit, since it's the most demanding environment.
1621 cat >conftest.$ac_ext <<_ACEOF
1626 rm -f conftest.$ac_objext
1627 if { (eval echo "$as_me:1627: \"$ac_compile\"") >&5
1628 (eval $ac_compile) 2>&5
1630 echo "$as_me:1630: \$? = $ac_status" >&5
1631 (exit $ac_status); } &&
1632 { ac_try='test -s conftest.$ac_objext'
1633 { (eval echo "$as_me:1633: \"$ac_try\"") >&5
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); }; }; then
1638 for ac_declaration in \
1640 '#include <stdlib.h>' \
1641 'extern "C" void std::exit (int) throw (); using std::exit;' \
1642 'extern "C" void std::exit (int); using std::exit;' \
1643 'extern "C" void exit (int) throw ();' \
1644 'extern "C" void exit (int);' \
1647 cat >conftest.$ac_ext <<_ACEOF
1648 #line 1648 "configure"
1649 #include "confdefs.h"
1660 rm -f conftest.$ac_objext
1661 if { (eval echo "$as_me:1661: \"$ac_compile\"") >&5
1662 (eval $ac_compile) 2>&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); } &&
1666 { ac_try='test -s conftest.$ac_objext'
1667 { (eval echo "$as_me:1667: \"$ac_try\"") >&5
1670 echo "$as_me:1670: \$? = $ac_status" >&5
1671 (exit $ac_status); }; }; then
1674 echo "$as_me: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1678 rm -f conftest.$ac_objext conftest.$ac_ext
1679 cat >conftest.$ac_ext <<_ACEOF
1680 #line 1680 "configure"
1681 #include "confdefs.h"
1691 rm -f conftest.$ac_objext
1692 if { (eval echo "$as_me:1692: \"$ac_compile\"") >&5
1693 (eval $ac_compile) 2>&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); } &&
1697 { ac_try='test -s conftest.$ac_objext'
1698 { (eval echo "$as_me:1698: \"$ac_try\"") >&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); }; }; then
1705 echo "$as_me: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 rm -f conftest.$ac_objext conftest.$ac_ext
1711 if test -n "$ac_declaration"; then
1712 echo '#ifdef __cplusplus' >>confdefs.h
1713 echo $ac_declaration >>confdefs.h
1714 echo '#endif' >>confdefs.h
1718 echo "$as_me: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1723 ac_cpp='$CPP $CPPFLAGS'
1724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1727 ac_main_return=return
1730 if test "$GCC" = yes ; then
1731 echo "$as_me:1731: checking version of $CC" >&5
1732 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1733 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.].*//'`"
1734 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1735 echo "$as_me:1735: result: $GCC_VERSION" >&5
1736 echo "${ECHO_T}$GCC_VERSION" >&6
1739 echo "$as_me:1739: checking for $CC option to accept ANSI C" >&5
1740 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1741 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 ac_cv_prog_cc_stdc=no
1746 cat >conftest.$ac_ext <<_ACEOF
1747 #line 1747 "configure"
1748 #include "confdefs.h"
1751 #include <sys/types.h>
1752 #include <sys/stat.h>
1753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1754 struct buf { int x; };
1755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1756 static char *e (p, i)
1762 static char *f (char * (*g) (char **, int), char **p, ...)
1767 s = g (p, va_arg (v,int));
1771 int test (int i, double x);
1772 struct s1 {int (*f) (int a);};
1773 struct s2 {int (*f) (double a);};
1774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1785 # Don't try gcc -ansi; that turns off useful extensions and
1786 # breaks some systems' header files.
1787 # AIX -qlanglvl=ansi
1788 # Ultrix and OSF/1 -std1
1789 # HP-UX 10.20 and later -Ae
1790 # HP-UX older versions -Aa -D_HPUX_SOURCE
1791 # SVR4 -Xc -D__EXTENSIONS__
1792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1794 CC="$ac_save_CC $ac_arg"
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 ac_cv_prog_cc_stdc=$ac_arg
1810 echo "$as_me: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 rm -f conftest.$ac_objext
1815 rm -f conftest.$ac_ext conftest.$ac_objext
1820 case "x$ac_cv_prog_cc_stdc" in
1822 echo "$as_me:1822: result: none needed" >&5
1823 echo "${ECHO_T}none needed" >&6 ;;
1825 echo "$as_me:1825: result: $ac_cv_prog_cc_stdc" >&5
1826 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1827 CC="$CC $ac_cv_prog_cc_stdc" ;;
1830 # This should have been defined by AC_PROG_CC
1833 echo "$as_me:1833: checking \$CFLAGS variable" >&5
1834 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
1837 echo "$as_me:1837: result: broken" >&5
1838 echo "${ECHO_T}broken" >&6
1839 { echo "$as_me:1839: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
1840 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
1843 for cf_arg in $cf_flags
1849 cf_new_extra_cppflags=
1851 for cf_add_cflags in $cf_arg
1853 case $cf_fix_cppflags in
1855 case $cf_add_cflags in
1856 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1857 case $cf_add_cflags in
1859 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1861 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1862 && test -z "${cf_tst_cflags}" \
1863 && cf_fix_cppflags=yes
1865 if test $cf_fix_cppflags = yes ; then
1867 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1868 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1871 elif test "${cf_tst_cflags}" = "\"'" ; then
1873 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1874 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1884 case $cf_add_cflags in
1886 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1888 CPPFLAGS=`echo "$CPPFLAGS" | \
1889 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1890 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1895 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
1896 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
1903 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
1904 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
1911 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1912 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1914 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1916 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1917 && test -z "${cf_tst_cflags}" \
1918 && cf_fix_cppflags=no
1923 if test -n "$cf_new_cflags" ; then
1925 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
1926 CFLAGS="${CFLAGS}$cf_new_cflags"
1930 if test -n "$cf_new_cppflags" ; then
1932 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
1933 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
1937 if test -n "$cf_new_extra_cppflags" ; then
1939 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
1940 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
1947 echo "$as_me:1947: result: ok" >&5
1948 echo "${ECHO_T}ok" >&6
1952 echo "$as_me:1952: checking \$CC variable" >&5
1953 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1956 echo "$as_me:1956: result: broken" >&5
1957 echo "${ECHO_T}broken" >&6
1958 { echo "$as_me:1958: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1959 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1961 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1962 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1964 for cf_arg in $cf_flags
1972 cf_new_extra_cppflags=
1974 for cf_add_cflags in $cf_arg
1976 case $cf_fix_cppflags in
1978 case $cf_add_cflags in
1979 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1980 case $cf_add_cflags in
1982 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1984 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1985 && test -z "${cf_tst_cflags}" \
1986 && cf_fix_cppflags=yes
1988 if test $cf_fix_cppflags = yes ; then
1990 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1991 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1994 elif test "${cf_tst_cflags}" = "\"'" ; then
1996 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1997 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2007 case $cf_add_cflags in
2009 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2011 CPPFLAGS=`echo "$CPPFLAGS" | \
2012 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2013 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2018 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2019 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2026 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2027 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2037 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2039 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2040 && test -z "${cf_tst_cflags}" \
2041 && cf_fix_cppflags=no
2046 if test -n "$cf_new_cflags" ; then
2048 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2049 CFLAGS="${CFLAGS}$cf_new_cflags"
2053 if test -n "$cf_new_cppflags" ; then
2055 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2056 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2060 if test -n "$cf_new_extra_cppflags" ; then
2062 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2063 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2073 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2075 echo "${as_me:-configure}:2075: testing resulting CC: '$CC' ..." 1>&5
2077 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2079 echo "${as_me:-configure}:2079: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2081 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2083 echo "${as_me:-configure}:2083: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2087 echo "$as_me:2087: result: ok" >&5
2088 echo "${ECHO_T}ok" >&6
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 ac_main_return=return
2098 echo "$as_me:2098: checking how to run the C preprocessor" >&5
2099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2100 # On Suns, sometimes $CPP names a directory.
2101 if test -n "$CPP" && test -d "$CPP"; then
2104 if test -z "$CPP"; then
2105 if test "${ac_cv_prog_CPP+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 # Double quotes because CPP needs to be expanded
2109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2112 for ac_c_preproc_warn_flag in '' yes
2114 # Use a header file that comes with gcc, so configuring glibc
2115 # with a fresh cross-compiler works.
2116 # On the NeXT, cc -E runs the code through the compiler's parser,
2117 # not just through cpp. "Syntax error" is here to catch this case.
2118 cat >conftest.$ac_ext <<_ACEOF
2119 #line 2119 "configure"
2120 #include "confdefs.h"
2124 if { (eval echo "$as_me:2124: \"$ac_cpp conftest.$ac_ext\"") >&5
2125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2127 egrep -v '^ *\+' conftest.er1 >conftest.err
2129 cat conftest.err >&5
2130 echo "$as_me:2130: \$? = $ac_status" >&5
2131 (exit $ac_status); } >/dev/null; then
2132 if test -s conftest.err; then
2133 ac_cpp_err=$ac_c_preproc_warn_flag
2140 if test -z "$ac_cpp_err"; then
2143 echo "$as_me: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2145 # Broken: fails on valid input.
2148 rm -f conftest.err conftest.$ac_ext
2150 # OK, works on sane cases. Now check whether non-existent headers
2151 # can be detected and how.
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line 2153 "configure"
2154 #include "confdefs.h"
2155 #include <ac_nonexistent.h>
2157 if { (eval echo "$as_me:2157: \"$ac_cpp conftest.$ac_ext\"") >&5
2158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2160 egrep -v '^ *\+' conftest.er1 >conftest.err
2162 cat conftest.err >&5
2163 echo "$as_me:2163: \$? = $ac_status" >&5
2164 (exit $ac_status); } >/dev/null; then
2165 if test -s conftest.err; then
2166 ac_cpp_err=$ac_c_preproc_warn_flag
2173 if test -z "$ac_cpp_err"; then
2174 # Broken: success on invalid input.
2177 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2179 # Passes both tests.
2183 rm -f conftest.err conftest.$ac_ext
2186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2187 rm -f conftest.err conftest.$ac_ext
2188 if $ac_preproc_ok; then
2200 echo "$as_me:2200: result: $CPP" >&5
2201 echo "${ECHO_T}$CPP" >&6
2203 for ac_c_preproc_warn_flag in '' yes
2205 # Use a header file that comes with gcc, so configuring glibc
2206 # with a fresh cross-compiler works.
2207 # On the NeXT, cc -E runs the code through the compiler's parser,
2208 # not just through cpp. "Syntax error" is here to catch this case.
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #line 2210 "configure"
2211 #include "confdefs.h"
2215 if { (eval echo "$as_me:2215: \"$ac_cpp conftest.$ac_ext\"") >&5
2216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2218 egrep -v '^ *\+' conftest.er1 >conftest.err
2220 cat conftest.err >&5
2221 echo "$as_me:2221: \$? = $ac_status" >&5
2222 (exit $ac_status); } >/dev/null; then
2223 if test -s conftest.err; then
2224 ac_cpp_err=$ac_c_preproc_warn_flag
2231 if test -z "$ac_cpp_err"; then
2234 echo "$as_me: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 # Broken: fails on valid input.
2239 rm -f conftest.err conftest.$ac_ext
2241 # OK, works on sane cases. Now check whether non-existent headers
2242 # can be detected and how.
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line 2244 "configure"
2245 #include "confdefs.h"
2246 #include <ac_nonexistent.h>
2248 if { (eval echo "$as_me:2248: \"$ac_cpp conftest.$ac_ext\"") >&5
2249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2251 egrep -v '^ *\+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:2254: \$? = $ac_status" >&5
2255 (exit $ac_status); } >/dev/null; then
2256 if test -s conftest.err; then
2257 ac_cpp_err=$ac_c_preproc_warn_flag
2264 if test -z "$ac_cpp_err"; then
2265 # Broken: success on invalid input.
2268 echo "$as_me: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 # Passes both tests.
2274 rm -f conftest.err conftest.$ac_ext
2277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2278 rm -f conftest.err conftest.$ac_ext
2279 if $ac_preproc_ok; then
2282 { { echo "$as_me:2282: error: C preprocessor \"$CPP\" fails sanity check" >&5
2283 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2284 { (exit 1); exit 1; }; }
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292 ac_main_return=return
2294 if test $ac_cv_c_compiler_gnu = yes; then
2295 echo "$as_me:2295: checking whether $CC needs -traditional" >&5
2296 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2297 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 ac_pattern="Autoconf.*'x'"
2301 cat >conftest.$ac_ext <<_ACEOF
2302 #line 2302 "configure"
2303 #include "confdefs.h"
2305 int Autoconf = TIOCGETP;
2307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2308 egrep "$ac_pattern" >/dev/null 2>&1; then
2309 ac_cv_prog_gcc_traditional=yes
2311 ac_cv_prog_gcc_traditional=no
2315 if test $ac_cv_prog_gcc_traditional = no; then
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #line 2317 "configure"
2318 #include "confdefs.h"
2320 int Autoconf = TCGETA;
2322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2323 egrep "$ac_pattern" >/dev/null 2>&1; then
2324 ac_cv_prog_gcc_traditional=yes
2330 echo "$as_me:2330: result: $ac_cv_prog_gcc_traditional" >&5
2331 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2332 if test $ac_cv_prog_gcc_traditional = yes; then
2333 CC="$CC -traditional"
2337 echo "$as_me:2337: checking whether $CC understands -c and -o together" >&5
2338 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2339 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat > conftest.$ac_ext <<CF_EOF
2346 ${cf_cv_main_return:-return}(0);
2349 # We do the test twice because some compilers refuse to overwrite an
2350 # existing .o file with -o, though they will create one.
2351 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2352 if { (eval echo "$as_me:2352: \"$ac_try\"") >&5
2355 echo "$as_me:2355: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 test -f conftest2.$ac_objext && { (eval echo "$as_me:2357: \"$ac_try\"") >&5
2360 echo "$as_me:2360: \$? = $ac_status" >&5
2361 (exit $ac_status); };
2363 eval cf_cv_prog_CC_c_o=yes
2365 eval cf_cv_prog_CC_c_o=no
2370 if test $cf_cv_prog_CC_c_o = yes; then
2371 echo "$as_me:2371: result: yes" >&5
2372 echo "${ECHO_T}yes" >&6
2374 echo "$as_me:2374: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2378 test "$program_prefix" != NONE &&
2379 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2380 # Use a double $ so make ignores it.
2381 test "$program_suffix" != NONE &&
2382 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2383 # Double any \ or $. echo might interpret backslashes.
2384 # By default was `s,x,x', remove it if useless.
2385 cat <<\_ACEOF >conftest.sed
2386 s/[\\$]/&&/g;s/;s,x,x,$//
2388 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2391 for ac_prog in mawk gawk nawk awk
2393 # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 echo "$as_me:2395: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397 if test "${ac_cv_prog_AWK+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$AWK"; then
2401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2403 ac_save_IFS=$IFS; IFS=$ac_path_separator
2405 for ac_dir in $ac_dummy; do
2407 test -z "$ac_dir" && ac_dir=.
2408 $as_executable_p "$ac_dir/$ac_word" || continue
2409 ac_cv_prog_AWK="$ac_prog"
2410 echo "$as_me:2410: found $ac_dir/$ac_word" >&5
2417 if test -n "$AWK"; then
2418 echo "$as_me:2418: result: $AWK" >&5
2419 echo "${ECHO_T}$AWK" >&6
2421 echo "$as_me:2421: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$AWK" && break
2428 test -z "$AWK" && { { echo "$as_me:2428: error: No awk program found" >&5
2429 echo "$as_me: error: No awk program found" >&2;}
2430 { (exit 1); exit 1; }; }
2432 echo "$as_me:2432: checking for egrep" >&5
2433 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2434 if test "${ac_cv_prog_egrep+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2438 then ac_cv_prog_egrep='grep -E'
2439 else ac_cv_prog_egrep='egrep'
2442 echo "$as_me:2442: result: $ac_cv_prog_egrep" >&5
2443 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2444 EGREP=$ac_cv_prog_egrep
2446 test -z "$EGREP" && { { echo "$as_me:2446: error: No egrep program found" >&5
2447 echo "$as_me: error: No egrep program found" >&2;}
2448 { (exit 1); exit 1; }; }
2450 # Find a good install program. We prefer a C program (faster),
2451 # so one script is as good as another. But avoid the broken or
2452 # incompatible versions:
2453 # SysV /etc/install, /usr/sbin/install
2454 # SunOS /usr/etc/install
2455 # IRIX /sbin/install
2457 # AmigaOS /C/install, which installs bootblocks on floppy discs
2458 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2459 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2460 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2461 # ./install, which can be erroneously created by make from ./install.sh.
2462 echo "$as_me:2462: checking for a BSD compatible install" >&5
2463 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2464 if test -z "$INSTALL"; then
2465 if test "${ac_cv_path_install+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 ac_save_IFS=$IFS; IFS=$ac_path_separator
2469 for ac_dir in $PATH; do
2471 # Account for people who put trailing slashes in PATH elements.
2473 / | ./ | .// | /cC/* \
2474 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2477 # OSF1 and SCO ODT 3.0 have their own names for install.
2478 # Don't use installbsd from OSF since it installs stuff as root
2480 for ac_prog in ginstall scoinst install; do
2481 if $as_executable_p "$ac_dir/$ac_prog"; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2486 elif test $ac_prog = install &&
2487 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2491 ac_cv_path_install="$ac_dir/$ac_prog -c"
2501 if test "${ac_cv_path_install+set}" = set; then
2502 INSTALL=$ac_cv_path_install
2504 # As a last resort, use the slow shell script. We don't cache a
2505 # path for INSTALL within a source directory, because that will
2506 # break other packages using the cache if that directory is
2507 # removed, or if the path is relative.
2508 INSTALL=$ac_install_sh
2511 echo "$as_me:2511: result: $INSTALL" >&5
2512 echo "${ECHO_T}$INSTALL" >&6
2514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515 # It thinks the first close brace ends the variable substitution.
2516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2522 echo "$as_me:2522: checking whether ln -s works" >&5
2523 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2525 if test "$LN_S" = "ln -s"; then
2526 echo "$as_me:2526: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6
2529 echo "$as_me:2529: result: no, using $LN_S" >&5
2530 echo "${ECHO_T}no, using $LN_S" >&6
2533 echo "$as_me:2533: checking if $LN_S -f options work" >&5
2534 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2536 rm -f conf$$.src conf$$dst
2538 echo first >conf$$.src
2539 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2544 rm -f conf$$.dst conf$$src
2545 echo "$as_me:2545: result: $cf_prog_ln_sf" >&5
2546 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2548 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2550 # Find a good install program. We prefer a C program (faster),
2551 # so one script is as good as another. But avoid the broken or
2552 # incompatible versions:
2553 # SysV /etc/install, /usr/sbin/install
2554 # SunOS /usr/etc/install
2555 # IRIX /sbin/install
2557 # AmigaOS /C/install, which installs bootblocks on floppy discs
2558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2561 # ./install, which can be erroneously created by make from ./install.sh.
2562 echo "$as_me:2562: checking for a BSD compatible install" >&5
2563 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2564 if test -z "$INSTALL"; then
2565 if test "${ac_cv_path_install+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 ac_save_IFS=$IFS; IFS=$ac_path_separator
2569 for ac_dir in $PATH; do
2571 # Account for people who put trailing slashes in PATH elements.
2573 / | ./ | .// | /cC/* \
2574 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2577 # OSF1 and SCO ODT 3.0 have their own names for install.
2578 # Don't use installbsd from OSF since it installs stuff as root
2580 for ac_prog in ginstall scoinst install; do
2581 if $as_executable_p "$ac_dir/$ac_prog"; then
2582 if test $ac_prog = install &&
2583 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2584 # AIX install. It has an incompatible calling convention.
2586 elif test $ac_prog = install &&
2587 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2591 ac_cv_path_install="$ac_dir/$ac_prog -c"
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2604 # As a last resort, use the slow shell script. We don't cache a
2605 # path for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the path is relative.
2608 INSTALL=$ac_install_sh
2611 echo "$as_me:2611: result: $INSTALL" >&5
2612 echo "${ECHO_T}$INSTALL" >&6
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2626 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2627 test -z "$cf_dir" && cf_dir=.
2628 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2632 echo "$as_me:2632: checking if you want to install stripped executables" >&5
2633 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2635 # Check whether --enable-stripping or --disable-stripping was given.
2636 if test "${enable_stripping+set}" = set; then
2637 enableval="$enable_stripping"
2638 test "$enableval" != no && enableval=yes
2639 if test "$enableval" != "yes" ; then
2649 echo "$as_me:2649: result: $with_stripping" >&5
2650 echo "${ECHO_T}$with_stripping" >&6
2652 if test "$with_stripping" = yes
2659 : ${INSTALL:=install}
2660 echo "$as_me:2660: checking if install accepts -p option" >&5
2661 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2662 if test "${cf_cv_install_p+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2672 if test -f conftest.out/conftest.in
2674 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2675 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2676 if test -s conftest.err
2691 echo "$as_me:2691: result: $cf_cv_install_p" >&5
2692 echo "${ECHO_T}$cf_cv_install_p" >&6
2694 echo "$as_me:2694: checking if install needs to be told about ownership" >&5
2695 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2696 case `$ac_config_guess` in
2705 echo "$as_me:2705: result: $with_install_o" >&5
2706 echo "${ECHO_T}$with_install_o" >&6
2707 if test "x$with_install_o" = xyes
2709 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'`
2714 echo "$as_me:2714: checking for long file names" >&5
2715 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2716 if test "${ac_cv_sys_long_file_names+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 ac_cv_sys_long_file_names=yes
2720 # Test for long file names in all the places we know might matter:
2721 # . the current directory, where building will happen
2722 # $prefix/lib where we will be installing things
2723 # $exec_prefix/lib likewise
2724 # eval it to expand exec_prefix.
2725 # $TMPDIR if set, where it might want to write temporary files
2726 # if $TMPDIR is not set:
2727 # /tmp where it might want to write temporary files
2730 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2733 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2735 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2736 test -d $ac_dir || continue
2737 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2738 ac_xdir=$ac_dir/cf$$
2739 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2740 ac_tf1=$ac_xdir/conftest9012345
2741 ac_tf2=$ac_xdir/conftest9012346
2742 (echo 1 >$ac_tf1) 2>/dev/null
2743 (echo 2 >$ac_tf2) 2>/dev/null
2744 ac_val=`cat $ac_tf1 2>/dev/null`
2745 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2746 ac_cv_sys_long_file_names=no
2747 rm -rf $ac_xdir 2>/dev/null
2750 rm -rf $ac_xdir 2>/dev/null
2753 echo "$as_me:2753: result: $ac_cv_sys_long_file_names" >&5
2754 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2755 if test $ac_cv_sys_long_file_names = yes; then
2757 cat >>confdefs.h <<\EOF
2758 #define HAVE_LONG_FILE_NAMES 1
2763 # if we find pkg-config, check if we should install the ".pc" files.
2765 echo "$as_me:2765: checking if you want to use pkg-config" >&5
2766 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2768 # Check whether --with-pkg-config or --without-pkg-config was given.
2769 if test "${with_pkg_config+set}" = set; then
2770 withval="$with_pkg_config"
2771 cf_pkg_config=$withval
2775 echo "$as_me:2775: result: $cf_pkg_config" >&5
2776 echo "${ECHO_T}$cf_pkg_config" >&6
2778 case $cf_pkg_config in
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2787 echo "$as_me:2787: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2797 ac_save_IFS=$IFS; IFS=$ac_path_separator
2799 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if $as_executable_p "$ac_dir/$ac_word"; then
2803 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2804 echo "$as_me:2804: found $ac_dir/$ac_word" >&5
2812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2814 if test -n "$PKG_CONFIG"; then
2815 echo "$as_me:2815: result: $PKG_CONFIG" >&5
2816 echo "${ECHO_T}$PKG_CONFIG" >&6
2818 echo "$as_me:2818: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2823 if test -z "$ac_cv_path_PKG_CONFIG"; then
2824 ac_pt_PKG_CONFIG=$PKG_CONFIG
2825 # Extract the first word of "pkg-config", so it can be a program name with args.
2826 set dummy pkg-config; ac_word=$2
2827 echo "$as_me:2827: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 case $ac_pt_PKG_CONFIG in
2834 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2837 ac_save_IFS=$IFS; IFS=$ac_path_separator
2839 for ac_dir in $ac_dummy; do
2841 test -z "$ac_dir" && ac_dir=.
2842 if $as_executable_p "$ac_dir/$ac_word"; then
2843 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2844 echo "$as_me:2844: found $ac_dir/$ac_word" >&5
2849 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2855 if test -n "$ac_pt_PKG_CONFIG"; then
2856 echo "$as_me:2856: result: $ac_pt_PKG_CONFIG" >&5
2857 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2859 echo "$as_me:2859: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2863 PKG_CONFIG=$ac_pt_PKG_CONFIG
2865 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2874 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2875 if test "$PKG_CONFIG" != none ; then
2877 if test "x$prefix" != xNONE; then
2878 cf_path_syntax="$prefix"
2880 cf_path_syntax="$ac_default_prefix"
2883 case ".$PKG_CONFIG" in
2888 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
2890 (.\${*prefix}*|.\${*dir}*)
2891 eval PKG_CONFIG="$PKG_CONFIG"
2892 case ".$PKG_CONFIG" in
2894 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2899 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2902 { { echo "$as_me:2902: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2903 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2904 { (exit 1); exit 1; }; }
2908 elif test "x$cf_pkg_config" != xno ; then
2909 { echo "$as_me:2909: WARNING: pkg-config is not installed" >&5
2910 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
2915 echo "$as_me:2915: checking for pkg-config library directory" >&5
2916 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
2919 echo "$as_me:2919: checking for $PKG_CONFIG library directory" >&5
2920 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2924 PKG_CONFIG_LIBDIR=no
2926 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2927 if test "${with_pkg_config_libdir+set}" = set; then
2928 withval="$with_pkg_config_libdir"
2929 PKG_CONFIG_LIBDIR=$withval
2931 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
2934 case x$PKG_CONFIG_LIBDIR in
2938 # Look for the library directory using the same prefix as the executable
2939 if test "x$PKG_CONFIG" = xnone
2943 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2946 # If you don't like using the default architecture, you have to specify the
2947 # intended library directory and corresponding compiler/linker options.
2949 # This case allows for Debian's 2014-flavor of multiarch, along with the
2950 # most common variations before that point. Some other variants spell the
2951 # directory differently, e.g., "pkg-config", and put it in unusual places.
2952 # pkg-config has always been poorly standardized, which is ironic...
2953 case x`(arch) 2>/dev/null` in
2956 $cf_path/lib/*64-linux-gnu \
2964 $cf_path/lib/*-linux-gnu \
2972 test -n "$verbose" && echo " list..." 1>&6
2974 echo "${as_me:-configure}:2974: testing list... ..." 1>&5
2976 for cf_config in $cf_search_path
2978 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
2980 echo "${as_me:-configure}:2980: testing checking $cf_config/pkgconfig ..." 1>&5
2982 if test -d $cf_config/pkgconfig
2984 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2985 echo "$as_me:2985: checking done" >&5
2986 echo $ECHO_N "checking done... $ECHO_C" >&6
2995 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
2996 echo "$as_me:2996: result: $PKG_CONFIG_LIBDIR" >&5
2997 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3000 echo "$as_me:3000: checking if you want to build test-programs" >&5
3001 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3003 # Check whether --with-tests or --without-tests was given.
3004 if test "${with_tests+set}" = set; then
3005 withval="$with_tests"
3006 cf_with_tests=$withval
3010 echo "$as_me:3010: result: $cf_with_tests" >&5
3011 echo "${ECHO_T}$cf_with_tests" >&6
3013 echo "$as_me:3013: checking if we should assume mixed-case filenames" >&5
3014 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3016 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3017 if test "${enable_mixed_case+set}" = set; then
3018 enableval="$enable_mixed_case"
3019 enable_mixedcase=$enableval
3021 enable_mixedcase=auto
3023 echo "$as_me:3023: result: $enable_mixedcase" >&5
3024 echo "${ECHO_T}$enable_mixedcase" >&6
3025 if test "$enable_mixedcase" = "auto" ; then
3027 echo "$as_me:3027: checking if filesystem supports mixed-case filenames" >&5
3028 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3029 if test "${cf_cv_mixedcase+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 if test "$cross_compiling" = yes ; then
3034 case $target_alias in
3035 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3043 rm -f conftest CONFTEST
3045 if test -f CONFTEST ; then
3050 rm -f conftest CONFTEST
3054 echo "$as_me:3054: result: $cf_cv_mixedcase" >&5
3055 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3056 test "$cf_cv_mixedcase" = yes &&
3057 cat >>confdefs.h <<\EOF
3058 #define MIXEDCASE_FILENAMES 1
3062 cf_cv_mixedcase=$enable_mixedcase
3063 if test "$enable_mixedcase" = "yes" ; then
3064 cat >>confdefs.h <<\EOF
3065 #define MIXEDCASE_FILENAMES 1
3071 # do this after mixed-case option (tags/TAGS is not as important as tic).
3072 echo "$as_me:3072: checking whether ${MAKE-make} sets \${MAKE}" >&5
3073 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3074 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3075 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 cat >conftest.make <<\EOF
3080 @echo 'ac_maketemp="${MAKE}"'
3082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3083 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3084 if test -n "$ac_maketemp"; then
3085 eval ac_cv_prog_make_${ac_make}_set=yes
3087 eval ac_cv_prog_make_${ac_make}_set=no
3091 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3092 echo "$as_me:3092: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3096 echo "$as_me:3096: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3098 SET_MAKE="MAKE=${MAKE-make}"
3101 for ac_prog in exctags ctags
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 echo "$as_me:3105: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_CTAGS+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$CTAGS"; then
3111 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3113 ac_save_IFS=$IFS; IFS=$ac_path_separator
3115 for ac_dir in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir=.
3118 $as_executable_p "$ac_dir/$ac_word" || continue
3119 ac_cv_prog_CTAGS="$ac_prog"
3120 echo "$as_me:3120: found $ac_dir/$ac_word" >&5
3126 CTAGS=$ac_cv_prog_CTAGS
3127 if test -n "$CTAGS"; then
3128 echo "$as_me:3128: result: $CTAGS" >&5
3129 echo "${ECHO_T}$CTAGS" >&6
3131 echo "$as_me:3131: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3135 test -n "$CTAGS" && break
3138 for ac_prog in exetags etags
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:3142: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_ETAGS+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if test -n "$ETAGS"; then
3148 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3150 ac_save_IFS=$IFS; IFS=$ac_path_separator
3152 for ac_dir in $ac_dummy; do
3154 test -z "$ac_dir" && ac_dir=.
3155 $as_executable_p "$ac_dir/$ac_word" || continue
3156 ac_cv_prog_ETAGS="$ac_prog"
3157 echo "$as_me:3157: found $ac_dir/$ac_word" >&5
3163 ETAGS=$ac_cv_prog_ETAGS
3164 if test -n "$ETAGS"; then
3165 echo "$as_me:3165: result: $ETAGS" >&5
3166 echo "${ECHO_T}$ETAGS" >&6
3168 echo "$as_me:3168: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3172 test -n "$ETAGS" && break
3175 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3176 set dummy ${CTAGS:-ctags}; ac_word=$2
3177 echo "$as_me:3177: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 if test -n "$MAKE_LOWER_TAGS"; then
3183 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3185 ac_save_IFS=$IFS; IFS=$ac_path_separator
3187 for ac_dir in $ac_dummy; do
3189 test -z "$ac_dir" && ac_dir=.
3190 $as_executable_p "$ac_dir/$ac_word" || continue
3191 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3192 echo "$as_me:3192: found $ac_dir/$ac_word" >&5
3196 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3199 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3200 if test -n "$MAKE_LOWER_TAGS"; then
3201 echo "$as_me:3201: result: $MAKE_LOWER_TAGS" >&5
3202 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3204 echo "$as_me:3204: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3208 if test "$cf_cv_mixedcase" = yes ; then
3209 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3210 set dummy ${ETAGS:-etags}; ac_word=$2
3211 echo "$as_me:3211: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -n "$MAKE_UPPER_TAGS"; then
3217 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3219 ac_save_IFS=$IFS; IFS=$ac_path_separator
3221 for ac_dir in $ac_dummy; do
3223 test -z "$ac_dir" && ac_dir=.
3224 $as_executable_p "$ac_dir/$ac_word" || continue
3225 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3226 echo "$as_me:3226: found $ac_dir/$ac_word" >&5
3230 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3233 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3234 if test -n "$MAKE_UPPER_TAGS"; then
3235 echo "$as_me:3235: result: $MAKE_UPPER_TAGS" >&5
3236 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3238 echo "$as_me:3238: result: no" >&5
3239 echo "${ECHO_T}no" >&6
3246 if test "$MAKE_UPPER_TAGS" = yes ; then
3252 if test "$MAKE_LOWER_TAGS" = yes ; then
3258 echo "$as_me:3258: checking for makeflags variable" >&5
3259 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3260 if test "${cf_cv_makeflags+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3267 cat >cf_makeflags.tmp <<CF_EOF
3270 @ echo '.$cf_option'
3272 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3273 case "$cf_result" in
3275 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3276 case "$cf_result" in
3277 (.*CC=*) cf_cv_makeflags=
3279 (*) cf_cv_makeflags=$cf_option
3288 echo "${as_me:-configure}:3288: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
3293 rm -f cf_makeflags.tmp
3296 echo "$as_me:3296: result: $cf_cv_makeflags" >&5
3297 echo "${ECHO_T}$cf_cv_makeflags" >&6
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3302 echo "$as_me:3302: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_RANLIB+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -n "$RANLIB"; then
3308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3310 ac_save_IFS=$IFS; IFS=$ac_path_separator
3312 for ac_dir in $ac_dummy; do
3314 test -z "$ac_dir" && ac_dir=.
3315 $as_executable_p "$ac_dir/$ac_word" || continue
3316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3317 echo "$as_me:3317: found $ac_dir/$ac_word" >&5
3323 RANLIB=$ac_cv_prog_RANLIB
3324 if test -n "$RANLIB"; then
3325 echo "$as_me:3325: result: $RANLIB" >&5
3326 echo "${ECHO_T}$RANLIB" >&6
3328 echo "$as_me:3328: result: no" >&5
3329 echo "${ECHO_T}no" >&6
3333 if test -z "$ac_cv_prog_RANLIB"; then
3334 ac_ct_RANLIB=$RANLIB
3335 # Extract the first word of "ranlib", so it can be a program name with args.
3336 set dummy ranlib; ac_word=$2
3337 echo "$as_me:3337: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if test -n "$ac_ct_RANLIB"; then
3343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3345 ac_save_IFS=$IFS; IFS=$ac_path_separator
3347 for ac_dir in $ac_dummy; do
3349 test -z "$ac_dir" && ac_dir=.
3350 $as_executable_p "$ac_dir/$ac_word" || continue
3351 ac_cv_prog_ac_ct_RANLIB="ranlib"
3352 echo "$as_me:3352: found $ac_dir/$ac_word" >&5
3356 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3360 if test -n "$ac_ct_RANLIB"; then
3361 echo "$as_me:3361: result: $ac_ct_RANLIB" >&5
3362 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3364 echo "$as_me:3364: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3368 RANLIB=$ac_ct_RANLIB
3370 RANLIB="$ac_cv_prog_RANLIB"
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3375 set dummy ${ac_tool_prefix}ld; ac_word=$2
3376 echo "$as_me:3376: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_prog_LD+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -n "$LD"; then
3382 ac_cv_prog_LD="$LD" # Let the user override the test.
3384 ac_save_IFS=$IFS; IFS=$ac_path_separator
3386 for ac_dir in $ac_dummy; do
3388 test -z "$ac_dir" && ac_dir=.
3389 $as_executable_p "$ac_dir/$ac_word" || continue
3390 ac_cv_prog_LD="${ac_tool_prefix}ld"
3391 echo "$as_me:3391: found $ac_dir/$ac_word" >&5
3398 if test -n "$LD"; then
3399 echo "$as_me:3399: result: $LD" >&5
3400 echo "${ECHO_T}$LD" >&6
3402 echo "$as_me:3402: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3407 if test -z "$ac_cv_prog_LD"; then
3409 # Extract the first word of "ld", so it can be a program name with args.
3410 set dummy ld; ac_word=$2
3411 echo "$as_me:3411: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$ac_ct_LD"; then
3417 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3419 ac_save_IFS=$IFS; IFS=$ac_path_separator
3421 for ac_dir in $ac_dummy; do
3423 test -z "$ac_dir" && ac_dir=.
3424 $as_executable_p "$ac_dir/$ac_word" || continue
3425 ac_cv_prog_ac_ct_LD="ld"
3426 echo "$as_me:3426: found $ac_dir/$ac_word" >&5
3430 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3433 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3434 if test -n "$ac_ct_LD"; then
3435 echo "$as_me:3435: result: $ac_ct_LD" >&5
3436 echo "${ECHO_T}$ac_ct_LD" >&6
3438 echo "$as_me:3438: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}ar; ac_word=$2
3450 echo "$as_me:3450: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_AR+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test -n "$AR"; then
3456 ac_cv_prog_AR="$AR" # Let the user override the test.
3458 ac_save_IFS=$IFS; IFS=$ac_path_separator
3460 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 $as_executable_p "$ac_dir/$ac_word" || continue
3464 ac_cv_prog_AR="${ac_tool_prefix}ar"
3465 echo "$as_me:3465: found $ac_dir/$ac_word" >&5
3472 if test -n "$AR"; then
3473 echo "$as_me:3473: result: $AR" >&5
3474 echo "${ECHO_T}$AR" >&6
3476 echo "$as_me:3476: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3481 if test -z "$ac_cv_prog_AR"; then
3483 # Extract the first word of "ar", so it can be a program name with args.
3484 set dummy ar; ac_word=$2
3485 echo "$as_me:3485: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -n "$ac_ct_AR"; then
3491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3493 ac_save_IFS=$IFS; IFS=$ac_path_separator
3495 for ac_dir in $ac_dummy; do
3497 test -z "$ac_dir" && ac_dir=.
3498 $as_executable_p "$ac_dir/$ac_word" || continue
3499 ac_cv_prog_ac_ct_AR="ar"
3500 echo "$as_me:3500: found $ac_dir/$ac_word" >&5
3504 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3508 if test -n "$ac_ct_AR"; then
3509 echo "$as_me:3509: result: $ac_ct_AR" >&5
3510 echo "${ECHO_T}$ac_ct_AR" >&6
3512 echo "$as_me:3512: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}ar; ac_word=$2
3524 echo "$as_me:3524: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_AR+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if test -n "$AR"; then
3530 ac_cv_prog_AR="$AR" # Let the user override the test.
3532 ac_save_IFS=$IFS; IFS=$ac_path_separator
3534 for ac_dir in $ac_dummy; do
3536 test -z "$ac_dir" && ac_dir=.
3537 $as_executable_p "$ac_dir/$ac_word" || continue
3538 ac_cv_prog_AR="${ac_tool_prefix}ar"
3539 echo "$as_me:3539: found $ac_dir/$ac_word" >&5
3546 if test -n "$AR"; then
3547 echo "$as_me:3547: result: $AR" >&5
3548 echo "${ECHO_T}$AR" >&6
3550 echo "$as_me:3550: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3555 if test -z "$ac_cv_prog_AR"; then
3557 # Extract the first word of "ar", so it can be a program name with args.
3558 set dummy ar; ac_word=$2
3559 echo "$as_me:3559: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 if test -n "$ac_ct_AR"; then
3565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3567 ac_save_IFS=$IFS; IFS=$ac_path_separator
3569 for ac_dir in $ac_dummy; do
3571 test -z "$ac_dir" && ac_dir=.
3572 $as_executable_p "$ac_dir/$ac_word" || continue
3573 ac_cv_prog_ac_ct_AR="ar"
3574 echo "$as_me:3574: found $ac_dir/$ac_word" >&5
3578 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3581 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3582 if test -n "$ac_ct_AR"; then
3583 echo "$as_me:3583: result: $ac_ct_AR" >&5
3584 echo "${ECHO_T}$ac_ct_AR" >&6
3586 echo "$as_me:3586: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3595 echo "$as_me:3595: checking for options to update archives" >&5
3596 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3597 if test "${cf_cv_ar_flags+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cf_cv_ar_flags=unknown
3602 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3605 # check if $ARFLAGS already contains this choice
3606 if test "x$ARFLAGS" != "x" ; then
3607 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3608 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3614 rm -f conftest.$ac_cv_objext
3617 cat >conftest.$ac_ext <<EOF
3618 #line 3618 "configure"
3619 int testdata[3] = { 123, 456, 789 };
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } ; then
3626 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3627 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3628 if test -f conftest.a ; then
3629 cf_cv_ar_flags=$cf_ar_flags
3633 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3635 echo "${as_me:-configure}:3635: testing cannot compile test-program ..." 1>&5
3640 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3643 echo "$as_me:3643: result: $cf_cv_ar_flags" >&5
3644 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3646 if test -n "$ARFLAGS" ; then
3647 if test -n "$cf_cv_ar_flags" ; then
3648 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3651 ARFLAGS=$cf_cv_ar_flags
3654 echo "$as_me:3654: checking for PATH separator" >&5
3655 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3656 case $cf_cv_system_name in
3657 (os2*) PATH_SEPARATOR=';' ;;
3658 (*) ${PATH_SEPARATOR:=':'} ;;
3661 echo "$as_me:3661: result: $PATH_SEPARATOR" >&5
3662 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3664 echo "$as_me:3664: checking if you have specified an install-prefix" >&5
3665 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3667 # Check whether --with-install-prefix or --without-install-prefix was given.
3668 if test "${with_install_prefix+set}" = set; then
3669 withval="$with_install_prefix"
3673 (*) DESTDIR="$withval"
3677 echo "$as_me:3677: result: $DESTDIR" >&5
3678 echo "${ECHO_T}$DESTDIR" >&6
3680 ###############################################################################
3682 # If we're cross-compiling, allow the user to override the tools and their
3683 # options. The configure script is oriented toward identifying the host
3684 # compiler, etc., but we need a build compiler to generate parts of the source.
3686 if test "$cross_compiling" = yes ; then
3688 # defaults that we might want to override
3689 : ${BUILD_CFLAGS:=''}
3690 : ${BUILD_CPPFLAGS:=''}
3691 : ${BUILD_LDFLAGS:=''}
3693 : ${BUILD_EXEEXT:='$x'}
3694 : ${BUILD_OBJEXT:='o'}
3696 # Check whether --with-build-cc or --without-build-cc was given.
3697 if test "${with_build_cc+set}" = set; then
3698 withval="$with_build_cc"
3701 for ac_prog in gcc clang c99 c89 cc cl
3703 # Extract the first word of "$ac_prog", so it can be a program name with args.
3704 set dummy $ac_prog; ac_word=$2
3705 echo "$as_me:3705: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 if test -n "$BUILD_CC"; then
3711 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3713 ac_save_IFS=$IFS; IFS=$ac_path_separator
3715 for ac_dir in $ac_dummy; do
3717 test -z "$ac_dir" && ac_dir=.
3718 $as_executable_p "$ac_dir/$ac_word" || continue
3719 ac_cv_prog_BUILD_CC="$ac_prog"
3720 echo "$as_me:3720: found $ac_dir/$ac_word" >&5
3726 BUILD_CC=$ac_cv_prog_BUILD_CC
3727 if test -n "$BUILD_CC"; then
3728 echo "$as_me:3728: result: $BUILD_CC" >&5
3729 echo "${ECHO_T}$BUILD_CC" >&6
3731 echo "$as_me:3731: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3735 test -n "$BUILD_CC" && break
3737 test -n "$BUILD_CC" || BUILD_CC="none"
3740 echo "$as_me:3740: checking for native build C compiler" >&5
3741 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3742 echo "$as_me:3742: result: $BUILD_CC" >&5
3743 echo "${ECHO_T}$BUILD_CC" >&6
3745 echo "$as_me:3745: checking for native build C preprocessor" >&5
3746 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3748 # Check whether --with-build-cpp or --without-build-cpp was given.
3749 if test "${with_build_cpp+set}" = set; then
3750 withval="$with_build_cpp"
3751 BUILD_CPP="$withval"
3753 BUILD_CPP='${BUILD_CC} -E'
3755 echo "$as_me:3755: result: $BUILD_CPP" >&5
3756 echo "${ECHO_T}$BUILD_CPP" >&6
3758 echo "$as_me:3758: checking for native build C flags" >&5
3759 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3761 # Check whether --with-build-cflags or --without-build-cflags was given.
3762 if test "${with_build_cflags+set}" = set; then
3763 withval="$with_build_cflags"
3764 BUILD_CFLAGS="$withval"
3766 echo "$as_me:3766: result: $BUILD_CFLAGS" >&5
3767 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3769 echo "$as_me:3769: checking for native build C preprocessor-flags" >&5
3770 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3772 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3773 if test "${with_build_cppflags+set}" = set; then
3774 withval="$with_build_cppflags"
3775 BUILD_CPPFLAGS="$withval"
3777 echo "$as_me:3777: result: $BUILD_CPPFLAGS" >&5
3778 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3780 echo "$as_me:3780: checking for native build linker-flags" >&5
3781 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3783 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3784 if test "${with_build_ldflags+set}" = set; then
3785 withval="$with_build_ldflags"
3786 BUILD_LDFLAGS="$withval"
3788 echo "$as_me:3788: result: $BUILD_LDFLAGS" >&5
3789 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3791 echo "$as_me:3791: checking for native build linker-libraries" >&5
3792 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3794 # Check whether --with-build-libs or --without-build-libs was given.
3795 if test "${with_build_libs+set}" = set; then
3796 withval="$with_build_libs"
3797 BUILD_LIBS="$withval"
3799 echo "$as_me:3799: result: $BUILD_LIBS" >&5
3800 echo "${ECHO_T}$BUILD_LIBS" >&6
3802 # this assumes we're on Unix.
3806 : ${BUILD_CC:='${CC}'}
3808 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3809 { { echo "$as_me:3809: error: Cross-build requires two compilers.
3810 Use --with-build-cc to specify the native compiler." >&5
3811 echo "$as_me: error: Cross-build requires two compilers.
3812 Use --with-build-cc to specify the native compiler." >&2;}
3813 { (exit 1); exit 1; }; }
3817 : ${BUILD_CC:='${CC}'}
3818 : ${BUILD_CPP:='${CPP}'}
3819 : ${BUILD_CFLAGS:='${CFLAGS}'}
3820 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3821 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3822 : ${BUILD_LIBS:='${LIBS}'}
3823 : ${BUILD_EXEEXT:='$x'}
3824 : ${BUILD_OBJEXT:='o'}
3827 ###############################################################################
3829 ### Options to allow the user to specify the set of libraries which are used.
3830 ### Use "--without-normal --with-shared" to allow the default model to be
3831 ### shared, for example.
3834 echo "$as_me:3834: checking if you want to build shared C-objects" >&5
3835 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3837 # Check whether --with-shared or --without-shared was given.
3838 if test "${with_shared+set}" = set; then
3839 withval="$with_shared"
3840 with_shared=$withval
3844 echo "$as_me:3844: result: $with_shared" >&5
3845 echo "${ECHO_T}$with_shared" >&6
3846 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3848 echo "$as_me:3848: checking for specified models" >&5
3849 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3850 test -z "$cf_list_models" && cf_list_models=normal
3851 echo "$as_me:3851: result: $cf_list_models" >&5
3852 echo "${ECHO_T}$cf_list_models" >&6
3854 ### Use the first model as the default, and save its suffix for use in building
3855 ### up test-applications.
3856 echo "$as_me:3856: checking for default model" >&5
3857 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3858 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3859 echo "$as_me:3859: result: $DFT_LWR_MODEL" >&5
3860 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3862 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3864 echo "$as_me:3864: checking for specific curses-directory" >&5
3865 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3867 # Check whether --with-curses-dir or --without-curses-dir was given.
3868 if test "${with_curses_dir+set}" = set; then
3869 withval="$with_curses_dir"
3870 cf_cv_curses_dir=$withval
3874 echo "$as_me:3874: result: $cf_cv_curses_dir" >&5
3875 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3877 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3880 if test "x$prefix" != xNONE; then
3881 cf_path_syntax="$prefix"
3883 cf_path_syntax="$ac_default_prefix"
3891 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3893 (.\${*prefix}*|.\${*dir}*)
3894 eval withval="$withval"
3897 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3902 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3905 { { echo "$as_me:3905: error: expected a pathname, not \"$withval\"" >&5
3906 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3907 { (exit 1); exit 1; }; }
3911 if test -d "$cf_cv_curses_dir"
3914 if test -n "$cf_cv_curses_dir/include" ; then
3915 for cf_add_incdir in $cf_cv_curses_dir/include
3917 while test $cf_add_incdir != /usr/include
3919 if test -d $cf_add_incdir
3922 if test -n "$CFLAGS$CPPFLAGS" ; then
3923 # a loop is needed to ensure we can add subdirs of existing dirs
3924 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3925 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3926 cf_have_incdir=yes; break