2 # From configure.in Revision: 1.61 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
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]
691 --with-system-type=XXX test: override derived host system-type
692 --with-pkg-config{=path} enable/disable use of pkg-config
693 --with-pkg-config-libdir=XXX use given directory for installing pc-files
694 --without-tests suppress build with test-programs
695 --enable-mixed-case tic should assume mixed-case filenames
696 --with-install-prefix prefixes actual install-location ($DESTDIR)
697 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
698 --with-build-cc=XXX the build C compiler ($BUILD_CC)
699 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
700 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
701 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
702 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
703 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
704 Options to Specify the Libraries Built/Used:
705 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
706 --with-curses-dir=DIR directory in which (n)curses is installed
707 --enable-widec compile with wide-char/UTF-8 code
708 --with-lib-prefix override library-prefix
709 --with-shlib-version=X Specify rel or abi version for shared libs
710 --enable-rpath-link link sample programs with rpath option
711 Fine-Tuning Your Configuration:
712 --enable-broken_linker compile with broken-linker support code
713 --disable-largefile omit support for large files
714 --with-rcs-ids compile-in RCS identifiers
716 --disable-ext-funcs disable function-extensions
717 --enable-const compile with extra/non-standard const
719 --without-develop disable development options
721 --with-pthread use POSIX thread library
722 --enable-weak-symbols enable weak-symbols for pthreads
723 --enable-reentrant compile with experimental reentrant code
724 --with-wrap-prefix=XXX override prefix used for public variables
725 Testing/development Options:
726 --disable-echo do not display "compiling" commands
727 --enable-warnings build: turn on GCC compiler warnings
728 --enable-assertions test: turn on generation of assertion code
729 --enable-expanded test: generate functions for certain macros
730 --disable-macros test: use functions rather than macros
731 --with-trace test: add trace() function to all models of ncurses
732 --disable-gnat-projects test: disable GNAT projects even if usable
733 Ada95 Binding Options:
734 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
735 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
736 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
737 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
739 Some influential environment variables:
740 CC C compiler command
741 CFLAGS C compiler flags
742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
743 nonstandard directory <lib dir>
744 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
745 headers in a nonstandard directory <include dir>
748 Use these variables to override the choices made by `configure' or to help
749 it to find libraries and programs with nonstandard names/locations.
754 if test "$ac_init_help" = "recursive"; then
755 # If there are subdirs, report their specific --help.
757 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
759 # A "../" for each directory in /$ac_subdir.
760 ac_dots=`echo $ac_subdir |
761 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
764 .) # No --srcdir option. We are building in place.
765 ac_sub_srcdir=$srcdir ;;
766 [\\/]* | ?:[\\/]* ) # Absolute path.
767 ac_sub_srcdir=$srcdir/$ac_subdir ;;
769 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
772 # Check for guested configure; otherwise get Cygnus style configure.
773 if test -f $ac_sub_srcdir/configure.gnu; then
775 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
776 elif test -f $ac_sub_srcdir/configure; then
778 $SHELL $ac_sub_srcdir/configure --help=recursive
779 elif test -f $ac_sub_srcdir/configure.ac ||
780 test -f $ac_sub_srcdir/configure.in; then
784 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
790 test -n "$ac_init_help" && exit 0
791 if $ac_init_version; then
794 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
795 Free Software Foundation, Inc.
796 This configure script is free software; the Free Software Foundation
797 gives unlimited permission to copy, distribute and modify it.
803 This file contains any messages produced by compilers while
804 running configure, to aid debugging if configure makes a mistake.
806 It was created by $as_me, which was
807 generated by GNU Autoconf 2.52.20150926. Invocation command line was
818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
830 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
847 # Keep a trace of the command line.
848 # Strip out --no-create and --no-recursion so they do not pile up.
849 # Also quote any args containing shell meta-characters.
855 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
856 | --no-cr | --no-c) ;;
857 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
858 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
859 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
860 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
861 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
863 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
866 # Get rid of the leading space.
869 # When interrupted or exit'd, cleanup temporary files, and complete
870 # config.log. We remove comments because anyway the quotes in there
871 # would cause problems or look ugly.
873 # Save into config.log some information that might help in debugging.
875 echo "## ----------------- ##" >&5
876 echo "## Cache variables. ##" >&5
877 echo "## ----------------- ##" >&5
879 # The following way of writing the cache mishandles newlines in values,
882 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
885 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
890 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
894 sed "/^$/d" confdefs.h >conftest.log
895 if test -s conftest.log; then
897 echo "## ------------ ##" >&5
898 echo "## confdefs.h. ##" >&5
899 echo "## ------------ ##" >&5
904 test "$ac_signal" != 0 &&
905 echo "$as_me: caught signal $ac_signal" >&5
906 echo "$as_me: exit $exit_status" >&5
907 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
910 for ac_signal in 1 2 13 15; do
911 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
915 # confdefs.h avoids OS command line length limits that DEFS can exceed.
916 rm -rf conftest* confdefs.h
917 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
920 # Let the site file select an alternate cache file if it wants to.
921 # Prefer explicitly selected file to automatically selected ones.
922 if test -z "$CONFIG_SITE"; then
923 if test "x$prefix" != xNONE; then
924 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
926 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
929 for ac_site_file in $CONFIG_SITE; do
930 if test -r "$ac_site_file"; then
931 { echo "$as_me:931: loading site script $ac_site_file" >&5
932 echo "$as_me: loading site script $ac_site_file" >&6;}
933 cat "$ac_site_file" >&5
938 if test -r "$cache_file"; then
939 # Some versions of bash will fail to source /dev/null (special
940 # files actually), so we avoid doing that.
941 if test -f "$cache_file"; then
942 { echo "$as_me:942: loading cache $cache_file" >&5
943 echo "$as_me: loading cache $cache_file" >&6;}
945 [\\/]* | ?:[\\/]* ) . $cache_file;;
950 { echo "$as_me:950: creating cache $cache_file" >&5
951 echo "$as_me: creating cache $cache_file" >&6;}
955 # Check that the precious variables saved in the cache have kept the same
957 ac_cache_corrupted=false
958 for ac_var in `(set) 2>&1 |
959 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
961 eval ac_new_set=\$ac_env_${ac_var}_set
962 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
963 eval ac_new_val="\$ac_env_${ac_var}_value"
964 case $ac_old_set,$ac_new_set in
966 { echo "$as_me:966: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
967 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
968 ac_cache_corrupted=: ;;
970 { echo "$as_me:970: error: \`$ac_var' was not set in the previous run" >&5
971 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
972 ac_cache_corrupted=: ;;
975 if test "x$ac_old_val" != "x$ac_new_val"; then
976 { echo "$as_me:976: error: \`$ac_var' has changed since the previous run:" >&5
977 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
978 { echo "$as_me:978: former value: $ac_old_val" >&5
979 echo "$as_me: former value: $ac_old_val" >&2;}
980 { echo "$as_me:980: current value: $ac_new_val" >&5
981 echo "$as_me: current value: $ac_new_val" >&2;}
985 # Pass precious variables to config.status. It doesn't matter if
986 # we pass some twice (in addition to the command line arguments).
987 if test "$ac_new_set" = set; then
989 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
990 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
991 ac_configure_args="$ac_configure_args '$ac_arg'"
993 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
998 if $ac_cache_corrupted; then
999 { echo "$as_me:999: error: changes in the environment can compromise the build" >&5
1000 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1001 { { echo "$as_me:1001: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1002 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1003 { (exit 1); exit 1; }; }
1007 ac_cpp='$CPP $CPPFLAGS'
1008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1011 ac_main_return=return
1013 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1014 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1016 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1017 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1019 echo "#! $SHELL" >conftest.sh
1020 echo "exit 0" >>conftest.sh
1021 chmod +x conftest.sh
1022 if { (echo "$as_me:1022: PATH=\".;.\"; conftest.sh") >&5
1023 (PATH=".;."; conftest.sh) 2>&5
1025 echo "$as_me:1025: \$? = $ac_status" >&5
1026 (exit $ac_status); }; then
1027 ac_path_separator=';'
1031 PATH_SEPARATOR="$ac_path_separator"
1034 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1039 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1040 if test -f $ac_dir/install-sh; then
1042 ac_install_sh="$ac_aux_dir/install-sh -c"
1044 elif test -f $ac_dir/install.sh; then
1046 ac_install_sh="$ac_aux_dir/install.sh -c"
1048 elif test -f $ac_dir/shtool; then
1050 ac_install_sh="$ac_aux_dir/shtool install -c"
1054 if test -z "$ac_aux_dir"; then
1055 { { echo "$as_me:1055: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1056 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1057 { (exit 1); exit 1; }; }
1059 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1060 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1061 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1063 # Make sure we can run config.sub.
1064 $ac_config_sub sun4 >/dev/null 2>&1 ||
1065 { { echo "$as_me:1065: error: cannot run $ac_config_sub" >&5
1066 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1067 { (exit 1); exit 1; }; }
1069 echo "$as_me:1069: checking build system type" >&5
1070 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1071 if test "${ac_cv_build+set}" = set; then
1072 echo $ECHO_N "(cached) $ECHO_C" >&6
1074 ac_cv_build_alias=$build_alias
1075 test -z "$ac_cv_build_alias" &&
1076 ac_cv_build_alias=`$ac_config_guess`
1077 test -z "$ac_cv_build_alias" &&
1078 { { echo "$as_me:1078: error: cannot guess build type; you must specify one" >&5
1079 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1080 { (exit 1); exit 1; }; }
1081 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1082 { { echo "$as_me:1082: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1083 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1084 { (exit 1); exit 1; }; }
1087 echo "$as_me:1087: result: $ac_cv_build" >&5
1088 echo "${ECHO_T}$ac_cv_build" >&6
1090 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 echo "$as_me:1094: checking host system type" >&5
1095 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1096 if test "${ac_cv_host+set}" = set; then
1097 echo $ECHO_N "(cached) $ECHO_C" >&6
1099 ac_cv_host_alias=$host_alias
1100 test -z "$ac_cv_host_alias" &&
1101 ac_cv_host_alias=$ac_cv_build_alias
1102 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1103 { { echo "$as_me:1103: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1104 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1105 { (exit 1); exit 1; }; }
1108 echo "$as_me:1108: result: $ac_cv_host" >&5
1109 echo "${ECHO_T}$ac_cv_host" >&6
1111 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1112 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1113 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1115 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1116 echo "$as_me:1116: checking target system type" >&5
1117 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1118 if test "${ac_cv_target+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1121 ac_cv_target_alias=$target_alias
1122 test "x$ac_cv_target_alias" = "x" &&
1123 ac_cv_target_alias=$ac_cv_host_alias
1124 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1125 { { echo "$as_me:1125: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1126 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1127 { (exit 1); exit 1; }; }
1130 echo "$as_me:1130: result: $ac_cv_target" >&5
1131 echo "${ECHO_T}$ac_cv_target" >&6
1132 target=$ac_cv_target
1133 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1134 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1135 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137 # The aliases save the names the user supplied, while $host etc.
1138 # will get canonicalized.
1139 test -n "$target_alias" &&
1140 test "$program_prefix$program_suffix$program_transform_name" = \
1142 program_prefix=${target_alias}-
1143 system_name="$host_os"
1145 system_name="`(uname -s -r) 2>/dev/null`"
1146 if test -z "$system_name" ; then
1147 system_name="`(hostname) 2>/dev/null`"
1150 test -n "$system_name" &&
1151 cat >>confdefs.h <<EOF
1152 #define SYSTEM_NAME "$system_name"
1155 if test "${cf_cv_system_name+set}" = set; then
1156 echo $ECHO_N "(cached) $ECHO_C" >&6
1158 cf_cv_system_name="$system_name"
1161 test -z "$system_name" && system_name="$cf_cv_system_name"
1162 test -n "$cf_cv_system_name" && echo "$as_me:1162: result: Configuring for $cf_cv_system_name" >&5
1163 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1165 if test ".$system_name" != ".$cf_cv_system_name" ; then
1166 echo "$as_me:1166: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1167 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1168 { { echo "$as_me:1168: error: \"Please remove config.cache and try again.\"" >&5
1169 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1170 { (exit 1); exit 1; }; }
1173 # Check whether --with-system-type or --without-system-type was given.
1174 if test "${with_system_type+set}" = set; then
1175 withval="$with_system_type"
1176 { echo "$as_me:1176: WARNING: overriding system type to $withval" >&5
1177 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1178 cf_cv_system_name=$withval
1183 ### Save the given $CFLAGS to allow user-override.
1184 cf_user_CFLAGS="$CFLAGS"
1186 ### Default install-location
1188 echo "$as_me:1188: checking for prefix" >&5
1189 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1190 if test "x$prefix" = "xNONE" ; then
1191 case "$cf_cv_system_name" in
1192 # non-vendor systems don't have a conflict
1193 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1196 (*) prefix=$ac_default_prefix
1200 echo "$as_me:1200: result: $prefix" >&5
1201 echo "${ECHO_T}$prefix" >&6
1203 if test "x$prefix" = "xNONE" ; then
1204 echo "$as_me:1204: checking for default include-directory" >&5
1205 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1206 test -n "$verbose" && echo 1>&6
1209 $includedir/ncurses \
1211 $prefix/include/ncurses \
1212 /usr/local/include \
1213 /usr/local/include/ncurses \
1215 /usr/include/ncurses
1217 cf_dir=`eval echo $cf_symbol`
1218 if test -f $cf_dir/curses.h ; then
1219 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1220 includedir="$cf_symbol"
1221 test -n "$verbose" && echo $ac_n " found " 1>&6
1225 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1227 echo "$as_me:1227: result: $includedir" >&5
1228 echo "${ECHO_T}$includedir" >&6
1231 ### Checks for programs.
1234 ac_cpp='$CPP $CPPFLAGS'
1235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1238 ac_main_return=return
1239 if test -n "$ac_tool_prefix"; then
1240 for ac_prog in gnatgcc gcc cc
1242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1244 echo "$as_me:1244: checking for $ac_word" >&5
1245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1246 if test "${ac_cv_prog_CC+set}" = set; then
1247 echo $ECHO_N "(cached) $ECHO_C" >&6
1249 if test -n "$CC"; then
1250 ac_cv_prog_CC="$CC" # Let the user override the test.
1252 ac_save_IFS=$IFS; IFS=$ac_path_separator
1254 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 $as_executable_p "$ac_dir/$ac_word" || continue
1258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1259 echo "$as_me:1259: found $ac_dir/$ac_word" >&5
1266 if test -n "$CC"; then
1267 echo "$as_me:1267: result: $CC" >&5
1268 echo "${ECHO_T}$CC" >&6
1270 echo "$as_me:1270: result: no" >&5
1271 echo "${ECHO_T}no" >&6
1274 test -n "$CC" && break
1277 if test -z "$CC"; then
1279 for ac_prog in gnatgcc gcc cc
1281 # Extract the first word of "$ac_prog", so it can be a program name with args.
1282 set dummy $ac_prog; ac_word=$2
1283 echo "$as_me:1283: checking for $ac_word" >&5
1284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1286 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 if test -n "$ac_ct_CC"; then
1289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 ac_save_IFS=$IFS; IFS=$ac_path_separator
1293 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 $as_executable_p "$ac_dir/$ac_word" || continue
1297 ac_cv_prog_ac_ct_CC="$ac_prog"
1298 echo "$as_me:1298: found $ac_dir/$ac_word" >&5
1304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1305 if test -n "$ac_ct_CC"; then
1306 echo "$as_me:1306: result: $ac_ct_CC" >&5
1307 echo "${ECHO_T}$ac_ct_CC" >&6
1309 echo "$as_me:1309: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1313 test -n "$ac_ct_CC" && break
1319 test -z "$CC" && { { echo "$as_me:1319: error: no acceptable cc found in \$PATH" >&5
1320 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1321 { (exit 1); exit 1; }; }
1323 # Provide some information about the compiler.
1324 echo "$as_me:1324:" \
1325 "checking for C compiler version" >&5
1326 ac_compiler=`set X $ac_compile; echo $2`
1327 { (eval echo "$as_me:1327: \"$ac_compiler --version </dev/null >&5\"") >&5
1328 (eval $ac_compiler --version </dev/null >&5) 2>&5
1330 echo "$as_me:1330: \$? = $ac_status" >&5
1331 (exit $ac_status); }
1332 { (eval echo "$as_me:1332: \"$ac_compiler -v </dev/null >&5\"") >&5
1333 (eval $ac_compiler -v </dev/null >&5) 2>&5
1335 echo "$as_me:1335: \$? = $ac_status" >&5
1336 (exit $ac_status); }
1337 { (eval echo "$as_me:1337: \"$ac_compiler -V </dev/null >&5\"") >&5
1338 (eval $ac_compiler -V </dev/null >&5) 2>&5
1340 echo "$as_me:1340: \$? = $ac_status" >&5
1341 (exit $ac_status); }
1343 cat >conftest.$ac_ext <<_ACEOF
1344 #line 1344 "configure"
1345 #include "confdefs.h"
1355 ac_clean_files_save=$ac_clean_files
1356 ac_clean_files="$ac_clean_files a.out a.exe"
1357 # Try to create an executable without -o first, disregard a.out.
1358 # It will help us diagnose broken compilers, and finding out an intuition
1360 echo "$as_me:1360: checking for C compiler default output" >&5
1361 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1362 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1363 if { (eval echo "$as_me:1363: \"$ac_link_default\"") >&5
1364 (eval $ac_link_default) 2>&5
1366 echo "$as_me:1366: \$? = $ac_status" >&5
1367 (exit $ac_status); }; then
1368 # Find the output, starting from the most likely. This scheme is
1369 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1371 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1372 ls a.out conftest 2>/dev/null;
1373 ls a.* conftest.* 2>/dev/null`; do
1375 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1376 a.out ) # We found the default executable, but exeext='' is most
1379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1380 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1387 echo "$as_me: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1389 { { echo "$as_me:1389: error: C compiler cannot create executables" >&5
1390 echo "$as_me: error: C compiler cannot create executables" >&2;}
1391 { (exit 77); exit 77; }; }
1394 ac_exeext=$ac_cv_exeext
1395 echo "$as_me:1395: result: $ac_file" >&5
1396 echo "${ECHO_T}$ac_file" >&6
1398 # Check the compiler produces executables we can run. If not, either
1399 # the compiler is broken, or we cross compile.
1400 echo "$as_me:1400: checking whether the C compiler works" >&5
1401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1403 # If not cross compiling, check that we can run a simple program.
1404 if test "$cross_compiling" != yes; then
1405 if { ac_try='./$ac_file'
1406 { (eval echo "$as_me:1406: \"$ac_try\"") >&5
1409 echo "$as_me:1409: \$? = $ac_status" >&5
1410 (exit $ac_status); }; }; then
1413 if test "$cross_compiling" = maybe; then
1416 { { echo "$as_me:1416: error: cannot run C compiled programs.
1417 If you meant to cross compile, use \`--host'." >&5
1418 echo "$as_me: error: cannot run C compiled programs.
1419 If you meant to cross compile, use \`--host'." >&2;}
1420 { (exit 1); exit 1; }; }
1424 echo "$as_me:1424: result: yes" >&5
1425 echo "${ECHO_T}yes" >&6
1427 rm -f a.out a.exe conftest$ac_cv_exeext
1428 ac_clean_files=$ac_clean_files_save
1429 # Check the compiler produces executables we can run. If not, either
1430 # the compiler is broken, or we cross compile.
1431 echo "$as_me:1431: checking whether we are cross compiling" >&5
1432 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1433 echo "$as_me:1433: result: $cross_compiling" >&5
1434 echo "${ECHO_T}$cross_compiling" >&6
1436 echo "$as_me:1436: checking for executable suffix" >&5
1437 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1438 if { (eval echo "$as_me:1438: \"$ac_link\"") >&5
1439 (eval $ac_link) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }; then
1443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1445 # work properly (i.e., refer to `conftest.exe'), while it won't with
1447 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1449 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1457 { { echo "$as_me:1457: error: cannot compute EXEEXT: cannot compile and link" >&5
1458 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1459 { (exit 1); exit 1; }; }
1462 rm -f conftest$ac_cv_exeext
1463 echo "$as_me:1463: result: $ac_cv_exeext" >&5
1464 echo "${ECHO_T}$ac_cv_exeext" >&6
1466 rm -f conftest.$ac_ext
1467 EXEEXT=$ac_cv_exeext
1469 echo "$as_me:1469: checking for object suffix" >&5
1470 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1471 if test "${ac_cv_objext+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 cat >conftest.$ac_ext <<_ACEOF
1475 #line 1475 "configure"
1476 #include "confdefs.h"
1486 rm -f conftest.o conftest.obj
1487 if { (eval echo "$as_me:1487: \"$ac_compile\"") >&5
1488 (eval $ac_compile) 2>&5
1490 echo "$as_me:1490: \$? = $ac_status" >&5
1491 (exit $ac_status); }; then
1492 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1494 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1500 echo "$as_me: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1502 { { echo "$as_me:1502: error: cannot compute OBJEXT: cannot compile" >&5
1503 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1504 { (exit 1); exit 1; }; }
1507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1509 echo "$as_me:1509: result: $ac_cv_objext" >&5
1510 echo "${ECHO_T}$ac_cv_objext" >&6
1511 OBJEXT=$ac_cv_objext
1513 echo "$as_me:1513: checking whether we are using the GNU C compiler" >&5
1514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 cat >conftest.$ac_ext <<_ACEOF
1519 #line 1519 "configure"
1520 #include "confdefs.h"
1533 rm -f conftest.$ac_objext
1534 if { (eval echo "$as_me:1534: \"$ac_compile\"") >&5
1535 (eval $ac_compile) 2>&5
1537 echo "$as_me:1537: \$? = $ac_status" >&5
1538 (exit $ac_status); } &&
1539 { ac_try='test -s conftest.$ac_objext'
1540 { (eval echo "$as_me:1540: \"$ac_try\"") >&5
1543 echo "$as_me:1543: \$? = $ac_status" >&5
1544 (exit $ac_status); }; }; then
1547 echo "$as_me: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1551 rm -f conftest.$ac_objext conftest.$ac_ext
1552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1555 echo "$as_me:1555: result: $ac_cv_c_compiler_gnu" >&5
1556 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1557 GCC=`test $ac_compiler_gnu = yes && echo yes`
1558 ac_test_CFLAGS=${CFLAGS+set}
1559 ac_save_CFLAGS=$CFLAGS
1561 echo "$as_me:1561: checking whether $CC accepts -g" >&5
1562 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1563 if test "${ac_cv_prog_cc_g+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 cat >conftest.$ac_ext <<_ACEOF
1567 #line 1567 "configure"
1568 #include "confdefs.h"
1578 rm -f conftest.$ac_objext
1579 if { (eval echo "$as_me:1579: \"$ac_compile\"") >&5
1580 (eval $ac_compile) 2>&5
1582 echo "$as_me:1582: \$? = $ac_status" >&5
1583 (exit $ac_status); } &&
1584 { ac_try='test -s conftest.$ac_objext'
1585 { (eval echo "$as_me:1585: \"$ac_try\"") >&5
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); }; }; then
1592 echo "$as_me: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1596 rm -f conftest.$ac_objext conftest.$ac_ext
1598 echo "$as_me:1598: result: $ac_cv_prog_cc_g" >&5
1599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1600 if test "$ac_test_CFLAGS" = set; then
1601 CFLAGS=$ac_save_CFLAGS
1602 elif test $ac_cv_prog_cc_g = yes; then
1603 if test "$GCC" = yes; then
1609 if test "$GCC" = yes; then
1615 # Some people use a C++ compiler to compile C. Since we use `exit',
1616 # in C++ we need to declare it. In case someone uses the same compiler
1617 # for both compiling C and C++ we need to have the C++ compiler decide
1618 # the declaration of exit, since it's the most demanding environment.
1619 cat >conftest.$ac_ext <<_ACEOF
1624 rm -f conftest.$ac_objext
1625 if { (eval echo "$as_me:1625: \"$ac_compile\"") >&5
1626 (eval $ac_compile) 2>&5
1628 echo "$as_me:1628: \$? = $ac_status" >&5
1629 (exit $ac_status); } &&
1630 { ac_try='test -s conftest.$ac_objext'
1631 { (eval echo "$as_me:1631: \"$ac_try\"") >&5
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }; }; then
1636 for ac_declaration in \
1638 '#include <stdlib.h>' \
1639 'extern "C" void std::exit (int) throw (); using std::exit;' \
1640 'extern "C" void std::exit (int); using std::exit;' \
1641 'extern "C" void exit (int) throw ();' \
1642 'extern "C" void exit (int);' \
1645 cat >conftest.$ac_ext <<_ACEOF
1646 #line 1646 "configure"
1647 #include "confdefs.h"
1658 rm -f conftest.$ac_objext
1659 if { (eval echo "$as_me:1659: \"$ac_compile\"") >&5
1660 (eval $ac_compile) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); } &&
1664 { ac_try='test -s conftest.$ac_objext'
1665 { (eval echo "$as_me:1665: \"$ac_try\"") >&5
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); }; }; then
1672 echo "$as_me: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1676 rm -f conftest.$ac_objext conftest.$ac_ext
1677 cat >conftest.$ac_ext <<_ACEOF
1678 #line 1678 "configure"
1679 #include "confdefs.h"
1689 rm -f conftest.$ac_objext
1690 if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5
1691 (eval $ac_compile) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); } &&
1695 { ac_try='test -s conftest.$ac_objext'
1696 { (eval echo "$as_me:1696: \"$ac_try\"") >&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }; }; then
1703 echo "$as_me: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 rm -f conftest.$ac_objext conftest.$ac_ext
1709 if test -n "$ac_declaration"; then
1710 echo '#ifdef __cplusplus' >>confdefs.h
1711 echo $ac_declaration >>confdefs.h
1712 echo '#endif' >>confdefs.h
1716 echo "$as_me: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
1719 rm -f conftest.$ac_objext conftest.$ac_ext
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725 ac_main_return=return
1728 if test "$GCC" = yes ; then
1729 echo "$as_me:1729: checking version of $CC" >&5
1730 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1731 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.].*//'`"
1732 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1733 echo "$as_me:1733: result: $GCC_VERSION" >&5
1734 echo "${ECHO_T}$GCC_VERSION" >&6
1737 echo "$as_me:1737: checking for $CC option to accept ANSI C" >&5
1738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 ac_cv_prog_cc_stdc=no
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line 1745 "configure"
1746 #include "confdefs.h"
1749 #include <sys/types.h>
1750 #include <sys/stat.h>
1751 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1752 struct buf { int x; };
1753 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1754 static char *e (p, i)
1760 static char *f (char * (*g) (char **, int), char **p, ...)
1765 s = g (p, va_arg (v,int));
1769 int test (int i, double x);
1770 struct s1 {int (*f) (int a);};
1771 struct s2 {int (*f) (double a);};
1772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1783 # Don't try gcc -ansi; that turns off useful extensions and
1784 # breaks some systems' header files.
1785 # AIX -qlanglvl=ansi
1786 # Ultrix and OSF/1 -std1
1787 # HP-UX 10.20 and later -Ae
1788 # HP-UX older versions -Aa -D_HPUX_SOURCE
1789 # SVR4 -Xc -D__EXTENSIONS__
1790 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1792 CC="$ac_save_CC $ac_arg"
1793 rm -f conftest.$ac_objext
1794 if { (eval echo "$as_me:1794: \"$ac_compile\"") >&5
1795 (eval $ac_compile) 2>&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); } &&
1799 { ac_try='test -s conftest.$ac_objext'
1800 { (eval echo "$as_me:1800: \"$ac_try\"") >&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); }; }; then
1805 ac_cv_prog_cc_stdc=$ac_arg
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 rm -f conftest.$ac_objext
1813 rm -f conftest.$ac_ext conftest.$ac_objext
1818 case "x$ac_cv_prog_cc_stdc" in
1820 echo "$as_me:1820: result: none needed" >&5
1821 echo "${ECHO_T}none needed" >&6 ;;
1823 echo "$as_me:1823: result: $ac_cv_prog_cc_stdc" >&5
1824 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1825 CC="$CC $ac_cv_prog_cc_stdc" ;;
1828 # This should have been defined by AC_PROG_CC
1831 echo "$as_me:1831: checking \$CC variable" >&5
1832 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1835 echo "$as_me:1835: result: broken" >&5
1836 echo "${ECHO_T}broken" >&6
1837 { echo "$as_me:1837: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1838 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1840 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1841 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1846 cf_new_extra_cppflags=
1848 for cf_add_cflags in $cf_flags
1850 case $cf_fix_cppflags in
1852 case $cf_add_cflags in
1853 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1854 case $cf_add_cflags in
1856 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1858 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1859 && test -z "${cf_tst_cflags}" \
1860 && cf_fix_cppflags=yes
1862 if test $cf_fix_cppflags = yes ; then
1863 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1865 elif test "${cf_tst_cflags}" = "\"'" ; then
1866 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1875 case $cf_add_cflags in
1877 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1879 CPPFLAGS=`echo "$CPPFLAGS" | \
1880 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1881 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1885 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1890 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1895 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1897 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1899 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1900 && test -z "${cf_tst_cflags}" \
1901 && cf_fix_cppflags=no
1906 if test -n "$cf_new_cflags" ; then
1908 CFLAGS="$CFLAGS $cf_new_cflags"
1911 if test -n "$cf_new_cppflags" ; then
1913 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1916 if test -n "$cf_new_extra_cppflags" ; then
1918 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1923 echo "$as_me:1923: result: ok" >&5
1924 echo "${ECHO_T}ok" >&6
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 ac_main_return=return
1934 echo "$as_me:1934: checking how to run the C preprocessor" >&5
1935 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1936 # On Suns, sometimes $CPP names a directory.
1937 if test -n "$CPP" && test -d "$CPP"; then
1940 if test -z "$CPP"; then
1941 if test "${ac_cv_prog_CPP+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 # Double quotes because CPP needs to be expanded
1945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1948 for ac_c_preproc_warn_flag in '' yes
1950 # Use a header file that comes with gcc, so configuring glibc
1951 # with a fresh cross-compiler works.
1952 # On the NeXT, cc -E runs the code through the compiler's parser,
1953 # not just through cpp. "Syntax error" is here to catch this case.
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line 1955 "configure"
1956 #include "confdefs.h"
1960 if { (eval echo "$as_me:1960: \"$ac_cpp conftest.$ac_ext\"") >&5
1961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1963 egrep -v '^ *\+' conftest.er1 >conftest.err
1965 cat conftest.err >&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); } >/dev/null; then
1968 if test -s conftest.err; then
1969 ac_cpp_err=$ac_c_preproc_warn_flag
1976 if test -z "$ac_cpp_err"; then
1979 echo "$as_me: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1981 # Broken: fails on valid input.
1984 rm -f conftest.err conftest.$ac_ext
1986 # OK, works on sane cases. Now check whether non-existent headers
1987 # can be detected and how.
1988 cat >conftest.$ac_ext <<_ACEOF
1989 #line 1989 "configure"
1990 #include "confdefs.h"
1991 #include <ac_nonexistent.h>
1993 if { (eval echo "$as_me:1993: \"$ac_cpp conftest.$ac_ext\"") >&5
1994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1996 egrep -v '^ *\+' conftest.er1 >conftest.err
1998 cat conftest.err >&5
1999 echo "$as_me:1999: \$? = $ac_status" >&5
2000 (exit $ac_status); } >/dev/null; then
2001 if test -s conftest.err; then
2002 ac_cpp_err=$ac_c_preproc_warn_flag
2009 if test -z "$ac_cpp_err"; then
2010 # Broken: success on invalid input.
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 # Passes both tests.
2019 rm -f conftest.err conftest.$ac_ext
2022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2023 rm -f conftest.err conftest.$ac_ext
2024 if $ac_preproc_ok; then
2036 echo "$as_me:2036: result: $CPP" >&5
2037 echo "${ECHO_T}$CPP" >&6
2039 for ac_c_preproc_warn_flag in '' yes
2041 # Use a header file that comes with gcc, so configuring glibc
2042 # with a fresh cross-compiler works.
2043 # On the NeXT, cc -E runs the code through the compiler's parser,
2044 # not just through cpp. "Syntax error" is here to catch this case.
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line 2046 "configure"
2047 #include "confdefs.h"
2051 if { (eval echo "$as_me:2051: \"$ac_cpp conftest.$ac_ext\"") >&5
2052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2054 egrep -v '^ *\+' conftest.er1 >conftest.err
2056 cat conftest.err >&5
2057 echo "$as_me:2057: \$? = $ac_status" >&5
2058 (exit $ac_status); } >/dev/null; then
2059 if test -s conftest.err; then
2060 ac_cpp_err=$ac_c_preproc_warn_flag
2067 if test -z "$ac_cpp_err"; then
2070 echo "$as_me: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2072 # Broken: fails on valid input.
2075 rm -f conftest.err conftest.$ac_ext
2077 # OK, works on sane cases. Now check whether non-existent headers
2078 # can be detected and how.
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line 2080 "configure"
2081 #include "confdefs.h"
2082 #include <ac_nonexistent.h>
2084 if { (eval echo "$as_me:2084: \"$ac_cpp conftest.$ac_ext\"") >&5
2085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2087 egrep -v '^ *\+' conftest.er1 >conftest.err
2089 cat conftest.err >&5
2090 echo "$as_me:2090: \$? = $ac_status" >&5
2091 (exit $ac_status); } >/dev/null; then
2092 if test -s conftest.err; then
2093 ac_cpp_err=$ac_c_preproc_warn_flag
2100 if test -z "$ac_cpp_err"; then
2101 # Broken: success on invalid input.
2104 echo "$as_me: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 # Passes both tests.
2110 rm -f conftest.err conftest.$ac_ext
2113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2114 rm -f conftest.err conftest.$ac_ext
2115 if $ac_preproc_ok; then
2118 { { echo "$as_me:2118: error: C preprocessor \"$CPP\" fails sanity check" >&5
2119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2120 { (exit 1); exit 1; }; }
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128 ac_main_return=return
2130 if test $ac_cv_c_compiler_gnu = yes; then
2131 echo "$as_me:2131: checking whether $CC needs -traditional" >&5
2132 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2133 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_pattern="Autoconf.*'x'"
2137 cat >conftest.$ac_ext <<_ACEOF
2138 #line 2138 "configure"
2139 #include "confdefs.h"
2141 int Autoconf = TIOCGETP;
2143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2144 egrep "$ac_pattern" >/dev/null 2>&1; then
2145 ac_cv_prog_gcc_traditional=yes
2147 ac_cv_prog_gcc_traditional=no
2151 if test $ac_cv_prog_gcc_traditional = no; then
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line 2153 "configure"
2154 #include "confdefs.h"
2156 int Autoconf = TCGETA;
2158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2159 egrep "$ac_pattern" >/dev/null 2>&1; then
2160 ac_cv_prog_gcc_traditional=yes
2166 echo "$as_me:2166: result: $ac_cv_prog_gcc_traditional" >&5
2167 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2168 if test $ac_cv_prog_gcc_traditional = yes; then
2169 CC="$CC -traditional"
2173 echo "$as_me:2173: checking whether $CC understands -c and -o together" >&5
2174 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2175 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat > conftest.$ac_ext <<CF_EOF
2183 ${cf_cv_main_return:-return}(0);
2186 # We do the test twice because some compilers refuse to overwrite an
2187 # existing .o file with -o, though they will create one.
2188 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2189 if { (eval echo "$as_me:2189: \"$ac_try\"") >&5
2192 echo "$as_me:2192: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 test -f conftest2.$ac_objext && { (eval echo "$as_me:2194: \"$ac_try\"") >&5
2197 echo "$as_me:2197: \$? = $ac_status" >&5
2198 (exit $ac_status); };
2200 eval cf_cv_prog_CC_c_o=yes
2202 eval cf_cv_prog_CC_c_o=no
2207 if test $cf_cv_prog_CC_c_o = yes; then
2208 echo "$as_me:2208: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6
2211 echo "$as_me:2211: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test "$program_prefix" != NONE &&
2216 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2217 # Use a double $ so make ignores it.
2218 test "$program_suffix" != NONE &&
2219 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2220 # Double any \ or $. echo might interpret backslashes.
2221 # By default was `s,x,x', remove it if useless.
2222 cat <<\_ACEOF >conftest.sed
2223 s/[\\$]/&&/g;s/;s,x,x,$//
2225 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2228 for ac_prog in mawk gawk nawk awk
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 echo "$as_me:2232: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_AWK+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$AWK"; then
2238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2240 ac_save_IFS=$IFS; IFS=$ac_path_separator
2242 for ac_dir in $ac_dummy; do
2244 test -z "$ac_dir" && ac_dir=.
2245 $as_executable_p "$ac_dir/$ac_word" || continue
2246 ac_cv_prog_AWK="$ac_prog"
2247 echo "$as_me:2247: found $ac_dir/$ac_word" >&5
2254 if test -n "$AWK"; then
2255 echo "$as_me:2255: result: $AWK" >&5
2256 echo "${ECHO_T}$AWK" >&6
2258 echo "$as_me:2258: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2262 test -n "$AWK" && break
2265 test -z "$AWK" && { { echo "$as_me:2265: error: No awk program found" >&5
2266 echo "$as_me: error: No awk program found" >&2;}
2267 { (exit 1); exit 1; }; }
2269 echo "$as_me:2269: checking for egrep" >&5
2270 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2271 if test "${ac_cv_prog_egrep+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2275 then ac_cv_prog_egrep='grep -E'
2276 else ac_cv_prog_egrep='egrep'
2279 echo "$as_me:2279: result: $ac_cv_prog_egrep" >&5
2280 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2281 EGREP=$ac_cv_prog_egrep
2283 test -z "$EGREP" && { { echo "$as_me:2283: error: No egrep program found" >&5
2284 echo "$as_me: error: No egrep program found" >&2;}
2285 { (exit 1); exit 1; }; }
2287 # Find a good install program. We prefer a C program (faster),
2288 # so one script is as good as another. But avoid the broken or
2289 # incompatible versions:
2290 # SysV /etc/install, /usr/sbin/install
2291 # SunOS /usr/etc/install
2292 # IRIX /sbin/install
2294 # AmigaOS /C/install, which installs bootblocks on floppy discs
2295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298 # ./install, which can be erroneously created by make from ./install.sh.
2299 echo "$as_me:2299: checking for a BSD compatible install" >&5
2300 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2301 if test -z "$INSTALL"; then
2302 if test "${ac_cv_path_install+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 ac_save_IFS=$IFS; IFS=$ac_path_separator
2306 for ac_dir in $PATH; do
2308 # Account for people who put trailing slashes in PATH elements.
2310 / | ./ | .// | /cC/* \
2311 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2314 # OSF1 and SCO ODT 3.0 have their own names for install.
2315 # Don't use installbsd from OSF since it installs stuff as root
2317 for ac_prog in ginstall scoinst install; do
2318 if $as_executable_p "$ac_dir/$ac_prog"; then
2319 if test $ac_prog = install &&
2320 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2321 # AIX install. It has an incompatible calling convention.
2323 elif test $ac_prog = install &&
2324 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2325 # program-specific install script used by HP pwplus--don't use.
2328 ac_cv_path_install="$ac_dir/$ac_prog -c"
2338 if test "${ac_cv_path_install+set}" = set; then
2339 INSTALL=$ac_cv_path_install
2341 # As a last resort, use the slow shell script. We don't cache a
2342 # path for INSTALL within a source directory, because that will
2343 # break other packages using the cache if that directory is
2344 # removed, or if the path is relative.
2345 INSTALL=$ac_install_sh
2348 echo "$as_me:2348: result: $INSTALL" >&5
2349 echo "${ECHO_T}$INSTALL" >&6
2351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352 # It thinks the first close brace ends the variable substitution.
2353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359 echo "$as_me:2359: checking whether ln -s works" >&5
2360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2362 if test "$LN_S" = "ln -s"; then
2363 echo "$as_me:2363: result: yes" >&5
2364 echo "${ECHO_T}yes" >&6
2366 echo "$as_me:2366: result: no, using $LN_S" >&5
2367 echo "${ECHO_T}no, using $LN_S" >&6
2370 echo "$as_me:2370: checking if $LN_S -f options work" >&5
2371 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2373 rm -f conf$$.src conf$$dst
2375 echo first >conf$$.src
2376 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2381 rm -f conf$$.dst conf$$src
2382 echo "$as_me:2382: result: $cf_prog_ln_sf" >&5
2383 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2385 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2387 echo "$as_me:2387: checking for long file names" >&5
2388 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2389 if test "${ac_cv_sys_long_file_names+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 ac_cv_sys_long_file_names=yes
2393 # Test for long file names in all the places we know might matter:
2394 # . the current directory, where building will happen
2395 # $prefix/lib where we will be installing things
2396 # $exec_prefix/lib likewise
2397 # eval it to expand exec_prefix.
2398 # $TMPDIR if set, where it might want to write temporary files
2399 # if $TMPDIR is not set:
2400 # /tmp where it might want to write temporary files
2403 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2406 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2408 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2409 test -d $ac_dir || continue
2410 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2411 ac_xdir=$ac_dir/cf$$
2412 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2413 ac_tf1=$ac_xdir/conftest9012345
2414 ac_tf2=$ac_xdir/conftest9012346
2415 (echo 1 >$ac_tf1) 2>/dev/null
2416 (echo 2 >$ac_tf2) 2>/dev/null
2417 ac_val=`cat $ac_tf1 2>/dev/null`
2418 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2419 ac_cv_sys_long_file_names=no
2420 rm -rf $ac_xdir 2>/dev/null
2423 rm -rf $ac_xdir 2>/dev/null
2426 echo "$as_me:2426: result: $ac_cv_sys_long_file_names" >&5
2427 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2428 if test $ac_cv_sys_long_file_names = yes; then
2430 cat >>confdefs.h <<\EOF
2431 #define HAVE_LONG_FILE_NAMES 1
2436 # if we find pkg-config, check if we should install the ".pc" files.
2438 echo "$as_me:2438: checking if you want to use pkg-config" >&5
2439 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2441 # Check whether --with-pkg-config or --without-pkg-config was given.
2442 if test "${with_pkg_config+set}" = set; then
2443 withval="$with_pkg_config"
2444 cf_pkg_config=$withval
2448 echo "$as_me:2448: result: $cf_pkg_config" >&5
2449 echo "${ECHO_T}$cf_pkg_config" >&6
2451 case $cf_pkg_config in
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2460 echo "$as_me:2460: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2470 ac_save_IFS=$IFS; IFS=$ac_path_separator
2472 for ac_dir in $ac_dummy; do
2474 test -z "$ac_dir" && ac_dir=.
2475 if $as_executable_p "$ac_dir/$ac_word"; then
2476 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2477 echo "$as_me:2477: found $ac_dir/$ac_word" >&5
2485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2487 if test -n "$PKG_CONFIG"; then
2488 echo "$as_me:2488: result: $PKG_CONFIG" >&5
2489 echo "${ECHO_T}$PKG_CONFIG" >&6
2491 echo "$as_me:2491: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2496 if test -z "$ac_cv_path_PKG_CONFIG"; then
2497 ac_pt_PKG_CONFIG=$PKG_CONFIG
2498 # Extract the first word of "pkg-config", so it can be a program name with args.
2499 set dummy pkg-config; ac_word=$2
2500 echo "$as_me:2500: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 case $ac_pt_PKG_CONFIG in
2507 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2510 ac_save_IFS=$IFS; IFS=$ac_path_separator
2512 for ac_dir in $ac_dummy; do
2514 test -z "$ac_dir" && ac_dir=.
2515 if $as_executable_p "$ac_dir/$ac_word"; then
2516 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2517 echo "$as_me:2517: found $ac_dir/$ac_word" >&5
2522 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2526 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2528 if test -n "$ac_pt_PKG_CONFIG"; then
2529 echo "$as_me:2529: result: $ac_pt_PKG_CONFIG" >&5
2530 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2532 echo "$as_me:2532: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2536 PKG_CONFIG=$ac_pt_PKG_CONFIG
2538 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2547 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2548 if test "$PKG_CONFIG" != none ; then
2550 if test "x$prefix" != xNONE; then
2551 cf_path_syntax="$prefix"
2553 cf_path_syntax="$ac_default_prefix"
2556 case ".$PKG_CONFIG" in
2561 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
2563 (.\${*prefix}*|.\${*dir}*)
2564 eval PKG_CONFIG="$PKG_CONFIG"
2565 case ".$PKG_CONFIG" in
2567 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2572 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2575 { { echo "$as_me:2575: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2576 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2577 { (exit 1); exit 1; }; }
2581 elif test "x$cf_pkg_config" != xno ; then
2582 { echo "$as_me:2582: WARNING: pkg-config is not installed" >&5
2583 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
2588 echo "$as_me:2588: checking for pkg-config library directory" >&5
2589 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
2592 echo "$as_me:2592: checking for $PKG_CONFIG library directory" >&5
2593 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2597 PKG_CONFIG_LIBDIR=no
2599 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2600 if test "${with_pkg_config_libdir+set}" = set; then
2601 withval="$with_pkg_config_libdir"
2602 PKG_CONFIG_LIBDIR=$withval
2604 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
2607 case x$PKG_CONFIG_LIBDIR in
2611 # Look for the library directory using the same prefix as the executable
2612 if test "x$PKG_CONFIG" = xnone
2616 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2619 # If you don't like using the default architecture, you have to specify the
2620 # intended library directory and corresponding compiler/linker options.
2622 # This case allows for Debian's 2014-flavor of multiarch, along with the
2623 # most common variations before that point. Some other variants spell the
2624 # directory differently, e.g., "pkg-config", and put it in unusual places.
2625 # pkg-config has always been poorly standardized, which is ironic...
2626 case x`(arch) 2>/dev/null` in
2629 $cf_path/lib/*64-linux-gnu \
2637 $cf_path/lib/*-linux-gnu \
2645 test -n "$verbose" && echo " list..." 1>&6
2647 echo "${as_me:-configure}:2647: testing list... ..." 1>&5
2649 for cf_config in $cf_search_path
2651 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
2653 echo "${as_me:-configure}:2653: testing checking $cf_config/pkgconfig ..." 1>&5
2655 if test -d $cf_config/pkgconfig
2657 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2658 echo "$as_me:2658: checking done" >&5
2659 echo $ECHO_N "checking done... $ECHO_C" >&6
2668 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
2669 echo "$as_me:2669: result: $PKG_CONFIG_LIBDIR" >&5
2670 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2673 echo "$as_me:2673: checking if you want to build test-programs" >&5
2674 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2676 # Check whether --with-tests or --without-tests was given.
2677 if test "${with_tests+set}" = set; then
2678 withval="$with_tests"
2679 cf_with_tests=$withval
2683 echo "$as_me:2683: result: $cf_with_tests" >&5
2684 echo "${ECHO_T}$cf_with_tests" >&6
2686 echo "$as_me:2686: checking if we should assume mixed-case filenames" >&5
2687 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2689 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2690 if test "${enable_mixed_case+set}" = set; then
2691 enableval="$enable_mixed_case"
2692 enable_mixedcase=$enableval
2694 enable_mixedcase=auto
2696 echo "$as_me:2696: result: $enable_mixedcase" >&5
2697 echo "${ECHO_T}$enable_mixedcase" >&6
2698 if test "$enable_mixedcase" = "auto" ; then
2700 echo "$as_me:2700: checking if filesystem supports mixed-case filenames" >&5
2701 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2702 if test "${cf_cv_mixedcase+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test "$cross_compiling" = yes ; then
2707 case $target_alias in
2708 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2716 rm -f conftest CONFTEST
2718 if test -f CONFTEST ; then
2723 rm -f conftest CONFTEST
2727 echo "$as_me:2727: result: $cf_cv_mixedcase" >&5
2728 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2729 test "$cf_cv_mixedcase" = yes &&
2730 cat >>confdefs.h <<\EOF
2731 #define MIXEDCASE_FILENAMES 1
2735 cf_cv_mixedcase=$enable_mixedcase
2736 if test "$enable_mixedcase" = "yes" ; then
2737 cat >>confdefs.h <<\EOF
2738 #define MIXEDCASE_FILENAMES 1
2744 # do this after mixed-case option (tags/TAGS is not as important as tic).
2745 echo "$as_me:2745: checking whether ${MAKE-make} sets \${MAKE}" >&5
2746 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2747 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2748 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 cat >conftest.make <<\EOF
2753 @echo 'ac_maketemp="${MAKE}"'
2755 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2756 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2757 if test -n "$ac_maketemp"; then
2758 eval ac_cv_prog_make_${ac_make}_set=yes
2760 eval ac_cv_prog_make_${ac_make}_set=no
2764 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2765 echo "$as_me:2765: result: yes" >&5
2766 echo "${ECHO_T}yes" >&6
2769 echo "$as_me:2769: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2771 SET_MAKE="MAKE=${MAKE-make}"
2774 for ac_prog in exctags ctags
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 echo "$as_me:2778: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780 if test "${ac_cv_prog_CTAGS+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$CTAGS"; then
2784 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2786 ac_save_IFS=$IFS; IFS=$ac_path_separator
2788 for ac_dir in $ac_dummy; do
2790 test -z "$ac_dir" && ac_dir=.
2791 $as_executable_p "$ac_dir/$ac_word" || continue
2792 ac_cv_prog_CTAGS="$ac_prog"
2793 echo "$as_me:2793: found $ac_dir/$ac_word" >&5
2799 CTAGS=$ac_cv_prog_CTAGS
2800 if test -n "$CTAGS"; then
2801 echo "$as_me:2801: result: $CTAGS" >&5
2802 echo "${ECHO_T}$CTAGS" >&6
2804 echo "$as_me:2804: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2808 test -n "$CTAGS" && break
2811 for ac_prog in exetags etags
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 echo "$as_me:2815: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ETAGS+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$ETAGS"; then
2821 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2823 ac_save_IFS=$IFS; IFS=$ac_path_separator
2825 for ac_dir in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir=.
2828 $as_executable_p "$ac_dir/$ac_word" || continue
2829 ac_cv_prog_ETAGS="$ac_prog"
2830 echo "$as_me:2830: found $ac_dir/$ac_word" >&5
2836 ETAGS=$ac_cv_prog_ETAGS
2837 if test -n "$ETAGS"; then
2838 echo "$as_me:2838: result: $ETAGS" >&5
2839 echo "${ECHO_T}$ETAGS" >&6
2841 echo "$as_me:2841: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2845 test -n "$ETAGS" && break
2848 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2849 set dummy ${CTAGS:-ctags}; ac_word=$2
2850 echo "$as_me:2850: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -n "$MAKE_LOWER_TAGS"; then
2856 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2858 ac_save_IFS=$IFS; IFS=$ac_path_separator
2860 for ac_dir in $ac_dummy; do
2862 test -z "$ac_dir" && ac_dir=.
2863 $as_executable_p "$ac_dir/$ac_word" || continue
2864 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2865 echo "$as_me:2865: found $ac_dir/$ac_word" >&5
2869 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2872 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2873 if test -n "$MAKE_LOWER_TAGS"; then
2874 echo "$as_me:2874: result: $MAKE_LOWER_TAGS" >&5
2875 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2877 echo "$as_me:2877: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2881 if test "$cf_cv_mixedcase" = yes ; then
2882 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2883 set dummy ${ETAGS:-etags}; ac_word=$2
2884 echo "$as_me:2884: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if test -n "$MAKE_UPPER_TAGS"; then
2890 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2892 ac_save_IFS=$IFS; IFS=$ac_path_separator
2894 for ac_dir in $ac_dummy; do
2896 test -z "$ac_dir" && ac_dir=.
2897 $as_executable_p "$ac_dir/$ac_word" || continue
2898 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2899 echo "$as_me:2899: found $ac_dir/$ac_word" >&5
2903 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2906 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2907 if test -n "$MAKE_UPPER_TAGS"; then
2908 echo "$as_me:2908: result: $MAKE_UPPER_TAGS" >&5
2909 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2911 echo "$as_me:2911: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2919 if test "$MAKE_UPPER_TAGS" = yes ; then
2925 if test "$MAKE_LOWER_TAGS" = yes ; then
2931 echo "$as_me:2931: checking for makeflags variable" >&5
2932 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2933 if test "${cf_cv_makeflags+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2940 cat >cf_makeflags.tmp <<CF_EOF
2943 @ echo '.$cf_option'
2945 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2946 case "$cf_result" in
2948 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2949 case "$cf_result" in
2950 (.*CC=*) cf_cv_makeflags=
2952 (*) cf_cv_makeflags=$cf_option
2958 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
2962 rm -f cf_makeflags.tmp
2965 echo "$as_me:2965: result: $cf_cv_makeflags" >&5
2966 echo "${ECHO_T}$cf_cv_makeflags" >&6
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2971 echo "$as_me:2971: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_RANLIB+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$RANLIB"; then
2977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2979 ac_save_IFS=$IFS; IFS=$ac_path_separator
2981 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 $as_executable_p "$ac_dir/$ac_word" || continue
2985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2986 echo "$as_me:2986: found $ac_dir/$ac_word" >&5
2992 RANLIB=$ac_cv_prog_RANLIB
2993 if test -n "$RANLIB"; then
2994 echo "$as_me:2994: result: $RANLIB" >&5
2995 echo "${ECHO_T}$RANLIB" >&6
2997 echo "$as_me:2997: result: no" >&5
2998 echo "${ECHO_T}no" >&6
3002 if test -z "$ac_cv_prog_RANLIB"; then
3003 ac_ct_RANLIB=$RANLIB
3004 # Extract the first word of "ranlib", so it can be a program name with args.
3005 set dummy ranlib; ac_word=$2
3006 echo "$as_me:3006: checking for $ac_word" >&5
3007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 if test -n "$ac_ct_RANLIB"; then
3012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3014 ac_save_IFS=$IFS; IFS=$ac_path_separator
3016 for ac_dir in $ac_dummy; do
3018 test -z "$ac_dir" && ac_dir=.
3019 $as_executable_p "$ac_dir/$ac_word" || continue
3020 ac_cv_prog_ac_ct_RANLIB="ranlib"
3021 echo "$as_me:3021: found $ac_dir/$ac_word" >&5
3025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3029 if test -n "$ac_ct_RANLIB"; then
3030 echo "$as_me:3030: result: $ac_ct_RANLIB" >&5
3031 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3033 echo "$as_me:3033: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3037 RANLIB=$ac_ct_RANLIB
3039 RANLIB="$ac_cv_prog_RANLIB"
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}ld; ac_word=$2
3045 echo "$as_me:3045: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_LD+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$LD"; then
3051 ac_cv_prog_LD="$LD" # Let the user override the test.
3053 ac_save_IFS=$IFS; IFS=$ac_path_separator
3055 for ac_dir in $ac_dummy; do
3057 test -z "$ac_dir" && ac_dir=.
3058 $as_executable_p "$ac_dir/$ac_word" || continue
3059 ac_cv_prog_LD="${ac_tool_prefix}ld"
3060 echo "$as_me:3060: found $ac_dir/$ac_word" >&5
3067 if test -n "$LD"; then
3068 echo "$as_me:3068: result: $LD" >&5
3069 echo "${ECHO_T}$LD" >&6
3071 echo "$as_me:3071: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3076 if test -z "$ac_cv_prog_LD"; then
3078 # Extract the first word of "ld", so it can be a program name with args.
3079 set dummy ld; ac_word=$2
3080 echo "$as_me:3080: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if test -n "$ac_ct_LD"; then
3086 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3088 ac_save_IFS=$IFS; IFS=$ac_path_separator
3090 for ac_dir in $ac_dummy; do
3092 test -z "$ac_dir" && ac_dir=.
3093 $as_executable_p "$ac_dir/$ac_word" || continue
3094 ac_cv_prog_ac_ct_LD="ld"
3095 echo "$as_me:3095: found $ac_dir/$ac_word" >&5
3099 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3102 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3103 if test -n "$ac_ct_LD"; then
3104 echo "$as_me:3104: result: $ac_ct_LD" >&5
3105 echo "${ECHO_T}$ac_ct_LD" >&6
3107 echo "$as_me:3107: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}ar; ac_word=$2
3119 echo "$as_me:3119: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$AR"; then
3125 ac_cv_prog_AR="$AR" # Let the user override the test.
3127 ac_save_IFS=$IFS; IFS=$ac_path_separator
3129 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 $as_executable_p "$ac_dir/$ac_word" || continue
3133 ac_cv_prog_AR="${ac_tool_prefix}ar"
3134 echo "$as_me:3134: found $ac_dir/$ac_word" >&5
3141 if test -n "$AR"; then
3142 echo "$as_me:3142: result: $AR" >&5
3143 echo "${ECHO_T}$AR" >&6
3145 echo "$as_me:3145: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3150 if test -z "$ac_cv_prog_AR"; then
3152 # Extract the first word of "ar", so it can be a program name with args.
3153 set dummy ar; ac_word=$2
3154 echo "$as_me:3154: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$ac_ct_AR"; then
3160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3162 ac_save_IFS=$IFS; IFS=$ac_path_separator
3164 for ac_dir in $ac_dummy; do
3166 test -z "$ac_dir" && ac_dir=.
3167 $as_executable_p "$ac_dir/$ac_word" || continue
3168 ac_cv_prog_ac_ct_AR="ar"
3169 echo "$as_me:3169: found $ac_dir/$ac_word" >&5
3173 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3177 if test -n "$ac_ct_AR"; then
3178 echo "$as_me:3178: result: $ac_ct_AR" >&5
3179 echo "${ECHO_T}$ac_ct_AR" >&6
3181 echo "$as_me:3181: result: no" >&5
3182 echo "${ECHO_T}no" >&6
3190 if test -n "$ac_tool_prefix"; then
3191 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3192 set dummy ${ac_tool_prefix}ar; ac_word=$2
3193 echo "$as_me:3193: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_AR+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if test -n "$AR"; then
3199 ac_cv_prog_AR="$AR" # Let the user override the test.
3201 ac_save_IFS=$IFS; IFS=$ac_path_separator
3203 for ac_dir in $ac_dummy; do
3205 test -z "$ac_dir" && ac_dir=.
3206 $as_executable_p "$ac_dir/$ac_word" || continue
3207 ac_cv_prog_AR="${ac_tool_prefix}ar"
3208 echo "$as_me:3208: found $ac_dir/$ac_word" >&5
3215 if test -n "$AR"; then
3216 echo "$as_me:3216: result: $AR" >&5
3217 echo "${ECHO_T}$AR" >&6
3219 echo "$as_me:3219: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3224 if test -z "$ac_cv_prog_AR"; then
3226 # Extract the first word of "ar", so it can be a program name with args.
3227 set dummy ar; ac_word=$2
3228 echo "$as_me:3228: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3230 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 if test -n "$ac_ct_AR"; then
3234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3236 ac_save_IFS=$IFS; IFS=$ac_path_separator
3238 for ac_dir in $ac_dummy; do
3240 test -z "$ac_dir" && ac_dir=.
3241 $as_executable_p "$ac_dir/$ac_word" || continue
3242 ac_cv_prog_ac_ct_AR="ar"
3243 echo "$as_me:3243: found $ac_dir/$ac_word" >&5
3247 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3251 if test -n "$ac_ct_AR"; then
3252 echo "$as_me:3252: result: $ac_ct_AR" >&5
3253 echo "${ECHO_T}$ac_ct_AR" >&6
3255 echo "$as_me:3255: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3264 echo "$as_me:3264: checking for options to update archives" >&5
3265 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3266 if test "${cf_cv_ar_flags+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 cf_cv_ar_flags=unknown
3271 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3274 # check if $ARFLAGS already contains this choice
3275 if test "x$ARFLAGS" != "x" ; then
3276 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3277 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3283 rm -f conftest.$ac_cv_objext
3286 cat >conftest.$ac_ext <<EOF
3287 #line 3287 "configure"
3288 int testdata[3] = { 123, 456, 789 };
3290 if { (eval echo "$as_me:3290: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
3293 echo "$as_me:3293: \$? = $ac_status" >&5
3294 (exit $ac_status); } ; then
3295 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3296 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3297 if test -f conftest.a ; then
3298 cf_cv_ar_flags=$cf_ar_flags
3302 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3304 echo "${as_me:-configure}:3304: testing cannot compile test-program ..." 1>&5
3309 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3312 echo "$as_me:3312: result: $cf_cv_ar_flags" >&5
3313 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3315 if test -n "$ARFLAGS" ; then
3316 if test -n "$cf_cv_ar_flags" ; then
3317 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3320 ARFLAGS=$cf_cv_ar_flags
3323 echo "$as_me:3323: checking for PATH separator" >&5
3324 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3325 case $cf_cv_system_name in
3326 (os2*) PATH_SEPARATOR=';' ;;
3327 (*) ${PATH_SEPARATOR:=':'} ;;
3330 echo "$as_me:3330: result: $PATH_SEPARATOR" >&5
3331 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3333 echo "$as_me:3333: checking if you have specified an install-prefix" >&5
3334 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3336 # Check whether --with-install-prefix or --without-install-prefix was given.
3337 if test "${with_install_prefix+set}" = set; then
3338 withval="$with_install_prefix"
3342 (*) DESTDIR="$withval"
3346 echo "$as_me:3346: result: $DESTDIR" >&5
3347 echo "${ECHO_T}$DESTDIR" >&6
3349 ###############################################################################
3351 # If we're cross-compiling, allow the user to override the tools and their
3352 # options. The configure script is oriented toward identifying the host
3353 # compiler, etc., but we need a build compiler to generate parts of the source.
3355 if test "$cross_compiling" = yes ; then
3357 # defaults that we might want to override
3358 : ${BUILD_CFLAGS:=''}
3359 : ${BUILD_CPPFLAGS:=''}
3360 : ${BUILD_LDFLAGS:=''}
3362 : ${BUILD_EXEEXT:='$x'}
3363 : ${BUILD_OBJEXT:='o'}
3365 # Check whether --with-build-cc or --without-build-cc was given.
3366 if test "${with_build_cc+set}" = set; then
3367 withval="$with_build_cc"
3370 for ac_prog in gcc cc cl
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; ac_word=$2
3374 echo "$as_me:3374: checking for $ac_word" >&5
3375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3376 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 if test -n "$BUILD_CC"; then
3380 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3382 ac_save_IFS=$IFS; IFS=$ac_path_separator
3384 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 $as_executable_p "$ac_dir/$ac_word" || continue
3388 ac_cv_prog_BUILD_CC="$ac_prog"
3389 echo "$as_me:3389: found $ac_dir/$ac_word" >&5
3395 BUILD_CC=$ac_cv_prog_BUILD_CC
3396 if test -n "$BUILD_CC"; then
3397 echo "$as_me:3397: result: $BUILD_CC" >&5
3398 echo "${ECHO_T}$BUILD_CC" >&6
3400 echo "$as_me:3400: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 test -n "$BUILD_CC" && break
3408 echo "$as_me:3408: checking for native build C compiler" >&5
3409 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3410 echo "$as_me:3410: result: $BUILD_CC" >&5
3411 echo "${ECHO_T}$BUILD_CC" >&6
3413 echo "$as_me:3413: checking for native build C preprocessor" >&5
3414 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3416 # Check whether --with-build-cpp or --without-build-cpp was given.
3417 if test "${with_build_cpp+set}" = set; then
3418 withval="$with_build_cpp"
3419 BUILD_CPP="$withval"
3421 BUILD_CPP='${BUILD_CC} -E'
3423 echo "$as_me:3423: result: $BUILD_CPP" >&5
3424 echo "${ECHO_T}$BUILD_CPP" >&6
3426 echo "$as_me:3426: checking for native build C flags" >&5
3427 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3429 # Check whether --with-build-cflags or --without-build-cflags was given.
3430 if test "${with_build_cflags+set}" = set; then
3431 withval="$with_build_cflags"
3432 BUILD_CFLAGS="$withval"
3434 echo "$as_me:3434: result: $BUILD_CFLAGS" >&5
3435 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3437 echo "$as_me:3437: checking for native build C preprocessor-flags" >&5
3438 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3440 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3441 if test "${with_build_cppflags+set}" = set; then
3442 withval="$with_build_cppflags"
3443 BUILD_CPPFLAGS="$withval"
3445 echo "$as_me:3445: result: $BUILD_CPPFLAGS" >&5
3446 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3448 echo "$as_me:3448: checking for native build linker-flags" >&5
3449 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3451 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3452 if test "${with_build_ldflags+set}" = set; then
3453 withval="$with_build_ldflags"
3454 BUILD_LDFLAGS="$withval"
3456 echo "$as_me:3456: result: $BUILD_LDFLAGS" >&5
3457 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3459 echo "$as_me:3459: checking for native build linker-libraries" >&5
3460 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3462 # Check whether --with-build-libs or --without-build-libs was given.
3463 if test "${with_build_libs+set}" = set; then
3464 withval="$with_build_libs"
3465 BUILD_LIBS="$withval"
3467 echo "$as_me:3467: result: $BUILD_LIBS" >&5
3468 echo "${ECHO_T}$BUILD_LIBS" >&6
3470 # this assumes we're on Unix.
3474 : ${BUILD_CC:='${CC}'}
3476 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3477 { { echo "$as_me:3477: error: Cross-build requires two compilers.
3478 Use --with-build-cc to specify the native compiler." >&5
3479 echo "$as_me: error: Cross-build requires two compilers.
3480 Use --with-build-cc to specify the native compiler." >&2;}
3481 { (exit 1); exit 1; }; }
3485 : ${BUILD_CC:='${CC}'}
3486 : ${BUILD_CPP:='${CPP}'}
3487 : ${BUILD_CFLAGS:='${CFLAGS}'}
3488 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3489 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3490 : ${BUILD_LIBS:='${LIBS}'}
3491 : ${BUILD_EXEEXT:='$x'}
3492 : ${BUILD_OBJEXT:='o'}
3495 ###############################################################################
3497 ### Options to allow the user to specify the set of libraries which are used.
3498 ### Use "--without-normal --with-shared" to allow the default model to be
3499 ### shared, for example.
3502 echo "$as_me:3502: checking if you want to build shared C-objects" >&5
3503 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3505 # Check whether --with-shared or --without-shared was given.
3506 if test "${with_shared+set}" = set; then
3507 withval="$with_shared"
3508 with_shared=$withval
3512 echo "$as_me:3512: result: $with_shared" >&5
3513 echo "${ECHO_T}$with_shared" >&6
3514 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3516 echo "$as_me:3516: checking for specified models" >&5
3517 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3518 test -z "$cf_list_models" && cf_list_models=normal
3519 echo "$as_me:3519: result: $cf_list_models" >&5
3520 echo "${ECHO_T}$cf_list_models" >&6
3522 ### Use the first model as the default, and save its suffix for use in building
3523 ### up test-applications.
3524 echo "$as_me:3524: checking for default model" >&5
3525 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3526 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3527 echo "$as_me:3527: result: $DFT_LWR_MODEL" >&5
3528 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3530 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3532 echo "$as_me:3532: checking for specific curses-directory" >&5
3533 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3535 # Check whether --with-curses-dir or --without-curses-dir was given.
3536 if test "${with_curses_dir+set}" = set; then
3537 withval="$with_curses_dir"
3538 cf_cv_curses_dir=$withval
3542 echo "$as_me:3542: result: $cf_cv_curses_dir" >&5
3543 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3545 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3548 if test "x$prefix" != xNONE; then
3549 cf_path_syntax="$prefix"
3551 cf_path_syntax="$ac_default_prefix"
3559 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3561 (.\${*prefix}*|.\${*dir}*)
3562 eval withval="$withval"
3565 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3570 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3573 { { echo "$as_me:3573: error: expected a pathname, not \"$withval\"" >&5
3574 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3575 { (exit 1); exit 1; }; }
3579 if test -d "$cf_cv_curses_dir"
3582 if test -n "$cf_cv_curses_dir/include" ; then
3583 for cf_add_incdir in $cf_cv_curses_dir/include
3585 while test $cf_add_incdir != /usr/include
3587 if test -d $cf_add_incdir
3590 if test -n "$CFLAGS$CPPFLAGS" ; then
3591 # a loop is needed to ensure we can add subdirs of existing dirs
3592 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3593 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3594 cf_have_incdir=yes; break
3599 if test "$cf_have_incdir" = no ; then
3600 if test "$cf_add_incdir" = /usr/local/include ; then
3601 if test "$GCC" = yes
3603 cf_save_CPPFLAGS=$CPPFLAGS
3604 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3605 cat >conftest.$ac_ext <<_ACEOF
3606 #line 3606 "configure"
3607 #include "confdefs.h"
3617 rm -f conftest.$ac_objext
3618 if { (eval echo "$as_me:3618: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>&5
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:3624: \"$ac_try\"") >&5
3627 echo "$as_me:3627: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3636 CPPFLAGS=$cf_save_CPPFLAGS
3641 if test "$cf_have_incdir" = no ; then
3642 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3644 echo "${as_me:-configure}:3644: testing adding $cf_add_incdir to include-path ..." 1>&5
3646 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3648 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3649 test "$cf_top_incdir" = "$cf_add_incdir" && break
3650 cf_add_incdir="$cf_top_incdir"
3661 if test -n "$cf_cv_curses_dir/lib" ; then
3662 for cf_add_libdir in $cf_cv_curses_dir/lib
3664 if test $cf_add_libdir = /usr/lib ; then
3666 elif test -d $cf_add_libdir
3669 if test -n "$LDFLAGS$LIBS" ; then
3670 # a loop is needed to ensure we can add subdirs of existing dirs
3671 for cf_test_libdir in $LDFLAGS $LIBS ; do
3672 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3673 cf_have_libdir=yes; break
3677 if test "$cf_have_libdir" = no ; then
3678 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3680 echo "${as_me:-configure}:3680: testing adding $cf_add_libdir to library-path ..." 1>&5
3682 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3691 cf_ncuconfig_root=ncurses
3692 cf_have_ncuconfig=no
3694 if test "x${PKG_CONFIG:=none}" != xnone; then
3695 echo "$as_me:3695: checking pkg-config for $cf_ncuconfig_root" >&5
3696 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
3697 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
3698 echo "$as_me:3698: result: yes" >&5
3699 echo "${ECHO_T}yes" >&6
3701 echo "$as_me:3701: checking if the $cf_ncuconfig_root package files work" >&5
3702 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
3703 cf_have_ncuconfig=unknown
3705 cf_save_CPPFLAGS="$CPPFLAGS"
3706 cf_save_LIBS="$LIBS"
3708 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
3710 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
3711 # Filter out duplicates - this happens with badly-designed ".pc" files...
3712 for cf_add_1lib in $LIBS
3714 for cf_add_2lib in $cf_add_libs
3716 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3722 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line 3727 "configure"
3728 #include "confdefs.h"
3729 #include <${cf_cv_ncurses_header:-curses.h}>
3733 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
3738 rm -f conftest.$ac_objext conftest$ac_exeext
3739 if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
3740 (eval $ac_link) 2>&5
3742 echo "$as_me:3742: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -s conftest$ac_exeext'
3745 { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3748 echo "$as_me:3748: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 if test "$cross_compiling" = yes; then
3751 cf_have_ncuconfig=maybe
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line 3754 "configure"
3755 #include "confdefs.h"
3756 #include <${cf_cv_ncurses_header:-curses.h}>
3758 { char *xx = curses_version(); return (xx == 0); }
3760 rm -f conftest$ac_exeext
3761 if { (eval echo "$as_me:3761: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>&5
3764 echo "$as_me:3764: \$? = $ac_status" >&5
3765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3766 { (eval echo "$as_me:3766: \"$ac_try\"") >&5
3769 echo "$as_me:3769: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 cf_have_ncuconfig=yes
3773 echo "$as_me: program exited with status $ac_status" >&5
3774 echo "$as_me: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 cf_have_ncuconfig=no
3778 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 cf_have_ncuconfig=no
3785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3786 echo "$as_me:3786: result: $cf_have_ncuconfig" >&5
3787 echo "${ECHO_T}$cf_have_ncuconfig" >&6
3788 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
3789 if test "$cf_have_ncuconfig" != "yes"
3791 CPPFLAGS="$cf_save_CPPFLAGS"
3792 LIBS="$cf_save_LIBS"
3793 NCURSES_CONFIG_PKG=none
3796 cat >>confdefs.h <<\EOF
3800 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
3804 echo "$as_me:3804: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 NCURSES_CONFIG_PKG=none
3809 NCURSES_CONFIG_PKG=none
3812 if test "x$cf_have_ncuconfig" = "xno"; then
3813 echo "Looking for ${cf_ncuconfig_root}-config"
3815 if test -n "$ac_tool_prefix"; then
3816 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
3818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3820 echo "$as_me:3820: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 if test -n "$NCURSES_CONFIG"; then
3826 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
3828 ac_save_IFS=$IFS; IFS=$ac_path_separator
3830 for ac_dir in $ac_dummy; do
3832 test -z "$ac_dir" && ac_dir=.
3833 $as_executable_p "$ac_dir/$ac_word" || continue
3834 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
3835 echo "$as_me:3835: found $ac_dir/$ac_word" >&5
3841 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
3842 if test -n "$NCURSES_CONFIG"; then
3843 echo "$as_me:3843: result: $NCURSES_CONFIG" >&5
3844 echo "${ECHO_T}$NCURSES_CONFIG" >&6
3846 echo "$as_me:3846: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3850 test -n "$NCURSES_CONFIG" && break
3853 if test -z "$NCURSES_CONFIG"; then
3854 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
3855 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 echo "$as_me:3859: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test -n "$ac_ct_NCURSES_CONFIG"; then
3865 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
3867 ac_save_IFS=$IFS; IFS=$ac_path_separator
3869 for ac_dir in $ac_dummy; do
3871 test -z "$ac_dir" && ac_dir=.
3872 $as_executable_p "$ac_dir/$ac_word" || continue
3873 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
3874 echo "$as_me:3874: found $ac_dir/$ac_word" >&5
3880 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
3881 if test -n "$ac_ct_NCURSES_CONFIG"; then
3882 echo "$as_me:3882: result: $ac_ct_NCURSES_CONFIG" >&5
3883 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
3885 echo "$as_me:3885: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3889 test -n "$ac_ct_NCURSES_CONFIG" && break
3891 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
3893 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
3896 if test "$NCURSES_CONFIG" != none ; then
3898 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
3900 cf_add_libs="`$NCURSES_CONFIG --libs`"
3901 # Filter out duplicates - this happens with badly-designed ".pc" files...
3902 for cf_add_1lib in $LIBS
3904 for cf_add_2lib in $cf_add_libs
3906 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3912 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3916 # even with config script, some packages use no-override for curses.h
3918 echo "$as_me:3918: checking if we have identified curses headers" >&5
3919 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
3920 if test "${cf_cv_ncurses_header+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 cf_cv_ncurses_header=none
3926 ncurses.h ncurses/ncurses.h \
3927 curses.h ncurses/curses.h
3929 cat >conftest.$ac_ext <<_ACEOF
3930 #line 3930 "configure"
3931 #include "confdefs.h"
3932 #include <${cf_header}>