2 # From configure.in Revision: 1.41 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20120811.
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"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 # Obsolete; use --without-fp.
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir=$ac_optarg ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix=$ac_optarg ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix=$ac_optarg ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name=$ac_optarg ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 sbindir=$ac_optarg ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 sharedstatedir=$ac_optarg ;;
368 -site | --site | --sit)
370 -site=* | --site=* | --sit=*)
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir=$ac_optarg ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target_alias ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target_alias=$ac_optarg ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers | -V)
397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid package name: $ac_package" >&2
401 { (exit 1); exit 1; }; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
407 eval "with_$ac_package='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid package name: $ac_package" >&2
414 { (exit 1); exit 1; }; }
415 ac_package=`echo $ac_package | sed 's/-/_/g'`
416 eval "with_$ac_package=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes=$ac_optarg ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries=$ac_optarg ;;
436 -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438 { (exit 1); exit 1; }; }
442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446 { (exit 1); exit 1; }; }
447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448 eval "$ac_envvar='$ac_optarg'"
452 # FIXME: should be removed in autoconf 3.0.
453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
462 if test -n "$ac_prev"; then
463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464 { echo "$as_me: error: missing argument to $ac_option" >&2
465 { (exit 1); exit 1; }; }
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
471 eval ac_val=$`echo $ac_var`
473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475 { (exit 1); exit 1; }; };;
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481 localstatedir libdir includedir oldincludedir infodir mandir
483 eval ac_val=$`echo $ac_var`
485 [\\/$]* | ?:[\\/]* ) ;;
486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487 { (exit 1); exit 1; }; };;
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499 if test "x$build_alias" = x; then
500 cross_compiling=maybe
501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502 If a cross compiler is detected then cross compile mode will be used." >&2
503 elif test "x$build_alias" != "x$host_alias"; then
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
511 test "$silent" = yes && exec 6>/dev/null
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530 { (exit 1); exit 1; }; }
532 { echo "$as_me: error: cannot find sources in $srcdir" >&2
533 { (exit 1); exit 1; }; }
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
571 # Report the --help message.
573 if test "$ac_init_help" = "long"; then
574 # Omit some internal or obsolete options to make the list less imposing.
575 # This message is too long to be a string in the A/UX 3.1 sh.
577 \`configure' configures this package to adapt to many kinds of systems.
579 Usage: $0 [OPTION]... [VAR=VALUE]...
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE. See below for descriptions of some of the useful variables.
584 Defaults for the options are specified in brackets.
587 -h, --help display this help and exit
588 --help=short display options specific to this package
589 --help=recursive display the short help of all the included packages
590 -V, --version display version information and exit
591 -q, --quiet, --silent do not print \`checking...' messages
592 --cache-file=FILE cache test results in FILE [disabled]
593 -C, --config-cache alias for \`--cache-file=config.cache'
594 -n, --no-create do not create output files
595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
600 Installation directories:
601 --prefix=PREFIX install architecture-independent files in PREFIX
603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
611 For better control, use the options below.
613 Fine tuning of the installation directories:
614 --bindir=DIR user executables [EPREFIX/bin]
615 --sbindir=DIR system admin executables [EPREFIX/sbin]
616 --libexecdir=DIR program executables [EPREFIX/libexec]
617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
622 --libdir=DIR object code libraries [EPREFIX/lib]
623 --includedir=DIR C header files [PREFIX/include]
624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
625 --infodir=DIR info documentation [DATAROOTDIR/info]
626 --mandir=DIR man documentation [DATAROOTDIR/man]
632 --program-prefix=PREFIX prepend PREFIX to installed program names
633 --program-suffix=SUFFIX append SUFFIX to installed program names
634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
637 --build=BUILD configure for building on BUILD [guessed]
638 --host=HOST build programs to run on HOST [BUILD]
639 --target=TARGET configure for building compilers for TARGET [HOST]
643 if test -n "$ac_init_help"; then
648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
655 --with-system-type=XXX test: override derived host system-type
656 --with-pkg-config{=path} enable/disable use of pkg-config
657 --with-pkg-config-libdir=XXX use given directory for installing pc-files
658 --enable-pc-files generate and install .pc files for pkg-config
659 --without-tests suppress build with test-programs
660 --enable-mixed-case tic should assume mixed-case filenames
661 --with-install-prefix prefixes actual install-location ($DESTDIR)
662 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
663 --with-build-cc=XXX the build C compiler ($BUILD_CC)
664 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
665 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
666 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
667 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
668 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
669 Options to Specify the Libraries Built/Used:
670 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
671 --enable-widec compile with wide-char/UTF-8 code
672 --with-curses-dir=DIR directory in which (n)curses is installed
673 --with-lib-prefix override library-prefix
674 --with-shlib-version=X Specify rel or abi version for shared libs
675 --enable-rpath-link link sample programs with rpath option
676 Fine-Tuning Your Configuration:
677 --enable-broken_linker compile with broken-linker support code
678 --disable-largefile omit support for large files
679 --with-rcs-ids compile-in RCS identifiers
681 --disable-ext-funcs disable function-extensions
682 --enable-const compile with extra/non-standard const
684 --without-develop disable development options
686 --with-pthread use POSIX thread library
687 --enable-weak-symbols enable weak-symbols for pthreads
688 --enable-reentrant compile with experimental reentrant code
689 --with-wrap-prefix=XXX override prefix used for public variables
690 Testing/development Options:
691 --disable-echo display "compiling" commands
692 --enable-warnings build: turn on GCC compiler warnings
693 --enable-assertions test: turn on generation of assertion code
694 --enable-expanded test: generate functions for certain macros
695 --disable-macros test: use functions rather than macros
696 --with-trace test: add trace() function to all models of ncurses
697 Ada95 Binding Options:
698 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
699 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
700 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
701 --with-ada-sharedlib=XX build Ada95 shared-library
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20120811. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1003 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1004 if test -f $ac_dir/install-sh; then
1006 ac_install_sh="$ac_aux_dir/install-sh -c"
1008 elif test -f $ac_dir/install.sh; then
1010 ac_install_sh="$ac_aux_dir/install.sh -c"
1012 elif test -f $ac_dir/shtool; then
1014 ac_install_sh="$ac_aux_dir/shtool install -c"
1018 if test -z "$ac_aux_dir"; then
1019 { { echo "$as_me:1019: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1020 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1021 { (exit 1); exit 1; }; }
1023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1025 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1027 # Make sure we can run config.sub.
1028 $ac_config_sub sun4 >/dev/null 2>&1 ||
1029 { { echo "$as_me:1029: error: cannot run $ac_config_sub" >&5
1030 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1031 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: checking build system type" >&5
1034 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1035 if test "${ac_cv_build+set}" = set; then
1036 echo $ECHO_N "(cached) $ECHO_C" >&6
1038 ac_cv_build_alias=$build_alias
1039 test -z "$ac_cv_build_alias" &&
1040 ac_cv_build_alias=`$ac_config_guess`
1041 test -z "$ac_cv_build_alias" &&
1042 { { echo "$as_me:1042: error: cannot guess build type; you must specify one" >&5
1043 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1044 { (exit 1); exit 1; }; }
1045 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1046 { { echo "$as_me:1046: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1047 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1048 { (exit 1); exit 1; }; }
1051 echo "$as_me:1051: result: $ac_cv_build" >&5
1052 echo "${ECHO_T}$ac_cv_build" >&6
1054 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$as_me:1058: checking host system type" >&5
1059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1060 if test "${ac_cv_host+set}" = set; then
1061 echo $ECHO_N "(cached) $ECHO_C" >&6
1063 ac_cv_host_alias=$host_alias
1064 test -z "$ac_cv_host_alias" &&
1065 ac_cv_host_alias=$ac_cv_build_alias
1066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1067 { { echo "$as_me:1067: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1069 { (exit 1); exit 1; }; }
1072 echo "$as_me:1072: result: $ac_cv_host" >&5
1073 echo "${ECHO_T}$ac_cv_host" >&6
1075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1080 echo "$as_me:1080: checking target system type" >&5
1081 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1082 if test "${ac_cv_target+set}" = set; then
1083 echo $ECHO_N "(cached) $ECHO_C" >&6
1085 ac_cv_target_alias=$target_alias
1086 test "x$ac_cv_target_alias" = "x" &&
1087 ac_cv_target_alias=$ac_cv_host_alias
1088 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1089 { { echo "$as_me:1089: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1090 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1091 { (exit 1); exit 1; }; }
1094 echo "$as_me:1094: result: $ac_cv_target" >&5
1095 echo "${ECHO_T}$ac_cv_target" >&6
1096 target=$ac_cv_target
1097 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1098 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1099 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 # The aliases save the names the user supplied, while $host etc.
1102 # will get canonicalized.
1103 test -n "$target_alias" &&
1104 test "$program_prefix$program_suffix$program_transform_name" = \
1106 program_prefix=${target_alias}-
1107 system_name="$host_os"
1109 system_name="`(uname -s -r) 2>/dev/null`"
1110 if test -z "$system_name" ; then
1111 system_name="`(hostname) 2>/dev/null`"
1114 test -n "$system_name" && cat >>confdefs.h <<EOF
1115 #define SYSTEM_NAME "$system_name"
1118 if test "${cf_cv_system_name+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1121 cf_cv_system_name="$system_name"
1124 test -z "$system_name" && system_name="$cf_cv_system_name"
1125 test -n "$cf_cv_system_name" && echo "$as_me:1125: result: Configuring for $cf_cv_system_name" >&5
1126 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1128 if test ".$system_name" != ".$cf_cv_system_name" ; then
1129 echo "$as_me:1129: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1130 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1131 { { echo "$as_me:1131: error: \"Please remove config.cache and try again.\"" >&5
1132 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1133 { (exit 1); exit 1; }; }
1136 # Check whether --with-system-type or --without-system-type was given.
1137 if test "${with_system_type+set}" = set; then
1138 withval="$with_system_type"
1139 { echo "$as_me:1139: WARNING: overriding system type to $withval" >&5
1140 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1141 cf_cv_system_name=$withval
1144 ### Save the given $CFLAGS to allow user-override.
1145 cf_user_CFLAGS="$CFLAGS"
1147 ### Default install-location
1149 echo "$as_me:1149: checking for prefix" >&5
1150 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1151 if test "x$prefix" = "xNONE" ; then
1152 case "$cf_cv_system_name" in
1153 # non-vendor systems don't have a conflict
1154 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1157 *) prefix=$ac_default_prefix
1161 echo "$as_me:1161: result: $prefix" >&5
1162 echo "${ECHO_T}$prefix" >&6
1164 if test "x$prefix" = "xNONE" ; then
1165 echo "$as_me:1165: checking for default include-directory" >&5
1166 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1167 test -n "$verbose" && echo 1>&6
1170 $includedir/ncurses \
1172 $prefix/include/ncurses \
1173 /usr/local/include \
1174 /usr/local/include/ncurses \
1176 /usr/include/ncurses
1178 cf_dir=`eval echo $cf_symbol`
1179 if test -f $cf_dir/curses.h ; then
1180 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1181 includedir="$cf_symbol"
1182 test -n "$verbose" && echo $ac_n " found " 1>&6
1186 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1188 echo "$as_me:1188: result: $includedir" >&5
1189 echo "${ECHO_T}$includedir" >&6
1192 ### Checks for programs.
1194 ac_cpp='$CPP $CPPFLAGS'
1195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1198 ac_main_return=return
1199 if test -n "$ac_tool_prefix"; then
1200 for ac_prog in gnatgcc gcc cc
1202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1204 echo "$as_me:1204: checking for $ac_word" >&5
1205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1206 if test "${ac_cv_prog_CC+set}" = set; then
1207 echo $ECHO_N "(cached) $ECHO_C" >&6
1209 if test -n "$CC"; then
1210 ac_cv_prog_CC="$CC" # Let the user override the test.
1212 ac_save_IFS=$IFS; IFS=$ac_path_separator
1214 for ac_dir in $ac_dummy; do
1216 test -z "$ac_dir" && ac_dir=.
1217 $as_executable_p "$ac_dir/$ac_word" || continue
1218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1219 echo "$as_me:1219: found $ac_dir/$ac_word" >&5
1226 if test -n "$CC"; then
1227 echo "$as_me:1227: result: $CC" >&5
1228 echo "${ECHO_T}$CC" >&6
1230 echo "$as_me:1230: result: no" >&5
1231 echo "${ECHO_T}no" >&6
1234 test -n "$CC" && break
1237 if test -z "$CC"; then
1239 for ac_prog in gnatgcc gcc cc
1241 # Extract the first word of "$ac_prog", so it can be a program name with args.
1242 set dummy $ac_prog; ac_word=$2
1243 echo "$as_me:1243: checking for $ac_word" >&5
1244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 if test -n "$ac_ct_CC"; then
1249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1251 ac_save_IFS=$IFS; IFS=$ac_path_separator
1253 for ac_dir in $ac_dummy; do
1255 test -z "$ac_dir" && ac_dir=.
1256 $as_executable_p "$ac_dir/$ac_word" || continue
1257 ac_cv_prog_ac_ct_CC="$ac_prog"
1258 echo "$as_me:1258: found $ac_dir/$ac_word" >&5
1264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1265 if test -n "$ac_ct_CC"; then
1266 echo "$as_me:1266: result: $ac_ct_CC" >&5
1267 echo "${ECHO_T}$ac_ct_CC" >&6
1269 echo "$as_me:1269: result: no" >&5
1270 echo "${ECHO_T}no" >&6
1273 test -n "$ac_ct_CC" && break
1279 test -z "$CC" && { { echo "$as_me:1279: error: no acceptable cc found in \$PATH" >&5
1280 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1281 { (exit 1); exit 1; }; }
1283 # Provide some information about the compiler.
1284 echo "$as_me:1284:" \
1285 "checking for C compiler version" >&5
1286 ac_compiler=`set X $ac_compile; echo $2`
1287 { (eval echo "$as_me:1287: \"$ac_compiler --version </dev/null >&5\"") >&5
1288 (eval $ac_compiler --version </dev/null >&5) 2>&5
1290 echo "$as_me:1290: \$? = $ac_status" >&5
1291 (exit $ac_status); }
1292 { (eval echo "$as_me:1292: \"$ac_compiler -v </dev/null >&5\"") >&5
1293 (eval $ac_compiler -v </dev/null >&5) 2>&5
1295 echo "$as_me:1295: \$? = $ac_status" >&5
1296 (exit $ac_status); }
1297 { (eval echo "$as_me:1297: \"$ac_compiler -V </dev/null >&5\"") >&5
1298 (eval $ac_compiler -V </dev/null >&5) 2>&5
1300 echo "$as_me:1300: \$? = $ac_status" >&5
1301 (exit $ac_status); }
1303 cat >conftest.$ac_ext <<_ACEOF
1304 #line 1304 "configure"
1305 #include "confdefs.h"
1315 ac_clean_files_save=$ac_clean_files
1316 ac_clean_files="$ac_clean_files a.out a.exe"
1317 # Try to create an executable without -o first, disregard a.out.
1318 # It will help us diagnose broken compilers, and finding out an intuition
1320 echo "$as_me:1320: checking for C compiler default output" >&5
1321 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1322 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1323 if { (eval echo "$as_me:1323: \"$ac_link_default\"") >&5
1324 (eval $ac_link_default) 2>&5
1326 echo "$as_me:1326: \$? = $ac_status" >&5
1327 (exit $ac_status); }; then
1328 # Find the output, starting from the most likely. This scheme is
1329 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1331 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1332 ls a.out conftest 2>/dev/null;
1333 ls a.* conftest.* 2>/dev/null`; do
1335 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1336 a.out ) # We found the default executable, but exeext='' is most
1339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1340 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1347 echo "$as_me: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1349 { { echo "$as_me:1349: error: C compiler cannot create executables" >&5
1350 echo "$as_me: error: C compiler cannot create executables" >&2;}
1351 { (exit 77); exit 77; }; }
1354 ac_exeext=$ac_cv_exeext
1355 echo "$as_me:1355: result: $ac_file" >&5
1356 echo "${ECHO_T}$ac_file" >&6
1358 # Check the compiler produces executables we can run. If not, either
1359 # the compiler is broken, or we cross compile.
1360 echo "$as_me:1360: checking whether the C compiler works" >&5
1361 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1362 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1363 # If not cross compiling, check that we can run a simple program.
1364 if test "$cross_compiling" != yes; then
1365 if { ac_try='./$ac_file'
1366 { (eval echo "$as_me:1366: \"$ac_try\"") >&5
1369 echo "$as_me:1369: \$? = $ac_status" >&5
1370 (exit $ac_status); }; }; then
1373 if test "$cross_compiling" = maybe; then
1376 { { echo "$as_me:1376: error: cannot run C compiled programs.
1377 If you meant to cross compile, use \`--host'." >&5
1378 echo "$as_me: error: cannot run C compiled programs.
1379 If you meant to cross compile, use \`--host'." >&2;}
1380 { (exit 1); exit 1; }; }
1384 echo "$as_me:1384: result: yes" >&5
1385 echo "${ECHO_T}yes" >&6
1387 rm -f a.out a.exe conftest$ac_cv_exeext
1388 ac_clean_files=$ac_clean_files_save
1389 # Check the compiler produces executables we can run. If not, either
1390 # the compiler is broken, or we cross compile.
1391 echo "$as_me:1391: checking whether we are cross compiling" >&5
1392 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1393 echo "$as_me:1393: result: $cross_compiling" >&5
1394 echo "${ECHO_T}$cross_compiling" >&6
1396 echo "$as_me:1396: checking for executable suffix" >&5
1397 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1398 if { (eval echo "$as_me:1398: \"$ac_link\"") >&5
1399 (eval $ac_link) 2>&5
1401 echo "$as_me:1401: \$? = $ac_status" >&5
1402 (exit $ac_status); }; then
1403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1404 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1405 # work properly (i.e., refer to `conftest.exe'), while it won't with
1407 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1409 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1417 { { echo "$as_me:1417: error: cannot compute EXEEXT: cannot compile and link" >&5
1418 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1419 { (exit 1); exit 1; }; }
1422 rm -f conftest$ac_cv_exeext
1423 echo "$as_me:1423: result: $ac_cv_exeext" >&5
1424 echo "${ECHO_T}$ac_cv_exeext" >&6
1426 rm -f conftest.$ac_ext
1427 EXEEXT=$ac_cv_exeext
1429 echo "$as_me:1429: checking for object suffix" >&5
1430 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1431 if test "${ac_cv_objext+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 cat >conftest.$ac_ext <<_ACEOF
1435 #line 1435 "configure"
1436 #include "confdefs.h"
1446 rm -f conftest.o conftest.obj
1447 if { (eval echo "$as_me:1447: \"$ac_compile\"") >&5
1448 (eval $ac_compile) 2>&5
1450 echo "$as_me:1450: \$? = $ac_status" >&5
1451 (exit $ac_status); }; then
1452 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1454 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1460 echo "$as_me: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1462 { { echo "$as_me:1462: error: cannot compute OBJEXT: cannot compile" >&5
1463 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1464 { (exit 1); exit 1; }; }
1467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1469 echo "$as_me:1469: result: $ac_cv_objext" >&5
1470 echo "${ECHO_T}$ac_cv_objext" >&6
1471 OBJEXT=$ac_cv_objext
1473 echo "$as_me:1473: checking whether we are using the GNU C compiler" >&5
1474 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 cat >conftest.$ac_ext <<_ACEOF
1479 #line 1479 "configure"
1480 #include "confdefs.h"
1493 rm -f conftest.$ac_objext
1494 if { (eval echo "$as_me:1494: \"$ac_compile\"") >&5
1495 (eval $ac_compile) 2>&5
1497 echo "$as_me:1497: \$? = $ac_status" >&5
1498 (exit $ac_status); } &&
1499 { ac_try='test -s conftest.$ac_objext'
1500 { (eval echo "$as_me:1500: \"$ac_try\"") >&5
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit $ac_status); }; }; then
1507 echo "$as_me: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1511 rm -f conftest.$ac_objext conftest.$ac_ext
1512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1515 echo "$as_me:1515: result: $ac_cv_c_compiler_gnu" >&5
1516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1517 GCC=`test $ac_compiler_gnu = yes && echo yes`
1518 ac_test_CFLAGS=${CFLAGS+set}
1519 ac_save_CFLAGS=$CFLAGS
1521 echo "$as_me:1521: checking whether $CC accepts -g" >&5
1522 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1523 if test "${ac_cv_prog_cc_g+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 cat >conftest.$ac_ext <<_ACEOF
1527 #line 1527 "configure"
1528 #include "confdefs.h"
1538 rm -f conftest.$ac_objext
1539 if { (eval echo "$as_me:1539: \"$ac_compile\"") >&5
1540 (eval $ac_compile) 2>&5
1542 echo "$as_me:1542: \$? = $ac_status" >&5
1543 (exit $ac_status); } &&
1544 { ac_try='test -s conftest.$ac_objext'
1545 { (eval echo "$as_me:1545: \"$ac_try\"") >&5
1548 echo "$as_me:1548: \$? = $ac_status" >&5
1549 (exit $ac_status); }; }; then
1552 echo "$as_me: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1556 rm -f conftest.$ac_objext conftest.$ac_ext
1558 echo "$as_me:1558: result: $ac_cv_prog_cc_g" >&5
1559 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1560 if test "$ac_test_CFLAGS" = set; then
1561 CFLAGS=$ac_save_CFLAGS
1562 elif test $ac_cv_prog_cc_g = yes; then
1563 if test "$GCC" = yes; then
1569 if test "$GCC" = yes; then
1575 # Some people use a C++ compiler to compile C. Since we use `exit',
1576 # in C++ we need to declare it. In case someone uses the same compiler
1577 # for both compiling C and C++ we need to have the C++ compiler decide
1578 # the declaration of exit, since it's the most demanding environment.
1579 cat >conftest.$ac_ext <<_ACEOF
1584 rm -f conftest.$ac_objext
1585 if { (eval echo "$as_me:1585: \"$ac_compile\"") >&5
1586 (eval $ac_compile) 2>&5
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); } &&
1590 { ac_try='test -s conftest.$ac_objext'
1591 { (eval echo "$as_me:1591: \"$ac_try\"") >&5
1594 echo "$as_me:1594: \$? = $ac_status" >&5
1595 (exit $ac_status); }; }; then
1596 for ac_declaration in \
1598 '#include <stdlib.h>' \
1599 'extern "C" void std::exit (int) throw (); using std::exit;' \
1600 'extern "C" void std::exit (int); using std::exit;' \
1601 'extern "C" void exit (int) throw ();' \
1602 'extern "C" void exit (int);' \
1605 cat >conftest.$ac_ext <<_ACEOF
1606 #line 1606 "configure"
1607 #include "confdefs.h"
1618 rm -f conftest.$ac_objext
1619 if { (eval echo "$as_me:1619: \"$ac_compile\"") >&5
1620 (eval $ac_compile) 2>&5
1622 echo "$as_me:1622: \$? = $ac_status" >&5
1623 (exit $ac_status); } &&
1624 { ac_try='test -s conftest.$ac_objext'
1625 { (eval echo "$as_me:1625: \"$ac_try\"") >&5
1628 echo "$as_me:1628: \$? = $ac_status" >&5
1629 (exit $ac_status); }; }; then
1632 echo "$as_me: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1636 rm -f conftest.$ac_objext conftest.$ac_ext
1637 cat >conftest.$ac_ext <<_ACEOF
1638 #line 1638 "configure"
1639 #include "confdefs.h"
1649 rm -f conftest.$ac_objext
1650 if { (eval echo "$as_me:1650: \"$ac_compile\"") >&5
1651 (eval $ac_compile) 2>&5
1653 echo "$as_me:1653: \$? = $ac_status" >&5
1654 (exit $ac_status); } &&
1655 { ac_try='test -s conftest.$ac_objext'
1656 { (eval echo "$as_me:1656: \"$ac_try\"") >&5
1659 echo "$as_me:1659: \$? = $ac_status" >&5
1660 (exit $ac_status); }; }; then
1663 echo "$as_me: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 rm -f conftest.$ac_objext conftest.$ac_ext
1669 if test -n "$ac_declaration"; then
1670 echo '#ifdef __cplusplus' >>confdefs.h
1671 echo $ac_declaration >>confdefs.h
1672 echo '#endif' >>confdefs.h
1676 echo "$as_me: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1679 rm -f conftest.$ac_objext conftest.$ac_ext
1681 ac_cpp='$CPP $CPPFLAGS'
1682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1685 ac_main_return=return
1688 if test "$GCC" = yes ; then
1689 echo "$as_me:1689: checking version of $CC" >&5
1690 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1691 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1692 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1693 echo "$as_me:1693: result: $GCC_VERSION" >&5
1694 echo "${ECHO_T}$GCC_VERSION" >&6
1698 ac_cpp='$CPP $CPPFLAGS'
1699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702 ac_main_return=return
1703 echo "$as_me:1703: checking how to run the C preprocessor" >&5
1704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1705 # On Suns, sometimes $CPP names a directory.
1706 if test -n "$CPP" && test -d "$CPP"; then
1709 if test -z "$CPP"; then
1710 if test "${ac_cv_prog_CPP+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 # Double quotes because CPP needs to be expanded
1714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1717 for ac_c_preproc_warn_flag in '' yes
1719 # Use a header file that comes with gcc, so configuring glibc
1720 # with a fresh cross-compiler works.
1721 # On the NeXT, cc -E runs the code through the compiler's parser,
1722 # not just through cpp. "Syntax error" is here to catch this case.
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1729 if { (eval echo "$as_me:1729: \"$ac_cpp conftest.$ac_ext\"") >&5
1730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1732 egrep -v '^ *\+' conftest.er1 >conftest.err
1734 cat conftest.err >&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); } >/dev/null; then
1737 if test -s conftest.err; then
1738 ac_cpp_err=$ac_c_preproc_warn_flag
1745 if test -z "$ac_cpp_err"; then
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 # Broken: fails on valid input.
1753 rm -f conftest.err conftest.$ac_ext
1755 # OK, works on sane cases. Now check whether non-existent headers
1756 # can be detected and how.
1757 cat >conftest.$ac_ext <<_ACEOF
1758 #line 1758 "configure"
1759 #include "confdefs.h"
1760 #include <ac_nonexistent.h>
1762 if { (eval echo "$as_me:1762: \"$ac_cpp conftest.$ac_ext\"") >&5
1763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1765 egrep -v '^ *\+' conftest.er1 >conftest.err
1767 cat conftest.err >&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); } >/dev/null; then
1770 if test -s conftest.err; then
1771 ac_cpp_err=$ac_c_preproc_warn_flag
1778 if test -z "$ac_cpp_err"; then
1779 # Broken: success on invalid input.
1782 echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 # Passes both tests.
1788 rm -f conftest.err conftest.$ac_ext
1791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1792 rm -f conftest.err conftest.$ac_ext
1793 if $ac_preproc_ok; then
1805 echo "$as_me:1805: result: $CPP" >&5
1806 echo "${ECHO_T}$CPP" >&6
1808 for ac_c_preproc_warn_flag in '' yes
1810 # Use a header file that comes with gcc, so configuring glibc
1811 # with a fresh cross-compiler works.
1812 # On the NeXT, cc -E runs the code through the compiler's parser,
1813 # not just through cpp. "Syntax error" is here to catch this case.
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1820 if { (eval echo "$as_me:1820: \"$ac_cpp conftest.$ac_ext\"") >&5
1821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1823 egrep -v '^ *\+' conftest.er1 >conftest.err
1825 cat conftest.err >&5
1826 echo "$as_me:1826: \$? = $ac_status" >&5
1827 (exit $ac_status); } >/dev/null; then
1828 if test -s conftest.err; then
1829 ac_cpp_err=$ac_c_preproc_warn_flag
1836 if test -z "$ac_cpp_err"; then
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1841 # Broken: fails on valid input.
1844 rm -f conftest.err conftest.$ac_ext
1846 # OK, works on sane cases. Now check whether non-existent headers
1847 # can be detected and how.
1848 cat >conftest.$ac_ext <<_ACEOF
1849 #line 1849 "configure"
1850 #include "confdefs.h"
1851 #include <ac_nonexistent.h>
1853 if { (eval echo "$as_me:1853: \"$ac_cpp conftest.$ac_ext\"") >&5
1854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1856 egrep -v '^ *\+' conftest.er1 >conftest.err
1858 cat conftest.err >&5
1859 echo "$as_me:1859: \$? = $ac_status" >&5
1860 (exit $ac_status); } >/dev/null; then
1861 if test -s conftest.err; then
1862 ac_cpp_err=$ac_c_preproc_warn_flag
1869 if test -z "$ac_cpp_err"; then
1870 # Broken: success on invalid input.
1873 echo "$as_me: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 # Passes both tests.
1879 rm -f conftest.err conftest.$ac_ext
1882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1883 rm -f conftest.err conftest.$ac_ext
1884 if $ac_preproc_ok; then
1887 { { echo "$as_me:1887: error: C preprocessor \"$CPP\" fails sanity check" >&5
1888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1889 { (exit 1); exit 1; }; }
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897 ac_main_return=return
1899 if test $ac_cv_c_compiler_gnu = yes; then
1900 echo "$as_me:1900: checking whether $CC needs -traditional" >&5
1901 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
1902 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 ac_pattern="Autoconf.*'x'"
1906 cat >conftest.$ac_ext <<_ACEOF
1907 #line 1907 "configure"
1908 #include "confdefs.h"
1910 int Autoconf = TIOCGETP;
1912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1913 egrep "$ac_pattern" >/dev/null 2>&1; then
1914 ac_cv_prog_gcc_traditional=yes
1916 ac_cv_prog_gcc_traditional=no
1920 if test $ac_cv_prog_gcc_traditional = no; then
1921 cat >conftest.$ac_ext <<_ACEOF
1922 #line 1922 "configure"
1923 #include "confdefs.h"
1925 int Autoconf = TCGETA;
1927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1928 egrep "$ac_pattern" >/dev/null 2>&1; then
1929 ac_cv_prog_gcc_traditional=yes
1935 echo "$as_me:1935: result: $ac_cv_prog_gcc_traditional" >&5
1936 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1937 if test $ac_cv_prog_gcc_traditional = yes; then
1938 CC="$CC -traditional"
1942 echo "$as_me:1942: checking whether $CC understands -c and -o together" >&5
1943 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
1944 if test "${cf_cv_prog_CC_c_o+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat > conftest.$ac_ext <<CF_EOF
1952 ${cf_cv_main_return:-return}(0);
1955 # We do the test twice because some compilers refuse to overwrite an
1956 # existing .o file with -o, though they will create one.
1957 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
1958 if { (eval echo "$as_me:1958: \"$ac_try\"") >&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); } &&
1963 test -f conftest2.$ac_objext && { (eval echo "$as_me:1963: \"$ac_try\"") >&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); };
1969 eval cf_cv_prog_CC_c_o=yes
1971 eval cf_cv_prog_CC_c_o=no
1976 if test $cf_cv_prog_CC_c_o = yes; then
1977 echo "$as_me:1977: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1980 echo "$as_me:1980: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1984 echo "$as_me:1984: checking for POSIXized ISC" >&5
1985 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
1986 if test -d /etc/conf/kconfig.d &&
1987 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1989 echo "$as_me:1989: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1991 ISC=yes # If later tests want to check for ISC.
1993 cat >>confdefs.h <<\EOF
1994 #define _POSIX_SOURCE 1
1997 if test "$GCC" = yes; then
2003 echo "$as_me:2003: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2008 # This should have been defined by AC_PROG_CC
2011 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2012 # into CC. This will not help with broken scripts that wrap the compiler with
2013 # options, but eliminates a more common category of user confusion.
2014 echo "$as_me:2014: checking \$CC variable" >&5
2015 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2018 echo "$as_me:2018: result: broken" >&5
2019 echo "${ECHO_T}broken" >&6
2020 { echo "$as_me:2020: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2021 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2023 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2024 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2029 cf_new_extra_cppflags=
2031 for cf_add_cflags in $cf_flags
2033 case $cf_fix_cppflags in
2035 case $cf_add_cflags in #(vi
2036 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2037 case $cf_add_cflags in
2039 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2041 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2042 && test -z "${cf_tst_cflags}" \
2043 && cf_fix_cppflags=yes
2045 if test $cf_fix_cppflags = yes ; then
2046 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2048 elif test "${cf_tst_cflags}" = "\"'" ; then
2049 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2055 *$cf_add_cflags) #(vi
2058 case $cf_add_cflags in #(vi
2060 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2062 CPPFLAGS=`echo "$CPPFLAGS" | \
2063 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2064 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2068 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2073 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2078 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2080 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2082 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2083 && test -z "${cf_tst_cflags}" \
2084 && cf_fix_cppflags=no
2089 if test -n "$cf_new_cflags" ; then
2091 CFLAGS="$CFLAGS $cf_new_cflags"
2094 if test -n "$cf_new_cppflags" ; then
2096 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2099 if test -n "$cf_new_extra_cppflags" ; then
2101 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2106 echo "$as_me:2106: result: ok" >&5
2107 echo "${ECHO_T}ok" >&6
2111 echo "$as_me:2111: checking for ${CC:-cc} option to accept ANSI C" >&5
2112 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2113 if test "${cf_cv_ansi_cc+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 cf_save_CFLAGS="$CFLAGS"
2119 cf_save_CPPFLAGS="$CPPFLAGS"
2120 # Don't try gcc -ansi; that turns off useful extensions and
2121 # breaks some systems' header files.
2122 # AIX -qlanglvl=ansi
2123 # Ultrix and OSF/1 -std1
2124 # HP-UX -Aa -D_HPUX_SOURCE
2126 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2127 for cf_arg in "-DCC_HAS_PROTOS" \
2132 "-Aa -D_HPUX_SOURCE" \
2139 cf_new_extra_cppflags=
2141 for cf_add_cflags in $cf_arg
2143 case $cf_fix_cppflags in
2145 case $cf_add_cflags in #(vi
2146 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2147 case $cf_add_cflags in
2149 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2151 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2152 && test -z "${cf_tst_cflags}" \
2153 && cf_fix_cppflags=yes
2155 if test $cf_fix_cppflags = yes ; then
2156 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2158 elif test "${cf_tst_cflags}" = "\"'" ; then
2159 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2165 *$cf_add_cflags) #(vi
2168 case $cf_add_cflags in #(vi
2170 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2172 CPPFLAGS=`echo "$CPPFLAGS" | \
2173 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2174 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2178 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2183 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2188 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2190 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2192 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2193 && test -z "${cf_tst_cflags}" \
2194 && cf_fix_cppflags=no
2199 if test -n "$cf_new_cflags" ; then
2201 CFLAGS="$CFLAGS $cf_new_cflags"
2204 if test -n "$cf_new_cppflags" ; then
2206 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2209 if test -n "$cf_new_extra_cppflags" ; then
2211 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #line 2215 "configure"
2216 #include "confdefs.h"
2218 #ifndef CC_HAS_PROTOS
2219 #if !defined(__STDC__) || (__STDC__ != 1)
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:2236: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:2239: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:2242: \"$ac_try\"") >&5
2245 echo "$as_me:2245: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 cf_cv_ansi_cc="$cf_arg"; break
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2254 CFLAGS="$cf_save_CFLAGS"
2255 CPPFLAGS="$cf_save_CPPFLAGS"
2258 echo "$as_me:2258: result: $cf_cv_ansi_cc" >&5
2259 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2261 if test "$cf_cv_ansi_cc" != "no"; then
2262 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2267 cf_new_extra_cppflags=
2269 for cf_add_cflags in $cf_cv_ansi_cc
2271 case $cf_fix_cppflags in
2273 case $cf_add_cflags in #(vi
2274 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2275 case $cf_add_cflags in
2277 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2279 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2280 && test -z "${cf_tst_cflags}" \
2281 && cf_fix_cppflags=yes
2283 if test $cf_fix_cppflags = yes ; then
2284 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2286 elif test "${cf_tst_cflags}" = "\"'" ; then
2287 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2293 *$cf_add_cflags) #(vi
2296 case $cf_add_cflags in #(vi
2298 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2300 CPPFLAGS=`echo "$CPPFLAGS" | \
2301 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2302 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2306 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2311 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2318 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2320 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2321 && test -z "${cf_tst_cflags}" \
2322 && cf_fix_cppflags=no
2327 if test -n "$cf_new_cflags" ; then
2329 CFLAGS="$CFLAGS $cf_new_cflags"
2332 if test -n "$cf_new_cppflags" ; then
2334 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2337 if test -n "$cf_new_extra_cppflags" ; then
2339 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2343 cat >>confdefs.h <<\EOF
2344 #define CC_HAS_PROTOS 1
2350 if test "$cf_cv_ansi_cc" = "no"; then
2351 { { echo "$as_me:2351: error: Your compiler does not appear to recognize prototypes.
2352 You have the following choices:
2353 a. adjust your compiler options
2354 b. get an up-to-date compiler
2355 c. use a wrapper such as unproto" >&5
2356 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2357 You have the following choices:
2358 a. adjust your compiler options
2359 b. get an up-to-date compiler
2360 c. use a wrapper such as unproto" >&2;}
2361 { (exit 1); exit 1; }; }
2364 case $cf_cv_system_name in
2366 CFLAGS="$CFLAGS -Zmt"
2367 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2368 CXXFLAGS="$CXXFLAGS -Zmt"
2369 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2370 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2377 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2378 #define PROG_EXT "$PROG_EXT"
2381 test "$program_prefix" != NONE &&
2382 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2383 # Use a double $ so make ignores it.
2384 test "$program_suffix" != NONE &&
2385 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2386 # Double any \ or $. echo might interpret backslashes.
2387 # By default was `s,x,x', remove it if useless.
2388 cat <<\_ACEOF >conftest.sed
2389 s/[\\$]/&&/g;s/;s,x,x,$//
2391 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2394 for ac_prog in mawk gawk nawk awk
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 echo "$as_me:2398: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_AWK+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$AWK"; then
2404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2406 ac_save_IFS=$IFS; IFS=$ac_path_separator
2408 for ac_dir in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir=.
2411 $as_executable_p "$ac_dir/$ac_word" || continue
2412 ac_cv_prog_AWK="$ac_prog"
2413 echo "$as_me:2413: found $ac_dir/$ac_word" >&5
2420 if test -n "$AWK"; then
2421 echo "$as_me:2421: result: $AWK" >&5
2422 echo "${ECHO_T}$AWK" >&6
2424 echo "$as_me:2424: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2428 test -n "$AWK" && break
2431 test -z "$AWK" && { { echo "$as_me:2431: error: No awk program found" >&5
2432 echo "$as_me: error: No awk program found" >&2;}
2433 { (exit 1); exit 1; }; }
2435 echo "$as_me:2435: checking for egrep" >&5
2436 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2437 if test "${ac_cv_prog_egrep+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2441 then ac_cv_prog_egrep='grep -E'
2442 else ac_cv_prog_egrep='egrep'
2445 echo "$as_me:2445: result: $ac_cv_prog_egrep" >&5
2446 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2447 EGREP=$ac_cv_prog_egrep
2449 test -z "$EGREP" && { { echo "$as_me:2449: error: No egrep program found" >&5
2450 echo "$as_me: error: No egrep program found" >&2;}
2451 { (exit 1); exit 1; }; }
2453 # Find a good install program. We prefer a C program (faster),
2454 # so one script is as good as another. But avoid the broken or
2455 # incompatible versions:
2456 # SysV /etc/install, /usr/sbin/install
2457 # SunOS /usr/etc/install
2458 # IRIX /sbin/install
2460 # AmigaOS /C/install, which installs bootblocks on floppy discs
2461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2464 # ./install, which can be erroneously created by make from ./install.sh.
2465 echo "$as_me:2465: checking for a BSD compatible install" >&5
2466 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2467 if test -z "$INSTALL"; then
2468 if test "${ac_cv_path_install+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_save_IFS=$IFS; IFS=$ac_path_separator
2472 for ac_dir in $PATH; do
2474 # Account for people who put trailing slashes in PATH elements.
2476 / | ./ | .// | /cC/* \
2477 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2483 for ac_prog in ginstall scoinst install; do
2484 if $as_executable_p "$ac_dir/$ac_prog"; then
2485 if test $ac_prog = install &&
2486 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2487 # AIX install. It has an incompatible calling convention.
2489 elif test $ac_prog = install &&
2490 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2491 # program-specific install script used by HP pwplus--don't use.
2494 ac_cv_path_install="$ac_dir/$ac_prog -c"
2504 if test "${ac_cv_path_install+set}" = set; then
2505 INSTALL=$ac_cv_path_install
2507 # As a last resort, use the slow shell script. We don't cache a
2508 # path for INSTALL within a source directory, because that will
2509 # break other packages using the cache if that directory is
2510 # removed, or if the path is relative.
2511 INSTALL=$ac_install_sh
2514 echo "$as_me:2514: result: $INSTALL" >&5
2515 echo "${ECHO_T}$INSTALL" >&6
2517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2518 # It thinks the first close brace ends the variable substitution.
2519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525 echo "$as_me:2525: checking whether ln -s works" >&5
2526 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2528 if test "$LN_S" = "ln -s"; then
2529 echo "$as_me:2529: result: yes" >&5
2530 echo "${ECHO_T}yes" >&6
2532 echo "$as_me:2532: result: no, using $LN_S" >&5
2533 echo "${ECHO_T}no, using $LN_S" >&6
2536 echo "$as_me:2536: checking if $LN_S -f options work" >&5
2537 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2539 rm -f conf$$.src conf$$dst
2541 echo first >conf$$.src
2542 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2547 rm -f conf$$.dst conf$$src
2548 echo "$as_me:2548: result: $cf_prog_ln_sf" >&5
2549 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2551 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2553 echo "$as_me:2553: checking for long file names" >&5
2554 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2555 if test "${ac_cv_sys_long_file_names+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 ac_cv_sys_long_file_names=yes
2559 # Test for long file names in all the places we know might matter:
2560 # . the current directory, where building will happen
2561 # $prefix/lib where we will be installing things
2562 # $exec_prefix/lib likewise
2563 # eval it to expand exec_prefix.
2564 # $TMPDIR if set, where it might want to write temporary files
2565 # if $TMPDIR is not set:
2566 # /tmp where it might want to write temporary files
2569 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2572 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2574 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2575 test -d $ac_dir || continue
2576 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2577 ac_xdir=$ac_dir/cf$$
2578 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2579 ac_tf1=$ac_xdir/conftest9012345
2580 ac_tf2=$ac_xdir/conftest9012346
2581 (echo 1 >$ac_tf1) 2>/dev/null
2582 (echo 2 >$ac_tf2) 2>/dev/null
2583 ac_val=`cat $ac_tf1 2>/dev/null`
2584 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2585 ac_cv_sys_long_file_names=no
2586 rm -rf $ac_xdir 2>/dev/null
2589 rm -rf $ac_xdir 2>/dev/null
2592 echo "$as_me:2592: result: $ac_cv_sys_long_file_names" >&5
2593 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2594 if test $ac_cv_sys_long_file_names = yes; then
2596 cat >>confdefs.h <<\EOF
2597 #define HAVE_LONG_FILE_NAMES 1
2602 # if we find pkg-config, check if we should install the ".pc" files.
2604 echo "$as_me:2604: checking if you want to use pkg-config" >&5
2605 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2607 # Check whether --with-pkg-config or --without-pkg-config was given.
2608 if test "${with_pkg_config+set}" = set; then
2609 withval="$with_pkg_config"
2610 cf_pkg_config=$withval
2614 echo "$as_me:2614: result: $cf_pkg_config" >&5
2615 echo "${ECHO_T}$cf_pkg_config" >&6
2617 case $cf_pkg_config in #(vi
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2625 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2626 echo "$as_me:2626: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2636 ac_save_IFS=$IFS; IFS=$ac_path_separator
2638 for ac_dir in $ac_dummy; do
2640 test -z "$ac_dir" && ac_dir=.
2641 if $as_executable_p "$ac_dir/$ac_word"; then
2642 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2643 echo "$as_me:2643: found $ac_dir/$ac_word" >&5
2651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2653 if test -n "$PKG_CONFIG"; then
2654 echo "$as_me:2654: result: $PKG_CONFIG" >&5
2655 echo "${ECHO_T}$PKG_CONFIG" >&6
2657 echo "$as_me:2657: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2662 if test -z "$ac_cv_path_PKG_CONFIG"; then
2663 ac_pt_PKG_CONFIG=$PKG_CONFIG
2664 # Extract the first word of "pkg-config", so it can be a program name with args.
2665 set dummy pkg-config; ac_word=$2
2666 echo "$as_me:2666: checking for $ac_word" >&5
2667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2668 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 case $ac_pt_PKG_CONFIG in
2673 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2676 ac_save_IFS=$IFS; IFS=$ac_path_separator
2678 for ac_dir in $ac_dummy; do
2680 test -z "$ac_dir" && ac_dir=.
2681 if $as_executable_p "$ac_dir/$ac_word"; then
2682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2683 echo "$as_me:2683: found $ac_dir/$ac_word" >&5
2688 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2692 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2694 if test -n "$ac_pt_PKG_CONFIG"; then
2695 echo "$as_me:2695: result: $ac_pt_PKG_CONFIG" >&5
2696 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2698 echo "$as_me:2698: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2702 PKG_CONFIG=$ac_pt_PKG_CONFIG
2704 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2713 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2714 if test "$PKG_CONFIG" != none ; then
2716 if test "x$prefix" != xNONE; then
2717 cf_path_syntax="$prefix"
2719 cf_path_syntax="$ac_default_prefix"
2722 case ".$PKG_CONFIG" in #(vi
2723 .\$\(*\)*|.\'*\'*) #(vi
2727 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2729 .\${*prefix}*|.\${*dir}*) #(vi
2730 eval PKG_CONFIG="$PKG_CONFIG"
2731 case ".$PKG_CONFIG" in #(vi
2733 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2738 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2741 { { echo "$as_me:2741: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2742 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2743 { (exit 1); exit 1; }; }
2749 if test "$PKG_CONFIG" != none ; then
2750 echo "$as_me:2750: checking for $PKG_CONFIG library directory" >&5
2751 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2753 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2754 if test "${with_pkg_config_libdir+set}" = set; then
2755 withval="$with_pkg_config_libdir"
2756 PKG_CONFIG_LIBDIR=$withval
2758 PKG_CONFIG_LIBDIR=yes
2761 case x$PKG_CONFIG_LIBDIR in #(vi
2765 # look for the library directory using the same prefix as the executable
2766 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2767 case x`(arch) 2>/dev/null` in #(vi
2769 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
2771 if test -d $cf_config/pkgconfig
2773 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2779 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
2787 echo "$as_me:2787: result: $PKG_CONFIG_LIBDIR" >&5
2788 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2791 if test "$PKG_CONFIG" != none ; then
2792 echo "$as_me:2792: checking if we should install .pc files for $PKG_CONFIG" >&5
2793 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2795 # Check whether --enable-pc-files or --disable-pc-files was given.
2796 if test "${enable_pc_files+set}" = set; then
2797 enableval="$enable_pc_files"
2798 enable_pc_files=$enableval
2802 echo "$as_me:2802: result: $enable_pc_files" >&5
2803 echo "${ECHO_T}$enable_pc_files" >&6
2804 if test "$enable_pc_files" != no
2807 if test "x$prefix" != xNONE; then
2808 cf_path_syntax="$prefix"
2810 cf_path_syntax="$ac_default_prefix"
2813 case ".$PKG_CONFIG_LIBDIR" in #(vi
2814 .\$\(*\)*|.\'*\'*) #(vi
2818 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2820 .\${*prefix}*|.\${*dir}*) #(vi
2821 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2822 case ".$PKG_CONFIG_LIBDIR" in #(vi
2824 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2829 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2832 { { echo "$as_me:2832: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
2833 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
2834 { (exit 1); exit 1; }; }
2843 echo "$as_me:2843: checking if you want to build test-programs" >&5
2844 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2846 # Check whether --with-tests or --without-tests was given.
2847 if test "${with_tests+set}" = set; then
2848 withval="$with_tests"
2849 cf_with_tests=$withval
2853 echo "$as_me:2853: result: $cf_with_tests" >&5
2854 echo "${ECHO_T}$cf_with_tests" >&6
2856 echo "$as_me:2856: checking if we should assume mixed-case filenames" >&5
2857 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2859 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2860 if test "${enable_mixed_case+set}" = set; then
2861 enableval="$enable_mixed_case"
2862 enable_mixedcase=$enableval
2864 enable_mixedcase=auto
2866 echo "$as_me:2866: result: $enable_mixedcase" >&5
2867 echo "${ECHO_T}$enable_mixedcase" >&6
2868 if test "$enable_mixedcase" = "auto" ; then
2870 echo "$as_me:2870: checking if filesystem supports mixed-case filenames" >&5
2871 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2872 if test "${cf_cv_mixedcase+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if test "$cross_compiling" = yes ; then
2877 case $target_alias in #(vi
2878 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2886 rm -f conftest CONFTEST
2888 if test -f CONFTEST ; then
2893 rm -f conftest CONFTEST
2897 echo "$as_me:2897: result: $cf_cv_mixedcase" >&5
2898 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2899 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2900 #define MIXEDCASE_FILENAMES 1
2904 cf_cv_mixedcase=$enable_mixedcase
2905 if test "$enable_mixedcase" = "yes" ; then
2906 cat >>confdefs.h <<\EOF
2907 #define MIXEDCASE_FILENAMES 1
2913 # do this after mixed-case option (tags/TAGS is not as important as tic).
2914 echo "$as_me:2914: checking whether ${MAKE-make} sets \${MAKE}" >&5
2915 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2916 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2917 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.make <<\EOF
2922 @echo 'ac_maketemp="${MAKE}"'
2924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2925 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2926 if test -n "$ac_maketemp"; then
2927 eval ac_cv_prog_make_${ac_make}_set=yes
2929 eval ac_cv_prog_make_${ac_make}_set=no
2933 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2934 echo "$as_me:2934: result: yes" >&5
2935 echo "${ECHO_T}yes" >&6
2938 echo "$as_me:2938: result: no" >&5
2939 echo "${ECHO_T}no" >&6
2940 SET_MAKE="MAKE=${MAKE-make}"
2943 for ac_prog in exctags ctags
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 echo "$as_me:2947: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CTAGS+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 if test -n "$CTAGS"; then
2953 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2955 ac_save_IFS=$IFS; IFS=$ac_path_separator
2957 for ac_dir in $ac_dummy; do
2959 test -z "$ac_dir" && ac_dir=.
2960 $as_executable_p "$ac_dir/$ac_word" || continue
2961 ac_cv_prog_CTAGS="$ac_prog"
2962 echo "$as_me:2962: found $ac_dir/$ac_word" >&5
2968 CTAGS=$ac_cv_prog_CTAGS
2969 if test -n "$CTAGS"; then
2970 echo "$as_me:2970: result: $CTAGS" >&5
2971 echo "${ECHO_T}$CTAGS" >&6
2973 echo "$as_me:2973: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2977 test -n "$CTAGS" && break
2980 for ac_prog in exetags etags
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo "$as_me:2984: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ETAGS+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test -n "$ETAGS"; then
2990 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2992 ac_save_IFS=$IFS; IFS=$ac_path_separator
2994 for ac_dir in $ac_dummy; do
2996 test -z "$ac_dir" && ac_dir=.
2997 $as_executable_p "$ac_dir/$ac_word" || continue
2998 ac_cv_prog_ETAGS="$ac_prog"
2999 echo "$as_me:2999: found $ac_dir/$ac_word" >&5
3005 ETAGS=$ac_cv_prog_ETAGS
3006 if test -n "$ETAGS"; then
3007 echo "$as_me:3007: result: $ETAGS" >&5
3008 echo "${ECHO_T}$ETAGS" >&6
3010 echo "$as_me:3010: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ETAGS" && break
3017 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3018 set dummy ${CTAGS:-ctags}; ac_word=$2
3019 echo "$as_me:3019: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 if test -n "$MAKE_LOWER_TAGS"; then
3025 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3027 ac_save_IFS=$IFS; IFS=$ac_path_separator
3029 for ac_dir in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir=.
3032 $as_executable_p "$ac_dir/$ac_word" || continue
3033 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3034 echo "$as_me:3034: found $ac_dir/$ac_word" >&5
3038 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3041 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3042 if test -n "$MAKE_LOWER_TAGS"; then
3043 echo "$as_me:3043: result: $MAKE_LOWER_TAGS" >&5
3044 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3046 echo "$as_me:3046: result: no" >&5
3047 echo "${ECHO_T}no" >&6
3050 if test "$cf_cv_mixedcase" = yes ; then
3051 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3052 set dummy ${ETAGS:-etags}; ac_word=$2
3053 echo "$as_me:3053: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 if test -n "$MAKE_UPPER_TAGS"; then
3059 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3061 ac_save_IFS=$IFS; IFS=$ac_path_separator
3063 for ac_dir in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir=.
3066 $as_executable_p "$ac_dir/$ac_word" || continue
3067 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3068 echo "$as_me:3068: found $ac_dir/$ac_word" >&5
3072 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3075 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3076 if test -n "$MAKE_UPPER_TAGS"; then
3077 echo "$as_me:3077: result: $MAKE_UPPER_TAGS" >&5
3078 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3080 echo "$as_me:3080: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3088 if test "$MAKE_UPPER_TAGS" = yes ; then
3094 if test "$MAKE_LOWER_TAGS" = yes ; then
3100 echo "$as_me:3100: checking for makeflags variable" >&5
3101 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3102 if test "${cf_cv_makeflags+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3109 cat >cf_makeflags.tmp <<CF_EOF
3112 @ echo '.$cf_option'
3114 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3115 case "$cf_result" in
3117 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3118 case "$cf_result" in
3119 .*CC=*) cf_cv_makeflags=
3121 *) cf_cv_makeflags=$cf_option
3127 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3131 rm -f cf_makeflags.tmp
3134 echo "$as_me:3134: result: $cf_cv_makeflags" >&5
3135 echo "${ECHO_T}$cf_cv_makeflags" >&6
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3140 echo "$as_me:3140: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_RANLIB+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if test -n "$RANLIB"; then
3146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 ac_save_IFS=$IFS; IFS=$ac_path_separator
3150 for ac_dir in $ac_dummy; do
3152 test -z "$ac_dir" && ac_dir=.
3153 $as_executable_p "$ac_dir/$ac_word" || continue
3154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3155 echo "$as_me:3155: found $ac_dir/$ac_word" >&5
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163 echo "$as_me:3163: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3166 echo "$as_me:3166: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:3175: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 ac_save_IFS=$IFS; IFS=$ac_path_separator
3185 for ac_dir in $ac_dummy; do
3187 test -z "$ac_dir" && ac_dir=.
3188 $as_executable_p "$ac_dir/$ac_word" || continue
3189 ac_cv_prog_ac_ct_RANLIB="ranlib"
3190 echo "$as_me:3190: found $ac_dir/$ac_word" >&5
3194 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3198 if test -n "$ac_ct_RANLIB"; then
3199 echo "$as_me:3199: result: $ac_ct_RANLIB" >&5
3200 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3202 echo "$as_me:3202: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3206 RANLIB=$ac_ct_RANLIB
3208 RANLIB="$ac_cv_prog_RANLIB"
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}ld; ac_word=$2
3214 echo "$as_me:3214: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_LD+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 if test -n "$LD"; then
3220 ac_cv_prog_LD="$LD" # Let the user override the test.
3222 ac_save_IFS=$IFS; IFS=$ac_path_separator
3224 for ac_dir in $ac_dummy; do
3226 test -z "$ac_dir" && ac_dir=.
3227 $as_executable_p "$ac_dir/$ac_word" || continue
3228 ac_cv_prog_LD="${ac_tool_prefix}ld"
3229 echo "$as_me:3229: found $ac_dir/$ac_word" >&5
3236 if test -n "$LD"; then
3237 echo "$as_me:3237: result: $LD" >&5
3238 echo "${ECHO_T}$LD" >&6
3240 echo "$as_me:3240: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3245 if test -z "$ac_cv_prog_LD"; then
3247 # Extract the first word of "ld", so it can be a program name with args.
3248 set dummy ld; ac_word=$2
3249 echo "$as_me:3249: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if test -n "$ac_ct_LD"; then
3255 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3257 ac_save_IFS=$IFS; IFS=$ac_path_separator
3259 for ac_dir in $ac_dummy; do
3261 test -z "$ac_dir" && ac_dir=.
3262 $as_executable_p "$ac_dir/$ac_word" || continue
3263 ac_cv_prog_ac_ct_LD="ld"
3264 echo "$as_me:3264: found $ac_dir/$ac_word" >&5
3268 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3271 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3272 if test -n "$ac_ct_LD"; then
3273 echo "$as_me:3273: result: $ac_ct_LD" >&5
3274 echo "${ECHO_T}$ac_ct_LD" >&6
3276 echo "$as_me:3276: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}ar; ac_word=$2
3288 echo "$as_me:3288: checking for $ac_word" >&5
3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3290 if test "${ac_cv_prog_AR+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 if test -n "$AR"; then
3294 ac_cv_prog_AR="$AR" # Let the user override the test.
3296 ac_save_IFS=$IFS; IFS=$ac_path_separator
3298 for ac_dir in $ac_dummy; do
3300 test -z "$ac_dir" && ac_dir=.
3301 $as_executable_p "$ac_dir/$ac_word" || continue
3302 ac_cv_prog_AR="${ac_tool_prefix}ar"
3303 echo "$as_me:3303: found $ac_dir/$ac_word" >&5
3310 if test -n "$AR"; then
3311 echo "$as_me:3311: result: $AR" >&5
3312 echo "${ECHO_T}$AR" >&6
3314 echo "$as_me:3314: result: no" >&5
3315 echo "${ECHO_T}no" >&6
3319 if test -z "$ac_cv_prog_AR"; then
3321 # Extract the first word of "ar", so it can be a program name with args.
3322 set dummy ar; ac_word=$2
3323 echo "$as_me:3323: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$ac_ct_AR"; then
3329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3331 ac_save_IFS=$IFS; IFS=$ac_path_separator
3333 for ac_dir in $ac_dummy; do
3335 test -z "$ac_dir" && ac_dir=.
3336 $as_executable_p "$ac_dir/$ac_word" || continue
3337 ac_cv_prog_ac_ct_AR="ar"
3338 echo "$as_me:3338: found $ac_dir/$ac_word" >&5
3342 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3346 if test -n "$ac_ct_AR"; then
3347 echo "$as_me:3347: result: $ac_ct_AR" >&5
3348 echo "${ECHO_T}$ac_ct_AR" >&6
3350 echo "$as_me:3350: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}ar; ac_word=$2
3362 echo "$as_me:3362: checking for $ac_word" >&5
3363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364 if test "${ac_cv_prog_AR+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 if test -n "$AR"; then
3368 ac_cv_prog_AR="$AR" # Let the user override the test.
3370 ac_save_IFS=$IFS; IFS=$ac_path_separator
3372 for ac_dir in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir=.
3375 $as_executable_p "$ac_dir/$ac_word" || continue
3376 ac_cv_prog_AR="${ac_tool_prefix}ar"
3377 echo "$as_me:3377: found $ac_dir/$ac_word" >&5
3384 if test -n "$AR"; then
3385 echo "$as_me:3385: result: $AR" >&5
3386 echo "${ECHO_T}$AR" >&6
3388 echo "$as_me:3388: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3393 if test -z "$ac_cv_prog_AR"; then
3395 # Extract the first word of "ar", so it can be a program name with args.
3396 set dummy ar; ac_word=$2
3397 echo "$as_me:3397: checking for $ac_word" >&5
3398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test -n "$ac_ct_AR"; then
3403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3405 ac_save_IFS=$IFS; IFS=$ac_path_separator
3407 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 $as_executable_p "$ac_dir/$ac_word" || continue
3411 ac_cv_prog_ac_ct_AR="ar"
3412 echo "$as_me:3412: found $ac_dir/$ac_word" >&5
3416 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3420 if test -n "$ac_ct_AR"; then
3421 echo "$as_me:3421: result: $ac_ct_AR" >&5
3422 echo "${ECHO_T}$ac_ct_AR" >&6
3424 echo "$as_me:3424: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3433 echo "$as_me:3433: checking for options to update archives" >&5
3434 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3435 if test "${cf_cv_ar_flags+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cf_cv_ar_flags=unknown
3440 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3443 # check if $ARFLAGS already contains this choice
3444 if test "x$ARFLAGS" != "x" ; then
3445 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3446 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3452 rm -f conftest.$ac_cv_objext
3455 cat >conftest.$ac_ext <<EOF
3456 #line 3456 "configure"
3457 int testdata[3] = { 123, 456, 789 };
3459 if { (eval echo "$as_me:3459: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>&5
3462 echo "$as_me:3462: \$? = $ac_status" >&5
3463 (exit $ac_status); } ; then
3464 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3465 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3466 if test -f conftest.a ; then
3467 cf_cv_ar_flags=$cf_ar_flags
3471 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3473 echo "${as_me:-configure}:3473: testing cannot compile test-program ..." 1>&5
3478 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3481 echo "$as_me:3481: result: $cf_cv_ar_flags" >&5
3482 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3484 if test -n "$ARFLAGS" ; then
3485 if test -n "$cf_cv_ar_flags" ; then
3486 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3489 ARFLAGS=$cf_cv_ar_flags
3492 echo "$as_me:3492: checking if you have specified an install-prefix" >&5
3493 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3495 # Check whether --with-install-prefix or --without-install-prefix was given.
3496 if test "${with_install_prefix+set}" = set; then
3497 withval="$with_install_prefix"
3498 case "$withval" in #(vi
3501 *) DESTDIR="$withval"
3505 echo "$as_me:3505: result: $DESTDIR" >&5
3506 echo "${ECHO_T}$DESTDIR" >&6
3508 ###############################################################################
3510 # If we're cross-compiling, allow the user to override the tools and their
3511 # options. The configure script is oriented toward identifying the host
3512 # compiler, etc., but we need a build compiler to generate parts of the source.
3514 if test "$cross_compiling" = yes ; then
3516 # defaults that we might want to override
3517 : ${BUILD_CFLAGS:=''}
3518 : ${BUILD_CPPFLAGS:=''}
3519 : ${BUILD_LDFLAGS:=''}
3521 : ${BUILD_EXEEXT:='$x'}
3522 : ${BUILD_OBJEXT:='o'}
3524 # Check whether --with-build-cc or --without-build-cc was given.
3525 if test "${with_build_cc+set}" = set; then
3526 withval="$with_build_cc"
3529 for ac_prog in gcc cc cl
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:3533: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test -n "$BUILD_CC"; then
3539 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3541 ac_save_IFS=$IFS; IFS=$ac_path_separator
3543 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 $as_executable_p "$ac_dir/$ac_word" || continue
3547 ac_cv_prog_BUILD_CC="$ac_prog"
3548 echo "$as_me:3548: found $ac_dir/$ac_word" >&5
3554 BUILD_CC=$ac_cv_prog_BUILD_CC
3555 if test -n "$BUILD_CC"; then
3556 echo "$as_me:3556: result: $BUILD_CC" >&5
3557 echo "${ECHO_T}$BUILD_CC" >&6
3559 echo "$as_me:3559: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3563 test -n "$BUILD_CC" && break
3567 echo "$as_me:3567: checking for native build C compiler" >&5
3568 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3569 echo "$as_me:3569: result: $BUILD_CC" >&5
3570 echo "${ECHO_T}$BUILD_CC" >&6
3572 echo "$as_me:3572: checking for native build C preprocessor" >&5
3573 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3575 # Check whether --with-build-cpp or --without-build-cpp was given.
3576 if test "${with_build_cpp+set}" = set; then
3577 withval="$with_build_cpp"
3578 BUILD_CPP="$withval"
3580 BUILD_CPP='${BUILD_CC} -E'
3582 echo "$as_me:3582: result: $BUILD_CPP" >&5
3583 echo "${ECHO_T}$BUILD_CPP" >&6
3585 echo "$as_me:3585: checking for native build C flags" >&5
3586 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3588 # Check whether --with-build-cflags or --without-build-cflags was given.
3589 if test "${with_build_cflags+set}" = set; then
3590 withval="$with_build_cflags"
3591 BUILD_CFLAGS="$withval"
3593 echo "$as_me:3593: result: $BUILD_CFLAGS" >&5
3594 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3596 echo "$as_me:3596: checking for native build C preprocessor-flags" >&5
3597 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3599 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3600 if test "${with_build_cppflags+set}" = set; then
3601 withval="$with_build_cppflags"
3602 BUILD_CPPFLAGS="$withval"
3604 echo "$as_me:3604: result: $BUILD_CPPFLAGS" >&5
3605 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3607 echo "$as_me:3607: checking for native build linker-flags" >&5
3608 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3610 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3611 if test "${with_build_ldflags+set}" = set; then
3612 withval="$with_build_ldflags"
3613 BUILD_LDFLAGS="$withval"
3615 echo "$as_me:3615: result: $BUILD_LDFLAGS" >&5
3616 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3618 echo "$as_me:3618: checking for native build linker-libraries" >&5
3619 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3621 # Check whether --with-build-libs or --without-build-libs was given.
3622 if test "${with_build_libs+set}" = set; then
3623 withval="$with_build_libs"
3624 BUILD_LIBS="$withval"
3626 echo "$as_me:3626: result: $BUILD_LIBS" >&5
3627 echo "${ECHO_T}$BUILD_LIBS" >&6
3629 # this assumes we're on Unix.
3633 : ${BUILD_CC:='${CC}'}
3635 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3636 { { echo "$as_me:3636: error: Cross-build requires two compilers.
3637 Use --with-build-cc to specify the native compiler." >&5
3638 echo "$as_me: error: Cross-build requires two compilers.
3639 Use --with-build-cc to specify the native compiler." >&2;}
3640 { (exit 1); exit 1; }; }
3644 : ${BUILD_CC:='${CC}'}
3645 : ${BUILD_CPP:='${CPP}'}
3646 : ${BUILD_CFLAGS:='${CFLAGS}'}
3647 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3648 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3649 : ${BUILD_LIBS:='${LIBS}'}
3650 : ${BUILD_EXEEXT:='$x'}
3651 : ${BUILD_OBJEXT:='o'}
3654 ###############################################################################
3656 ### Options to allow the user to specify the set of libraries which are used.
3657 ### Use "--without-normal --with-shared" to allow the default model to be
3658 ### shared, for example.
3661 echo "$as_me:3661: checking if you want to build shared C-objects" >&5
3662 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3664 # Check whether --with-shared or --without-shared was given.
3665 if test "${with_shared+set}" = set; then
3666 withval="$with_shared"
3667 with_shared=$withval
3671 echo "$as_me:3671: result: $with_shared" >&5
3672 echo "${ECHO_T}$with_shared" >&6
3673 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3675 echo "$as_me:3675: checking for specified models" >&5
3676 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3677 test -z "$cf_list_models" && cf_list_models=normal
3678 echo "$as_me:3678: result: $cf_list_models" >&5
3679 echo "${ECHO_T}$cf_list_models" >&6
3681 ### Use the first model as the default, and save its suffix for use in building
3682 ### up test-applications.
3683 echo "$as_me:3683: checking for default model" >&5
3684 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3685 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3686 echo "$as_me:3686: result: $DFT_LWR_MODEL" >&5
3687 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3689 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3691 echo "$as_me:3691: checking for specific curses-directory" >&5
3692 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3694 # Check whether --with-curses-dir or --without-curses-dir was given.
3695 if test "${with_curses_dir+set}" = set; then
3696 withval="$with_curses_dir"
3697 cf_cv_curses_dir=$withval
3701 echo "$as_me:3701: result: $cf_cv_curses_dir" >&5
3702 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3704 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3707 if test "x$prefix" != xNONE; then
3708 cf_path_syntax="$prefix"
3710 cf_path_syntax="$ac_default_prefix"
3713 case ".$withval" in #(vi
3714 .\$\(*\)*|.\'*\'*) #(vi
3718 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3720 .\${*prefix}*|.\${*dir}*) #(vi
3721 eval withval="$withval"
3722 case ".$withval" in #(vi
3724 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3729 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3732 { { echo "$as_me:3732: error: expected a pathname, not \"$withval\"" >&5
3733 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3734 { (exit 1); exit 1; }; }
3738 if test -d "$cf_cv_curses_dir"
3741 if test -n "$cf_cv_curses_dir/include" ; then
3742 for cf_add_incdir in $cf_cv_curses_dir/include
3744 while test $cf_add_incdir != /usr/include
3746 if test -d $cf_add_incdir
3749 if test -n "$CFLAGS$CPPFLAGS" ; then
3750 # a loop is needed to ensure we can add subdirs of existing dirs
3751 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3752 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3753 cf_have_incdir=yes; break
3758 if test "$cf_have_incdir" = no ; then
3759 if test "$cf_add_incdir" = /usr/local/include ; then
3760 if test "$GCC" = yes
3762 cf_save_CPPFLAGS=$CPPFLAGS
3763 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3764 cat >conftest.$ac_ext <<_ACEOF
3765 #line 3765 "configure"
3766 #include "confdefs.h"
3776 rm -f conftest.$ac_objext
3777 if { (eval echo "$as_me:3777: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3780 echo "$as_me:3780: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:3783: \"$ac_try\"") >&5
3786 echo "$as_me:3786: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3794 rm -f conftest.$ac_objext conftest.$ac_ext
3795 CPPFLAGS=$cf_save_CPPFLAGS
3800 if test "$cf_have_incdir" = no ; then
3801 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3803 echo "${as_me:-configure}:3803: testing adding $cf_add_incdir to include-path ..." 1>&5
3805 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3807 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3808 test "$cf_top_incdir" = "$cf_add_incdir" && break
3809 cf_add_incdir="$cf_top_incdir"
3818 if test -n "$cf_cv_curses_dir/lib" ; then
3819 for cf_add_libdir in $cf_cv_curses_dir/lib
3821 if test $cf_add_libdir = /usr/lib ; then
3823 elif test -d $cf_add_libdir
3826 if test -n "$LDFLAGS$LIBS" ; then
3827 # a loop is needed to ensure we can add subdirs of existing dirs
3828 for cf_test_libdir in $LDFLAGS $LIBS ; do
3829 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3830 cf_have_libdir=yes; break
3834 if test "$cf_have_libdir" = no ; then
3835 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3837 echo "${as_me:-configure}:3837: testing adding $cf_add_libdir to library-path ..." 1>&5
3839 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3848 echo "$as_me:3848: checking if you want wide-character code" >&5
3849 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3851 # Check whether --enable-widec or --disable-widec was given.
3852 if test "${enable_widec+set}" = set; then
3853 enableval="$enable_widec"
3854 with_widec=$enableval
3858 echo "$as_me:3858: result: $with_widec" >&5
3859 echo "${ECHO_T}$with_widec" >&6
3860 if test "$with_widec" = yes ; then
3862 echo "$as_me:3862: checking for multibyte character support" >&5
3863 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3864 if test "${cf_cv_utf8_lib+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cf_save_LIBS="$LIBS"
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line 3870 "configure"
3871 #include "confdefs.h"
3882 rm -f conftest.$ac_objext conftest$ac_exeext
3883 if { (eval echo "$as_me:3883: \"$ac_link\"") >&5
3884 (eval $ac_link) 2>&5
3886 echo "$as_me:3886: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -s conftest$ac_exeext'
3889 { (eval echo "$as_me:3889: \"$ac_try\"") >&5
3892 echo "$as_me:3892: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3896 echo "$as_me: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3900 # will be set on completion of the AC_TRY_LINK below.
3901 cf_cv_header_path_utf8=
3902 cf_cv_library_path_utf8=
3904 echo "${as_me:-configure}:3904: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3906 cf_save_LIBS="$LIBS"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line 3909 "configure"
3910 #include "confdefs.h"
3912 #include <libutf8.h>
3921 rm -f conftest.$ac_objext conftest$ac_exeext
3922 if { (eval echo "$as_me:3922: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>&5
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest$ac_exeext'
3928 { (eval echo "$as_me:3928: \"$ac_try\"") >&5
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3934 cf_cv_find_linkage_utf8=yes
3935 cf_cv_header_path_utf8=/usr/include
3936 cf_cv_library_path_utf8=/usr/lib
3939 echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 LIBS="-lutf8 $cf_save_LIBS"
3944 cat >conftest.$ac_ext <<_ACEOF
3945 #line 3945 "configure"
3946 #include "confdefs.h"
3948 #include <libutf8.h>
3957 rm -f conftest.$ac_objext conftest$ac_exeext
3958 if { (eval echo "$as_me:3958: \"$ac_link\"") >&5
3959 (eval $ac_link) 2>&5
3961 echo "$as_me:3961: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -s conftest$ac_exeext'
3964 { (eval echo "$as_me:3964: \"$ac_try\"") >&5
3967 echo "$as_me:3967: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3970 cf_cv_find_linkage_utf8=yes
3971 cf_cv_header_path_utf8=/usr/include
3972 cf_cv_library_path_utf8=/usr/lib
3973 cf_cv_library_file_utf8="-lutf8"
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 cf_cv_find_linkage_utf8=no
3980 LIBS="$cf_save_LIBS"
3982 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3984 echo "${as_me:-configure}:3984: testing find linkage for utf8 library ..." 1>&5
3986 echo "${as_me:-configure}:3986: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3988 cf_save_CPPFLAGS="$CPPFLAGS"
3989 cf_test_CPPFLAGS="$CPPFLAGS"
3993 # collect the current set of include-directories from compiler flags
3994 cf_header_path_list=""
3995 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3996 for cf_header_path in $CPPFLAGS $CFLAGS
3998 case $cf_header_path in #(vi
4000 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4002 test "$cf_header_path" != "NONE" && \
4003 test -d "$cf_header_path" && \
4005 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4006 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4007 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
4008 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
4009 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
4010 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
4013 cf_header_path_list="$cf_header_path_list $cf_search"
4019 # add the variations for the package we are looking for
4023 test "/usr" != "$prefix" && \
4025 (test $prefix = NONE || test "/usr" != "$prefix") && {
4026 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4027 test -d /usr/include && cf_search="$cf_search /usr/include"
4028 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
4029 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
4030 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
4031 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
4034 test "$prefix" != "NONE" && \
4035 test -d "$prefix" && \
4037 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4038 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4039 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
4040 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
4041 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
4042 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
4045 test "/usr/local" != "$prefix" && \
4046 test -d "/usr/local" && \
4047 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4048 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4049 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4050 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
4051 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
4052 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
4053 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
4056 test "/opt" != "$prefix" && \
4058 (test $prefix = NONE || test "/opt" != "$prefix") && {
4059 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4060 test -d /opt/include && cf_search="$cf_search /opt/include"
4061 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
4062 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
4063 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
4064 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
4067 test "$HOME" != "$prefix" && \
4068 test -d "$HOME" && \
4069 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4070 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4071 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4072 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
4073 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
4074 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
4075 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
4078 test "$includedir" != NONE && \
4079 test "$includedir" != "/usr/include" && \
4080 test -d "$includedir" && {
4081 test -d $includedir && cf_search="$cf_search $includedir"
4082 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
4085 test "$oldincludedir" != NONE && \
4086 test "$oldincludedir" != "/usr/include" && \
4087 test -d "$oldincludedir" && {
4088 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4089 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
4092 cf_search="$cf_search $cf_header_path_list"
4094 for cf_cv_header_path_utf8 in $cf_search
4096 if test -d $cf_cv_header_path_utf8 ; then
4097 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
4099 echo "${as_me:-configure}:4099: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
4101 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4106 #include <libutf8.h>
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:4116: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4119 echo "$as_me:4119: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:4122: \"$ac_try\"") >&5
4125 echo "$as_me:4125: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4128 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
4130 echo "${as_me:-configure}:4130: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
4132 cf_cv_find_linkage_utf8=maybe
4133 cf_test_CPPFLAGS="$CPPFLAGS"
4136 echo "$as_me: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 CPPFLAGS="$cf_save_CPPFLAGS"
4142 rm -f conftest.$ac_objext conftest.$ac_ext
4146 if test "$cf_cv_find_linkage_utf8" = maybe ; then
4148 echo "${as_me:-configure}:4148: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
4150 cf_save_LIBS="$LIBS"
4151 cf_save_LDFLAGS="$LDFLAGS"
4153 if test "$cf_cv_find_linkage_utf8" != yes ; then
4156 cf_library_path_list=""
4157 if test -n "${LDFLAGS}${LIBS}" ; then
4158 for cf_library_path in $LDFLAGS $LIBS
4160 case $cf_library_path in #(vi
4162 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
4164 test "$cf_library_path" != "NONE" && \
4165 test -d "$cf_library_path" && \
4167 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
4168 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
4169 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
4170 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
4171 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
4172 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
4175 cf_library_path_list="$cf_library_path_list $cf_search"
4183 test "/usr" != "$prefix" && \
4185 (test $prefix = NONE || test "/usr" != "$prefix") && {
4186 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
4187 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4188 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4189 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4190 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4191 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4194 test "$prefix" != "NONE" && \
4195 test -d "$prefix" && \
4197 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4198 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4199 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4200 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4201 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4202 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4205 test "/usr/local" != "$prefix" && \
4206 test -d "/usr/local" && \
4207 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4208 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4209 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4210 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4211 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4212 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4213 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4216 test "/opt" != "$prefix" && \
4218 (test $prefix = NONE || test "/opt" != "$prefix") && {
4219 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4220 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4221 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4222 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4223 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4224 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4227 test "$HOME" != "$prefix" && \
4228 test -d "$HOME" && \
4229 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4230 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4231 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4232 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4233 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4234 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4235 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4238 cf_search="$cf_library_path_list $cf_search"
4240 for cf_cv_library_path_utf8 in $cf_search
4242 if test -d $cf_cv_library_path_utf8 ; then
4243 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4245 echo "${as_me:-configure}:4245: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4247 CPPFLAGS="$cf_test_CPPFLAGS"
4248 LIBS="-lutf8 $cf_save_LIBS"
4249 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line 4251 "configure"
4252 #include "confdefs.h"
4254 #include <libutf8.h>
4263 rm -f conftest.$ac_objext conftest$ac_exeext
4264 if { (eval echo "$as_me:4264: \"$ac_link\"") >&5
4265 (eval $ac_link) 2>&5
4267 echo "$as_me:4267: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5
4273 echo "$as_me:4273: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4276 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4278 echo "${as_me:-configure}:4278: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4280 cf_cv_find_linkage_utf8=yes
4281 cf_cv_library_file_utf8="-lutf8"
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4287 CPPFLAGS="$cf_save_CPPFLAGS"
4288 LIBS="$cf_save_LIBS"
4289 LDFLAGS="$cf_save_LDFLAGS"
4292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4295 CPPFLAGS="$cf_save_CPPFLAGS"
4296 LDFLAGS="$cf_save_LDFLAGS"
4300 cf_cv_find_linkage_utf8=no
4304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4309 LIBS="$cf_save_LIBS"
4311 if test "$cf_cv_find_linkage_utf8" = yes ; then
4312 cf_cv_utf8_lib=add-on
4318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4320 echo "$as_me:4320: result: $cf_cv_utf8_lib" >&5
4321 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4323 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4325 if test "$cf_cv_utf8_lib" = "add-on" ; then
4326 cat >>confdefs.h <<\EOF
4327 #define HAVE_LIBUTF8_H 1
4330 if test -n "$cf_cv_header_path_utf8" ; then
4331 for cf_add_incdir in $cf_cv_header_path_utf8
4333 while test $cf_add_incdir != /usr/include
4335 if test -d $cf_add_incdir
4338 if test -n "$CFLAGS$CPPFLAGS" ; then
4339 # a loop is needed to ensure we can add subdirs of existing dirs
4340 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4341 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4342 cf_have_incdir=yes; break
4347 if test "$cf_have_incdir" = no ; then
4348 if test "$cf_add_incdir" = /usr/local/include ; then
4349 if test "$GCC" = yes
4351 cf_save_CPPFLAGS=$CPPFLAGS
4352 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #line 4354 "configure"
4355 #include "confdefs.h"
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:4366: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4369 echo "$as_me:4369: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:4372: \"$ac_try\"") >&5
4375 echo "$as_me:4375: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4379 echo "$as_me: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4383 rm -f conftest.$ac_objext conftest.$ac_ext
4384 CPPFLAGS=$cf_save_CPPFLAGS
4389 if test "$cf_have_incdir" = no ; then
4390 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4392 echo "${as_me:-configure}:4392: testing adding $cf_add_incdir to include-path ..." 1>&5
4394 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4396 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4397 test "$cf_top_incdir" = "$cf_add_incdir" && break
4398 cf_add_incdir="$cf_top_incdir"
4407 if test -n "$cf_cv_library_path_utf8" ; then
4408 for cf_add_libdir in $cf_cv_library_path_utf8
4410 if test $cf_add_libdir = /usr/lib ; then
4412 elif test -d $cf_add_libdir
4415 if test -n "$LDFLAGS$LIBS" ; then
4416 # a loop is needed to ensure we can add subdirs of existing dirs
4417 for cf_test_libdir in $LDFLAGS $LIBS ; do
4418 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4419 cf_have_libdir=yes; break
4423 if test "$cf_have_libdir" = no ; then
4424 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4426 echo "${as_me:-configure}:4426: testing adding $cf_add_libdir to library-path ..." 1>&5
4428 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4434 LIBS="$cf_cv_library_file_utf8 $LIBS"
4437 cf_ncuconfig_root=ncursesw
4439 echo "Looking for ${cf_ncuconfig_root}-config"
4441 if test -n "$ac_tool_prefix"; then
4442 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4444 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4445 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4446 echo "$as_me:4446: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -n "$NCURSES_CONFIG"; then
4452 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
4454 ac_save_IFS=$IFS; IFS=$ac_path_separator
4456 for ac_dir in $ac_dummy; do
4458 test -z "$ac_dir" && ac_dir=.
4459 $as_executable_p "$ac_dir/$ac_word" || continue
4460 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
4461 echo "$as_me:4461: found $ac_dir/$ac_word" >&5
4467 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
4468 if test -n "$NCURSES_CONFIG"; then
4469 echo "$as_me:4469: result: $NCURSES_CONFIG" >&5
4470 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4472 echo "$as_me:4472: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4476 test -n "$NCURSES_CONFIG" && break
4479 if test -z "$NCURSES_CONFIG"; then
4480 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
4481 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 echo "$as_me:4485: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$ac_ct_NCURSES_CONFIG"; then
4491 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
4493 ac_save_IFS=$IFS; IFS=$ac_path_separator
4495 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 $as_executable_p "$ac_dir/$ac_word" || continue
4499 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
4500 echo "$as_me:4500: found $ac_dir/$ac_word" >&5
4506 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
4507 if test -n "$ac_ct_NCURSES_CONFIG"; then
4508 echo "$as_me:4508: result: $ac_ct_NCURSES_CONFIG" >&5
4509 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
4511 echo "$as_me:4511: result: no" >&5
4512 echo "${ECHO_T}no" >&6
4515 test -n "$ac_ct_NCURSES_CONFIG" && break
4517 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
4519 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
4522 if test "$NCURSES_CONFIG" != none ; then
4524 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4525 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4527 # even with config script, some packages use no-override for curses.h
4529 echo "$as_me:4529: checking if we have identified curses headers" >&5
4530 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4531 if test "${cf_cv_ncurses_header+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cf_cv_ncurses_header=none
4537 ncursesw/ncurses.h \
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line 4543 "configure"
4544 #include "confdefs.h"
4545 #include <${cf_header}>
4549 initscr(); tgoto("?", 0,0)
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:4555: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:4561: \"$ac_try\"") >&5
4564 echo "$as_me:4564: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 cf_cv_ncurses_header=$cf_header; break
4568 echo "$as_me: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 rm -f conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me:4575: result: $cf_cv_ncurses_header" >&5
4576 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4578 if test "$cf_cv_ncurses_header" = none ; then
4579 { { echo "$as_me:4579: error: No curses header-files found" >&5
4580 echo "$as_me: error: No curses header-files found" >&2;}
4581 { (exit 1); exit 1; }; }
4584 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4586 for ac_header in $cf_cv_ncurses_header
4588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589 echo "$as_me:4589: checking for $ac_header" >&5
4590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #line 4595 "configure"
4596 #include "confdefs.h"
4597 #include <$ac_header>
4599 if { (eval echo "$as_me:4599: \"$ac_cpp conftest.$ac_ext\"") >&5
4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602 egrep -v '^ *\+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:4605: \$? = $ac_status" >&5
4606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_c_preproc_warn_flag
4615 if test -z "$ac_cpp_err"; then
4616 eval "$as_ac_Header=yes"
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 eval "$as_ac_Header=no"
4622 rm -f conftest.err conftest.$ac_ext
4624 echo "$as_me:4624: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4627 cat >>confdefs.h <<EOF
4628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 cat >>confdefs.h <<\EOF
4638 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4640 cat >>confdefs.h <<EOF
4641 #define $cf_nculib_ROOT 1
4644 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4648 cf_ncuhdr_root=ncursesw
4650 test -n "$cf_cv_curses_dir" && \
4651 test "$cf_cv_curses_dir" != "no" && { \
4653 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4654 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4656 while test $cf_add_incdir != /usr/include
4658 if test -d $cf_add_incdir
4661 if test -n "$CFLAGS$CPPFLAGS" ; then
4662 # a loop is needed to ensure we can add subdirs of existing dirs
4663 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do