2 # From configure.in Revision: 1.12 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
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 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
563 # Report the --help message.
565 if test "$ac_init_help" = "long"; then
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
569 \`configure' configures this package to adapt to many kinds of systems.
571 Usage: $0 [OPTION]... [VAR=VALUE]...
573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
574 VAR=VALUE. See below for descriptions of some of the useful variables.
576 Defaults for the options are specified in brackets.
579 -h, --help display this help and exit
580 --help=short display options specific to this package
581 --help=recursive display the short help of all the included packages
582 -V, --version display version information and exit
583 -q, --quiet, --silent do not print \`checking...' messages
584 --cache-file=FILE cache test results in FILE [disabled]
585 -C, --config-cache alias for \`--cache-file=config.cache'
586 -n, --no-create do not create output files
587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
592 Installation directories:
593 --prefix=PREFIX install architecture-independent files in PREFIX
595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 By default, \`make install' will install all the files in
599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601 for instance \`--prefix=\$HOME'.
603 For better control, use the options below.
605 Fine tuning of the installation directories:
606 --bindir=DIR user executables [EPREFIX/bin]
607 --sbindir=DIR system admin executables [EPREFIX/sbin]
608 --libexecdir=DIR program executables [EPREFIX/libexec]
609 --datadir=DIR read-only architecture-independent data [PREFIX/share]
610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
613 --libdir=DIR object code libraries [EPREFIX/lib]
614 --includedir=DIR C header files [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc [/usr/include]
616 --infodir=DIR info documentation [PREFIX/info]
617 --mandir=DIR man documentation [PREFIX/man]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 --build=BUILD configure for building on BUILD [guessed]
629 --host=HOST build programs to run on HOST [BUILD]
630 --target=TARGET configure for building compilers for TARGET [HOST]
634 if test -n "$ac_init_help"; then
639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
646 --with-system-type=XXX test: override derived host system-type
647 --with-pkg-config{=path} enable/disable use of pkg-config
648 --enable-pc-files generate and install .pc files for pkg-config
649 --enable-mixed-case tic should assume mixed-case filenames
650 --with-install-prefix prefixes actual install-location ($DESTDIR)
651 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
652 --with-build-cc=XXX the build C compiler ($BUILD_CC)
653 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
654 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
655 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
656 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
657 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
658 Options to Specify the Libraries Built/Used:
659 --enable-widec compile with wide-char/UTF-8 code
660 --with-curses-dir=DIR directory in which (n)curses is installed
661 --with-shlib-version=X Specify rel or abi version for shared libs
662 Fine-Tuning Your Configuration:
663 --enable-broken_linker compile with broken-linker support code
664 --disable-largefile omit support for large files
665 --with-rcs-ids compile-in RCS identifiers
667 --disable-ext-funcs disable function-extensions
668 --enable-const compile with extra/non-standard const
670 --without-develop disable development options
672 --with-pthread use POSIX thread library
673 --enable-weak-symbols enable weak-symbols for pthreads
674 --enable-reentrant compile with experimental reentrant code
675 --with-wrap-prefix=XXX override prefix used for public variables
676 Testing/development Options:
677 --enable-echo build: display "compiling" commands (default)
678 --enable-warnings build: turn on GCC compiler warnings
679 --enable-assertions test: turn on generation of assertion code
680 --enable-expanded test: generate functions for certain macros
681 --disable-macros test: use functions rather than macros
682 --with-trace test: add trace() function to all models of ncurses
683 Ada95 Binding Options:
684 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
685 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
686 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
688 Some influential environment variables:
689 CC C compiler command
690 CFLAGS C compiler flags
691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
692 nonstandard directory <lib dir>
693 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
694 headers in a nonstandard directory <include dir>
697 Use these variables to override the choices made by `configure' or to help
698 it to find libraries and programs with nonstandard names/locations.
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
743 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
744 Free Software Foundation, Inc.
745 This configure script is free software; the Free Software Foundation
746 gives unlimited permission to copy, distribute and modify it.
752 This file contains any messages produced by compilers while
753 running configure, to aid debugging if configure makes a mistake.
755 It was created by $as_me, which was
756 generated by GNU Autoconf 2.52.20100530. Invocation command line was
767 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
768 uname -m = `(uname -m) 2>/dev/null || echo unknown`
769 uname -r = `(uname -r) 2>/dev/null || echo unknown`
770 uname -s = `(uname -s) 2>/dev/null || echo unknown`
771 uname -v = `(uname -v) 2>/dev/null || echo unknown`
773 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
774 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
776 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
777 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
778 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
779 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
780 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
781 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
782 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 # Keep a trace of the command line.
797 # Strip out --no-create and --no-recursion so they do not pile up.
798 # Also quote any args containing shell meta-characters.
804 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
805 | --no-cr | --no-c) ;;
806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
810 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
812 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 # Get rid of the leading space.
818 # When interrupted or exit'd, cleanup temporary files, and complete
819 # config.log. We remove comments because anyway the quotes in there
820 # would cause problems or look ugly.
822 # Save into config.log some information that might help in debugging.
824 echo "## ----------------- ##" >&5
825 echo "## Cache variables. ##" >&5
826 echo "## ----------------- ##" >&5
828 # The following way of writing the cache mishandles newlines in values,
831 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
843 sed "/^$/d" confdefs.h >conftest.log
844 if test -s conftest.log; then
846 echo "## ------------ ##" >&5
847 echo "## confdefs.h. ##" >&5
848 echo "## ------------ ##" >&5
853 test "$ac_signal" != 0 &&
854 echo "$as_me: caught signal $ac_signal" >&5
855 echo "$as_me: exit $exit_status" >&5
856 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 for ac_signal in 1 2 13 15; do
860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
865 rm -rf conftest* confdefs.h
866 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
869 # Let the site file select an alternate cache file if it wants to.
870 # Prefer explicitly selected file to automatically selected ones.
871 if test -z "$CONFIG_SITE"; then
872 if test "x$prefix" != xNONE; then
873 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
875 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 for ac_site_file in $CONFIG_SITE; do
879 if test -r "$ac_site_file"; then
880 { echo "$as_me:880: loading site script $ac_site_file" >&5
881 echo "$as_me: loading site script $ac_site_file" >&6;}
882 cat "$ac_site_file" >&5
887 if test -r "$cache_file"; then
888 # Some versions of bash will fail to source /dev/null (special
889 # files actually), so we avoid doing that.
890 if test -f "$cache_file"; then
891 { echo "$as_me:891: loading cache $cache_file" >&5
892 echo "$as_me: loading cache $cache_file" >&6;}
894 [\\/]* | ?:[\\/]* ) . $cache_file;;
899 { echo "$as_me:899: creating cache $cache_file" >&5
900 echo "$as_me: creating cache $cache_file" >&6;}
904 # Check that the precious variables saved in the cache have kept the same
906 ac_cache_corrupted=false
907 for ac_var in `(set) 2>&1 |
908 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
910 eval ac_new_set=\$ac_env_${ac_var}_set
911 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
912 eval ac_new_val="\$ac_env_${ac_var}_value"
913 case $ac_old_set,$ac_new_set in
915 { echo "$as_me:915: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
919 { echo "$as_me:919: error: \`$ac_var' was not set in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
924 if test "x$ac_old_val" != "x$ac_new_val"; then
925 { echo "$as_me:925: error: \`$ac_var' has changed since the previous run:" >&5
926 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
927 { echo "$as_me:927: former value: $ac_old_val" >&5
928 echo "$as_me: former value: $ac_old_val" >&2;}
929 { echo "$as_me:929: current value: $ac_new_val" >&5
930 echo "$as_me: current value: $ac_new_val" >&2;}
934 # Pass precious variables to config.status. It doesn't matter if
935 # we pass some twice (in addition to the command line arguments).
936 if test "$ac_new_set" = set; then
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args '$ac_arg'"
942 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 if $ac_cache_corrupted; then
948 { echo "$as_me:948: error: changes in the environment can compromise the build" >&5
949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
950 { { echo "$as_me:950: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
952 { (exit 1); exit 1; }; }
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 ac_main_return=return
962 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
963 *c*,-n*) ECHO_N= ECHO_C='
965 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
966 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968 echo "#! $SHELL" >conftest.sh
969 echo "exit 0" >>conftest.sh
971 if { (echo "$as_me:971: PATH=\".;.\"; conftest.sh") >&5
972 (PATH=".;."; conftest.sh) 2>&5
974 echo "$as_me:974: \$? = $ac_status" >&5
975 (exit $ac_status); }; then
976 ac_path_separator=';'
980 PATH_SEPARATOR="$ac_path_separator"
983 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
988 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
989 if test -f $ac_dir/install-sh; then
991 ac_install_sh="$ac_aux_dir/install-sh -c"
993 elif test -f $ac_dir/install.sh; then
995 ac_install_sh="$ac_aux_dir/install.sh -c"
997 elif test -f $ac_dir/shtool; then
999 ac_install_sh="$ac_aux_dir/shtool install -c"
1003 if test -z "$ac_aux_dir"; then
1004 { { echo "$as_me:1004: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1005 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1006 { (exit 1); exit 1; }; }
1008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1010 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1012 # Make sure we can run config.sub.
1013 $ac_config_sub sun4 >/dev/null 2>&1 ||
1014 { { echo "$as_me:1014: error: cannot run $ac_config_sub" >&5
1015 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1016 { (exit 1); exit 1; }; }
1018 echo "$as_me:1018: checking build system type" >&5
1019 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1020 if test "${ac_cv_build+set}" = set; then
1021 echo $ECHO_N "(cached) $ECHO_C" >&6
1023 ac_cv_build_alias=$build_alias
1024 test -z "$ac_cv_build_alias" &&
1025 ac_cv_build_alias=`$ac_config_guess`
1026 test -z "$ac_cv_build_alias" &&
1027 { { echo "$as_me:1027: error: cannot guess build type; you must specify one" >&5
1028 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1029 { (exit 1); exit 1; }; }
1030 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1031 { { echo "$as_me:1031: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1032 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1033 { (exit 1); exit 1; }; }
1036 echo "$as_me:1036: result: $ac_cv_build" >&5
1037 echo "${ECHO_T}$ac_cv_build" >&6
1039 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1043 echo "$as_me:1043: checking host system type" >&5
1044 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1045 if test "${ac_cv_host+set}" = set; then
1046 echo $ECHO_N "(cached) $ECHO_C" >&6
1048 ac_cv_host_alias=$host_alias
1049 test -z "$ac_cv_host_alias" &&
1050 ac_cv_host_alias=$ac_cv_build_alias
1051 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1052 { { echo "$as_me:1052: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1053 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1054 { (exit 1); exit 1; }; }
1057 echo "$as_me:1057: result: $ac_cv_host" >&5
1058 echo "${ECHO_T}$ac_cv_host" >&6
1060 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1065 echo "$as_me:1065: checking target system type" >&5
1066 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1067 if test "${ac_cv_target+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
1070 ac_cv_target_alias=$target_alias
1071 test "x$ac_cv_target_alias" = "x" &&
1072 ac_cv_target_alias=$ac_cv_host_alias
1073 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1074 { { echo "$as_me:1074: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1075 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1076 { (exit 1); exit 1; }; }
1079 echo "$as_me:1079: result: $ac_cv_target" >&5
1080 echo "${ECHO_T}$ac_cv_target" >&6
1081 target=$ac_cv_target
1082 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1083 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1084 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086 # The aliases save the names the user supplied, while $host etc.
1087 # will get canonicalized.
1088 test -n "$target_alias" &&
1089 test "$program_prefix$program_suffix$program_transform_name" = \
1091 program_prefix=${target_alias}-
1092 system_name="$host_os"
1094 system_name="`(uname -s -r) 2>/dev/null`"
1095 if test -z "$system_name" ; then
1096 system_name="`(hostname) 2>/dev/null`"
1099 test -n "$system_name" && cat >>confdefs.h <<EOF
1100 #define SYSTEM_NAME "$system_name"
1103 if test "${cf_cv_system_name+set}" = set; then
1104 echo $ECHO_N "(cached) $ECHO_C" >&6
1106 cf_cv_system_name="$system_name"
1109 test -z "$system_name" && system_name="$cf_cv_system_name"
1110 test -n "$cf_cv_system_name" && echo "$as_me:1110: result: Configuring for $cf_cv_system_name" >&5
1111 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1113 if test ".$system_name" != ".$cf_cv_system_name" ; then
1114 echo "$as_me:1114: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1115 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1116 { { echo "$as_me:1116: error: \"Please remove config.cache and try again.\"" >&5
1117 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1118 { (exit 1); exit 1; }; }
1121 # Check whether --with-system-type or --without-system-type was given.
1122 if test "${with_system_type+set}" = set; then
1123 withval="$with_system_type"
1124 { echo "$as_me:1124: WARNING: overriding system type to $withval" >&5
1125 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1126 cf_cv_system_name=$withval
1129 ### Save the given $CFLAGS to allow user-override.
1130 cf_user_CFLAGS="$CFLAGS"
1132 ### Default install-location
1134 echo "$as_me:1134: checking for prefix" >&5
1135 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1136 if test "x$prefix" = "xNONE" ; then
1137 case "$cf_cv_system_name" in
1138 # non-vendor systems don't have a conflict
1139 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1142 *) prefix=$ac_default_prefix
1146 echo "$as_me:1146: result: $prefix" >&5
1147 echo "${ECHO_T}$prefix" >&6
1149 if test "x$prefix" = "xNONE" ; then
1150 echo "$as_me:1150: checking for default include-directory" >&5
1151 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1152 test -n "$verbose" && echo 1>&6
1155 $includedir/ncurses \
1157 $prefix/include/ncurses \
1158 /usr/local/include \
1159 /usr/local/include/ncurses \
1161 /usr/include/ncurses
1163 cf_dir=`eval echo $cf_symbol`
1164 if test -f $cf_dir/curses.h ; then
1165 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1166 includedir="$cf_symbol"
1167 test -n "$verbose" && echo $ac_n " found " 1>&6
1171 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1173 echo "$as_me:1173: result: $includedir" >&5
1174 echo "${ECHO_T}$includedir" >&6
1177 ### Checks for programs.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183 ac_main_return=return
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1187 echo "$as_me:1187: checking for $ac_word" >&5
1188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1189 if test "${ac_cv_prog_CC+set}" = set; then
1190 echo $ECHO_N "(cached) $ECHO_C" >&6
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC="$CC" # Let the user override the test.
1195 ac_save_IFS=$IFS; IFS=$ac_path_separator
1197 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 $as_executable_p "$ac_dir/$ac_word" || continue
1201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1202 echo "$as_me:1202: found $ac_dir/$ac_word" >&5
1209 if test -n "$CC"; then
1210 echo "$as_me:1210: result: $CC" >&5
1211 echo "${ECHO_T}$CC" >&6
1213 echo "$as_me:1213: result: no" >&5
1214 echo "${ECHO_T}no" >&6
1218 if test -z "$ac_cv_prog_CC"; then
1220 # Extract the first word of "gcc", so it can be a program name with args.
1221 set dummy gcc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if test -n "$ac_ct_CC"; then
1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_ac_ct_CC="gcc"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 if test -n "$ac_ct_CC"; then
1245 echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 echo "${ECHO_T}$ac_ct_CC" >&6
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1257 if test -z "$CC"; then
1258 if test -n "$ac_tool_prefix"; then
1259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1260 set dummy ${ac_tool_prefix}cc; ac_word=$2
1261 echo "$as_me:1261: checking for $ac_word" >&5
1262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1263 if test "${ac_cv_prog_CC+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 if test -n "$CC"; then
1267 ac_cv_prog_CC="$CC" # Let the user override the test.
1269 ac_save_IFS=$IFS; IFS=$ac_path_separator
1271 for ac_dir in $ac_dummy; do
1273 test -z "$ac_dir" && ac_dir=.
1274 $as_executable_p "$ac_dir/$ac_word" || continue
1275 ac_cv_prog_CC="${ac_tool_prefix}cc"
1276 echo "$as_me:1276: found $ac_dir/$ac_word" >&5
1283 if test -n "$CC"; then
1284 echo "$as_me:1284: result: $CC" >&5
1285 echo "${ECHO_T}$CC" >&6
1287 echo "$as_me:1287: result: no" >&5
1288 echo "${ECHO_T}no" >&6
1292 if test -z "$ac_cv_prog_CC"; then
1294 # Extract the first word of "cc", so it can be a program name with args.
1295 set dummy cc; ac_word=$2
1296 echo "$as_me:1296: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 if test -n "$ac_ct_CC"; then
1302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1304 ac_save_IFS=$IFS; IFS=$ac_path_separator
1306 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 $as_executable_p "$ac_dir/$ac_word" || continue
1310 ac_cv_prog_ac_ct_CC="cc"
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1318 if test -n "$ac_ct_CC"; then
1319 echo "$as_me:1319: result: $ac_ct_CC" >&5
1320 echo "${ECHO_T}$ac_ct_CC" >&6
1322 echo "$as_me:1322: result: no" >&5
1323 echo "${ECHO_T}no" >&6
1332 if test -z "$CC"; then
1333 # Extract the first word of "cc", so it can be a program name with args.
1334 set dummy cc; ac_word=$2
1335 echo "$as_me:1335: checking for $ac_word" >&5
1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337 if test "${ac_cv_prog_CC+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 if test -n "$CC"; then
1341 ac_cv_prog_CC="$CC" # Let the user override the test.
1344 ac_save_IFS=$IFS; IFS=$ac_path_separator
1346 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 $as_executable_p "$ac_dir/$ac_word" || continue
1350 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1351 ac_prog_rejected=yes
1355 echo "$as_me:1355: found $ac_dir/$ac_word" >&5
1359 if test $ac_prog_rejected = yes; then
1360 # We found a bogon in the path, so make sure we never use it.
1361 set dummy $ac_cv_prog_CC
1363 if test $# != 0; then
1364 # We chose a different compiler from the bogus one.
1365 # However, it has the same basename, so the bogon will be chosen
1366 # first if we set CC to just the basename; use the full file name.
1368 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1376 if test -n "$CC"; then
1377 echo "$as_me:1377: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1380 echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1385 if test -z "$CC"; then
1386 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 ac_save_IFS=$IFS; IFS=$ac_path_separator
1401 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 $as_executable_p "$ac_dir/$ac_word" || continue
1405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1406 echo "$as_me:1406: found $ac_dir/$ac_word" >&5
1413 if test -n "$CC"; then
1414 echo "$as_me:1414: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1417 echo "$as_me:1417: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1421 test -n "$CC" && break
1424 if test -z "$CC"; then
1428 # Extract the first word of "$ac_prog", so it can be a program name with args.
1429 set dummy $ac_prog; ac_word=$2
1430 echo "$as_me:1430: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 ac_save_IFS=$IFS; IFS=$ac_path_separator
1440 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 $as_executable_p "$ac_dir/$ac_word" || continue
1444 ac_cv_prog_ac_ct_CC="$ac_prog"
1445 echo "$as_me:1445: found $ac_dir/$ac_word" >&5
1451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1452 if test -n "$ac_ct_CC"; then
1453 echo "$as_me:1453: result: $ac_ct_CC" >&5
1454 echo "${ECHO_T}$ac_ct_CC" >&6
1456 echo "$as_me:1456: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$ac_ct_CC" && break
1468 test -z "$CC" && { { echo "$as_me:1468: error: no acceptable cc found in \$PATH" >&5
1469 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1470 { (exit 1); exit 1; }; }
1472 # Provide some information about the compiler.
1473 echo "$as_me:1473:" \
1474 "checking for C compiler version" >&5
1475 ac_compiler=`set X $ac_compile; echo $2`
1476 { (eval echo "$as_me:1476: \"$ac_compiler --version </dev/null >&5\"") >&5
1477 (eval $ac_compiler --version </dev/null >&5) 2>&5
1479 echo "$as_me:1479: \$? = $ac_status" >&5
1480 (exit $ac_status); }
1481 { (eval echo "$as_me:1481: \"$ac_compiler -v </dev/null >&5\"") >&5
1482 (eval $ac_compiler -v </dev/null >&5) 2>&5
1484 echo "$as_me:1484: \$? = $ac_status" >&5
1485 (exit $ac_status); }
1486 { (eval echo "$as_me:1486: \"$ac_compiler -V </dev/null >&5\"") >&5
1487 (eval $ac_compiler -V </dev/null >&5) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }
1492 cat >conftest.$ac_ext <<_ACEOF
1493 #line 1493 "configure"
1494 #include "confdefs.h"
1504 ac_clean_files_save=$ac_clean_files
1505 ac_clean_files="$ac_clean_files a.out a.exe"
1506 # Try to create an executable without -o first, disregard a.out.
1507 # It will help us diagnose broken compilers, and finding out an intuition
1509 echo "$as_me:1509: checking for C compiler default output" >&5
1510 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1511 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1512 if { (eval echo "$as_me:1512: \"$ac_link_default\"") >&5
1513 (eval $ac_link_default) 2>&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; then
1517 # Find the output, starting from the most likely. This scheme is
1518 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1520 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1521 ls a.out conftest 2>/dev/null;
1522 ls a.* conftest.* 2>/dev/null`; do
1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1525 a.out ) # We found the default executable, but exeext='' is most
1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1529 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1536 echo "$as_me: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 { { echo "$as_me:1538: error: C compiler cannot create executables" >&5
1539 echo "$as_me: error: C compiler cannot create executables" >&2;}
1540 { (exit 77); exit 77; }; }
1543 ac_exeext=$ac_cv_exeext
1544 echo "$as_me:1544: result: $ac_file" >&5
1545 echo "${ECHO_T}$ac_file" >&6
1547 # Check the compiler produces executables we can run. If not, either
1548 # the compiler is broken, or we cross compile.
1549 echo "$as_me:1549: checking whether the C compiler works" >&5
1550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1552 # If not cross compiling, check that we can run a simple program.
1553 if test "$cross_compiling" != yes; then
1554 if { ac_try='./$ac_file'
1555 { (eval echo "$as_me:1555: \"$ac_try\"") >&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; }; then
1562 if test "$cross_compiling" = maybe; then
1565 { { echo "$as_me:1565: error: cannot run C compiled programs.
1566 If you meant to cross compile, use \`--host'." >&5
1567 echo "$as_me: error: cannot run C compiled programs.
1568 If you meant to cross compile, use \`--host'." >&2;}
1569 { (exit 1); exit 1; }; }
1573 echo "$as_me:1573: result: yes" >&5
1574 echo "${ECHO_T}yes" >&6
1576 rm -f a.out a.exe conftest$ac_cv_exeext
1577 ac_clean_files=$ac_clean_files_save
1578 # Check the compiler produces executables we can run. If not, either
1579 # the compiler is broken, or we cross compile.
1580 echo "$as_me:1580: checking whether we are cross compiling" >&5
1581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1582 echo "$as_me:1582: result: $cross_compiling" >&5
1583 echo "${ECHO_T}$cross_compiling" >&6
1585 echo "$as_me:1585: checking for executable suffix" >&5
1586 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1587 if { (eval echo "$as_me:1587: \"$ac_link\"") >&5
1588 (eval $ac_link) 2>&5
1590 echo "$as_me:1590: \$? = $ac_status" >&5
1591 (exit $ac_status); }; then
1592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1594 # work properly (i.e., refer to `conftest.exe'), while it won't with
1596 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1606 { { echo "$as_me:1606: error: cannot compute EXEEXT: cannot compile and link" >&5
1607 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1608 { (exit 1); exit 1; }; }
1611 rm -f conftest$ac_cv_exeext
1612 echo "$as_me:1612: result: $ac_cv_exeext" >&5
1613 echo "${ECHO_T}$ac_cv_exeext" >&6
1615 rm -f conftest.$ac_ext
1616 EXEEXT=$ac_cv_exeext
1618 echo "$as_me:1618: checking for object suffix" >&5
1619 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1620 if test "${ac_cv_objext+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1635 rm -f conftest.o conftest.obj
1636 if { (eval echo "$as_me:1636: \"$ac_compile\"") >&5
1637 (eval $ac_compile) 2>&5
1639 echo "$as_me:1639: \$? = $ac_status" >&5
1640 (exit $ac_status); }; then
1641 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1643 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1649 echo "$as_me: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651 { { echo "$as_me:1651: error: cannot compute OBJEXT: cannot compile" >&5
1652 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1653 { (exit 1); exit 1; }; }
1656 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1658 echo "$as_me:1658: result: $ac_cv_objext" >&5
1659 echo "${ECHO_T}$ac_cv_objext" >&6
1660 OBJEXT=$ac_cv_objext
1662 echo "$as_me:1662: checking whether we are using the GNU C compiler" >&5
1663 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1664 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1682 rm -f conftest.$ac_objext
1683 if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5
1684 (eval $ac_compile) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); } &&
1688 { ac_try='test -s conftest.$ac_objext'
1689 { (eval echo "$as_me:1689: \"$ac_try\"") >&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }; }; then
1696 echo "$as_me: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1700 rm -f conftest.$ac_objext conftest.$ac_ext
1701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1704 echo "$as_me:1704: result: $ac_cv_c_compiler_gnu" >&5
1705 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1706 GCC=`test $ac_compiler_gnu = yes && echo yes`
1707 ac_test_CFLAGS=${CFLAGS+set}
1708 ac_save_CFLAGS=$CFLAGS
1710 echo "$as_me:1710: checking whether $CC accepts -g" >&5
1711 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1712 if test "${ac_cv_prog_cc_g+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1741 echo "$as_me: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1745 rm -f conftest.$ac_objext conftest.$ac_ext
1747 echo "$as_me:1747: result: $ac_cv_prog_cc_g" >&5
1748 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1749 if test "$ac_test_CFLAGS" = set; then
1750 CFLAGS=$ac_save_CFLAGS
1751 elif test $ac_cv_prog_cc_g = yes; then
1752 if test "$GCC" = yes; then
1758 if test "$GCC" = yes; then
1764 # Some people use a C++ compiler to compile C. Since we use `exit',
1765 # in C++ we need to declare it. In case someone uses the same compiler
1766 # for both compiling C and C++ we need to have the C++ compiler decide
1767 # the declaration of exit, since it's the most demanding environment.
1768 cat >conftest.$ac_ext <<_ACEOF
1773 rm -f conftest.$ac_objext
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); } &&
1779 { ac_try='test -s conftest.$ac_objext'
1780 { (eval echo "$as_me:1780: \"$ac_try\"") >&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1785 for ac_declaration in \
1787 '#include <stdlib.h>' \
1788 'extern "C" void std::exit (int) throw (); using std::exit;' \
1789 'extern "C" void std::exit (int); using std::exit;' \
1790 'extern "C" void exit (int) throw ();' \
1791 'extern "C" void exit (int);' \
1794 cat >conftest.$ac_ext <<_ACEOF
1795 #line 1795 "configure"
1796 #include "confdefs.h"
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); } &&
1813 { ac_try='test -s conftest.$ac_objext'
1814 { (eval echo "$as_me:1814: \"$ac_try\"") >&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; }; then
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1826 cat >conftest.$ac_ext <<_ACEOF
1827 #line 1827 "configure"
1828 #include "confdefs.h"
1838 rm -f conftest.$ac_objext
1839 if { (eval echo "$as_me:1839: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); } &&
1844 { ac_try='test -s conftest.$ac_objext'
1845 { (eval echo "$as_me:1845: \"$ac_try\"") >&5
1848 echo "$as_me:1848: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1852 echo "$as_me: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 rm -f conftest.$ac_objext conftest.$ac_ext
1858 if test -n "$ac_declaration"; then
1859 echo '#ifdef __cplusplus' >>confdefs.h
1860 echo $ac_declaration >>confdefs.h
1861 echo '#endif' >>confdefs.h
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 rm -f conftest.$ac_objext conftest.$ac_ext
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 ac_main_return=return
1877 if test "$GCC" = yes ; then
1878 echo "$as_me:1878: checking version of $CC" >&5
1879 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1880 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1881 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1882 echo "$as_me:1882: result: $GCC_VERSION" >&5
1883 echo "${ECHO_T}$GCC_VERSION" >&6
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 ac_main_return=return
1892 echo "$as_me:1892: checking how to run the C preprocessor" >&5
1893 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1894 # On Suns, sometimes $CPP names a directory.
1895 if test -n "$CPP" && test -d "$CPP"; then
1898 if test -z "$CPP"; then
1899 if test "${ac_cv_prog_CPP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 # Double quotes because CPP needs to be expanded
1903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1906 for ac_c_preproc_warn_flag in '' yes
1908 # Use a header file that comes with gcc, so configuring glibc
1909 # with a fresh cross-compiler works.
1910 # On the NeXT, cc -E runs the code through the compiler's parser,
1911 # not just through cpp. "Syntax error" is here to catch this case.
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1918 if { (eval echo "$as_me:1918: \"$ac_cpp conftest.$ac_ext\"") >&5
1919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1921 egrep -v '^ *\+' conftest.er1 >conftest.err
1923 cat conftest.err >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); } >/dev/null; then
1926 if test -s conftest.err; then
1927 ac_cpp_err=$ac_c_preproc_warn_flag
1934 if test -z "$ac_cpp_err"; then
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 # Broken: fails on valid input.
1942 rm -f conftest.err conftest.$ac_ext
1944 # OK, works on sane cases. Now check whether non-existent headers
1945 # can be detected and how.
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line 1947 "configure"
1948 #include "confdefs.h"
1949 #include <ac_nonexistent.h>
1951 if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5
1952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1954 egrep -v '^ *\+' conftest.er1 >conftest.err
1956 cat conftest.err >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } >/dev/null; then
1959 if test -s conftest.err; then
1960 ac_cpp_err=$ac_c_preproc_warn_flag
1967 if test -z "$ac_cpp_err"; then
1968 # Broken: success on invalid input.
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 # Passes both tests.
1977 rm -f conftest.err conftest.$ac_ext
1980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1981 rm -f conftest.err conftest.$ac_ext
1982 if $ac_preproc_ok; then
1994 echo "$as_me:1994: result: $CPP" >&5
1995 echo "${ECHO_T}$CPP" >&6
1997 for ac_c_preproc_warn_flag in '' yes
1999 # Use a header file that comes with gcc, so configuring glibc
2000 # with a fresh cross-compiler works.
2001 # On the NeXT, cc -E runs the code through the compiler's parser,
2002 # not just through cpp. "Syntax error" is here to catch this case.
2003 cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2009 if { (eval echo "$as_me:2009: \"$ac_cpp conftest.$ac_ext\"") >&5
2010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2012 egrep -v '^ *\+' conftest.er1 >conftest.err
2014 cat conftest.err >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); } >/dev/null; then
2017 if test -s conftest.err; then
2018 ac_cpp_err=$ac_c_preproc_warn_flag
2025 if test -z "$ac_cpp_err"; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2030 # Broken: fails on valid input.
2033 rm -f conftest.err conftest.$ac_ext
2035 # OK, works on sane cases. Now check whether non-existent headers
2036 # can be detected and how.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line 2038 "configure"
2039 #include "confdefs.h"
2040 #include <ac_nonexistent.h>
2042 if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5
2043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2045 egrep -v '^ *\+' conftest.er1 >conftest.err
2047 cat conftest.err >&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); } >/dev/null; then
2050 if test -s conftest.err; then
2051 ac_cpp_err=$ac_c_preproc_warn_flag
2058 if test -z "$ac_cpp_err"; then
2059 # Broken: success on invalid input.
2062 echo "$as_me: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 # Passes both tests.
2068 rm -f conftest.err conftest.$ac_ext
2071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2072 rm -f conftest.err conftest.$ac_ext
2073 if $ac_preproc_ok; then
2076 { { echo "$as_me:2076: error: C preprocessor \"$CPP\" fails sanity check" >&5
2077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2078 { (exit 1); exit 1; }; }
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 ac_main_return=return
2088 if test $ac_cv_c_compiler_gnu = yes; then
2089 echo "$as_me:2089: checking whether $CC needs -traditional" >&5
2090 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2091 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 ac_pattern="Autoconf.*'x'"
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2099 int Autoconf = TIOCGETP;
2101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2102 egrep "$ac_pattern" >/dev/null 2>&1; then
2103 ac_cv_prog_gcc_traditional=yes
2105 ac_cv_prog_gcc_traditional=no
2109 if test $ac_cv_prog_gcc_traditional = no; then
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line 2111 "configure"
2112 #include "confdefs.h"
2114 int Autoconf = TCGETA;
2116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2117 egrep "$ac_pattern" >/dev/null 2>&1; then
2118 ac_cv_prog_gcc_traditional=yes
2124 echo "$as_me:2124: result: $ac_cv_prog_gcc_traditional" >&5
2125 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2126 if test $ac_cv_prog_gcc_traditional = yes; then
2127 CC="$CC -traditional"
2131 echo "$as_me:2131: checking whether $CC understands -c and -o together" >&5
2132 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2133 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat > conftest.$ac_ext <<CF_EOF
2141 ${cf_cv_main_return:-return}(0);
2144 # We do the test twice because some compilers refuse to overwrite an
2145 # existing .o file with -o, though they will create one.
2146 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2147 if { (eval echo "$as_me:2147: \"$ac_try\"") >&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 test -f conftest2.$ac_objext && { (eval echo "$as_me:2152: \"$ac_try\"") >&5
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit $ac_status); };
2158 eval cf_cv_prog_CC_c_o=yes
2160 eval cf_cv_prog_CC_c_o=no
2165 if test $cf_cv_prog_CC_c_o = yes; then
2166 echo "$as_me:2166: result: yes" >&5
2167 echo "${ECHO_T}yes" >&6
2169 echo "$as_me:2169: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2173 echo "$as_me:2173: checking for POSIXized ISC" >&5
2174 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2175 if test -d /etc/conf/kconfig.d &&
2176 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2178 echo "$as_me:2178: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6
2180 ISC=yes # If later tests want to check for ISC.
2182 cat >>confdefs.h <<\EOF
2183 #define _POSIX_SOURCE 1
2186 if test "$GCC" = yes; then
2192 echo "$as_me:2192: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2197 echo "$as_me:2197: checking for ${CC-cc} option to accept ANSI C" >&5
2198 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2199 if test "${cf_cv_ansi_cc+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cf_save_CFLAGS="$CFLAGS"
2205 cf_save_CPPFLAGS="$CPPFLAGS"
2206 # Don't try gcc -ansi; that turns off useful extensions and
2207 # breaks some systems' header files.
2208 # AIX -qlanglvl=ansi
2209 # Ultrix and OSF/1 -std1
2210 # HP-UX -Aa -D_HPUX_SOURCE
2212 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2213 for cf_arg in "-DCC_HAS_PROTOS" \
2218 "-Aa -D_HPUX_SOURCE" \
2225 cf_new_extra_cppflags=
2227 for cf_add_cflags in $cf_arg
2229 case $cf_fix_cppflags in
2231 case $cf_add_cflags in #(vi
2232 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2233 case $cf_add_cflags in
2235 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2237 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2238 && test -z "${cf_tst_cflags}" \
2239 && cf_fix_cppflags=yes
2241 if test $cf_fix_cppflags = yes ; then
2242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2244 elif test "${cf_tst_cflags}" = "\"'" ; then
2245 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2251 *$cf_add_cflags) #(vi
2254 case $cf_add_cflags in #(vi
2256 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2258 CPPFLAGS=`echo "$CPPFLAGS" | \
2259 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2260 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2264 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2269 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2274 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2276 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2278 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2279 && test -z "${cf_tst_cflags}" \
2280 && cf_fix_cppflags=no
2285 if test -n "$cf_new_cflags" ; then
2287 CFLAGS="$CFLAGS $cf_new_cflags"
2290 if test -n "$cf_new_cppflags" ; then
2292 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2295 if test -n "$cf_new_extra_cppflags" ; then
2297 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #line 2301 "configure"
2302 #include "confdefs.h"
2304 #ifndef CC_HAS_PROTOS
2305 #if !defined(__STDC__) || (__STDC__ != 1)
2314 int test (int i, double x);
2315 struct s1 {int (*f) (int a);};
2316 struct s2 {int (*f) (double a);};
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:2322: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:2325: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:2328: \"$ac_try\"") >&5
2331 echo "$as_me:2331: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 cf_cv_ansi_cc="$cf_arg"; break
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 rm -f conftest.$ac_objext conftest.$ac_ext
2340 CFLAGS="$cf_save_CFLAGS"
2341 CPPFLAGS="$cf_save_CPPFLAGS"
2344 echo "$as_me:2344: result: $cf_cv_ansi_cc" >&5
2345 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2347 if test "$cf_cv_ansi_cc" != "no"; then
2348 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2353 cf_new_extra_cppflags=
2355 for cf_add_cflags in $cf_cv_ansi_cc
2357 case $cf_fix_cppflags in
2359 case $cf_add_cflags in #(vi
2360 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2361 case $cf_add_cflags in
2363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2366 && test -z "${cf_tst_cflags}" \
2367 && cf_fix_cppflags=yes
2369 if test $cf_fix_cppflags = yes ; then
2370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2372 elif test "${cf_tst_cflags}" = "\"'" ; then
2373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2379 *$cf_add_cflags) #(vi
2382 case $cf_add_cflags in #(vi
2384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2386 CPPFLAGS=`echo "$CPPFLAGS" | \
2387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2397 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2406 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2407 && test -z "${cf_tst_cflags}" \
2408 && cf_fix_cppflags=no
2413 if test -n "$cf_new_cflags" ; then
2415 CFLAGS="$CFLAGS $cf_new_cflags"
2418 if test -n "$cf_new_cppflags" ; then
2420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2423 if test -n "$cf_new_extra_cppflags" ; then
2425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2429 cat >>confdefs.h <<\EOF
2430 #define CC_HAS_PROTOS 1
2436 if test "$cf_cv_ansi_cc" = "no"; then
2437 { { echo "$as_me:2437: error: Your compiler does not appear to recognize prototypes.
2438 You have the following choices:
2439 a. adjust your compiler options
2440 b. get an up-to-date compiler
2441 c. use a wrapper such as unproto" >&5
2442 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2443 You have the following choices:
2444 a. adjust your compiler options
2445 b. get an up-to-date compiler
2446 c. use a wrapper such as unproto" >&2;}
2447 { (exit 1); exit 1; }; }
2450 case $cf_cv_system_name in
2452 CFLAGS="$CFLAGS -Zmt"
2453 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2454 CXXFLAGS="$CXXFLAGS -Zmt"
2455 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2456 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2463 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2464 #define PROG_EXT "$PROG_EXT"
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2472 # Double any \ or $. echo might interpret backslashes.
2473 # By default was `s,x,x', remove it if useless.
2474 cat <<\_ACEOF >conftest.sed
2475 s/[\\$]/&&/g;s/;s,x,x,$//
2477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2480 for ac_prog in mawk gawk nawk awk
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 echo "$as_me:2484: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_AWK+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$AWK"; then
2490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2492 ac_save_IFS=$IFS; IFS=$ac_path_separator
2494 for ac_dir in $ac_dummy; do
2496 test -z "$ac_dir" && ac_dir=.
2497 $as_executable_p "$ac_dir/$ac_word" || continue
2498 ac_cv_prog_AWK="$ac_prog"
2499 echo "$as_me:2499: found $ac_dir/$ac_word" >&5
2506 if test -n "$AWK"; then
2507 echo "$as_me:2507: result: $AWK" >&5
2508 echo "${ECHO_T}$AWK" >&6
2510 echo "$as_me:2510: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$AWK" && break
2517 test -z "$AWK" && { { echo "$as_me:2517: error: No awk program found" >&5
2518 echo "$as_me: error: No awk program found" >&2;}
2519 { (exit 1); exit 1; }; }
2521 echo "$as_me:2521: checking for egrep" >&5
2522 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2523 if test "${ac_cv_prog_egrep+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2527 then ac_cv_prog_egrep='grep -E'
2528 else ac_cv_prog_egrep='egrep'
2531 echo "$as_me:2531: result: $ac_cv_prog_egrep" >&5
2532 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2533 EGREP=$ac_cv_prog_egrep
2535 test -z "$EGREP" && { { echo "$as_me:2535: error: No egrep program found" >&5
2536 echo "$as_me: error: No egrep program found" >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 echo "$as_me:2551: checking for a BSD compatible install" >&5
2552 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2553 if test -z "$INSTALL"; then
2554 if test "${ac_cv_path_install+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 ac_save_IFS=$IFS; IFS=$ac_path_separator
2558 for ac_dir in $PATH; do
2560 # Account for people who put trailing slashes in PATH elements.
2562 / | ./ | .// | /cC/* \
2563 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog in ginstall scoinst install; do
2570 if $as_executable_p "$ac_dir/$ac_prog"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2575 elif test $ac_prog = install &&
2576 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2580 ac_cv_path_install="$ac_dir/$ac_prog -c"
2590 if test "${ac_cv_path_install+set}" = set; then
2591 INSTALL=$ac_cv_path_install
2593 # As a last resort, use the slow shell script. We don't cache a
2594 # path for INSTALL within a source directory, because that will
2595 # break other packages using the cache if that directory is
2596 # removed, or if the path is relative.
2597 INSTALL=$ac_install_sh
2600 echo "$as_me:2600: result: $INSTALL" >&5
2601 echo "${ECHO_T}$INSTALL" >&6
2603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2604 # It thinks the first close brace ends the variable substitution.
2605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611 echo "$as_me:2611: checking whether ln -s works" >&5
2612 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2614 if test "$LN_S" = "ln -s"; then
2615 echo "$as_me:2615: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2618 echo "$as_me:2618: result: no, using $LN_S" >&5
2619 echo "${ECHO_T}no, using $LN_S" >&6
2622 echo "$as_me:2622: checking for long file names" >&5
2623 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2624 if test "${ac_cv_sys_long_file_names+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 ac_cv_sys_long_file_names=yes
2628 # Test for long file names in all the places we know might matter:
2629 # . the current directory, where building will happen
2630 # $prefix/lib where we will be installing things
2631 # $exec_prefix/lib likewise
2632 # eval it to expand exec_prefix.
2633 # $TMPDIR if set, where it might want to write temporary files
2634 # if $TMPDIR is not set:
2635 # /tmp where it might want to write temporary files
2638 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2641 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2643 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2644 test -d $ac_dir || continue
2645 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2646 ac_xdir=$ac_dir/cf$$
2647 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2648 ac_tf1=$ac_xdir/conftest9012345
2649 ac_tf2=$ac_xdir/conftest9012346
2650 (echo 1 >$ac_tf1) 2>/dev/null
2651 (echo 2 >$ac_tf2) 2>/dev/null
2652 ac_val=`cat $ac_tf1 2>/dev/null`
2653 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2654 ac_cv_sys_long_file_names=no
2655 rm -rf $ac_xdir 2>/dev/null
2658 rm -rf $ac_xdir 2>/dev/null
2661 echo "$as_me:2661: result: $ac_cv_sys_long_file_names" >&5
2662 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2663 if test $ac_cv_sys_long_file_names = yes; then
2665 cat >>confdefs.h <<\EOF
2666 #define HAVE_LONG_FILE_NAMES 1
2671 # if we find pkg-config, check if we should install the ".pc" files.
2673 echo "$as_me:2673: checking if you want to use pkg-config" >&5
2674 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2676 # Check whether --with-pkg-config or --without-pkg-config was given.
2677 if test "${with_pkg_config+set}" = set; then
2678 withval="$with_pkg_config"
2679 cf_pkg_config=$withval
2683 echo "$as_me:2683: result: $cf_pkg_config" >&5
2684 echo "${ECHO_T}$cf_pkg_config" >&6
2686 case $cf_pkg_config in #(vi
2691 # Extract the first word of "pkg-config", so it can be a program name with args.
2692 set dummy pkg-config; ac_word=$2
2693 echo "$as_me:2693: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2703 ac_save_IFS=$IFS; IFS=$ac_path_separator
2705 for ac_dir in $ac_dummy; do
2707 test -z "$ac_dir" && ac_dir=.
2708 if $as_executable_p "$ac_dir/$ac_word"; then
2709 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2710 echo "$as_me:2710: found $ac_dir/$ac_word" >&5
2715 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
2719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2721 if test -n "$PKG_CONFIG"; then
2722 echo "$as_me:2722: result: $PKG_CONFIG" >&5
2723 echo "${ECHO_T}$PKG_CONFIG" >&6
2725 echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2735 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2736 if test "$PKG_CONFIG" != none ; then
2738 if test "x$prefix" != xNONE; then
2739 cf_path_syntax="$prefix"
2741 cf_path_syntax="$ac_default_prefix"
2744 case ".$PKG_CONFIG" in #(vi
2745 .\$\(*\)*|.\'*\'*) #(vi
2749 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2752 eval PKG_CONFIG="$PKG_CONFIG"
2753 case ".$PKG_CONFIG" in #(vi
2755 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2760 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2763 { { echo "$as_me:2763: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2764 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2765 { (exit 1); exit 1; }; }
2771 if test "$PKG_CONFIG" != no ; then
2772 echo "$as_me:2772: checking if we should install .pc files for $PKG_CONFIG" >&5
2773 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2775 # Leave this as something that can be overridden in the environment.
2776 if test -z "$PKG_CONFIG_LIBDIR" ; then
2777 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
2779 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
2780 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
2782 # Check whether --enable-pc-files or --disable-pc-files was given.
2783 if test "${enable_pc_files+set}" = set; then
2784 enableval="$enable_pc_files"
2785 enable_pc_files=$enableval
2789 echo "$as_me:2789: result: $enable_pc_files" >&5
2790 echo "${ECHO_T}$enable_pc_files" >&6
2792 echo "$as_me:2792: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 { echo "$as_me:2794: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
2795 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
2800 echo "$as_me:2800: checking if we should assume mixed-case filenames" >&5
2801 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2803 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2804 if test "${enable_mixed_case+set}" = set; then
2805 enableval="$enable_mixed_case"
2806 enable_mixedcase=$enableval
2808 enable_mixedcase=auto
2810 echo "$as_me:2810: result: $enable_mixedcase" >&5
2811 echo "${ECHO_T}$enable_mixedcase" >&6
2812 if test "$enable_mixedcase" = "auto" ; then
2814 echo "$as_me:2814: checking if filesystem supports mixed-case filenames" >&5
2815 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2816 if test "${cf_cv_mixedcase+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test "$cross_compiling" = yes ; then
2821 case $target_alias in #(vi
2822 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2830 rm -f conftest CONFTEST
2832 if test -f CONFTEST ; then
2837 rm -f conftest CONFTEST
2841 echo "$as_me:2841: result: $cf_cv_mixedcase" >&5
2842 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2843 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2844 #define MIXEDCASE_FILENAMES 1
2848 cf_cv_mixedcase=$enable_mixedcase
2849 if test "$enable_mixedcase" = "yes" ; then
2850 cat >>confdefs.h <<\EOF
2851 #define MIXEDCASE_FILENAMES 1
2857 # do this after mixed-case option (tags/TAGS is not as important as tic).
2858 echo "$as_me:2858: checking whether ${MAKE-make} sets \${MAKE}" >&5
2859 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 cat >conftest.make <<\EOF
2866 @echo 'ac_maketemp="${MAKE}"'
2868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2870 if test -n "$ac_maketemp"; then
2871 eval ac_cv_prog_make_${ac_make}_set=yes
2873 eval ac_cv_prog_make_${ac_make}_set=no
2877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2878 echo "$as_me:2878: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6
2882 echo "$as_me:2882: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2884 SET_MAKE="MAKE=${MAKE-make}"
2887 for ac_prog in exctags ctags
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:2891: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CTAGS+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$CTAGS"; then
2897 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2899 ac_save_IFS=$IFS; IFS=$ac_path_separator
2901 for ac_dir in $ac_dummy; do
2903 test -z "$ac_dir" && ac_dir=.
2904 $as_executable_p "$ac_dir/$ac_word" || continue
2905 ac_cv_prog_CTAGS="$ac_prog"
2906 echo "$as_me:2906: found $ac_dir/$ac_word" >&5
2912 CTAGS=$ac_cv_prog_CTAGS
2913 if test -n "$CTAGS"; then
2914 echo "$as_me:2914: result: $CTAGS" >&5
2915 echo "${ECHO_T}$CTAGS" >&6
2917 echo "$as_me:2917: result: no" >&5
2918 echo "${ECHO_T}no" >&6
2921 test -n "$CTAGS" && break
2924 for ac_prog in exetags etags
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 echo "$as_me:2928: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 if test "${ac_cv_prog_ETAGS+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 if test -n "$ETAGS"; then
2934 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2936 ac_save_IFS=$IFS; IFS=$ac_path_separator
2938 for ac_dir in $ac_dummy; do
2940 test -z "$ac_dir" && ac_dir=.
2941 $as_executable_p "$ac_dir/$ac_word" || continue
2942 ac_cv_prog_ETAGS="$ac_prog"
2943 echo "$as_me:2943: found $ac_dir/$ac_word" >&5
2949 ETAGS=$ac_cv_prog_ETAGS
2950 if test -n "$ETAGS"; then
2951 echo "$as_me:2951: result: $ETAGS" >&5
2952 echo "${ECHO_T}$ETAGS" >&6
2954 echo "$as_me:2954: result: no" >&5
2955 echo "${ECHO_T}no" >&6
2958 test -n "$ETAGS" && break
2961 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
2962 set dummy ${CTAGS-ctags}; ac_word=$2
2963 echo "$as_me:2963: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 if test -n "$MAKE_LOWER_TAGS"; then
2969 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2971 ac_save_IFS=$IFS; IFS=$ac_path_separator
2973 for ac_dir in $ac_dummy; do
2975 test -z "$ac_dir" && ac_dir=.
2976 $as_executable_p "$ac_dir/$ac_word" || continue
2977 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2978 echo "$as_me:2978: found $ac_dir/$ac_word" >&5
2982 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2985 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2986 if test -n "$MAKE_LOWER_TAGS"; then
2987 echo "$as_me:2987: result: $MAKE_LOWER_TAGS" >&5
2988 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2990 echo "$as_me:2990: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 if test "$cf_cv_mixedcase" = yes ; then
2995 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
2996 set dummy ${ETAGS-etags}; ac_word=$2
2997 echo "$as_me:2997: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$MAKE_UPPER_TAGS"; then
3003 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3005 ac_save_IFS=$IFS; IFS=$ac_path_separator
3007 for ac_dir in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir=.
3010 $as_executable_p "$ac_dir/$ac_word" || continue
3011 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3012 echo "$as_me:3012: found $ac_dir/$ac_word" >&5
3016 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3019 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3020 if test -n "$MAKE_UPPER_TAGS"; then
3021 echo "$as_me:3021: result: $MAKE_UPPER_TAGS" >&5
3022 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3024 echo "$as_me:3024: result: no" >&5
3025 echo "${ECHO_T}no" >&6
3032 if test "$MAKE_UPPER_TAGS" = yes ; then
3038 if test "$MAKE_LOWER_TAGS" = yes ; then
3044 echo "$as_me:3044: checking for makeflags variable" >&5
3045 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3046 if test "${cf_cv_makeflags+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3053 cat >cf_makeflags.tmp <<CF_EOF
3056 @ echo '.$cf_option'
3058 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3059 case "$cf_result" in
3061 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3062 case "$cf_result" in
3063 .*CC=*) cf_cv_makeflags=
3065 *) cf_cv_makeflags=$cf_option
3071 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3075 rm -f cf_makeflags.tmp
3078 echo "$as_me:3078: result: $cf_cv_makeflags" >&5
3079 echo "${ECHO_T}$cf_cv_makeflags" >&6
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3084 echo "$as_me:3084: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_RANLIB+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$RANLIB"; then
3090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3092 ac_save_IFS=$IFS; IFS=$ac_path_separator
3094 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 $as_executable_p "$ac_dir/$ac_word" || continue
3098 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3099 echo "$as_me:3099: found $ac_dir/$ac_word" >&5
3105 RANLIB=$ac_cv_prog_RANLIB
3106 if test -n "$RANLIB"; then
3107 echo "$as_me:3107: result: $RANLIB" >&5
3108 echo "${ECHO_T}$RANLIB" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3115 if test -z "$ac_cv_prog_RANLIB"; then
3116 ac_ct_RANLIB=$RANLIB
3117 # Extract the first word of "ranlib", so it can be a program name with args.
3118 set dummy ranlib; ac_word=$2
3119 echo "$as_me:3119: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$ac_ct_RANLIB"; then
3125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3127 ac_save_IFS=$IFS; IFS=$ac_path_separator
3129 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 $as_executable_p "$ac_dir/$ac_word" || continue
3133 ac_cv_prog_ac_ct_RANLIB="ranlib"
3134 echo "$as_me:3134: found $ac_dir/$ac_word" >&5
3138 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3142 if test -n "$ac_ct_RANLIB"; then
3143 echo "$as_me:3143: result: $ac_ct_RANLIB" >&5
3144 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3146 echo "$as_me:3146: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3150 RANLIB=$ac_ct_RANLIB
3152 RANLIB="$ac_cv_prog_RANLIB"
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}ld; ac_word=$2
3158 echo "$as_me:3158: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_LD+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -n "$LD"; then
3164 ac_cv_prog_LD="$LD" # Let the user override the test.
3166 ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 $as_executable_p "$ac_dir/$ac_word" || continue
3172 ac_cv_prog_LD="${ac_tool_prefix}ld"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3180 if test -n "$LD"; then
3181 echo "$as_me:3181: result: $LD" >&5
3182 echo "${ECHO_T}$LD" >&6
3184 echo "$as_me:3184: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3189 if test -z "$ac_cv_prog_LD"; then
3191 # Extract the first word of "ld", so it can be a program name with args.
3192 set dummy ld; ac_word=$2
3193 echo "$as_me:3193: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if test -n "$ac_ct_LD"; then
3199 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3201 ac_save_IFS=$IFS; IFS=$ac_path_separator
3203 for ac_dir in $ac_dummy; do
3205 test -z "$ac_dir" && ac_dir=.
3206 $as_executable_p "$ac_dir/$ac_word" || continue
3207 ac_cv_prog_ac_ct_LD="ld"
3208 echo "$as_me:3208: found $ac_dir/$ac_word" >&5
3212 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3215 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3216 if test -n "$ac_ct_LD"; then
3217 echo "$as_me:3217: result: $ac_ct_LD" >&5
3218 echo "${ECHO_T}$ac_ct_LD" >&6
3220 echo "$as_me:3220: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}ar; ac_word=$2
3232 echo "$as_me:3232: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_AR+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -n "$AR"; then
3238 ac_cv_prog_AR="$AR" # Let the user override the test.
3240 ac_save_IFS=$IFS; IFS=$ac_path_separator
3242 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 $as_executable_p "$ac_dir/$ac_word" || continue
3246 ac_cv_prog_AR="${ac_tool_prefix}ar"
3247 echo "$as_me:3247: found $ac_dir/$ac_word" >&5
3254 if test -n "$AR"; then
3255 echo "$as_me:3255: result: $AR" >&5
3256 echo "${ECHO_T}$AR" >&6
3258 echo "$as_me:3258: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3263 if test -z "$ac_cv_prog_AR"; then
3265 # Extract the first word of "ar", so it can be a program name with args.
3266 set dummy ar; ac_word=$2
3267 echo "$as_me:3267: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 if test -n "$ac_ct_AR"; then
3273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3275 ac_save_IFS=$IFS; IFS=$ac_path_separator
3277 for ac_dir in $ac_dummy; do
3279 test -z "$ac_dir" && ac_dir=.
3280 $as_executable_p "$ac_dir/$ac_word" || continue
3281 ac_cv_prog_ac_ct_AR="ar"
3282 echo "$as_me:3282: found $ac_dir/$ac_word" >&5
3286 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3290 if test -n "$ac_ct_AR"; then
3291 echo "$as_me:3291: result: $ac_ct_AR" >&5
3292 echo "${ECHO_T}$ac_ct_AR" >&6
3294 echo "$as_me:3294: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}ar; ac_word=$2
3306 echo "$as_me:3306: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_prog_AR+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -n "$AR"; then
3312 ac_cv_prog_AR="$AR" # Let the user override the test.
3314 ac_save_IFS=$IFS; IFS=$ac_path_separator
3316 for ac_dir in $ac_dummy; do
3318 test -z "$ac_dir" && ac_dir=.
3319 $as_executable_p "$ac_dir/$ac_word" || continue
3320 ac_cv_prog_AR="${ac_tool_prefix}ar"
3321 echo "$as_me:3321: found $ac_dir/$ac_word" >&5
3328 if test -n "$AR"; then
3329 echo "$as_me:3329: result: $AR" >&5
3330 echo "${ECHO_T}$AR" >&6
3332 echo "$as_me:3332: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3337 if test -z "$ac_cv_prog_AR"; then
3339 # Extract the first word of "ar", so it can be a program name with args.
3340 set dummy ar; ac_word=$2
3341 echo "$as_me:3341: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -n "$ac_ct_AR"; then
3347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3349 ac_save_IFS=$IFS; IFS=$ac_path_separator
3351 for ac_dir in $ac_dummy; do
3353 test -z "$ac_dir" && ac_dir=.
3354 $as_executable_p "$ac_dir/$ac_word" || continue
3355 ac_cv_prog_ac_ct_AR="ar"
3356 echo "$as_me:3356: found $ac_dir/$ac_word" >&5
3360 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3364 if test -n "$ac_ct_AR"; then
3365 echo "$as_me:3365: result: $ac_ct_AR" >&5
3366 echo "${ECHO_T}$ac_ct_AR" >&6
3368 echo "$as_me:3368: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3377 echo "$as_me:3377: checking for options to update archives" >&5
3378 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3379 if test "${cf_cv_ar_flags+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cf_cv_ar_flags=unknown
3384 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3387 # check if $ARFLAGS already contains this choice
3388 if test "x$ARFLAGS" != "x" ; then
3389 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3390 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3396 rm -f conftest.$ac_cv_objext
3399 cat >conftest.$ac_ext <<EOF
3400 #line 3400 "configure"
3401 int testdata[3] = { 123, 456, 789 };
3403 if { (eval echo "$as_me:3403: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>&5
3406 echo "$as_me:3406: \$? = $ac_status" >&5
3407 (exit $ac_status); } ; then
3408 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3409 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3410 if test -f conftest.a ; then
3411 cf_cv_ar_flags=$cf_ar_flags
3415 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3417 echo "${as_me-configure}:3417: testing cannot compile test-program ..." 1>&5
3422 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3425 echo "$as_me:3425: result: $cf_cv_ar_flags" >&5
3426 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3428 if test -n "$ARFLAGS" ; then
3429 if test -n "$cf_cv_ar_flags" ; then
3430 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3433 ARFLAGS=$cf_cv_ar_flags
3436 echo "$as_me:3436: checking if you have specified an install-prefix" >&5
3437 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3439 # Check whether --with-install-prefix or --without-install-prefix was given.
3440 if test "${with_install_prefix+set}" = set; then
3441 withval="$with_install_prefix"
3442 case "$withval" in #(vi
3445 *) DESTDIR="$withval"
3449 echo "$as_me:3449: result: $DESTDIR" >&5
3450 echo "${ECHO_T}$DESTDIR" >&6
3452 ###############################################################################
3454 # If we're cross-compiling, allow the user to override the tools and their
3455 # options. The configure script is oriented toward identifying the host
3456 # compiler, etc., but we need a build compiler to generate parts of the source.
3458 if test "$cross_compiling" = yes ; then
3460 # defaults that we might want to override
3461 : ${BUILD_CFLAGS:=''}
3462 : ${BUILD_CPPFLAGS:=''}
3463 : ${BUILD_LDFLAGS:=''}
3465 : ${BUILD_EXEEXT:='$x'}
3466 : ${BUILD_OBJEXT:='o'}
3468 # Check whether --with-build-cc or --without-build-cc was given.
3469 if test "${with_build_cc+set}" = set; then
3470 withval="$with_build_cc"
3473 for ac_prog in gcc cc cl
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 echo "$as_me:3477: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 if test -n "$BUILD_CC"; then
3483 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3485 ac_save_IFS=$IFS; IFS=$ac_path_separator
3487 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 $as_executable_p "$ac_dir/$ac_word" || continue
3491 ac_cv_prog_BUILD_CC="$ac_prog"
3492 echo "$as_me:3492: found $ac_dir/$ac_word" >&5
3498 BUILD_CC=$ac_cv_prog_BUILD_CC
3499 if test -n "$BUILD_CC"; then
3500 echo "$as_me:3500: result: $BUILD_CC" >&5
3501 echo "${ECHO_T}$BUILD_CC" >&6
3503 echo "$as_me:3503: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 test -n "$BUILD_CC" && break
3511 echo "$as_me:3511: checking for native build C compiler" >&5
3512 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3513 echo "$as_me:3513: result: $BUILD_CC" >&5
3514 echo "${ECHO_T}$BUILD_CC" >&6
3516 echo "$as_me:3516: checking for native build C preprocessor" >&5
3517 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3519 # Check whether --with-build-cpp or --without-build-cpp was given.
3520 if test "${with_build_cpp+set}" = set; then
3521 withval="$with_build_cpp"
3522 BUILD_CPP="$withval"
3524 BUILD_CPP='${BUILD_CC} -E'
3526 echo "$as_me:3526: result: $BUILD_CPP" >&5
3527 echo "${ECHO_T}$BUILD_CPP" >&6
3529 echo "$as_me:3529: checking for native build C flags" >&5
3530 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3532 # Check whether --with-build-cflags or --without-build-cflags was given.
3533 if test "${with_build_cflags+set}" = set; then
3534 withval="$with_build_cflags"
3535 BUILD_CFLAGS="$withval"
3537 echo "$as_me:3537: result: $BUILD_CFLAGS" >&5
3538 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3540 echo "$as_me:3540: checking for native build C preprocessor-flags" >&5
3541 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3543 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3544 if test "${with_build_cppflags+set}" = set; then
3545 withval="$with_build_cppflags"
3546 BUILD_CPPFLAGS="$withval"
3548 echo "$as_me:3548: result: $BUILD_CPPFLAGS" >&5
3549 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3551 echo "$as_me:3551: checking for native build linker-flags" >&5
3552 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3554 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3555 if test "${with_build_ldflags+set}" = set; then
3556 withval="$with_build_ldflags"
3557 BUILD_LDFLAGS="$withval"
3559 echo "$as_me:3559: result: $BUILD_LDFLAGS" >&5
3560 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3562 echo "$as_me:3562: checking for native build linker-libraries" >&5
3563 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3565 # Check whether --with-build-libs or --without-build-libs was given.
3566 if test "${with_build_libs+set}" = set; then
3567 withval="$with_build_libs"
3568 BUILD_LIBS="$withval"
3570 echo "$as_me:3570: result: $BUILD_LIBS" >&5
3571 echo "${ECHO_T}$BUILD_LIBS" >&6
3573 # this assumes we're on Unix.
3577 : ${BUILD_CC:='${CC}'}
3579 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3580 { { echo "$as_me:3580: error: Cross-build requires two compilers.
3581 Use --with-build-cc to specify the native compiler." >&5
3582 echo "$as_me: error: Cross-build requires two compilers.
3583 Use --with-build-cc to specify the native compiler." >&2;}
3584 { (exit 1); exit 1; }; }
3588 : ${BUILD_CC:='${CC}'}
3589 : ${BUILD_CPP:='${CPP}'}
3590 : ${BUILD_CFLAGS:='${CFLAGS}'}
3591 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3592 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3593 : ${BUILD_LIBS:='${LIBS}'}
3594 : ${BUILD_EXEEXT:='$x'}
3595 : ${BUILD_OBJEXT:='o'}
3598 ###############################################################################
3600 ### Options to allow the user to specify the set of libraries which are used.
3601 ### Use "--without-normal --with-shared" to allow the default model to be
3602 ### shared, for example.
3604 echo "$as_me:3604: checking for specified models" >&5
3605 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3606 test -z "$cf_list_models" && cf_list_models=normal
3607 echo "$as_me:3607: result: $cf_list_models" >&5
3608 echo "${ECHO_T}$cf_list_models" >&6
3610 ### Use the first model as the default, and save its suffix for use in building
3611 ### up test-applications.
3612 echo "$as_me:3612: checking for default model" >&5
3613 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3614 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3615 echo "$as_me:3615: result: $DFT_LWR_MODEL" >&5
3616 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3618 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3620 # Check whether --with-curses-dir or --without-curses-dir was given.
3621 if test "${with_curses_dir+set}" = set; then
3622 withval="$with_curses_dir"
3624 if test "x$prefix" != xNONE; then
3625 cf_path_syntax="$prefix"
3627 cf_path_syntax="$ac_default_prefix"
3630 case ".$withval" in #(vi
3631 .\$\(*\)*|.\'*\'*) #(vi
3635 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3638 eval withval="$withval"
3639 case ".$withval" in #(vi
3641 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3646 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3649 { { echo "$as_me:3649: error: expected a pathname, not \"$withval\"" >&5
3650 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3651 { (exit 1); exit 1; }; }
3655 cf_cv_curses_dir=$withval
3660 echo "$as_me:3660: checking if you want wide-character code" >&5
3661 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3663 # Check whether --enable-widec or --disable-widec was given.
3664 if test "${enable_widec+set}" = set; then
3665 enableval="$enable_widec"
3666 with_widec=$enableval
3670 echo "$as_me:3670: result: $with_widec" >&5
3671 echo "${ECHO_T}$with_widec" >&6
3672 if test "$with_widec" = yes ; then
3674 echo "$as_me:3674: checking for multibyte character support" >&5
3675 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3676 if test "${cf_cv_utf8_lib+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cf_save_LIBS="$LIBS"
3681 cat >conftest.$ac_ext <<_ACEOF
3682 #line 3682 "configure"
3683 #include "confdefs.h"
3694 rm -f conftest.$ac_objext conftest$ac_exeext
3695 if { (eval echo "$as_me:3695: \"$ac_link\"") >&5
3696 (eval $ac_link) 2>&5
3698 echo "$as_me:3698: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 { ac_try='test -s conftest$ac_exeext'
3701 { (eval echo "$as_me:3701: \"$ac_try\"") >&5
3704 echo "$as_me:3704: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3708 echo "$as_me: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3712 # will be set on completion of the AC_TRY_LINK below.
3713 cf_cv_header_path_utf8=
3714 cf_cv_library_path_utf8=
3716 echo "${as_me-configure}:3716: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3718 cf_save_LIBS="$LIBS"
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line 3721 "configure"
3722 #include "confdefs.h"
3724 #include <libutf8.h>
3733 rm -f conftest.$ac_objext conftest$ac_exeext
3734 if { (eval echo "$as_me:3734: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3746 cf_cv_find_linkage_utf8=yes
3747 cf_cv_header_path_utf8=/usr/include
3748 cf_cv_library_path_utf8=/usr/lib
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 LIBS="-lutf8 $cf_save_LIBS"
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line 3757 "configure"
3758 #include "confdefs.h"
3760 #include <libutf8.h>
3769 rm -f conftest.$ac_objext conftest$ac_exeext
3770 if { (eval echo "$as_me:3770: \"$ac_link\"") >&5
3771 (eval $ac_link) 2>&5
3773 echo "$as_me:3773: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:3776: \"$ac_try\"") >&5
3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3782 cf_cv_find_linkage_utf8=yes
3783 cf_cv_header_path_utf8=/usr/include
3784 cf_cv_library_path_utf8=/usr/lib
3785 cf_cv_library_file_utf8="-lutf8"
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 cf_cv_find_linkage_utf8=no
3792 LIBS="$cf_save_LIBS"
3794 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3796 echo "${as_me-configure}:3796: testing find linkage for utf8 library ..." 1>&5
3798 echo "${as_me-configure}:3798: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3800 cf_save_CPPFLAGS="$CPPFLAGS"
3801 cf_test_CPPFLAGS="$CPPFLAGS"
3805 # collect the current set of include-directories from compiler flags
3806 cf_header_path_list=""
3807 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3808 for cf_header_path in $CPPFLAGS $CFLAGS
3810 case $cf_header_path in #(vi
3812 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3814 test "$cf_header_path" != "NONE" && \
3815 test -d "$cf_header_path" && \
3817 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3818 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3819 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3820 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3821 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3822 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3825 cf_header_path_list="$cf_header_path_list $cf_search"
3831 # add the variations for the package we are looking for
3835 test "/usr" != "$prefix" && \
3837 (test $prefix = NONE || test -d $prefix) && {
3838 test -n "$verbose" && echo " ... testing for include-directories under /usr"
3839 test -d /usr/include && cf_search="$cf_search /usr/include"
3840 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
3841 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
3842 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
3843 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
3846 test "$prefix" != "NONE" && \
3847 test -d "$prefix" && \
3849 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3850 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3851 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3852 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3853 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3854 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3857 test "/usr/local" != "$prefix" && \
3858 test -d "/usr/local" && \
3859 (test $prefix = NONE || test -d $prefix) && {
3860 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
3861 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
3862 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
3863 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
3864 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
3865 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
3868 test "/opt" != "$prefix" && \
3870 (test $prefix = NONE || test -d $prefix) && {
3871 test -n "$verbose" && echo " ... testing for include-directories under /opt"
3872 test -d /opt/include && cf_search="$cf_search /opt/include"
3873 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
3874 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
3875 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
3876 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
3879 test "$HOME" != "$prefix" && \
3880 test -d "$HOME" && \
3881 (test $prefix = NONE || test -d $prefix) && {
3882 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
3883 test -d $HOME/include && cf_search="$cf_search $HOME/include"
3884 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
3885 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
3886 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
3887 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
3890 test "$includedir" != NONE && \
3891 test "$includedir" != "/usr/include" && \
3892 test -d "$includedir" && {
3893 test -d $includedir && cf_search="$cf_search $includedir"
3894 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3897 test "$oldincludedir" != NONE && \
3898 test "$oldincludedir" != "/usr/include" && \
3899 test -d "$oldincludedir" && {
3900 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3901 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3904 cf_search="$cf_search $cf_header_path_list"
3906 for cf_cv_header_path_utf8 in $cf_search
3908 if test -d $cf_cv_header_path_utf8 ; then
3909 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3911 echo "${as_me-configure}:3911: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3913 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line 3915 "configure"
3916 #include "confdefs.h"
3918 #include <libutf8.h>
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:3928: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:3934: \"$ac_try\"") >&5
3937 echo "$as_me:3937: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3940 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3942 echo "${as_me-configure}:3942: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3944 cf_cv_find_linkage_utf8=maybe
3945 cf_test_CPPFLAGS="$CPPFLAGS"
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 CPPFLAGS="$cf_save_CPPFLAGS"
3954 rm -f conftest.$ac_objext conftest.$ac_ext
3958 if test "$cf_cv_find_linkage_utf8" = maybe ; then
3960 echo "${as_me-configure}:3960: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
3962 cf_save_LIBS="$LIBS"
3963 cf_save_LDFLAGS="$LDFLAGS"
3965 if test "$cf_cv_find_linkage_utf8" != yes ; then
3968 cf_library_path_list=""
3969 if test -n "${LDFLAGS}${LIBS}" ; then
3970 for cf_library_path in $LDFLAGS $LIBS
3972 case $cf_library_path in #(vi
3974 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3976 test "$cf_library_path" != "NONE" && \
3977 test -d "$cf_library_path" && \
3979 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
3980 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
3981 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
3982 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
3983 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
3984 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
3987 cf_library_path_list="$cf_library_path_list $cf_search"
3995 test "/usr" != "$prefix" && \
3997 (test $prefix = NONE || test -d $prefix) && {
3998 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
3999 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4000 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4001 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4002 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4003 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4006 test "$prefix" != "NONE" && \
4007 test -d "$prefix" && \
4009 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4010 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4011 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4012 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4013 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4014 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4017 test "/usr/local" != "$prefix" && \
4018 test -d "/usr/local" && \
4019 (test $prefix = NONE || test -d $prefix) && {
4020 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4021 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4022 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4023 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4024 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4025 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4028 test "/opt" != "$prefix" && \
4030 (test $prefix = NONE || test -d $prefix) && {
4031 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4032 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4033 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4034 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4035 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4036 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4039 test "$HOME" != "$prefix" && \
4040 test -d "$HOME" && \
4041 (test $prefix = NONE || test -d $prefix) && {
4042 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4043 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4044 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4045 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4046 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4047 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4050 cf_search="$cf_library_path_list $cf_search"
4052 for cf_cv_library_path_utf8 in $cf_search
4054 if test -d $cf_cv_library_path_utf8 ; then
4055 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4057 echo "${as_me-configure}:4057: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4059 CPPFLAGS="$cf_test_CPPFLAGS"
4060 LIBS="-lutf8 $cf_save_LIBS"
4061 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4062 cat >conftest.$ac_ext <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4066 #include <libutf8.h>
4075 rm -f conftest.$ac_objext conftest$ac_exeext
4076 if { (eval echo "$as_me:4076: \"$ac_link\"") >&5
4077 (eval $ac_link) 2>&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:4082: \"$ac_try\"") >&5
4085 echo "$as_me:4085: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4088 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4090 echo "${as_me-configure}:4090: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4092 cf_cv_find_linkage_utf8=yes
4093 cf_cv_library_file_utf8="-lutf8"
4096 echo "$as_me: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 CPPFLAGS="$cf_save_CPPFLAGS"
4100 LIBS="$cf_save_LIBS"
4101 LDFLAGS="$cf_save_LDFLAGS"
4104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4107 CPPFLAGS="$cf_save_CPPFLAGS"
4108 LDFLAGS="$cf_save_LDFLAGS"
4112 cf_cv_find_linkage_utf8=no
4116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4121 LIBS="$cf_save_LIBS"
4123 if test "$cf_cv_find_linkage_utf8" = yes ; then
4124 cf_cv_utf8_lib=add-on
4130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4132 echo "$as_me:4132: result: $cf_cv_utf8_lib" >&5
4133 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4135 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4137 if test "$cf_cv_utf8_lib" = "add-on" ; then
4138 cat >>confdefs.h <<\EOF
4139 #define HAVE_LIBUTF8_H 1
4142 if test -n "$cf_cv_header_path_utf8" ; then
4143 for cf_add_incdir in $cf_cv_header_path_utf8
4145 while test $cf_add_incdir != /usr/include
4147 if test -d $cf_add_incdir
4150 if test -n "$CFLAGS$CPPFLAGS" ; then
4151 # a loop is needed to ensure we can add subdirs of existing dirs
4152 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4153 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4154 cf_have_incdir=yes; break
4159 if test "$cf_have_incdir" = no ; then
4160 if test "$cf_add_incdir" = /usr/local/include ; then
4161 if test "$GCC" = yes
4163 cf_save_CPPFLAGS=$CPPFLAGS
4164 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 #line 4166 "configure"
4167 #include "confdefs.h"
4177 rm -f conftest.$ac_objext
4178 if { (eval echo "$as_me:4178: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>&5
4181 echo "$as_me:4181: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:4184: \"$ac_try\"") >&5
4187 echo "$as_me:4187: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 echo "$as_me: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4195 rm -f conftest.$ac_objext conftest.$ac_ext
4196 CPPFLAGS=$cf_save_CPPFLAGS
4201 if test "$cf_have_incdir" = no ; then
4202 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4204 echo "${as_me-configure}:4204: testing adding $cf_add_incdir to include-path ..." 1>&5
4206 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4208 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4209 test "$cf_top_incdir" = "$cf_add_incdir" && break
4210 cf_add_incdir="$cf_top_incdir"
4219 if test -n "$cf_cv_library_path_utf8" ; then
4220 for cf_add_libdir in $cf_cv_library_path_utf8
4222 if test $cf_add_libdir = /usr/lib ; then
4224 elif test -d $cf_add_libdir
4227 if test -n "$LDFLAGS$LIBS" ; then
4228 # a loop is needed to ensure we can add subdirs of existing dirs
4229 for cf_test_libdir in $LDFLAGS $LIBS ; do
4230 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4231 cf_have_libdir=yes; break
4235 if test "$cf_have_libdir" = no ; then
4236 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4238 echo "${as_me-configure}:4238: testing adding $cf_add_libdir to library-path ..." 1>&5
4240 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4246 LIBS="$cf_cv_library_file_utf8 $LIBS"
4249 cf_ncuconfig_root=ncursesw
4251 echo "Looking for ${cf_ncuconfig_root}-config"
4252 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy $ac_prog; ac_word=$2
4256 echo "$as_me:4256: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4258 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 case $NCURSES_CONFIG in
4263 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4266 ac_save_IFS=$IFS; IFS=$ac_path_separator
4268 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 if $as_executable_p "$ac_dir/$ac_word"; then
4272 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4273 echo "$as_me:4273: found $ac_dir/$ac_word" >&5
4281 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4283 if test -n "$NCURSES_CONFIG"; then
4284 echo "$as_me:4284: result: $NCURSES_CONFIG" >&5
4285 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4287 echo "$as_me:4287: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4291 test -n "$NCURSES_CONFIG" && break
4293 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4295 if test "$NCURSES_CONFIG" != none ; then
4297 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4298 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4300 # even with config script, some packages use no-override for curses.h
4302 echo "$as_me:4302: checking if we have identified curses headers" >&5
4303 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4304 if test "${cf_cv_ncurses_header+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cf_cv_ncurses_header=none
4311 ncursesw/ncurses.h \
4315 cat >conftest.$ac_ext <<_ACEOF
4316 #line 4316 "configure"
4317 #include "confdefs.h"
4318 #include <${cf_header}>
4322 initscr(); tgoto("?", 0,0)
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:4328: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:4334: \"$ac_try\"") >&5
4337 echo "$as_me:4337: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 cf_cv_ncurses_header=$cf_header; break
4341 echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 rm -f conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:4348: result: $cf_cv_ncurses_header" >&5
4349 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4351 if test "$cf_cv_ncurses_header" = none ; then
4352 { { echo "$as_me:4352: error: No curses header-files found" >&5
4353 echo "$as_me: error: No curses header-files found" >&2;}
4354 { (exit 1); exit 1; }; }
4357 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4359 for ac_header in $cf_cv_ncurses_header
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 echo "$as_me:4362: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line 4368 "configure"
4369 #include "confdefs.h"
4370 #include <$ac_header>
4372 if { (eval echo "$as_me:4372: \"$ac_cpp conftest.$ac_ext\"") >&5
4373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375 egrep -v '^ *\+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:4378: \$? = $ac_status" >&5
4379 (exit $ac_status); } >/dev/null; then
4380 if test -s conftest.err; then
4381 ac_cpp_err=$ac_c_preproc_warn_flag
4388 if test -z "$ac_cpp_err"; then
4389 eval "$as_ac_Header=yes"
4391 echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 eval "$as_ac_Header=no"
4395 rm -f conftest.err conftest.$ac_ext
4397 echo "$as_me:4397: result: `eval echo '${'$as_ac_Header'}'`" >&5
4398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4400 cat >>confdefs.h <<EOF
4401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407 cat >>confdefs.h <<\EOF
4411 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4413 cat >>confdefs.h <<EOF
4414 #define $cf_nculib_ROOT 1
4417 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4421 cf_ncuhdr_root=ncursesw
4423 test -n "$cf_cv_curses_dir" && \
4424 test "$cf_cv_curses_dir" != "no" && { \
4426 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4427 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
4429 while test $cf_add_incdir != /usr/include
4431 if test -d $cf_add_incdir
4434 if test -n "$CFLAGS$CPPFLAGS" ; then
4435 # a loop is needed to ensure we can add subdirs of existing dirs
4436 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4437 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4438 cf_have_incdir=yes; break
4443 if test "$cf_have_incdir" = no ; then
4444 if test "$cf_add_incdir" = /usr/local/include ; then
4445 if test "$GCC" = yes
4447 cf_save_CPPFLAGS=$CPPFLAGS
4448 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line 4450 "configure"
4451 #include "confdefs.h"
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:4462: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:4468: \"$ac_try\"") >&5
4471 echo "$as_me:4471: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4475 echo "$as_me: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4479 rm -f conftest.$ac_objext conftest.$ac_ext
4480 CPPFLAGS=$cf_save_CPPFLAGS
4485 if test "$cf_have_incdir" = no ; then
4486 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4488 echo "${as_me-configure}:4488: testing adding $cf_add_incdir to include-path ..." 1>&5
4490 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4492 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4493 test "$cf_top_incdir" = "$cf_add_incdir" && break
4494 cf_add_incdir="$cf_top_incdir"
4505 echo "$as_me:4505: checking for $cf_ncuhdr_root header in include-path" >&5
4506 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4507 if test "${cf_cv_ncurses_h+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4512 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4513 for cf_header in $cf_header_list
4516 cat >conftest.$ac_ext <<_ACEOF
4517 #line 4517 "configure"
4518 #include "confdefs.h"
4520 #define _XOPEN_SOURCE_EXTENDED
4521 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4522 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4524 #include <$cf_header>
4529 #ifdef NCURSES_VERSION
4535 printf("%s\n", NCURSES_VERSION);
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:4549: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:4555: \"$ac_try\"") >&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 cf_cv_ncurses_h=$cf_header
4563 echo "$as_me: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4567 rm -f conftest.$ac_objext conftest.$ac_ext
4569 test "$cf_cv_ncurses_h" != no && break
4573 echo "$as_me:4573: result: $cf_cv_ncurses_h" >&5
4574 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4576 if test "$cf_cv_ncurses_h" != no ; then
4577 cf_cv_ncurses_header=$cf_cv_ncurses_h
4580 echo "$as_me:4580: checking for $cf_ncuhdr_root include-path" >&5
4581 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4582 if test "${cf_cv_ncurses_h2+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 test -n "$verbose" && echo
4590 # collect the current set of include-directories from compiler flags
4591 cf_header_path_list=""
4592 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4593 for cf_header_path in $CPPFLAGS $CFLAGS
4595 case $cf_header_path in #(vi
4597 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4599 test "$cf_header_path" != "NONE" && \
4600 test -d "$cf_header_path" && \
4602 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4603 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4604 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4605 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4606 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4607 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4610 cf_header_path_list="$cf_header_path_list $cf_search"
4616 # add the variations for the package we are looking for
4620 test "/usr" != "$prefix" && \
4622 (test $prefix = NONE || test -d $prefix) && {
4623 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4624 test -d /usr/include && cf_search="$cf_search /usr/include"
4625 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4626 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4627 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4628 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4631 test "$prefix" != "NONE" && \
4632 test -d "$prefix" && \
4634 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4635 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4636 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4637 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4638 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4639 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4642 test "/usr/local" != "$prefix" && \
4643 test -d "/usr/local" && \
4644 (test $prefix = NONE || test -d $prefix) && {
4645 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4646 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4647 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
4648 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
4649 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
4650 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4653 test "/opt" != "$prefix" && \
4655 (test $prefix = NONE || test -d $prefix) && {
4656 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4657 test -d /opt/include && cf_search="$cf_search /opt/include"
4658 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
4659 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
4660 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
4661 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4664 test "$HOME" != "$prefix" && \
4665 test -d "$HOME" && \
4666 (test $prefix = NONE || test -d $prefix) && {
4667 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4668 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4669 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
4670 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
4671 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
4672 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4675 test "$includedir" != NONE && \
4676 test "$includedir" != "/usr/include" && \
4677 test -d "$includedir" && {
4678 test -d $includedir && cf_search="$cf_search $includedir"
4679 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4682 test "$oldincludedir" != NONE && \
4683 test "$oldincludedir" != "/usr/include" && \
4684 test -d "$oldincludedir" && {
4685 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4686 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4689 cf_search="$cf_search $cf_header_path_list"
4691 test -n "$verbose" && echo search path $cf_search
4692 cf_save2_CPPFLAGS="$CPPFLAGS"
4693 for cf_incdir in $cf_search
4696 if test -n "$cf_incdir" ; then
4697 for cf_add_incdir in $cf_incdir
4699 while test $cf_add_incdir != /usr/include
4701 if test -d $cf_add_incdir
4704 if test -n "$CFLAGS$CPPFLAGS" ; then
4705 # a loop is needed to ensure we can add subdirs of existing dirs
4706 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4707 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4708 cf_have_incdir=yes; break
4713 if test "$cf_have_incdir" = no ; then
4714 if test "$cf_add_incdir" = /usr/local/include ; then
4715 if test "$GCC" = yes
4717 cf_save_CPPFLAGS=$CPPFLAGS
4718 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line 4720 "configure"
4721 #include "confdefs.h"
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:4732: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:4735: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:4738: \"$ac_try\"") >&5
4741 echo "$as_me:4741: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4745 echo "$as_me: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4749 rm -f conftest.$ac_objext conftest.$ac_ext
4750 CPPFLAGS=$cf_save_CPPFLAGS
4755 if test "$cf_have_incdir" = no ; then
4756 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4758 echo "${as_me-configure}:4758: testing adding $cf_add_incdir to include-path ..." 1>&5
4760 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4762 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4763 test "$cf_top_incdir" = "$cf_add_incdir" && break
4764 cf_add_incdir="$cf_top_incdir"
4778 cat >conftest.$ac_ext <<_ACEOF
4779 #line 4779 "configure"
4780 #include "confdefs.h"
4782 #include <$cf_header>
4787 #ifdef NCURSES_VERSION
4789 printf("%s\n", NCURSES_VERSION);
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:4803: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>&5
4806 echo "$as_me:4806: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:4809: \"$ac_try\"") >&5
4812 echo "$as_me:4812: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 cf_cv_ncurses_h2=$cf_header
4817 echo "$as_me: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4821 rm -f conftest.$ac_objext conftest.$ac_ext
4823 if test "$cf_cv_ncurses_h2" != no ; then
4824 cf_cv_ncurses_h2=$cf_incdir/$cf_header
4825 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
4828 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
4830 CPPFLAGS="$cf_save2_CPPFLAGS"
4831 test "$cf_cv_ncurses_h2" != no && break
4833 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:4833: error: not found" >&5
4834 echo "$as_me: error: not found" >&2;}
4835 { (exit 1); exit 1; }; }
4838 echo "$as_me:4838: result: $cf_cv_ncurses_h2" >&5
4839 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
4841 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
4842 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
4843 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
4844 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
4847 if test -n "$cf_1st_incdir" ; then
4848 for cf_add_incdir in $cf_1st_incdir
4850 while test $cf_add_incdir != /usr/include
4852 if test -d $cf_add_incdir
4855 if test -n "$CFLAGS$CPPFLAGS" ; then
4856 # a loop is needed to ensure we can add subdirs of existing dirs
4857 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4858 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4859 cf_have_incdir=yes; break
4864 if test "$cf_have_incdir" = no ; then
4865 if test "$cf_add_incdir" = /usr/local/include ; then
4866 if test "$GCC" = yes
4868 cf_save_CPPFLAGS=$CPPFLAGS
4869 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 #line 4871 "configure"
4872 #include "confdefs.h"
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:4883: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>&5
4886 echo "$as_me:4886: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -s conftest.$ac_objext'
4889 { (eval echo "$as_me:4889: \"$ac_try\"") >&5
4892 echo "$as_me:4892: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4896 echo "$as_me: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4900 rm -f conftest.$ac_objext conftest.$ac_ext
4901 CPPFLAGS=$cf_save_CPPFLAGS
4906 if test "$cf_have_incdir" = no ; then
4907 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4909 echo "${as_me-configure}:4909: testing adding $cf_add_incdir to include-path ..." 1>&5
4911 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4913 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4914 test "$cf_top_incdir" = "$cf_add_incdir" && break
4915 cf_add_incdir="$cf_top_incdir"
4926 # Set definitions to allow ifdef'ing for ncurses.h
4928 case $cf_cv_ncurses_header in # (vi
4930 cat >>confdefs.h <<\EOF
4931 #define HAVE_NCURSES_H 1
4937 case $cf_cv_ncurses_header in # (vi
4938 ncurses/curses.h|ncurses/ncurses.h)
4939 cat >>confdefs.h <<\EOF
4940 #define HAVE_NCURSES_NCURSES_H 1
4944 ncursesw/curses.h|ncursesw/ncurses.h)
4945 cat >>confdefs.h <<\EOF
4946 #define HAVE_NCURSESW_NCURSES_H 1
4952 echo "$as_me:4952: checking for terminfo header" >&5
4953 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4954 if test "${cf_cv_term_header+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 case ${cf_cv_ncurses_header} in #(vi
4959 */ncurses.h|*/ncursesw.h) #(vi
4960 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4963 cf_term_header=term.h
4967 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4969 cat >conftest.$ac_ext <<_ACEOF
4970 #line 4970 "configure"
4971 #include "confdefs.h"
4973 #include <${cf_cv_ncurses_header-curses.h}>
4979 int x = auto_left_margin
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:4985: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4988 echo "$as_me:4988: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:4991: \"$ac_try\"") >&5
4994 echo "$as_me:4994: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4997 cf_cv_term_header="$cf_test"
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5002 cf_cv_term_header=unknown
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006 test "$cf_cv_term_header" != unknown && break
5010 echo "$as_me:5010: result: $cf_cv_term_header" >&5
5011 echo "${ECHO_T}$cf_cv_term_header" >&6
5013 # Set definitions to allow ifdef'ing to accommodate subdirectories
5015 case $cf_cv_term_header in # (vi
5017 cat >>confdefs.h <<\EOF
5018 #define HAVE_TERM_H 1
5024 case $cf_cv_term_header in # (vi
5025 ncurses/term.h) #(vi
5026 cat >>confdefs.h <<\EOF
5027 #define HAVE_NCURSES_TERM_H 1
5032 cat >>confdefs.h <<\EOF
5033 #define HAVE_NCURSESW_TERM_H 1
5039 # some applications need this, but should check for NCURSES_VERSION
5040 cat >>confdefs.h <<\EOF
5044 echo "$as_me:5044: checking for ncurses version" >&5
5045 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5046 if test "${cf_cv_ncurses_version+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 cf_cv_ncurses_version=no
5053 if test "$cross_compiling" = yes; then
5055 # This will not work if the preprocessor splits the line after the
5056 # Autoconf token. The 'unproto' program does that.
5057 cat > conftest.$ac_ext <<EOF
5058 #include <${cf_cv_ncurses_header-curses.h}>
5060 #ifdef NCURSES_VERSION
5061 Autoconf NCURSES_VERSION
5069 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5070 { (eval echo "$as_me:5070: \"$cf_try\"") >&5
5073 echo "$as_me:5073: \$? = $ac_status" >&5
5074 (exit $ac_status); }
5075 if test -f conftest.out ; then
5076 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5077 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line 5083 "configure"
5084 #include "confdefs.h"
5086 #include <${cf_cv_ncurses_header-curses.h}>
5090 FILE *fp = fopen("$cf_tempfile", "w");
5091 #ifdef NCURSES_VERSION
5092 # ifdef NCURSES_VERSION_PATCH
5093 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5095 fprintf(fp, "%s\n", NCURSES_VERSION);
5099 fprintf(fp, "old\n");
5104 ${cf_cv_main_return-return}(0);
5107 rm -f conftest$ac_exeext
5108 if { (eval echo "$as_me:5108: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>&5
5111 echo "$as_me:5111: \$? = $ac_status" >&5
5112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5113 { (eval echo "$as_me:5113: \"$ac_try\"") >&5
5116 echo "$as_me:5116: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5119 cf_cv_ncurses_version=`cat $cf_tempfile`
5121 echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5130 echo "$as_me:5130: result: $cf_cv_ncurses_version" >&5
5131 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5132 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5136 cf_nculib_root=ncursesw
5137 # This works, except for the special case where we find gpm, but
5138 # ncurses is in a nonstandard location via $LIBS, and we really want
5141 cf_ncurses_SAVE="$LIBS"
5142 echo "$as_me:5142: checking for Gpm_Open in -lgpm" >&5
5143 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5144 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_check_lib_save_LIBS=$LIBS
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line 5150 "configure"
5151 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:5169: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>&5
5172 echo "$as_me:5172: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -s conftest$ac_exeext'
5175 { (eval echo "$as_me:5175: \"$ac_try\"") >&5
5178 echo "$as_me:5178: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_lib_gpm_Gpm_Open=yes
5182 echo "$as_me: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 ac_cv_lib_gpm_Gpm_Open=no
5186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5187 LIBS=$ac_check_lib_save_LIBS
5189 echo "$as_me:5189: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5190 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5191 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5192 echo "$as_me:5192: checking for initscr in -lgpm" >&5
5193 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5194 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 ac_check_lib_save_LIBS=$LIBS
5199 cat >conftest.$ac_ext <<_ACEOF
5200 #line 5200 "configure"
5201 #include "confdefs.h"
5203 /* Override any gcc2 internal prototype to avoid an error. */
5207 /* We use char because int might match the return type of a gcc2
5208 builtin and then its argument prototype would still apply. */
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:5219: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5222 echo "$as_me:5222: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:5225: \"$ac_try\"") >&5
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_lib_gpm_initscr=yes
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 ac_cv_lib_gpm_initscr=no
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5239 echo "$as_me:5239: result: $ac_cv_lib_gpm_initscr" >&5
5240 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
5241 if test $ac_cv_lib_gpm_initscr = yes; then
5242 LIBS="$cf_ncurses_SAVE"
5244 cf_ncurses_LIBS="-lgpm"
5249 case $host_os in #(vi
5251 # This is only necessary if you are linking against an obsolete
5252 # version of ncurses (but it should do no harm, since it's static).
5253 if test "$cf_nculib_root" = ncurses ; then
5254 echo "$as_me:5254: checking for tgoto in -lmytinfo" >&5
5255 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5256 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_check_lib_save_LIBS=$LIBS
5260 LIBS="-lmytinfo $LIBS"
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:5284: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_lib_mytinfo_tgoto=yes
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_mytinfo_tgoto=no
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:5301: result: $ac_cv_lib_mytinfo_tgoto" >&5
5302 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5303 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5304 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5311 LIBS="$cf_ncurses_LIBS $LIBS"
5313 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5316 if test -n "$cf_cv_curses_dir/lib" ; then
5317 for cf_add_libdir in $cf_cv_curses_dir/lib
5319 if test $cf_add_libdir = /usr/lib ; then
5321 elif test -d $cf_add_libdir
5324 if test -n "$LDFLAGS$LIBS" ; then
5325 # a loop is needed to ensure we can add subdirs of existing dirs
5326 for cf_test_libdir in $LDFLAGS $LIBS ; do
5327 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5328 cf_have_libdir=yes; break
5332 if test "$cf_have_libdir" = no ; then
5333 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5335 echo "${as_me-configure}:5335: testing adding $cf_add_libdir to library-path ..." 1>&5
5337 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5343 LIBS="-l$cf_nculib_root $LIBS"
5346 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5348 echo "$as_me:5348: checking for initscr" >&5
5349 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5350 if test "${ac_cv_func_initscr+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5354 #line 5354 "configure"
5355 #include "confdefs.h"
5356 /* System header to define __stub macros and hopefully few prototypes,
5357 which can conflict with char initscr (); below. */
5359 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5371 /* The GNU C library defines this for functions which it implements
5372 to always fail with ENOSYS. Some functions are actually named
5373 something starting with __ and the normal name is an alias. */
5374 #if defined (__stub_initscr) || defined (__stub___initscr)
5384 rm -f conftest.$ac_objext conftest$ac_exeext
5385 if { (eval echo "$as_me:5385: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>&5
5388 echo "$as_me:5388: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -s conftest$ac_exeext'
5391 { (eval echo "$as_me:5391: \"$ac_try\"") >&5
5394 echo "$as_me:5394: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 ac_cv_func_initscr=yes
5398 echo "$as_me: failed program was:" >&5
5399 cat conftest.$ac_ext >&5
5400 ac_cv_func_initscr=no
5402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5404 echo "$as_me:5404: result: $ac_cv_func_initscr" >&5
5405 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5406 if test $ac_cv_func_initscr = yes; then
5407 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5410 cf_save_LIBS="$LIBS"
5411 echo "$as_me:5411: checking for initscr in -l$cf_nculib_root" >&5
5412 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5413 LIBS="-l$cf_nculib_root $LIBS"
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line 5415 "configure"
5416 #include "confdefs.h"
5417 #include <${cf_cv_ncurses_header-curses.h}>
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:5427: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:5430: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:5433: \"$ac_try\"") >&5
5436 echo "$as_me:5436: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 echo "$as_me:5438: result: yes" >&5
5439 echo "${ECHO_T}yes" >&6
5440 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5443 echo "$as_me: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 echo "$as_me:5445: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5449 cf_library_path_list=""
5450 if test -n "${LDFLAGS}${LIBS}" ; then
5451 for cf_library_path in $LDFLAGS $LIBS
5453 case $cf_library_path in #(vi
5455 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5457 test "$cf_library_path" != "NONE" && \
5458 test -d "$cf_library_path" && \
5460 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5461 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5462 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5463 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5464 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5465 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
5468 cf_library_path_list="$cf_library_path_list $cf_search"
5476 test "/usr" != "$prefix" && \
5478 (test $prefix = NONE || test -d $prefix) && {
5479 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
5480 test -d /usr/lib && cf_search="$cf_search /usr/lib"
5481 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
5482 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
5483 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
5484 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
5487 test "$prefix" != "NONE" && \
5488 test -d "$prefix" && \
5490 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5491 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5492 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5493 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5494 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5495 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5498 test "/usr/local" != "$prefix" && \
5499 test -d "/usr/local" && \
5500 (test $prefix = NONE || test -d $prefix) && {
5501 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
5502 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
5503 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
5504 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
5505 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
5506 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
5509 test "/opt" != "$prefix" && \
5511 (test $prefix = NONE || test -d $prefix) && {
5512 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
5513 test -d /opt/lib && cf_search="$cf_search /opt/lib"
5514 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
5515 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
5516 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
5517 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
5520 test "$HOME" != "$prefix" && \
5521 test -d "$HOME" && \
5522 (test $prefix = NONE || test -d $prefix) && {
5523 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
5524 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
5525 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
5526 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
5527 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
5528 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
5531 cf_search="$cf_library_path_list $cf_search"
5533 for cf_libdir in $cf_search
5535 echo "$as_me:5535: checking for -l$cf_nculib_root in $cf_libdir" >&5
5536 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5537 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5538 cat >conftest.$ac_ext <<_ACEOF
5539 #line 5539 "configure"
5540 #include "confdefs.h"
5541 #include <${cf_cv_ncurses_header-curses.h}>
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (eval echo "$as_me:5551: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5554 echo "$as_me:5554: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:5557: \"$ac_try\"") >&5
5560 echo "$as_me:5560: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 echo "$as_me:5562: result: yes" >&5
5563 echo "${ECHO_T}yes" >&6
5564 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5567 echo "$as_me: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 echo "$as_me:5569: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5571 LIBS="$cf_save_LIBS"
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5581 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5583 if test $cf_found_library = no ; then
5584 { { echo "$as_me:5584: error: Cannot link $cf_nculib_root library" >&5
5585 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5586 { (exit 1); exit 1; }; }
5591 if test -n "$cf_ncurses_LIBS" ; then
5592 echo "$as_me:5592: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5593 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5594 cf_ncurses_SAVE="$LIBS"
5595 for p in $cf_ncurses_LIBS ; do
5596 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5597 if test "$q" != "$LIBS" ; then
5601 cat >conftest.$ac_ext <<_ACEOF
5602 #line 5602 "configure"
5603 #include "confdefs.h"
5604 #include <${cf_cv_ncurses_header-curses.h}>
5608 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:5614: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>&5
5617 echo "$as_me:5617: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -s conftest$ac_exeext'
5620 { (eval echo "$as_me:5620: \"$ac_try\"") >&5
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 echo "$as_me:5625: result: yes" >&5
5626 echo "${ECHO_T}yes" >&6
5628 echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 echo "$as_me:5630: result: no" >&5
5631 echo "${ECHO_T}no" >&6
5632 LIBS="$cf_ncurses_SAVE"
5634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5637 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5639 cat >>confdefs.h <<EOF
5640 #define $cf_nculib_ROOT 1
5647 cf_ncuconfig_root=ncurses
5649 echo "Looking for ${cf_ncuconfig_root}-config"
5650 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5652 # Extract the first word of "$ac_prog", so it can be a program name with args.
5653 set dummy $ac_prog; ac_word=$2
5654 echo "$as_me:5654: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 case $NCURSES_CONFIG in
5661 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5664 ac_save_IFS=$IFS; IFS=$ac_path_separator
5666 for ac_dir in $ac_dummy; do
5668 test -z "$ac_dir" && ac_dir=.
5669 if $as_executable_p "$ac_dir/$ac_word"; then
5670 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5671 echo "$as_me:5671: found $ac_dir/$ac_word" >&5
5679 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
5681 if test -n "$NCURSES_CONFIG"; then
5682 echo "$as_me:5682: result: $NCURSES_CONFIG" >&5
5683 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5685 echo "$as_me:5685: result: no" >&5
5686 echo "${ECHO_T}no" >&6
5689 test -n "$NCURSES_CONFIG" && break
5691 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
5693 if test "$NCURSES_CONFIG" != none ; then
5695 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5696 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5698 # even with config script, some packages use no-override for curses.h
5700 echo "$as_me:5700: checking if we have identified curses headers" >&5
5701 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5702 if test "${cf_cv_ncurses_header+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 cf_cv_ncurses_header=none
5713 cat >conftest.$ac_ext <<_ACEOF
5714 #line 5714 "configure"
5715 #include "confdefs.h"
5716 #include <${cf_header}>
5720 initscr(); tgoto("?", 0,0)
5725 rm -f conftest.$ac_objext
5726 if { (eval echo "$as_me:5726: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>&5
5729 echo "$as_me:5729: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:5732: \"$ac_try\"") >&5
5735 echo "$as_me:5735: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 cf_cv_ncurses_header=$cf_header; break
5739 echo "$as_me: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5742 rm -f conftest.$ac_objext conftest.$ac_ext
5746 echo "$as_me:5746: result: $cf_cv_ncurses_header" >&5
5747 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5749 if test "$cf_cv_ncurses_header" = none ; then
5750 { { echo "$as_me:5750: error: No curses header-files found" >&5
5751 echo "$as_me: error: No curses header-files found" >&2;}
5752 { (exit 1); exit 1; }; }
5755 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5757 for ac_header in $cf_cv_ncurses_header
5759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5760 echo "$as_me:5760: checking for $ac_header" >&5
5761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line 5766 "configure"
5767 #include "confdefs.h"
5768 #include <$ac_header>
5770 if { (eval echo "$as_me:5770: \"$ac_cpp conftest.$ac_ext\"") >&5
5771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5773 egrep -v '^ *\+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:5776: \$? = $ac_status" >&5
5777 (exit $ac_status); } >/dev/null; then
5778 if test -s conftest.err; then
5779 ac_cpp_err=$ac_c_preproc_warn_flag
5786 if test -z "$ac_cpp_err"; then
5787 eval "$as_ac_Header=yes"
5789 echo "$as_me: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5791 eval "$as_ac_Header=no"
5793 rm -f conftest.err conftest.$ac_ext
5795 echo "$as_me:5795: result: `eval echo '${'$as_ac_Header'}'`" >&5
5796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5798 cat >>confdefs.h <<EOF
5799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 cat >>confdefs.h <<\EOF
5809 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5811 cat >>confdefs.h <<EOF
5812 #define $cf_nculib_ROOT 1
5815 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5819 cf_ncuhdr_root=ncurses
5821 test -n "$cf_cv_curses_dir" && \
5822 test "$cf_cv_curses_dir" != "no" && { \
5824 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5825 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
5827 while test $cf_add_incdir != /usr/include
5829 if test -d $cf_add_incdir
5832 if test -n "$CFLAGS$CPPFLAGS" ; then
5833 # a loop is needed to ensure we can add subdirs of existing dirs
5834 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5835 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5836 cf_have_incdir=yes; break
5841 if test "$cf_have_incdir" = no ; then
5842 if test "$cf_add_incdir" = /usr/local/include ; then
5843 if test "$GCC" = yes
5845 cf_save_CPPFLAGS=$CPPFLAGS
5846 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line 5848 "configure"
5849 #include "confdefs.h"
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:5860: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5863 echo "$as_me:5863: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (eval echo "$as_me:5866: \"$ac_try\"") >&5
5869 echo "$as_me:5869: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5873 echo "$as_me: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5877 rm -f conftest.$ac_objext conftest.$ac_ext
5878 CPPFLAGS=$cf_save_CPPFLAGS
5883 if test "$cf_have_incdir" = no ; then
5884 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5886 echo "${as_me-configure}:5886: testing adding $cf_add_incdir to include-path ..." 1>&5
5888 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5890 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5891 test "$cf_top_incdir" = "$cf_add_incdir" && break
5892 cf_add_incdir="$cf_top_incdir"
5903 echo "$as_me:5903: checking for $cf_ncuhdr_root header in include-path" >&5
5904 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5905 if test "${cf_cv_ncurses_h+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5910 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5911 for cf_header in $cf_header_list
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line 5915 "configure"
5916 #include "confdefs.h"
5918 #include <$cf_header>
5923 #ifdef NCURSES_VERSION
5925 printf("%s\n", NCURSES_VERSION);
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:5939: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5942 echo "$as_me:5942: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:5945: \"$ac_try\"") >&5
5948 echo "$as_me:5948: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 cf_cv_ncurses_h=$cf_header
5953 echo "$as_me: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5957 rm -f conftest.$ac_objext conftest.$ac_ext
5959 test "$cf_cv_ncurses_h" != no && break
5963 echo "$as_me:5963: result: $cf_cv_ncurses_h" >&5
5964 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
5966 if test "$cf_cv_ncurses_h" != no ; then
5967 cf_cv_ncurses_header=$cf_cv_ncurses_h
5970 echo "$as_me:5970: checking for $cf_ncuhdr_root include-path" >&5
5971 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
5972 if test "${cf_cv_ncurses_h2+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 test -n "$verbose" && echo
5980 # collect the current set of include-directories from compiler flags
5981 cf_header_path_list=""
5982 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5983 for cf_header_path in $CPPFLAGS $CFLAGS
5985 case $cf_header_path in #(vi
5987 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5989 test "$cf_header_path" != "NONE" && \
5990 test -d "$cf_header_path" && \
5992 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5993 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5994 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
5995 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
5996 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
5997 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6000 cf_header_path_list="$cf_header_path_list $cf_search"
6006 # add the variations for the package we are looking for
6010 test "/usr" != "$prefix" && \
6012 (test $prefix = NONE || test -d $prefix) && {
6013 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6014 test -d /usr/include && cf_search="$cf_search /usr/include"
6015 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6016 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6017 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6018 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6021 test "$prefix" != "NONE" && \
6022 test -d "$prefix" && \
6024 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6025 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6026 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6027 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6028 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6029 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6032 test "/usr/local" != "$prefix" && \
6033 test -d "/usr/local" && \
6034 (test $prefix = NONE || test -d $prefix) && {
6035 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6036 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6037 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6038 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6039 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6040 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6043 test "/opt" != "$prefix" && \
6045 (test $prefix = NONE || test -d $prefix) && {
6046 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6047 test -d /opt/include && cf_search="$cf_search /opt/include"
6048 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6049 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6050 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6051 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6054 test "$HOME" != "$prefix" && \
6055 test -d "$HOME" && \
6056 (test $prefix = NONE || test -d $prefix) && {
6057 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6058 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6059 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6060 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6061 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6062 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6065 test "$includedir" != NONE && \
6066 test "$includedir" != "/usr/include" && \
6067 test -d "$includedir" && {
6068 test -d $includedir && cf_search="$cf_search $includedir"
6069 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6072 test "$oldincludedir" != NONE && \
6073 test "$oldincludedir" != "/usr/include" && \
6074 test -d "$oldincludedir" && {
6075 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6076 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6079 cf_search="$cf_search $cf_header_path_list"
6081 test -n "$verbose" && echo search path $cf_search
6082 cf_save2_CPPFLAGS="$CPPFLAGS"
6083 for cf_incdir in $cf_search
6086 if test -n "$cf_incdir" ; then
6087 for cf_add_incdir in $cf_incdir
6089 while test $cf_add_incdir != /usr/include
6091 if test -d $cf_add_incdir
6094 if test -n "$CFLAGS$CPPFLAGS" ; then
6095 # a loop is needed to ensure we can add subdirs of existing dirs
6096 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6097 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6098 cf_have_incdir=yes; break
6103 if test "$cf_have_incdir" = no ; then
6104 if test "$cf_add_incdir" = /usr/local/include ; then
6105 if test "$GCC" = yes
6107 cf_save_CPPFLAGS=$CPPFLAGS
6108 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line 6110 "configure"
6111 #include "confdefs.h"
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:6122: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>&5
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest.$ac_objext'
6128 { (eval echo "$as_me:6128: \"$ac_try\"") >&5
6131 echo "$as_me:6131: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6135 echo "$as_me: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6139 rm -f conftest.$ac_objext conftest.$ac_ext
6140 CPPFLAGS=$cf_save_CPPFLAGS
6145 if test "$cf_have_incdir" = no ; then
6146 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6148 echo "${as_me-configure}:6148: testing adding $cf_add_incdir to include-path ..." 1>&5
6150 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6152 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6153 test "$cf_top_incdir" = "$cf_add_incdir" && break
6154 cf_add_incdir="$cf_top_incdir"
6168 cat >conftest.$ac_ext <<_ACEOF
6169 #line 6169 "configure"
6170 #include "confdefs.h"
6172 #include <$cf_header>
6177 #ifdef NCURSES_VERSION
6179 printf("%s\n", NCURSES_VERSION);
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:6193: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>&5
6196 echo "$as_me:6196: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:6199: \"$ac_try\"") >&5
6202 echo "$as_me:6202: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 cf_cv_ncurses_h2=$cf_header
6207 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6211 rm -f conftest.$ac_objext conftest.$ac_ext
6213 if test "$cf_cv_ncurses_h2" != no ; then
6214 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6215 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6218 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6220 CPPFLAGS="$cf_save2_CPPFLAGS"
6221 test "$cf_cv_ncurses_h2" != no && break
6223 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6223: error: not found" >&5
6224 echo "$as_me: error: not found" >&2;}
6225 { (exit 1); exit 1; }; }
6228 echo "$as_me:6228: result: $cf_cv_ncurses_h2" >&5
6229 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6231 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6232 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6233 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6234 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6237 if test -n "$cf_1st_incdir" ; then
6238 for cf_add_incdir in $cf_1st_incdir
6240 while test $cf_add_incdir != /usr/include
6242 if test -d $cf_add_incdir
6245 if test -n "$CFLAGS$CPPFLAGS" ; then
6246 # a loop is needed to ensure we can add subdirs of existing dirs
6247 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6248 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6249 cf_have_incdir=yes; break
6254 if test "$cf_have_incdir" = no ; then
6255 if test "$cf_add_incdir" = /usr/local/include ; then
6256 if test "$GCC" = yes
6258 cf_save_CPPFLAGS=$CPPFLAGS
6259 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line 6261 "configure"
6262 #include "confdefs.h"
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:6273: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>&5
6276 echo "$as_me:6276: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:6279: \"$ac_try\"") >&5
6282 echo "$as_me:6282: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6286 echo "$as_me: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6290 rm -f conftest.$ac_objext conftest.$ac_ext
6291 CPPFLAGS=$cf_save_CPPFLAGS
6296 if test "$cf_have_incdir" = no ; then
6297 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6299 echo "${as_me-configure}:6299: testing adding $cf_add_incdir to include-path ..." 1>&5
6301 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6303 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6304 test "$cf_top_incdir" = "$cf_add_incdir" && break
6305 cf_add_incdir="$cf_top_incdir"
6316 # Set definitions to allow ifdef'ing for ncurses.h
6318 case $cf_cv_ncurses_header in # (vi
6320 cat >>confdefs.h <<\EOF
6321 #define HAVE_NCURSES_H 1
6327 case $cf_cv_ncurses_header in # (vi
6328 ncurses/curses.h|ncurses/ncurses.h)
6329 cat >>confdefs.h <<\EOF
6330 #define HAVE_NCURSES_NCURSES_H 1
6334 ncursesw/curses.h|ncursesw/ncurses.h)
6335 cat >>confdefs.h <<\EOF
6336 #define HAVE_NCURSESW_NCURSES_H 1
6342 echo "$as_me:6342: checking for terminfo header" >&5
6343 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6344 if test "${cf_cv_term_header+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 case ${cf_cv_ncurses_header} in #(vi
6349 */ncurses.h|*/ncursesw.h) #(vi
6350 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6353 cf_term_header=term.h
6357 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line 6360 "configure"
6361 #include "confdefs.h"
6363 #include <${cf_cv_ncurses_header-curses.h}>
6369 int x = auto_left_margin
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:6375: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:6378: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:6381: \"$ac_try\"") >&5
6384 echo "$as_me:6384: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6387 cf_cv_term_header="$cf_test"
6389 echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 cf_cv_term_header=unknown
6395 rm -f conftest.$ac_objext conftest.$ac_ext
6396 test "$cf_cv_term_header" != unknown && break
6400 echo "$as_me:6400: result: $cf_cv_term_header" >&5
6401 echo "${ECHO_T}$cf_cv_term_header" >&6
6403 # Set definitions to allow ifdef'ing to accommodate subdirectories
6405 case $cf_cv_term_header in # (vi
6407 cat >>confdefs.h <<\EOF
6408 #define HAVE_TERM_H 1
6414 case $cf_cv_term_header in # (vi
6415 ncurses/term.h) #(vi
6416 cat >>confdefs.h <<\EOF
6417 #define HAVE_NCURSES_TERM_H 1
6422 cat >>confdefs.h <<\EOF
6423 #define HAVE_NCURSESW_TERM_H 1
6429 # some applications need this, but should check for NCURSES_VERSION
6430 cat >>confdefs.h <<\EOF
6434 echo "$as_me:6434: checking for ncurses version" >&5
6435 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6436 if test "${cf_cv_ncurses_version+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 cf_cv_ncurses_version=no
6443 if test "$cross_compiling" = yes; then
6445 # This will not work if the preprocessor splits the line after the
6446 # Autoconf token. The 'unproto' program does that.
6447 cat > conftest.$ac_ext <<EOF
6448 #include <${cf_cv_ncurses_header-curses.h}>
6450 #ifdef NCURSES_VERSION
6451 Autoconf NCURSES_VERSION
6459 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6460 { (eval echo "$as_me:6460: \"$cf_try\"") >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }
6465 if test -f conftest.out ; then
6466 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6467 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6472 cat >conftest.$ac_ext <<_ACEOF
6473 #line 6473 "configure"
6474 #include "confdefs.h"
6476 #include <${cf_cv_ncurses_header-curses.h}>
6480 FILE *fp = fopen("$cf_tempfile", "w");
6481 #ifdef NCURSES_VERSION
6482 # ifdef NCURSES_VERSION_PATCH
6483 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6485 fprintf(fp, "%s\n", NCURSES_VERSION);
6489 fprintf(fp, "old\n");
6494 ${cf_cv_main_return-return}(0);
6497 rm -f conftest$ac_exeext
6498 if { (eval echo "$as_me:6498: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>&5
6501 echo "$as_me:6501: \$? = $ac_status" >&5
6502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6503 { (eval echo "$as_me:6503: \"$ac_try\"") >&5
6506 echo "$as_me:6506: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6509 cf_cv_ncurses_version=`cat $cf_tempfile`
6511 echo "$as_me: program exited with status $ac_status" >&5
6512 echo "$as_me: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6515 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me:6520: result: $cf_cv_ncurses_version" >&5
6521 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6522 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6526 cf_nculib_root=ncurses
6527 # This works, except for the special case where we find gpm, but
6528 # ncurses is in a nonstandard location via $LIBS, and we really want
6531 cf_ncurses_SAVE="$LIBS"
6532 echo "$as_me:6532: checking for Gpm_Open in -lgpm" >&5
6533 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6534 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 ac_check_lib_save_LIBS=$LIBS
6539 cat >conftest.$ac_ext <<_ACEOF
6540 #line 6540 "configure"
6541 #include "confdefs.h"
6543 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (eval echo "$as_me:6559: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>&5
6562 echo "$as_me:6562: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -s conftest$ac_exeext'
6565 { (eval echo "$as_me:6565: \"$ac_try\"") >&5
6568 echo "$as_me:6568: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_cv_lib_gpm_Gpm_Open=yes
6572 echo "$as_me: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6574 ac_cv_lib_gpm_Gpm_Open=no
6576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6577 LIBS=$ac_check_lib_save_LIBS
6579 echo "$as_me:6579: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6580 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6581 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6582 echo "$as_me:6582: checking for initscr in -lgpm" >&5
6583 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6584 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_check_lib_save_LIBS=$LIBS
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line 6590 "configure"
6591 #include "confdefs.h"
6593 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (eval echo "$as_me:6609: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6612 echo "$as_me:6612: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:6615: \"$ac_try\"") >&5
6618 echo "$as_me:6618: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_gpm_initscr=yes
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 ac_cv_lib_gpm_initscr=no
6626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6629 echo "$as_me:6629: result: $ac_cv_lib_gpm_initscr" >&5
6630 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6631 if test $ac_cv_lib_gpm_initscr = yes; then
6632 LIBS="$cf_ncurses_SAVE"
6634 cf_ncurses_LIBS="-lgpm"
6639 case $host_os in #(vi
6641 # This is only necessary if you are linking against an obsolete
6642 # version of ncurses (but it should do no harm, since it's static).
6643 if test "$cf_nculib_root" = ncurses ; then
6644 echo "$as_me:6644: checking for tgoto in -lmytinfo" >&5
6645 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6646 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_check_lib_save_LIBS=$LIBS
6650 LIBS="-lmytinfo $LIBS"
6651 cat >conftest.$ac_ext <<_ACEOF
6652 #line 6652 "configure"
6653 #include "confdefs.h"
6655 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:6671: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6674 echo "$as_me:6674: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -s conftest$ac_exeext'
6677 { (eval echo "$as_me:6677: \"$ac_try\"") >&5
6680 echo "$as_me:6680: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_lib_mytinfo_tgoto=yes
6684 echo "$as_me: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6686 ac_cv_lib_mytinfo_tgoto=no
6688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6689 LIBS=$ac_check_lib_save_LIBS
6691 echo "$as_me:6691: result: $ac_cv_lib_mytinfo_tgoto" >&5
6692 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6693 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6694 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6701 LIBS="$cf_ncurses_LIBS $LIBS"
6703 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6706 if test -n "$cf_cv_curses_dir/lib" ; then
6707 for cf_add_libdir in $cf_cv_curses_dir/lib
6709 if test $cf_add_libdir = /usr/lib ; then
6711 elif test -d $cf_add_libdir
6714 if test -n "$LDFLAGS$LIBS" ; then
6715 # a loop is needed to ensure we can add subdirs of existing dirs
6716 for cf_test_libdir in $LDFLAGS $LIBS ; do
6717 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6718 cf_have_libdir=yes; break
6722 if test "$cf_have_libdir" = no ; then
6723 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6725 echo "${as_me-configure}:6725: testing adding $cf_add_libdir to library-path ..." 1>&5
6727 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6733 LIBS="-l$cf_nculib_root $LIBS"
6736 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6738 echo "$as_me:6738: checking for initscr" >&5
6739 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6740 if test "${ac_cv_func_initscr+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 cat >conftest.$ac_ext <<_ACEOF
6744 #line 6744 "configure"
6745 #include "confdefs.h"
6746 /* System header to define __stub macros and hopefully few prototypes,
6747 which can conflict with char initscr (); below. */
6749 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_initscr) || defined (__stub___initscr)
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (eval echo "$as_me:6775: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6778 echo "$as_me:6778: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:6781: \"$ac_try\"") >&5
6784 echo "$as_me:6784: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_func_initscr=yes
6788 echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 ac_cv_func_initscr=no
6792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6794 echo "$as_me:6794: result: $ac_cv_func_initscr" >&5
6795 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6796 if test $ac_cv_func_initscr = yes; then
6797 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6800 cf_save_LIBS="$LIBS"
6801 echo "$as_me:6801: checking for initscr in -l$cf_nculib_root" >&5
6802 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6803 LIBS="-l$cf_nculib_root $LIBS"
6804 cat >conftest.$ac_ext <<_ACEOF
6805 #line 6805 "configure"
6806 #include "confdefs.h"
6807 #include <${cf_cv_ncurses_header-curses.h}>
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:6817: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6820 echo "$as_me:6820: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:6823: \"$ac_try\"") >&5
6826 echo "$as_me:6826: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 echo "$as_me:6828: result: yes" >&5
6829 echo "${ECHO_T}yes" >&6
6830 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6833 echo "$as_me: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 echo "$as_me:6835: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6839 cf_library_path_list=""
6840 if test -n "${LDFLAGS}${LIBS}" ; then
6841 for cf_library_path in $LDFLAGS $LIBS
6843 case $cf_library_path in #(vi
6845 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6847 test "$cf_library_path" != "NONE" && \
6848 test -d "$cf_library_path" && \
6850 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6851 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6852 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6853 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6854 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6855 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
6858 cf_library_path_list="$cf_library_path_list $cf_search"
6866 test "/usr" != "$prefix" && \
6868 (test $prefix = NONE || test -d $prefix) && {
6869 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6870 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6871 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6872 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6873 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6874 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6877 test "$prefix" != "NONE" && \
6878 test -d "$prefix" && \
6880 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6881 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6882 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6883 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6884 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6885 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6888 test "/usr/local" != "$prefix" && \
6889 test -d "/usr/local" && \
6890 (test $prefix = NONE || test -d $prefix) && {
6891 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6892 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6893 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6894 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6895 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6896 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6899 test "/opt" != "$prefix" && \
6901 (test $prefix = NONE || test -d $prefix) && {
6902 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6903 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6904 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6905 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6906 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6907 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6910 test "$HOME" != "$prefix" && \
6911 test -d "$HOME" && \
6912 (test $prefix = NONE || test -d $prefix) && {
6913 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6914 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6915 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6916 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6917 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6918 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6921 cf_search="$cf_library_path_list $cf_search"
6923 for cf_libdir in $cf_search
6925 echo "$as_me:6925: checking for -l$cf_nculib_root in $cf_libdir" >&5
6926 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6927 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line 6929 "configure"
6930 #include "confdefs.h"
6931 #include <${cf_cv_ncurses_header-curses.h}>
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:6941: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>&5
6944 echo "$as_me:6944: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -s conftest$ac_exeext'
6947 { (eval echo "$as_me:6947: \"$ac_try\"") >&5
6950 echo "$as_me:6950: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952 echo "$as_me:6952: result: yes" >&5
6953 echo "${ECHO_T}yes" >&6
6954 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6957 echo "$as_me: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6959 echo "$as_me:6959: result: no" >&5
6960 echo "${ECHO_T}no" >&6
6961 LIBS="$cf_save_LIBS"
6963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6971 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
6973 if test $cf_found_library = no ; then
6974 { { echo "$as_me:6974: error: Cannot link $cf_nculib_root library" >&5
6975 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
6976 { (exit 1); exit 1; }; }
6981 if test -n "$cf_ncurses_LIBS" ; then
6982 echo "$as_me:6982: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
6983 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
6984 cf_ncurses_SAVE="$LIBS"
6985 for p in $cf_ncurses_LIBS ; do
6986 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
6987 if test "$q" != "$LIBS" ; then
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line 6992 "configure"
6993 #include "confdefs.h"
6994 #include <${cf_cv_ncurses_header-curses.h}>
6998 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:7004: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:7007: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:7010: \"$ac_try\"") >&5
7013 echo "$as_me:7013: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 echo "$as_me:7015: result: yes" >&5
7016 echo "${ECHO_T}yes" >&6
7018 echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7020 echo "$as_me:7020: result: no" >&5
7021 echo "${ECHO_T}no" >&6
7022 LIBS="$cf_ncurses_SAVE"
7024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7029 cat >>confdefs.h <<EOF
7030 #define $cf_nculib_ROOT 1
7037 if test "$NCURSES_CONFIG" != none ; then
7039 cf_version=`$NCURSES_CONFIG --version`
7041 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
7042 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9]\+\.//' -e 's/\..*//'`
7043 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9]\+\.[0-9]\+\.//'`
7045 # ABI version is not available from headers
7046 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version`
7050 for cf_name in MAJOR MINOR PATCH
7052 cat >conftest.$ac_ext <<CF_EOF
7053 #include <${cf_cv_ncurses_header-curses.h}>
7054 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
7056 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
7057 { (eval echo "$as_me:7057: \"$cf_try\"") >&5
7060 echo "$as_me:7060: \$? = $ac_status" >&5
7061 (exit $ac_status); }
7062 if test -f conftest.out ; then
7063 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ]\+//"`
7064 eval NCURSES_$cf_name=$cf_result
7065 cat conftest.$ac_ext
7070 cf_cv_abi_version=${NCURSES_MAJOR}
7074 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
7076 cf_cv_timestamp=`date`
7078 echo "$as_me:7078: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
7079 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
7081 case $cf_cv_system_name in #(vi
7088 cf_prefix=$LIB_PREFIX
7090 LIB_PREFIX=$cf_prefix
7094 ###############################################################################
7096 if test X"$CC_G_OPT" = X"" ; then
7098 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
7101 echo "$as_me:7101: checking for default loader flags" >&5
7102 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
7103 case $DFT_LWR_MODEL in
7104 normal) LD_MODEL='' ;;
7105 debug) LD_MODEL=$CC_G_OPT ;;
7106 profile) LD_MODEL='-pg';;
7107 shared) LD_MODEL='' ;;
7109 echo "$as_me:7109: result: $LD_MODEL" >&5
7110 echo "${ECHO_T}$LD_MODEL" >&6
7113 echo "$as_me:7113: checking for an rpath option" >&5
7114 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
7115 case $cf_cv_system_name in #(vi
7117 if test "$GCC" = yes; then
7118 LD_RPATH_OPT="-Wl,-rpath,"
7120 LD_RPATH_OPT="-rpath "
7123 linux*|gnu*|k*bsd*-gnu) #(vi
7124 LD_RPATH_OPT="-Wl,-rpath,"
7126 openbsd[2-9].*) #(vi
7127 LD_RPATH_OPT="-Wl,-rpath,"
7130 LD_RPATH_OPT="-rpath "
7133 LD_RPATH_OPT="-Wl,-rpath,"
7136 LD_RPATH_OPT="-rpath "
7144 echo "$as_me:7144: result: $LD_RPATH_OPT" >&5
7145 echo "${ECHO_T}$LD_RPATH_OPT" >&6
7147 case "x$LD_RPATH_OPT" in #(vi
7149 echo "$as_me:7149: checking if we need a space after rpath option" >&5
7150 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
7151 cf_save_LIBS="$LIBS"
7152 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
7153 cat >conftest.$ac_ext <<_ACEOF
7154 #line 7154 "configure"
7155 #include "confdefs.h"
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (eval echo "$as_me:7166: \"$ac_link\"") >&5
7167 (eval $ac_link) 2>&5
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:7172: \"$ac_try\"") >&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7184 LIBS="$cf_save_LIBS"
7185 echo "$as_me:7185: result: $cf_rpath_space" >&5
7186 echo "${ECHO_T}$cf_rpath_space" >&6
7187 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
7194 INSTALL_LIB="-m 644"
7196 cf_cv_do_symlinks=no
7198 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
7200 echo "$as_me:7200: checking if release/abi version should be used for shared libs" >&5
7201 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
7203 # Check whether --with-shlib-version or --without-shlib-version was given.
7204 if test "${with_shlib_version+set}" = set; then
7205 withval="$with_shlib_version"
7206 test -z "$withval" && withval=auto
7207 case $withval in #(vi
7209 cf_cv_shlib_version=auto
7211 rel|abi|auto|no) #(vi
7212 cf_cv_shlib_version=$withval
7215 { { echo "$as_me:7215: error: option value must be one of: rel, abi, auto or no" >&5
7216 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
7217 { (exit 1); exit 1; }; }
7222 cf_cv_shlib_version=auto
7224 echo "$as_me:7224: result: $cf_cv_shlib_version" >&5
7225 echo "${ECHO_T}$cf_cv_shlib_version" >&6
7229 # Some less-capable ports of gcc support only -fpic
7231 if test "$GCC" = yes
7233 echo "$as_me:7233: checking which $CC option to use" >&5
7234 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
7235 cf_save_CFLAGS="$CFLAGS"
7236 for CC_SHARED_OPTS in -fPIC -fpic ''
7238 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
7239 cat >conftest.$ac_ext <<_ACEOF
7240 #line 7240 "configure"
7241 #include "confdefs.h"
7251 rm -f conftest.$ac_objext
7252 if { (eval echo "$as_me:7252: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>&5
7255 echo "$as_me:7255: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:7258: \"$ac_try\"") >&5
7261 echo "$as_me:7261: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7265 echo "$as_me: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 rm -f conftest.$ac_objext conftest.$ac_ext
7270 echo "$as_me:7270: result: $CC_SHARED_OPTS" >&5
7271 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
7272 CFLAGS="$cf_save_CFLAGS"
7275 cf_cv_shlib_version_infix=no
7277 case $cf_cv_system_name in #(vi
7279 if test "$GCC" = yes; then
7281 MK_SHARED_LIB='$(CC) -shared'
7285 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
7289 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7290 cf_cv_shlib_version=cygdll
7291 cf_cv_shlib_version_infix=cygdll
7292 cat >mk_shared_lib.sh <<-CF_EOF
7295 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7298 Linking shared library
7299 ** SHARED_LIB \$SHARED_LIB
7300 ** IMPORT_LIB \$IMPORT_LIB
7302 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
7304 chmod +x mk_shared_lib.sh
7307 EXTRA_CFLAGS="-no-cpp-precomp"
7308 CC_SHARED_OPTS="-dynamic"
7309 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
7310 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
7311 cf_cv_shlib_version_infix=yes
7312 echo "$as_me:7312: checking if ld -search_paths_first works" >&5
7313 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
7314 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 cf_save_LDFLAGS=$LDFLAGS
7319 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:7333: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>&5
7336 echo "$as_me:7336: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -s conftest$ac_exeext'
7339 { (eval echo "$as_me:7339: \"$ac_try\"") >&5
7342 echo "$as_me:7342: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 cf_cv_ldflags_search_paths_first=yes
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7348 cf_cv_ldflags_search_paths_first=no
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 LDFLAGS=$cf_save_LDFLAGS
7353 echo "$as_me:7353: result: $cf_cv_ldflags_search_paths_first" >&5
7354 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
7355 if test $cf_cv_ldflags_search_paths_first = yes; then
7356 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7360 # (tested with gcc 2.7.2 -- I don't have c89)
7361 if test "$GCC" = yes; then
7362 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
7365 LD_SHARED_OPTS='-Wl,+b,${libdir}'
7367 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
7368 # HP-UX shared libraries must be executable, and should be
7369 # readonly to exploit a quirk in the memory manager.
7370 INSTALL_LIB="-m 555"
7373 if test "$cf_cv_enable_rpath" = yes ; then
7374 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7376 # tested with IRIX 5.2 and 'cc'.
7377 if test "$GCC" != yes; then
7378 CC_SHARED_OPTS='-KPIC'
7379 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
7381 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
7383 cf_cv_rm_so_locs=yes
7385 linux*|gnu*|k*bsd*-gnu) #(vi
7386 if test "$DFT_LWR_MODEL" = "shared" ; then
7387 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7388 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7390 if test "$cf_cv_enable_rpath" = yes ; then
7391 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7394 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7395 if test "$cf_cv_shlib_version" = rel; then
7396 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7398 cf_cv_shared_soname='`basename $@`'
7401 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7403 openbsd[2-9].*) #(vi
7404 if test "$DFT_LWR_MODEL" = "shared" ; then
7405 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7406 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7408 if test "$cf_cv_enable_rpath" = yes ; then
7409 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7411 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7413 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7414 if test "$cf_cv_shlib_version" = rel; then
7415 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7417 cf_cv_shared_soname='`basename $@`'
7420 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7422 nto-qnx*|openbsd*|freebsd[12].*) #(vi
7423 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7424 MK_SHARED_LIB='${LD} -Bshareable -o $@'
7425 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7428 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7429 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7430 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7431 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
7432 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7435 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7436 if test "$cf_cv_shlib_version" = rel; then
7437 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7439 cf_cv_shared_soname='`basename $@`'
7442 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
7445 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7446 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7447 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7448 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7449 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7450 if test "$cf_cv_shlib_version" = auto; then
7451 if test -f /usr/libexec/ld.elf_so; then
7452 cf_cv_shlib_version=abi
7454 cf_cv_shlib_version=rel
7458 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7459 if test "$cf_cv_shlib_version" = rel; then
7460 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7462 cf_cv_shared_soname='`basename $@`'
7465 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7467 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
7471 # tested with OSF/1 V3.2 and 'cc'
7472 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7473 # link with shared libs).
7474 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7475 case $host_os in #(vi
7477 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7480 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7481 if test "$DFT_LWR_MODEL" = "shared" ; then
7482 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7483 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7485 cf_cv_rm_so_locs=yes
7487 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
7488 # tested with osr5.0.5
7489 if test "$GCC" != yes; then
7490 CC_SHARED_OPTS='-belf -KPIC'
7492 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7493 if test "$cf_cv_enable_rpath" = yes ; then
7494 # only way is to set LD_RUN_PATH but no switch for it
7497 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7498 LINK_PROGS='LD_RUN_PATH=${libdir}'
7499 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7502 # tested with SunOS 4.1.1 and gcc 2.7.0
7503 if test "$GCC" != yes; then
7504 CC_SHARED_OPTS='-KPIC'
7506 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
7507 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7510 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7511 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7512 if test "$DFT_LWR_MODEL" = "shared" ; then
7513 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7514 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7516 if test "$cf_cv_enable_rpath" = yes ; then
7517 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7520 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7521 if test "$cf_cv_shlib_version" = rel; then
7522 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7524 cf_cv_shared_soname='`basename $@`'
7527 if test "$GCC" != yes; then
7528 cf_save_CFLAGS="$CFLAGS"
7529 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7531 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line 7533 "configure"
7534 #include "confdefs.h"
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:7545: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:7551: \"$ac_try\"") >&5
7554 echo "$as_me:7554: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7558 echo "$as_me: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7561 rm -f conftest.$ac_objext conftest.$ac_ext
7563 CFLAGS="$cf_save_CFLAGS"
7564 CC_SHARED_OPTS=$cf_shared_opts
7565 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
7567 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7570 sysv5uw7*|unix_sv*) #(vi
7571 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7572 if test "$GCC" != yes; then
7573 CC_SHARED_OPTS='-KPIC'
7575 MK_SHARED_LIB='${LD} -d y -G -o $@'
7578 CC_SHARED_OPTS='unknown'
7579 MK_SHARED_LIB='echo unknown'
7583 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7584 case "$cf_cv_shlib_version" in #(vi
7586 case "$MK_SHARED_LIB" in #(vi
7588 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7591 { echo "$as_me:7591: WARNING: ignored --with-shlib-version" >&5
7592 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7598 if test -n "$cf_ld_rpath_opt" ; then
7599 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
7602 ###############################################################################
7604 case $cf_cv_system_name in
7605 os2*) PATH_SEPARATOR=';' ;;
7606 *) PATH_SEPARATOR=':' ;;
7609 ### use option --enable-broken-linker to force on use of broken-linker support
7610 echo "$as_me:7610: checking if you want broken-linker support code" >&5
7611 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7613 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7614 if test "${enable_broken_linker+set}" = set; then
7615 enableval="$enable_broken_linker"
7616 with_broken_linker=$enableval
7618 with_broken_linker=${BROKEN_LINKER-no}
7620 echo "$as_me:7620: result: $with_broken_linker" >&5
7621 echo "${ECHO_T}$with_broken_linker" >&6
7624 if test "$with_broken_linker" = yes ; then
7625 cat >>confdefs.h <<\EOF
7626 #define BROKEN_LINKER 1
7630 elif test "$DFT_LWR_MODEL" = shared ; then
7631 case $cf_cv_system_name in #(vi
7633 cat >>confdefs.h <<\EOF
7634 #define BROKEN_LINKER 1
7638 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7640 echo "${as_me-configure}:7640: testing cygwin linker is broken anyway ..." 1>&5
7646 # Check to define _XOPEN_SOURCE "automatically"
7649 cf_POSIX_C_SOURCE=199506L
7652 case $host_os in #(vi
7654 cf_xopen_source="-D_ALL_SOURCE"
7657 cf_xopen_source="-D_APPLE_C_SOURCE"
7660 cf_xopen_source="-D_DARWIN_C_SOURCE"
7662 freebsd*|dragonfly*) #(vi
7663 # 5.x headers associate
7664 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7665 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7666 cf_POSIX_C_SOURCE=200112L
7668 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7671 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7674 cf_xopen_source="-D_HPUX_SOURCE"
7677 cf_xopen_source="-D_SGI_SOURCE"
7679 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7681 echo "$as_me:7681: checking if we must define _GNU_SOURCE" >&5
7682 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7683 if test "${cf_cv_gnu_source+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.$ac_ext <<_ACEOF
7688 #line 7688 "configure"
7689 #include "confdefs.h"
7690 #include <sys/types.h>
7695 #ifndef _XOPEN_SOURCE
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:7703: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:7709: \"$ac_try\"") >&5
7712 echo "$as_me:7712: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line 7721 "configure"
7722 #include "confdefs.h"
7723 #include <sys/types.h>
7728 #ifdef _XOPEN_SOURCE
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:7736: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>&5
7739 echo "$as_me:7739: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -s conftest.$ac_objext'
7742 { (eval echo "$as_me:7742: \"$ac_try\"") >&5
7745 echo "$as_me:7745: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 cf_cv_gnu_source=yes
7753 rm -f conftest.$ac_objext conftest.$ac_ext
7757 rm -f conftest.$ac_objext conftest.$ac_ext
7760 echo "$as_me:7760: result: $cf_cv_gnu_source" >&5
7761 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7762 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7766 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
7769 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7772 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7775 cf_xopen_source="-D_OSF_SOURCE"
7778 cf_xopen_source="-D_QNX_SOURCE"
7781 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7783 solaris2.1[0-9]) #(vi
7784 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7786 solaris2.[1-9]) #(vi
7787 cf_xopen_source="-D__EXTENSIONS__"
7790 echo "$as_me:7790: checking if we should define _XOPEN_SOURCE" >&5
7791 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7792 if test "${cf_cv_xopen_source+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 #line 7797 "configure"
7798 #include "confdefs.h"
7799 #include <sys/types.h>
7804 #ifndef _XOPEN_SOURCE
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:7812: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>&5
7815 echo "$as_me:7815: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -s conftest.$ac_objext'
7818 { (eval echo "$as_me:7818: \"$ac_try\"") >&5
7821 echo "$as_me:7821: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 cf_cv_xopen_source=no
7825 echo "$as_me: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7828 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line 7830 "configure"
7831 #include "confdefs.h"
7832 #include <sys/types.h>
7837 #ifdef _XOPEN_SOURCE
7844 rm -f conftest.$ac_objext
7845 if { (eval echo "$as_me:7845: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>&5
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 cf_cv_xopen_source=no
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7862 rm -f conftest.$ac_objext conftest.$ac_ext
7866 rm -f conftest.$ac_objext conftest.$ac_ext
7869 echo "$as_me:7869: result: $cf_cv_xopen_source" >&5
7870 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7871 if test "$cf_cv_xopen_source" != no ; then
7873 CFLAGS=`echo "$CFLAGS" | \
7874 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7875 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7877 CPPFLAGS=`echo "$CPPFLAGS" | \
7878 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7879 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7881 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7886 cf_new_extra_cppflags=
7888 for cf_add_cflags in $cf_temp_xopen_source
7890 case $cf_fix_cppflags in
7892 case $cf_add_cflags in #(vi
7893 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7894 case $cf_add_cflags in
7896 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7898 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7899 && test -z "${cf_tst_cflags}" \
7900 && cf_fix_cppflags=yes
7902 if test $cf_fix_cppflags = yes ; then
7903 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7905 elif test "${cf_tst_cflags}" = "\"'" ; then
7906 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7912 *$cf_add_cflags) #(vi
7915 case $cf_add_cflags in #(vi
7917 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7919 CPPFLAGS=`echo "$CPPFLAGS" | \
7920 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7921 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7925 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7930 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7935 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7937 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7939 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7940 && test -z "${cf_tst_cflags}" \
7941 && cf_fix_cppflags=no
7946 if test -n "$cf_new_cflags" ; then
7948 CFLAGS="$CFLAGS $cf_new_cflags"
7951 if test -n "$cf_new_cppflags" ; then
7953 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7956 if test -n "$cf_new_extra_cppflags" ; then
7958 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7963 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7965 cf_save_CFLAGS="$CFLAGS"
7966 cf_save_CPPFLAGS="$CPPFLAGS"
7968 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7969 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7970 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7972 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7973 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7974 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7976 echo "$as_me:7976: checking if we should define _POSIX_C_SOURCE" >&5
7977 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7978 if test "${cf_cv_posix_c_source+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 echo "${as_me-configure}:7982: testing if the symbol is already defined go no further ..." 1>&5
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line 7985 "configure"
7986 #include "confdefs.h"
7987 #include <sys/types.h>
7992 #ifndef _POSIX_C_SOURCE
7999 rm -f conftest.$ac_objext
8000 if { (eval echo "$as_me:8000: \"$ac_compile\"") >&5
8001 (eval $ac_compile) 2>&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest.$ac_objext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 cf_cv_posix_c_source=no
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8015 cf_want_posix_source=no
8016 case .$cf_POSIX_C_SOURCE in #(vi
8018 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8021 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8022 cf_want_posix_source=yes
8025 cf_want_posix_source=yes
8028 if test "$cf_want_posix_source" = yes ; then
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line 8030 "configure"
8031 #include "confdefs.h"
8032 #include <sys/types.h>
8037 #ifdef _POSIX_SOURCE
8044 rm -f conftest.$ac_objext
8045 if { (eval echo "$as_me:8045: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8048 echo "$as_me:8048: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -s conftest.$ac_objext'
8051 { (eval echo "$as_me:8051: \"$ac_try\"") >&5
8054 echo "$as_me:8054: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8058 echo "$as_me: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8060 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8062 rm -f conftest.$ac_objext conftest.$ac_ext
8065 echo "${as_me-configure}:8065: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8067 CFLAGS="$cf_trim_CFLAGS"
8068 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8070 echo "${as_me-configure}:8070: testing if the second compile does not leave our definition intact error ..." 1>&5
8072 cat >conftest.$ac_ext <<_ACEOF
8073 #line 8073 "configure"
8074 #include "confdefs.h"
8075 #include <sys/types.h>
8080 #ifndef _POSIX_C_SOURCE
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:8088: \"$ac_compile\"") >&5
8089 (eval $ac_compile) 2>&5
8091 echo "$as_me:8091: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:8094: \"$ac_try\"") >&5
8097 echo "$as_me:8097: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8101 echo "$as_me: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 cf_cv_posix_c_source=no
8105 rm -f conftest.$ac_objext conftest.$ac_ext
8106 CFLAGS="$cf_save_CFLAGS"
8107 CPPFLAGS="$cf_save_CPPFLAGS"
8110 rm -f conftest.$ac_objext conftest.$ac_ext
8113 echo "$as_me:8113: result: $cf_cv_posix_c_source" >&5
8114 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8116 if test "$cf_cv_posix_c_source" != no ; then
8117 CFLAGS="$cf_trim_CFLAGS"
8118 CPPFLAGS="$cf_trim_CPPFLAGS"
8123 cf_new_extra_cppflags=
8125 for cf_add_cflags in $cf_cv_posix_c_source
8127 case $cf_fix_cppflags in
8129 case $cf_add_cflags in #(vi
8130 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8131 case $cf_add_cflags in
8133 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8135 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8136 && test -z "${cf_tst_cflags}" \
8137 && cf_fix_cppflags=yes
8139 if test $cf_fix_cppflags = yes ; then
8140 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8142 elif test "${cf_tst_cflags}" = "\"'" ; then
8143 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8149 *$cf_add_cflags) #(vi
8152 case $cf_add_cflags in #(vi
8154 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8156 CPPFLAGS=`echo "$CPPFLAGS" | \
8157 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8158 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8162 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8167 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8172 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8174 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8176 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8177 && test -z "${cf_tst_cflags}" \
8178 && cf_fix_cppflags=no
8183 if test -n "$cf_new_cflags" ; then
8185 CFLAGS="$CFLAGS $cf_new_cflags"
8188 if test -n "$cf_new_cppflags" ; then
8190 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8193 if test -n "$cf_new_extra_cppflags" ; then
8195 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8203 if test -n "$cf_xopen_source" ; then
8208 cf_new_extra_cppflags=
8210 for cf_add_cflags in $cf_xopen_source
8212 case $cf_fix_cppflags in
8214 case $cf_add_cflags in #(vi
8215 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8216 case $cf_add_cflags in
8218 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8220 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8221 && test -z "${cf_tst_cflags}" \
8222 && cf_fix_cppflags=yes
8224 if test $cf_fix_cppflags = yes ; then
8225 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8227 elif test "${cf_tst_cflags}" = "\"'" ; then
8228 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8234 *$cf_add_cflags) #(vi
8237 case $cf_add_cflags in #(vi
8239 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8241 CPPFLAGS=`echo "$CPPFLAGS" | \
8242 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8243 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8247 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8252 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8257 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8259 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8261 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8262 && test -z "${cf_tst_cflags}" \
8263 && cf_fix_cppflags=no
8268 if test -n "$cf_new_cflags" ; then
8270 CFLAGS="$CFLAGS $cf_new_cflags"
8273 if test -n "$cf_new_cppflags" ; then
8275 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8278 if test -n "$cf_new_extra_cppflags" ; then
8280 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8285 # Check whether --enable-largefile or --disable-largefile was given.
8286 if test "${enable_largefile+set}" = set; then
8287 enableval="$enable_largefile"
8290 if test "$enable_largefile" != no; then
8292 echo "$as_me:8292: checking for special C compiler options needed for large files" >&5
8293 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8294 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 ac_cv_sys_largefile_CC=no
8298 if test "$GCC" != yes; then
8301 # IRIX 6.2 and later do not support large files by default,
8302 # so use the C compiler's -n32 option if that helps.
8303 cat >conftest.$ac_ext <<_ACEOF
8304 #line 8304 "configure"
8305 #include "confdefs.h"
8306 #include <sys/types.h>
8307 /* Check that off_t can represent 2**63 - 1 correctly.
8308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8309 since some C++ compilers masquerading as C compilers
8310 incorrectly reject 9223372036854775807. */
8311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8313 && LARGE_OFF_T % 2147483647 == 1)
8323 rm -f conftest.$ac_objext
8324 if { (eval echo "$as_me:8324: \"$ac_compile\"") >&5
8325 (eval $ac_compile) 2>&5
8327 echo "$as_me:8327: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -s conftest.$ac_objext'
8330 { (eval echo "$as_me:8330: \"$ac_try\"") >&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8337 echo "$as_me: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 rm -f conftest.$ac_objext
8342 rm -f conftest.$ac_objext
8343 if { (eval echo "$as_me:8343: \"$ac_compile\"") >&5
8344 (eval $ac_compile) 2>&5
8346 echo "$as_me:8346: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:8349: \"$ac_try\"") >&5
8352 echo "$as_me:8352: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_sys_largefile_CC=' -n32'; break
8356 echo "$as_me: failed program was:" >&5
8357 cat conftest.$ac_ext >&5
8359 rm -f conftest.$ac_objext
8363 rm -f conftest.$ac_ext
8366 echo "$as_me:8366: result: $ac_cv_sys_largefile_CC" >&5
8367 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8368 if test "$ac_cv_sys_largefile_CC" != no; then
8369 CC=$CC$ac_cv_sys_largefile_CC
8372 echo "$as_me:8372: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8373 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8374 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 ac_cv_sys_file_offset_bits=no
8379 cat >conftest.$ac_ext <<_ACEOF
8380 #line 8380 "configure"
8381 #include "confdefs.h"
8382 #include <sys/types.h>
8383 /* Check that off_t can represent 2**63 - 1 correctly.
8384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8385 since some C++ compilers masquerading as C compilers
8386 incorrectly reject 9223372036854775807. */
8387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8389 && LARGE_OFF_T % 2147483647 == 1)
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:8400: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>&5
8403 echo "$as_me:8403: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:8406: \"$ac_try\"") >&5
8409 echo "$as_me:8409: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8413 echo "$as_me: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8416 rm -f conftest.$ac_objext conftest.$ac_ext
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line 8418 "configure"
8419 #include "confdefs.h"
8420 #define _FILE_OFFSET_BITS 64
8421 #include <sys/types.h>
8422 /* Check that off_t can represent 2**63 - 1 correctly.
8423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8424 since some C++ compilers masquerading as C compilers
8425 incorrectly reject 9223372036854775807. */
8426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8428 && LARGE_OFF_T % 2147483647 == 1)
8438 rm -f conftest.$ac_objext
8439 if { (eval echo "$as_me:8439: \"$ac_compile\"") >&5
8440 (eval $ac_compile) 2>&5
8442 echo "$as_me:8442: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -s conftest.$ac_objext'
8445 { (eval echo "$as_me:8445: \"$ac_try\"") >&5
8448 echo "$as_me:8448: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_sys_file_offset_bits=64; break
8452 echo "$as_me: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 rm -f conftest.$ac_objext conftest.$ac_ext
8459 echo "$as_me:8459: result: $ac_cv_sys_file_offset_bits" >&5
8460 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8461 if test "$ac_cv_sys_file_offset_bits" != no; then
8463 cat >>confdefs.h <<EOF
8464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8469 echo "$as_me:8469: checking for _LARGE_FILES value needed for large files" >&5
8470 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8471 if test "${ac_cv_sys_large_files+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 ac_cv_sys_large_files=no
8476 cat >conftest.$ac_ext <<_ACEOF
8477 #line 8477 "configure"
8478 #include "confdefs.h"
8479 #include <sys/types.h>
8480 /* Check that off_t can represent 2**63 - 1 correctly.
8481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8482 since some C++ compilers masquerading as C compilers
8483 incorrectly reject 9223372036854775807. */
8484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8486 && LARGE_OFF_T % 2147483647 == 1)
8496 rm -f conftest.$ac_objext
8497 if { (eval echo "$as_me:8497: \"$ac_compile\"") >&5
8498 (eval $ac_compile) 2>&5
8500 echo "$as_me:8500: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:8503: \"$ac_try\"") >&5
8506 echo "$as_me:8506: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8510 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 rm -f conftest.$ac_objext conftest.$ac_ext
8514 cat >conftest.$ac_ext <<_ACEOF
8515 #line 8515 "configure"
8516 #include "confdefs.h"
8517 #define _LARGE_FILES 1
8518 #include <sys/types.h>
8519 /* Check that off_t can represent 2**63 - 1 correctly.
8520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8521 since some C++ compilers masquerading as C compilers
8522 incorrectly reject 9223372036854775807. */
8523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8525 && LARGE_OFF_T % 2147483647 == 1)
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:8536: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>&5
8539 echo "$as_me:8539: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:8542: \"$ac_try\"") >&5
8545 echo "$as_me:8545: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_sys_large_files=1; break
8549 echo "$as_me: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8552 rm -f conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:8556: result: $ac_cv_sys_large_files" >&5
8557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8558 if test "$ac_cv_sys_large_files" != no; then
8560 cat >>confdefs.h <<EOF
8561 #define _LARGE_FILES $ac_cv_sys_large_files
8568 if test "$enable_largefile" != no ; then
8569 echo "$as_me:8569: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8570 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8571 if test "${ac_cv_sys_largefile_source+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 ac_cv_sys_largefile_source=no
8576 cat >conftest.$ac_ext <<_ACEOF
8577 #line 8577 "configure"
8578 #include "confdefs.h"
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:8589: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>&5
8592 echo "$as_me:8592: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:8595: \"$ac_try\"") >&5
8598 echo "$as_me:8598: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8602 echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8605 rm -f conftest.$ac_objext conftest.$ac_ext
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line 8607 "configure"
8608 #include "confdefs.h"
8609 #define _LARGEFILE_SOURCE 1
8619 rm -f conftest.$ac_objext
8620 if { (eval echo "$as_me:8620: \"$ac_compile\"") >&5
8621 (eval $ac_compile) 2>&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (eval echo "$as_me:8626: \"$ac_try\"") >&5
8629 echo "$as_me:8629: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_sys_largefile_source=1; break
8633 echo "$as_me: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:8640: result: $ac_cv_sys_largefile_source" >&5
8641 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8642 if test "$ac_cv_sys_largefile_source" != no; then
8644 cat >>confdefs.h <<EOF
8645 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8651 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8652 # in glibc 2.1.3, but that breaks too many other things.
8653 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8654 echo "$as_me:8654: checking for fseeko" >&5
8655 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8656 if test "${ac_cv_func_fseeko+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line 8660 "configure"
8661 #include "confdefs.h"
8666 return fseeko && fseeko (stdin, 0, 0);
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:8672: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>&5
8675 echo "$as_me:8675: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:8678: \"$ac_try\"") >&5
8681 echo "$as_me:8681: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_func_fseeko=yes
8685 echo "$as_me: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8687 ac_cv_func_fseeko=no
8689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691 echo "$as_me:8691: result: $ac_cv_func_fseeko" >&5
8692 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8693 if test $ac_cv_func_fseeko = yes; then
8695 cat >>confdefs.h <<\EOF
8696 #define HAVE_FSEEKO 1
8701 # Normally we would collect these definitions in the config.h,
8702 # but (like _XOPEN_SOURCE), some environments rely on having these
8703 # defined before any of the system headers are included. Another
8704 # case comes up with C++, e.g., on AIX the compiler compiles the
8705 # header files by themselves before looking at the body files it is
8706 # told to compile. For ncurses, those header files do not include
8708 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8709 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8710 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8712 echo "$as_me:8712: checking whether to use struct dirent64" >&5
8713 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8714 if test "${cf_cv_struct_dirent64+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8719 #line 8719 "configure"
8720 #include "confdefs.h"
8722 #include <sys/types.h>
8729 /* if transitional largefile support is setup, this is true */
8730 extern struct dirent64 * readdir(DIR *);
8731 struct dirent64 *x = readdir((DIR *)0);
8732 struct dirent *y = readdir((DIR *)0);
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>&5
8743 echo "$as_me:8743: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:8746: \"$ac_try\"") >&5
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 cf_cv_struct_dirent64=yes
8753 echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 cf_cv_struct_dirent64=no
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8760 echo "$as_me:8760: result: $cf_cv_struct_dirent64" >&5
8761 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8762 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8763 #define HAVE_STRUCT_DIRENT64 1
8768 ### Enable compiling-in rcs id's
8769 echo "$as_me:8769: checking if RCS identifiers should be compiled-in" >&5
8770 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8772 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8773 if test "${with_rcs_ids+set}" = set; then
8774 withval="$with_rcs_ids"
8775 with_rcs_ids=$withval
8779 echo "$as_me:8779: result: $with_rcs_ids" >&5
8780 echo "${ECHO_T}$with_rcs_ids" >&6
8781 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8782 #define USE_RCS_IDS 1
8785 ###############################################################################
8787 ### Note that some functions (such as const) are normally disabled anyway.
8788 echo "$as_me:8788: checking if you want to build with function extensions" >&5
8789 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
8791 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
8792 if test "${enable_ext_funcs+set}" = set; then
8793 enableval="$enable_ext_funcs"
8794 with_ext_funcs=$enableval
8798 echo "$as_me:8798: result: $with_ext_funcs" >&5
8799 echo "${ECHO_T}$with_ext_funcs" >&6
8800 if test "$with_ext_funcs" = yes ; then
8802 cat >>confdefs.h <<\EOF
8803 #define HAVE_USE_DEFAULT_COLORS 1
8806 cat >>confdefs.h <<\EOF
8807 #define NCURSES_EXT_FUNCS 1
8814 ### use option --enable-const to turn on use of const beyond that in XSI.
8815 echo "$as_me:8815: checking for extended use of const keyword" >&5
8816 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
8818 # Check whether --enable-const or --disable-const was given.
8819 if test "${enable_const+set}" = set; then
8820 enableval="$enable_const"
8821 with_ext_const=$enableval
8825 echo "$as_me:8825: result: $with_ext_const" >&5
8826 echo "${ECHO_T}$with_ext_const" >&6
8827 NCURSES_CONST='/*nothing*/'
8828 if test "$with_ext_const" = yes ; then
8832 ###############################################################################
8833 # These options are relatively safe to experiment with.
8835 echo "$as_me:8835: checking if you want all development code" >&5
8836 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
8838 # Check whether --with-develop or --without-develop was given.
8839 if test "${with_develop+set}" = set; then
8840 withval="$with_develop"
8841 with_develop=$withval
8845 echo "$as_me:8845: result: $with_develop" >&5
8846 echo "${ECHO_T}$with_develop" >&6
8848 ###############################################################################
8849 # These are just experimental, probably should not be in a package:
8851 # This is still experimental (20080329), but should ultimately be moved to
8852 # the script-block --with-normal, etc.
8854 echo "$as_me:8854: checking if you want to link with the pthread library" >&5
8855 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
8857 # Check whether --with-pthread or --without-pthread was given.
8858 if test "${with_pthread+set}" = set; then
8859 withval="$with_pthread"
8860 with_pthread=$withval
8864 echo "$as_me:8864: result: $with_pthread" >&5
8865 echo "${ECHO_T}$with_pthread" >&6
8867 if test "$with_pthread" != no ; then
8868 echo "$as_me:8868: checking for pthread.h" >&5
8869 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8870 if test "${ac_cv_header_pthread_h+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line 8874 "configure"
8875 #include "confdefs.h"
8876 #include <pthread.h>
8878 if { (eval echo "$as_me:8878: \"$ac_cpp conftest.$ac_ext\"") >&5
8879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8881 egrep -v '^ *\+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 echo "$as_me:8884: \$? = $ac_status" >&5
8885 (exit $ac_status); } >/dev/null; then
8886 if test -s conftest.err; then
8887 ac_cpp_err=$ac_c_preproc_warn_flag
8894 if test -z "$ac_cpp_err"; then
8895 ac_cv_header_pthread_h=yes
8897 echo "$as_me: failed program was:" >&5
8898 cat conftest.$ac_ext >&5
8899 ac_cv_header_pthread_h=no
8901 rm -f conftest.err conftest.$ac_ext
8903 echo "$as_me:8903: result: $ac_cv_header_pthread_h" >&5
8904 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8905 if test $ac_cv_header_pthread_h = yes; then
8907 cat >>confdefs.h <<\EOF
8908 #define HAVE_PTHREADS_H 1
8911 echo "$as_me:8911: checking if we can link with the pthread library" >&5
8912 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
8913 cf_save_LIBS="$LIBS"
8914 LIBS="-lpthread $LIBS"
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line 8916 "configure"
8917 #include "confdefs.h"
8919 #include <pthread.h>
8925 int rc = pthread_create(0,0,0,0);
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8935 echo "$as_me:8935: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:8938: \"$ac_try\"") >&5
8941 echo "$as_me:8941: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8945 echo "$as_me: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8950 LIBS="$cf_save_LIBS"
8951 echo "$as_me:8951: result: $with_pthread" >&5
8952 echo "${ECHO_T}$with_pthread" >&6
8954 if test "$with_pthread" = yes ; then
8955 LIBS="-lpthread $LIBS"
8956 cat >>confdefs.h <<\EOF
8957 #define HAVE_LIBPTHREADS 1
8961 { { echo "$as_me:8961: error: Cannot link with pthread library" >&5
8962 echo "$as_me: error: Cannot link with pthread library" >&2;}
8963 { (exit 1); exit 1; }; }
8970 echo "$as_me:8970: checking if you want to use weak-symbols for pthreads" >&5
8971 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
8973 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
8974 if test "${enable_weak_symbols+set}" = set; then
8975 enableval="$enable_weak_symbols"
8976 use_weak_symbols=$withval
8980 echo "$as_me:8980: result: $use_weak_symbols" >&5
8981 echo "${ECHO_T}$use_weak_symbols" >&6
8982 if test "$use_weak_symbols" = yes ; then
8984 echo "$as_me:8984: checking if $CC supports weak symbols" >&5
8985 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
8986 if test "${cf_cv_weak_symbols+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8991 #line 8991 "configure"
8992 #include "confdefs.h"
8999 #if defined(__GNUC__)
9000 # if defined __USE_ISOC99
9001 # define _cat_pragma(exp) _Pragma(#exp)
9002 # define _weak_pragma(exp) _cat_pragma(weak name)
9004 # define _weak_pragma(exp)
9006 # define _declare(name) __extension__ extern __typeof__(name) name
9007 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:9017: \"$ac_compile\"") >&5
9018 (eval $ac_compile) 2>&5
9020 echo "$as_me:9020: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -s conftest.$ac_objext'
9023 { (eval echo "$as_me:9023: \"$ac_try\"") >&5
9026 echo "$as_me:9026: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 cf_cv_weak_symbols=yes
9030 echo "$as_me: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 cf_cv_weak_symbols=no
9034 rm -f conftest.$ac_objext conftest.$ac_ext
9037 echo "$as_me:9037: result: $cf_cv_weak_symbols" >&5
9038 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
9041 cf_cv_weak_symbols=no
9044 if test $cf_cv_weak_symbols = yes ; then
9045 cat >>confdefs.h <<\EOF
9046 #define USE_WEAK_SYMBOLS 1
9052 if test "$with_pthread" = "yes" ; then
9053 cat >>confdefs.h <<\EOF
9054 #define USE_PTHREADS 1
9057 enable_reentrant=yes
9058 if test $cf_cv_weak_symbols = yes ; then
9063 # Reentrant code has to be opaque; there's little advantage to making ncurses
9064 # opaque outside of that, so there is no --enable-opaque option. We can use
9065 # this option without --with-pthreads, but this will be always set for
9067 echo "$as_me:9067: checking if you want experimental reentrant code" >&5
9068 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9070 # Check whether --enable-reentrant or --disable-reentrant was given.
9071 if test "${enable_reentrant+set}" = set; then
9072 enableval="$enable_reentrant"
9073 with_reentrant=$enableval
9077 echo "$as_me:9077: result: $with_reentrant" >&5
9078 echo "${ECHO_T}$with_reentrant" >&6
9079 if test "$with_reentrant" = yes ; then
9080 cf_cv_enable_reentrant=1
9081 if test $cf_cv_weak_symbols = yes ; then
9083 # remove pthread library from $LIBS
9084 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
9087 LIB_SUFFIX="t${LIB_SUFFIX}"
9089 cat >>confdefs.h <<\EOF
9090 #define USE_REENTRANT 1
9094 cf_cv_enable_reentrant=0
9097 ### Allow using a different wrap-prefix
9098 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
9099 echo "$as_me:9099: checking for prefix used to wrap public variables" >&5
9100 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
9102 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
9103 if test "${with_wrap_prefix+set}" = set; then
9104 withval="$with_wrap_prefix"
9105 NCURSES_WRAP_PREFIX=$withval
9107 NCURSES_WRAP_PREFIX=_nc_
9109 echo "$as_me:9109: result: $NCURSES_WRAP_PREFIX" >&5
9110 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
9112 NCURSES_WRAP_PREFIX=_nc_
9115 cat >>confdefs.h <<EOF
9116 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
9119 ###############################################################################
9121 ### use option --disable-echo to suppress full display compiling commands
9122 echo "$as_me:9122: checking if you want to display full commands during build" >&5
9123 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
9125 # Check whether --enable-echo or --disable-echo was given.
9126 if test "${enable_echo+set}" = set; then
9127 enableval="$enable_echo"
9128 with_echo=$enableval
9132 if test "$with_echo" = yes; then
9135 ECHO_LINK='@ echo linking $@ ... ;'
9137 echo "$as_me:9137: result: $with_echo" >&5
9138 echo "${ECHO_T}$with_echo" >&6
9140 ### use option --enable-warnings to turn on all gcc warnings
9141 echo "$as_me:9141: checking if you want to see compiler warnings" >&5
9142 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
9144 # Check whether --enable-warnings or --disable-warnings was given.
9145 if test "${enable_warnings+set}" = set; then
9146 enableval="$enable_warnings"
9147 with_warnings=$enableval
9149 echo "$as_me:9149: result: $with_warnings" >&5
9150 echo "${ECHO_T}$with_warnings" >&6
9152 if test "x$with_warnings" = "xyes"; then
9153 ADAFLAGS="$ADAFLAGS -gnatg"
9157 if test "$GCC" = yes ; then
9160 echo "$as_me:9160: checking if this is really Intel C compiler" >&5
9161 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
9162 cf_save_CFLAGS="$CFLAGS"
9163 CFLAGS="$CFLAGS -no-gcc"
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line 9165 "configure"
9166 #include "confdefs.h"
9172 #ifdef __INTEL_COMPILER
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:9182: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9185 echo "$as_me:9185: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:9188: \"$ac_try\"") >&5
9191 echo "$as_me:9191: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9194 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9197 echo "$as_me: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 rm -f conftest.$ac_objext conftest.$ac_ext
9201 CFLAGS="$cf_save_CFLAGS"
9202 echo "$as_me:9202: result: $INTEL_COMPILER" >&5
9203 echo "${ECHO_T}$INTEL_COMPILER" >&6
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9209 "${as_me-configure}"
9210 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9213 if test "$INTEL_COMPILER" = yes
9215 # The "-wdXXX" options suppress warnings:
9216 # remark #1419: external declaration in primary source file
9217 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9218 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9219 # remark #193: zero used for undefined preprocessing identifier
9220 # remark #593: variable "curs_sb_left_arrow" was set but never used
9221 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9222 # remark #869: parameter "tw" was never referenced
9223 # remark #981: operands are evaluated in unspecified order
9224 # warning #279: controlling expression is constant
9226 { echo "$as_me:9226: checking for $CC warning options..." >&5
9227 echo "$as_me: checking for $CC warning options..." >&6;}
9228 cf_save_CFLAGS="$CFLAGS"
9229 EXTRA_CFLAGS="-Wall"
9241 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9242 if { (eval echo "$as_me:9242: \"$ac_compile\"") >&5
9243 (eval $ac_compile) 2>&5
9245 echo "$as_me:9245: \$? = $ac_status" >&5
9246 (exit $ac_status); }; then
9247 test -n "$verbose" && echo "$as_me:9247: result: ... -$cf_opt" >&5
9248 echo "${ECHO_T}... -$cf_opt" >&6
9249 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9252 CFLAGS="$cf_save_CFLAGS"
9254 elif test "$GCC" = yes
9256 { echo "$as_me:9256: checking for $CC warning options..." >&5
9257 echo "$as_me: checking for $CC warning options..." >&6;}
9258 cf_save_CFLAGS="$CFLAGS"
9261 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
9262 for cf_opt in W Wall \
9263 Wbad-function-cast \
9267 Wmissing-declarations \
9268 Wmissing-prototypes \
9272 Wstrict-prototypes \
9273 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
9275 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9276 if { (eval echo "$as_me:9276: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>&5
9279 echo "$as_me:9279: \$? = $ac_status" >&5
9280 (exit $ac_status); }; then
9281 test -n "$verbose" && echo "$as_me:9281: result: ... -$cf_opt" >&5
9282 echo "${ECHO_T}... -$cf_opt" >&6
9283 case $cf_opt in #(vi
9285 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
9288 case $GCC_VERSION in
9290 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
9292 echo "${as_me-configure}:9292: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
9298 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9301 CFLAGS="$cf_save_CFLAGS"
9307 if test "$GCC" = yes
9309 cat > conftest.i <<EOF
9311 #define GCC_PRINTF 0
9316 #ifndef GCC_NORETURN
9317 #define GCC_NORETURN /* nothing */
9320 #define GCC_UNUSED /* nothing */
9323 if test "$GCC" = yes
9325 { echo "$as_me:9325: checking for $CC __attribute__ directives..." >&5
9326 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9328 "${as_me-configure}"
9329 #include "confdefs.h"
9330 #include "conftest.h"
9331 #include "conftest.i"
9333 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9335 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
9338 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9340 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
9342 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
9343 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
9344 extern void foo(void) GCC_NORETURN;
9345 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
9347 cf_printf_attribute=no
9348 cf_scanf_attribute=no
9349 for cf_attribute in scanf printf unused noreturn
9352 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9354 cf_directive="__attribute__(($cf_attribute))"
9355 echo "checking for $CC $cf_directive" 1>&5
9357 case $cf_attribute in #(vi
9359 cf_printf_attribute=yes
9360 cat >conftest.h <<EOF
9361 #define GCC_$cf_ATTRIBUTE 1
9365 cf_scanf_attribute=yes
9366 cat >conftest.h <<EOF
9367 #define GCC_$cf_ATTRIBUTE 1
9371 cat >conftest.h <<EOF
9372 #define GCC_$cf_ATTRIBUTE $cf_directive
9377 if { (eval echo "$as_me:9377: \"$ac_compile\"") >&5
9378 (eval $ac_compile) 2>&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 (exit $ac_status); }; then
9382 test -n "$verbose" && echo "$as_me:9382: result: ... $cf_attribute" >&5
9383 echo "${ECHO_T}... $cf_attribute" >&6
9384 cat conftest.h >>confdefs.h
9385 case $cf_attribute in #(vi
9387 if test "$cf_printf_attribute" = no ; then
9388 cat >>confdefs.h <<EOF
9389 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
9392 cat >>confdefs.h <<EOF
9393 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9398 if test "$cf_scanf_attribute" = no ; then
9399 cat >>confdefs.h <<EOF
9400 #define GCC_SCANFLIKE(fmt,var) /* nothing */
9403 cat >>confdefs.h <<EOF
9404 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9412 fgrep define conftest.i >>confdefs.h
9417 ### use option --enable-assertions to turn on generation of assertion code
9418 echo "$as_me:9418: checking if you want to enable runtime assertions" >&5
9419 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
9421 # Check whether --enable-assertions or --disable-assertions was given.
9422 if test "${enable_assertions+set}" = set; then
9423 enableval="$enable_assertions"
9424 with_assertions=$enableval
9428 echo "$as_me:9428: result: $with_assertions" >&5
9429 echo "${ECHO_T}$with_assertions" >&6
9432 if test "$with_assertions" = no
9434 cat >>confdefs.h <<\EOF
9438 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9440 ADAFLAGS="$ADAFLAGS -gnata"
9444 ### use option --disable-leaks to suppress "permanent" leaks, for testing
9445 cat >>confdefs.h <<\EOF
9446 #define HAVE_NC_ALLOC_H 1
9449 ### use option --enable-expanded to generate certain macros as functions
9451 # Check whether --enable-expanded or --disable-expanded was given.
9452 if test "${enable_expanded+set}" = set; then
9453 enableval="$enable_expanded"
9454 test "$enableval" = yes && cat >>confdefs.h <<\EOF
9455 #define NCURSES_EXPANDED 1
9460 ### use option --disable-macros to suppress macros in favor of functions
9462 # Check whether --enable-macros or --disable-macros was given.
9463 if test "${enable_macros+set}" = set; then
9464 enableval="$enable_macros"
9465 test "$enableval" = no && cat >>confdefs.h <<\EOF
9466 #define NCURSES_NOMACROS 1
9471 # Normally we only add trace() to the debug-library. Allow this to be
9472 # extended to all models of the ncurses library:
9474 case "$CFLAGS $CPPFLAGS" in
9480 echo "$as_me:9480: checking whether to add trace feature to all models" >&5
9481 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
9483 # Check whether --with-trace or --without-trace was given.
9484 if test "${with_trace+set}" = set; then
9485 withval="$with_trace"
9486 cf_with_trace=$withval
9488 cf_with_trace=$cf_all_traces
9490 echo "$as_me:9490: result: $cf_with_trace" >&5
9491 echo "${ECHO_T}$cf_with_trace" >&6
9493 if test "$cf_with_trace" = yes ; then
9499 cf_new_extra_cppflags=
9501 for cf_add_cflags in -DTRACE
9503 case $cf_fix_cppflags in
9505 case $cf_add_cflags in #(vi
9506 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9507 case $cf_add_cflags in
9509 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9511 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9512 && test -z "${cf_tst_cflags}" \
9513 && cf_fix_cppflags=yes
9515 if test $cf_fix_cppflags = yes ; then
9516 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9518 elif test "${cf_tst_cflags}" = "\"'" ; then
9519 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9525 *$cf_add_cflags) #(vi
9528 case $cf_add_cflags in #(vi
9530 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9532 CPPFLAGS=`echo "$CPPFLAGS" | \
9533 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9534 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9538 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9543 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9548 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9550 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9552 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9553 && test -z "${cf_tst_cflags}" \
9554 && cf_fix_cppflags=no
9559 if test -n "$cf_new_cflags" ; then
9561 CFLAGS="$CFLAGS $cf_new_cflags"
9564 if test -n "$cf_new_cppflags" ; then
9566 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9569 if test -n "$cf_new_extra_cppflags" ; then
9571 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9578 ### Checks for libraries.
9579 case $cf_cv_system_name in #(vi
9583 echo "$as_me:9583: checking for gettimeofday" >&5
9584 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
9585 if test "${ac_cv_func_gettimeofday+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line 9589 "configure"
9590 #include "confdefs.h"
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char gettimeofday (); below. */
9594 /* Override any gcc2 internal prototype to avoid an error. */
9598 /* We use char because int might match the return type of a gcc2
9599 builtin and then its argument prototype would still apply. */
9600 char gettimeofday ();
9606 /* The GNU C library defines this for functions which it implements
9607 to always fail with ENOSYS. Some functions are actually named
9608 something starting with __ and the normal name is an alias. */
9609 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:9620: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>&5
9623 echo "$as_me:9623: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:9626: \"$ac_try\"") >&5
9629 echo "$as_me:9629: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_func_gettimeofday=yes
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 ac_cv_func_gettimeofday=no
9637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9639 echo "$as_me:9639: result: $ac_cv_func_gettimeofday" >&5
9640 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
9641 if test $ac_cv_func_gettimeofday = yes; then
9642 cat >>confdefs.h <<\EOF
9643 #define HAVE_GETTIMEOFDAY 1
9648 echo "$as_me:9648: checking for gettimeofday in -lbsd" >&5
9649 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
9650 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_check_lib_save_LIBS=$LIBS
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line 9656 "configure"
9657 #include "confdefs.h"
9659 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char gettimeofday ();
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:9675: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9678 echo "$as_me:9678: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:9681: \"$ac_try\"") >&5
9684 echo "$as_me:9684: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_lib_bsd_gettimeofday=yes
9688 echo "$as_me: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 ac_cv_lib_bsd_gettimeofday=no
9692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9695 echo "$as_me:9695: result: $ac_cv_lib_bsd_gettimeofday" >&5
9696 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
9697 if test $ac_cv_lib_bsd_gettimeofday = yes; then
9698 cat >>confdefs.h <<\EOF
9699 #define HAVE_GETTIMEOFDAY 1
9709 ### Checks for header files.
9710 echo "$as_me:9710: checking for ANSI C header files" >&5
9711 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9712 if test "${ac_cv_header_stdc+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line 9716 "configure"
9717 #include "confdefs.h"
9724 if { (eval echo "$as_me:9724: \"$ac_cpp conftest.$ac_ext\"") >&5
9725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9727 egrep -v '^ *\+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:9730: \$? = $ac_status" >&5
9731 (exit $ac_status); } >/dev/null; then
9732 if test -s conftest.err; then
9733 ac_cpp_err=$ac_c_preproc_warn_flag
9740 if test -z "$ac_cpp_err"; then
9741 ac_cv_header_stdc=yes
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 ac_cv_header_stdc=no
9747 rm -f conftest.err conftest.$ac_ext
9749 if test $ac_cv_header_stdc = yes; then
9750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9751 cat >conftest.$ac_ext <<_ACEOF
9752 #line 9752 "configure"
9753 #include "confdefs.h"
9757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9758 egrep "memchr" >/dev/null 2>&1; then
9761 ac_cv_header_stdc=no
9767 if test $ac_cv_header_stdc = yes; then
9768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9769 cat >conftest.$ac_ext <<_ACEOF
9770 #line 9770 "configure"
9771 #include "confdefs.h"
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776 egrep "free" >/dev/null 2>&1; then
9779 ac_cv_header_stdc=no
9785 if test $ac_cv_header_stdc = yes; then
9786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9787 if test "$cross_compiling" = yes; then
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line 9791 "configure"
9792 #include "confdefs.h"
9794 #if ((' ' & 0x0FF) == 0x020)
9795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9798 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9799 || ('j' <= (c) && (c) <= 'r') \
9800 || ('s' <= (c) && (c) <= 'z'))
9801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9809 for (i = 0; i < 256; i++)
9810 if (XOR (islower (i), ISLOWER (i))
9811 || toupper (i) != TOUPPER (i))
9813 $ac_main_return (0);
9816 rm -f conftest$ac_exeext
9817 if { (eval echo "$as_me:9817: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9820 echo "$as_me:9820: \$? = $ac_status" >&5
9821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9822 { (eval echo "$as_me:9822: \"$ac_try\"") >&5
9825 echo "$as_me:9825: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9829 echo "$as_me: program exited with status $ac_status" >&5
9830 echo "$as_me: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 ac_cv_header_stdc=no
9834 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9838 echo "$as_me:9838: result: $ac_cv_header_stdc" >&5
9839 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9840 if test $ac_cv_header_stdc = yes; then
9842 cat >>confdefs.h <<\EOF
9843 #define STDC_HEADERS 1
9849 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9850 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9851 echo "$as_me:9851: checking for $ac_hdr that defines DIR" >&5
9852 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 cat >conftest.$ac_ext <<_ACEOF
9857 #line 9857 "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:9872: \"$ac_compile\"") >&5
9873 (eval $ac_compile) 2>&5
9875 echo "$as_me:9875: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:9878: \"$ac_try\"") >&5
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 eval "$as_ac_Header=yes"
9885 echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 eval "$as_ac_Header=no"
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:9891: result: `eval echo '${'$as_ac_Header'}'`" >&5
9892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9894 cat >>confdefs.h <<EOF
9895 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9898 ac_header_dirent=$ac_hdr; break
9902 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9903 if test $ac_header_dirent = dirent.h; then
9904 echo "$as_me:9904: checking for opendir in -ldir" >&5
9905 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
9906 if test "${ac_cv_lib_dir_opendir+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 ac_check_lib_save_LIBS=$LIBS
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line 9912 "configure"
9913 #include "confdefs.h"
9915 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:9931: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:9937: \"$ac_try\"") >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 ac_cv_lib_dir_opendir=yes
9944 echo "$as_me: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 ac_cv_lib_dir_opendir=no
9948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9949 LIBS=$ac_check_lib_save_LIBS
9951 echo "$as_me:9951: result: $ac_cv_lib_dir_opendir" >&5
9952 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
9953 if test $ac_cv_lib_dir_opendir = yes; then
9958 echo "$as_me:9958: checking for opendir in -lx" >&5
9959 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
9960 if test "${ac_cv_lib_x_opendir+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_check_lib_save_LIBS=$LIBS
9965 cat >conftest.$ac_ext <<_ACEOF
9966 #line 9966 "configure"
9967 #include "confdefs.h"
9969 /* Override any gcc2 internal prototype to avoid an error. */
9973 /* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:9985: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9988 echo "$as_me:9988: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:9991: \"$ac_try\"") >&5
9994 echo "$as_me:9994: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_lib_x_opendir=yes
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ac_cv_lib_x_opendir=no
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 echo "$as_me:10005: result: $ac_cv_lib_x_opendir" >&5
10006 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
10007 if test $ac_cv_lib_x_opendir = yes; then
10013 echo "$as_me:10013: checking whether time.h and sys/time.h may both be included" >&5
10014 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10015 if test "${ac_cv_header_time+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10019 #line 10019 "configure"
10020 #include "confdefs.h"
10021 #include <sys/types.h>
10022 #include <sys/time.h>
10028 if ((struct tm *) 0)
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:10035: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>&5
10038 echo "$as_me:10038: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -s conftest.$ac_objext'
10041 { (eval echo "$as_me:10041: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:10044: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_header_time=yes
10048 echo "$as_me: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 ac_cv_header_time=no
10052 rm -f conftest.$ac_objext conftest.$ac_ext
10054 echo "$as_me:10054: result: $ac_cv_header_time" >&5
10055 echo "${ECHO_T}$ac_cv_header_time" >&6
10056 if test $ac_cv_header_time = yes; then
10058 cat >>confdefs.h <<\EOF
10059 #define TIME_WITH_SYS_TIME 1
10064 ### checks for compiler characteristics
10066 ac_cpp='$CPP $CPPFLAGS'
10067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10070 ac_main_return=return
10072 echo "$as_me:10072: checking for $CC option to accept ANSI C" >&5
10073 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10074 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 ac_cv_prog_cc_stdc=no
10079 cat >conftest.$ac_ext <<_ACEOF
10080 #line 10080 "configure"
10081 #include "confdefs.h"
10082 #include <stdarg.h>
10084 #include <sys/types.h>
10085 #include <sys/stat.h>
10086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10087 struct buf { int x; };
10088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10089 static char *e (p, i)
10095 static char *f (char * (*g) (char **, int), char **p, ...)
10100 s = g (p, va_arg (v,int));
10104 int test (int i, double x);
10105 struct s1 {int (*f) (int a);};
10106 struct s2 {int (*f) (double a);};
10107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10118 # Don't try gcc -ansi; that turns off useful extensions and
10119 # breaks some systems' header files.
10120 # AIX -qlanglvl=ansi
10121 # Ultrix and OSF/1 -std1
10122 # HP-UX 10.20 and later -Ae
10123 # HP-UX older versions -Aa -D_HPUX_SOURCE
10124 # SVR4 -Xc -D__EXTENSIONS__
10125 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10127 CC="$ac_save_CC $ac_arg"
10128 rm -f conftest.$ac_objext
10129 if { (eval echo "$as_me:10129: \"$ac_compile\"") >&5
10130 (eval $ac_compile) 2>&5
10132 echo "$as_me:10132: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -s conftest.$ac_objext'
10135 { (eval echo "$as_me:10135: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10138 echo "$as_me:10138: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_prog_cc_stdc=$ac_arg
10143 echo "$as_me: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10146 rm -f conftest.$ac_objext
10148 rm -f conftest.$ac_ext conftest.$ac_objext
10153 case "x$ac_cv_prog_cc_stdc" in
10155 echo "$as_me:10155: result: none needed" >&5
10156 echo "${ECHO_T}none needed" >&6 ;;
10158 echo "$as_me:10158: result: $ac_cv_prog_cc_stdc" >&5
10159 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10160 CC="$CC $ac_cv_prog_cc_stdc" ;;
10163 echo "$as_me:10163: checking for an ANSI C-conforming const" >&5
10164 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10165 if test "${ac_cv_c_const+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10169 #line 10169 "configure"
10170 #include "confdefs.h"
10175 /* FIXME: Include the comments suggested by Paul. */
10176 #ifndef __cplusplus
10177 /* Ultrix mips cc rejects this. */
10178 typedef int charset[2];
10180 /* SunOS 4.1.1 cc rejects this. */
10181 char const *const *ccp;
10183 /* NEC SVR4.0.2 mips cc rejects this. */
10184 struct point {int x, y;};
10185 static struct point const zero = {0,0};
10186 /* AIX XL C 1.02.0.0 rejects this.
10187 It does not let you subtract one const X* pointer from another in
10188 an arm of an if-expression whose if-part is not a constant
10190 const char *g = "string";
10191 ccp = &g + (g ? g-g : 0);
10192 /* HPUX 7.0 cc rejects these. */
10195 ccp = (char const *const *) p;
10196 { /* SCO 3.2v4 cc rejects this. */
10198 char const *s = 0 ? (char *) 0 : (char const *) 0;
10202 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10203 int x[] = {25, 17};
10204 const int *foo = &x[0];
10207 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10208 typedef const int *iptr;
10212 { /* AIX XL C 1.02.0.0 rejects this saying
10213 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10214 struct s { int j; const int *ap[3]; };
10215 struct s *b; b->j = 5;
10217 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10218 const int foo = 10;
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:10227: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>&5
10230 echo "$as_me:10230: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -s conftest.$ac_objext'
10233 { (eval echo "$as_me:10233: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:10236: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10240 echo "$as_me: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10246 echo "$as_me:10246: result: $ac_cv_c_const" >&5
10247 echo "${ECHO_T}$ac_cv_c_const" >&6
10248 if test $ac_cv_c_const = no; then
10250 cat >>confdefs.h <<\EOF
10256 ### Checks for external-data
10258 echo "$as_me:10258: checking if data-only library module links" >&5
10259 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
10260 if test "${cf_cv_link_dataonly+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<EOF
10266 #line 10266 "configure"
10267 int testdata[3] = { 123, 456, 789 };
10269 if { (eval echo "$as_me:10269: \"$ac_compile\"") >&5
10270 (eval $ac_compile) 2>&5
10272 echo "$as_me:10272: \$? = $ac_status" >&5
10273 (exit $ac_status); } ; then
10274 mv conftest.o data.o && \
10275 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
10277 rm -f conftest.$ac_ext data.o
10278 cat >conftest.$ac_ext <<EOF
10279 #line 10279 "configure"
10283 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
10285 extern int testdata[3];
10286 return testdata[0] == 123
10287 && testdata[1] == 456
10288 && testdata[2] == 789;
10292 if { (eval echo "$as_me:10292: \"$ac_compile\"") >&5
10293 (eval $ac_compile) 2>&5
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); }; then
10297 mv conftest.o func.o && \
10298 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
10300 rm -f conftest.$ac_ext func.o
10301 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
10302 cf_saveLIBS="$LIBS"
10303 LIBS="conftest.a $LIBS"
10304 if test "$cross_compiling" = yes; then
10305 cf_cv_link_dataonly=unknown
10307 cat >conftest.$ac_ext <<_ACEOF
10308 #line 10308 "configure"
10309 #include "confdefs.h"
10313 extern int testfunc();
10314 ${cf_cv_main_return:-return} (!testfunc());
10318 rm -f conftest$ac_exeext
10319 if { (eval echo "$as_me:10319: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>&5
10322 echo "$as_me:10322: \$? = $ac_status" >&5
10323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10324 { (eval echo "$as_me:10324: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:10327: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 cf_cv_link_dataonly=yes
10331 echo "$as_me: program exited with status $ac_status" >&5
10332 echo "$as_me: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 cf_cv_link_dataonly=no
10336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10338 LIBS="$cf_saveLIBS"
10342 echo "$as_me:10342: result: $cf_cv_link_dataonly" >&5
10343 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
10345 if test "$cf_cv_link_dataonly" = no ; then
10346 cat >>confdefs.h <<\EOF
10347 #define BROKEN_LINKER 1
10353 ### Checks for library functions.
10355 echo "$as_me:10355: checking for working mkstemp" >&5
10356 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
10357 if test "${cf_cv_func_mkstemp+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test "$cross_compiling" = yes; then
10363 echo "$as_me:10363: checking for mkstemp" >&5
10364 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
10365 if test "${ac_cv_func_mkstemp+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10369 #line 10369 "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char mkstemp (); below. */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10386 /* The GNU C library defines this for functions which it implements
10387 to always fail with ENOSYS. Some functions are actually named
10388 something starting with __ and the normal name is an alias. */
10389 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (eval echo "$as_me:10400: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>&5
10403 echo "$as_me:10403: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (eval echo "$as_me:10406: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:10409: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 ac_cv_func_mkstemp=yes
10413 echo "$as_me: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10415 ac_cv_func_mkstemp=no
10417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419 echo "$as_me:10419: result: $ac_cv_func_mkstemp" >&5
10420 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10424 #line 10424 "configure"
10425 #include "confdefs.h"
10427 #include <sys/types.h>
10428 #include <stdlib.h>
10430 #include <string.h>
10431 #include <sys/stat.h>
10434 char *tmpl = "conftestXXXXXX";
10442 for (n = 0; n < 2; ++n) {
10443 strcpy(name[n], tmpl);
10444 if ((fd = mkstemp(name[n])) >= 0) {
10445 if (!strcmp(name[n], tmpl)
10446 || stat(name[n], &sb) != 0
10447 || (sb.st_mode & S_IFMT) != S_IFREG
10448 || (sb.st_mode & 077) != 0) {
10455 && !strcmp(name[0], name[1]))
10457 ${cf_cv_main_return:-return}(result);
10461 rm -f conftest$ac_exeext
10462 if { (eval echo "$as_me:10462: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>&5
10465 echo "$as_me:10465: \$? = $ac_status" >&5
10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467 { (eval echo "$as_me:10467: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:10470: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 cf_cv_func_mkstemp=yes
10475 echo "$as_me: program exited with status $ac_status" >&5
10476 echo "$as_me: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10478 cf_cv_func_mkstemp=no
10481 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10485 echo "$as_me:10485: result: $cf_cv_func_mkstemp" >&5
10486 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
10487 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
10488 cat >>confdefs.h <<\EOF
10489 #define HAVE_MKSTEMP 1
10494 echo "$as_me:10494: checking return type of signal handlers" >&5
10495 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10496 if test "${ac_cv_type_signal+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 cat >conftest.$ac_ext <<_ACEOF
10500 #line 10500 "configure"
10501 #include "confdefs.h"
10502 #include <sys/types.h>
10503 #include <signal.h>
10508 extern "C" void (*signal (int, void (*)(int)))(int);
10510 void (*signal ()) ();
10521 rm -f conftest.$ac_objext
10522 if { (eval echo "$as_me:10522: \"$ac_compile\"") >&5
10523 (eval $ac_compile) 2>&5
10525 echo "$as_me:10525: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -s conftest.$ac_objext'
10528 { (eval echo "$as_me:10528: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:10531: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_type_signal=void
10535 echo "$as_me: failed program was:" >&5
10536 cat conftest.$ac_ext >&5
10537 ac_cv_type_signal=int
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10541 echo "$as_me:10541: result: $ac_cv_type_signal" >&5
10542 echo "${ECHO_T}$ac_cv_type_signal" >&6
10544 cat >>confdefs.h <<EOF
10545 #define RETSIGTYPE $ac_cv_type_signal
10548 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
10549 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10550 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10553 cf_ada_make=gnatmake
10554 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
10555 set dummy $cf_ada_make; ac_word=$2
10556 echo "$as_me:10556: checking for $ac_word" >&5
10557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10558 if test "${ac_cv_prog_gnat_exists+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 if test -n "$gnat_exists"; then
10562 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
10564 ac_save_IFS=$IFS; IFS=$ac_path_separator
10566 for ac_dir in $ac_dummy; do
10568 test -z "$ac_dir" && ac_dir=.
10569 $as_executable_p "$ac_dir/$ac_word" || continue
10570 ac_cv_prog_gnat_exists="yes"
10571 echo "$as_me:10571: found $ac_dir/$ac_word" >&5
10575 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
10578 gnat_exists=$ac_cv_prog_gnat_exists
10579 if test -n "$gnat_exists"; then
10580 echo "$as_me:10580: result: $gnat_exists" >&5
10581 echo "${ECHO_T}$gnat_exists" >&6
10583 echo "$as_me:10583: result: no" >&5
10584 echo "${ECHO_T}no" >&6
10587 if test "$ac_cv_prog_gnat_exists" = no; then
10591 echo "$as_me:10591: checking for gnat version" >&5
10592 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
10593 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
10594 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
10595 echo "$as_me:10595: result: $cf_gnat_version" >&5
10596 echo "${ECHO_T}$cf_gnat_version" >&6
10598 case $cf_gnat_version in
10599 3.1[1-9]*|3.[2-9]*|[4-9].*)
10600 cf_cv_prog_gnat_correct=yes
10602 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
10603 cf_cv_prog_gnat_correct=no
10606 case $cf_gnat_version in
10608 cf_compile_generics=generics
10609 cf_generic_objects="\${GENOBJS}"
10611 *) cf_compile_generics=
10612 cf_generic_objects=
10616 # Extract the first word of "m4", so it can be a program name with args.
10617 set dummy m4; ac_word=$2
10618 echo "$as_me:10618: checking for $ac_word" >&5
10619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620 if test "${ac_cv_prog_M4_exists+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 if test -n "$M4_exists"; then
10624 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
10626 ac_save_IFS=$IFS; IFS=$ac_path_separator
10628 for ac_dir in $ac_dummy; do
10630 test -z "$ac_dir" && ac_dir=.
10631 $as_executable_p "$ac_dir/$ac_word" || continue
10632 ac_cv_prog_M4_exists="yes"
10633 echo "$as_me:10633: found $ac_dir/$ac_word" >&5
10637 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
10640 M4_exists=$ac_cv_prog_M4_exists
10641 if test -n "$M4_exists"; then
10642 echo "$as_me:10642: result: $M4_exists" >&5
10643 echo "${ECHO_T}$M4_exists" >&6
10645 echo "$as_me:10645: result: no" >&5
10646 echo "${ECHO_T}no" >&6
10649 if test "$ac_cv_prog_M4_exists" = no; then
10650 cf_cv_prog_gnat_correct=no
10651 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
10653 if test "$cf_cv_prog_gnat_correct" = yes; then
10654 echo "$as_me:10654: checking if GNAT works" >&5
10655 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
10658 cat >>conftest.ads <<CF_EOF
10659 procedure conftest;
10661 cat >>conftest.adb <<CF_EOF
10664 procedure conftest is
10666 Text_IO.Put ("Hello World");
10668 GNAT.OS_Lib.OS_Exit (0);
10671 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
10672 if ( ./conftest 1>&5 2>&1 ) ; then
10673 cf_cv_prog_gnat_correct=yes
10675 cf_cv_prog_gnat_correct=no
10678 cf_cv_prog_gnat_correct=no
10682 echo "$as_me:10682: result: $cf_cv_prog_gnat_correct" >&5
10683 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
10686 if test "$cf_cv_prog_gnat_correct" = yes; then
10687 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
10689 echo "$as_me:10689: checking if GNAT pragma Unreferenced works" >&5
10690 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
10693 cat >>conftest.ads <<CF_EOF
10694 procedure conftest;
10696 cat >>conftest.adb <<CF_EOF
10699 procedure conftest is
10701 pragma Unreferenced (test);
10704 Text_IO.Put ("Hello World");
10706 GNAT.OS_Lib.OS_Exit (0);
10709 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
10710 cf_cv_pragma_unreferenced=yes
10712 cf_cv_pragma_unreferenced=no
10716 echo "$as_me:10716: result: $cf_cv_pragma_unreferenced" >&5
10717 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
10719 # if the pragma is supported, use it (needed in the Trace code).
10720 if test $cf_cv_pragma_unreferenced = yes ; then
10726 # Check whether --with-ada-compiler or --without-ada-compiler was given.
10727 if test "${with_ada_compiler+set}" = set; then
10728 withval="$with_ada_compiler"
10729 cf_ada_compiler=$withval
10731 cf_ada_compiler=gnatmake
10734 cf_ada_package=terminal_interface
10736 # Check whether --with-ada-include or --without-ada-include was given.
10737 if test "${with_ada_include+set}" = set; then
10738 withval="$with_ada_include"
10741 withval="${ADA_INCLUDE-$prefix/share/ada/adainclude}"
10742 fi; if test -n "$prefix/share/ada/adainclude" ; then
10744 if test "x$prefix" != xNONE; then
10745 cf_path_syntax="$prefix"
10747 cf_path_syntax="$ac_default_prefix"
10750 case ".$withval" in #(vi
10751 .\$\(*\)*|.\'*\'*) #(vi
10755 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10757 .\${*prefix}*) #(vi
10758 eval withval="$withval"
10759 case ".$withval" in #(vi
10761 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10766 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10769 { { echo "$as_me:10769: error: expected a pathname, not \"$withval\"" >&5
10770 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10771 { (exit 1); exit 1; }; }
10776 ADA_INCLUDE="$withval"
10778 # Check whether --with-ada-objects or --without-ada-objects was given.
10779 if test "${with_ada_objects+set}" = set; then
10780 withval="$with_ada_objects"
10783 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
10784 fi; if test -n "$prefix/lib/ada/adalib" ; then
10786 if test "x$prefix" != xNONE; then
10787 cf_path_syntax="$prefix"
10789 cf_path_syntax="$ac_default_prefix"
10792 case ".$withval" in #(vi
10793 .\$\(*\)*|.\'*\'*) #(vi
10797 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10799 .\${*prefix}*) #(vi
10800 eval withval="$withval"
10801 case ".$withval" in #(vi
10803 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10808 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10811 { { echo "$as_me:10811: error: expected a pathname, not \"$withval\"" >&5
10812 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10813 { (exit 1); exit 1; }; }
10818 ADA_OBJECTS="$withval"
10822 ################################################################################
10827 ### Construct the list of include-directories to be generated
10829 CPPFLAGS="$CPPFLAGS -I. -I../include"
10830 if test "$srcdir" != "."; then
10831 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
10833 if test "$GCC" != yes; then
10834 CPPFLAGS="$CPPFLAGS -I\${includedir}"
10835 elif test "$includedir" != "/usr/include"; then
10836 if test "$includedir" = '${prefix}/include' ; then
10837 if test $prefix != /usr ; then
10838 CPPFLAGS="$CPPFLAGS -I\${includedir}"
10841 CPPFLAGS="$CPPFLAGS -I\${includedir}"
10845 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
10846 if test "$srcdir" != "."; then
10847 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
10849 if test "$GCC" != yes; then
10850 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
10851 elif test "$includedir" != "/usr/include"; then
10852 if test "$includedir" = '${prefix}/include' ; then
10853 if test $prefix != /usr ; then
10854 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
10857 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
10861 ### Build up pieces for makefile rules
10862 echo "$as_me:10862: checking default library suffix" >&5
10863 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
10865 case $DFT_LWR_MODEL in
10866 libtool) DFT_ARG_SUFFIX='' ;;
10867 normal) DFT_ARG_SUFFIX='' ;;
10868 debug) DFT_ARG_SUFFIX='_g' ;;
10869 profile) DFT_ARG_SUFFIX='_p' ;;
10870 shared) DFT_ARG_SUFFIX='' ;;
10872 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
10873 echo "$as_me:10873: result: $DFT_ARG_SUFFIX" >&5
10874 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
10876 echo "$as_me:10876: checking default library-dependency suffix" >&5
10877 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
10879 case $DFT_LWR_MODEL in #(vi
10881 DFT_LIB_SUFFIX='.la'
10882 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10885 DFT_LIB_SUFFIX='.a'
10886 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10889 DFT_LIB_SUFFIX='_g.a'
10890 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10893 DFT_LIB_SUFFIX='_p.a'
10894 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10897 case $cf_cv_system_name in
10899 DFT_LIB_SUFFIX='.a'
10900 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10903 DFT_LIB_SUFFIX='.dll'
10904 DFT_DEP_SUFFIX='.dll.a'
10907 DFT_LIB_SUFFIX='.dylib'
10908 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10913 DFT_LIB_SUFFIX='.so'
10914 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10917 DFT_LIB_SUFFIX='.sl'
10918 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10922 *) DFT_LIB_SUFFIX='.so'
10923 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10927 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
10928 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
10929 echo "$as_me:10929: result: $DFT_DEP_SUFFIX" >&5
10930 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
10932 echo "$as_me:10932: checking default object directory" >&5
10933 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
10935 case $DFT_LWR_MODEL in
10936 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
10937 normal) DFT_OBJ_SUBDIR='objects' ;;
10938 debug) DFT_OBJ_SUBDIR='obj_g' ;;
10939 profile) DFT_OBJ_SUBDIR='obj_p' ;;
10941 case $cf_cv_system_name in #(vi
10943 DFT_OBJ_SUBDIR='objects' ;;
10945 DFT_OBJ_SUBDIR='obj_s' ;;
10948 echo "$as_me:10948: result: $DFT_OBJ_SUBDIR" >&5
10949 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
10951 ### Set up low-level terminfo dependencies for makefiles.
10953 if test "$DFT_LWR_MODEL" = shared ; then
10954 case $cf_cv_system_name in #(vi
10956 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
10961 ### Construct the list of subdirectories for which we'll customize makefiles
10962 ### with the appropriate compile-rules.
10964 SUB_MAKEFILES="gen/adacurses${DFT_ARG_SUFFIX}-config:gen/adacurses-config.in"
10966 cat >>confdefs.h <<EOF
10967 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
10970 ### Now that we're done running tests, add the compiler-warnings, if any
10975 cf_new_extra_cppflags=
10977 for cf_add_cflags in $EXTRA_CFLAGS
10979 case $cf_fix_cppflags in
10981 case $cf_add_cflags in #(vi
10982 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10983 case $cf_add_cflags in
10985 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10987 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10988 && test -z "${cf_tst_cflags}" \
10989 && cf_fix_cppflags=yes
10991 if test $cf_fix_cppflags = yes ; then
10992 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10994 elif test "${cf_tst_cflags}" = "\"'" ; then
10995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11000 case "$CPPFLAGS" in
11001 *$cf_add_cflags) #(vi
11004 case $cf_add_cflags in #(vi
11006 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11008 CPPFLAGS=`echo "$CPPFLAGS" | \
11009 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11010 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11014 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11019 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11024 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11028 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11029 && test -z "${cf_tst_cflags}" \
11030 && cf_fix_cppflags=no
11035 if test -n "$cf_new_cflags" ; then
11037 CFLAGS="$CFLAGS $cf_new_cflags"
11040 if test -n "$cf_new_cppflags" ; then
11042 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11045 if test -n "$cf_new_extra_cppflags" ; then
11047 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11050 ################################################################################
11052 if test x"$enable_pc_files" = xyes ; then \
11053 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
11059 ################################################################################
11063 NCURSES_SHLIB2="sh -c"
11065 for cf_path in . .. ../..
11067 if test -f $cf_path/tar-copy.sh
11069 NCURSES_COPY2=`echo 'sh $(top_srcdir)/'$cf_path'/tar-copy.sh' | sed -e 's,/./,/,'`
11074 ADA_SUBDIRS="include gen src samples"
11075 for cf_dir in $ADA_SUBDIRS
11077 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
11084 ac_config_files="$ac_config_files $SUB_MAKEFILES Makefile"
11085 ac_config_commands="$ac_config_commands default"
11086 cat >confcache <<\_ACEOF
11087 # This file is a shell script that caches the results of configure
11088 # tests run on this system so they can be shared between configure
11089 # scripts and configure runs, see configure's option --config-cache.
11090 # It is not useful on other systems. If it contains results you don't
11091 # want to keep, you may remove or edit it.
11093 # config.status only pays attention to the cache file if you give it
11094 # the --recheck option to rerun configure.
11096 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11098 # following values.
11102 # The following way of writing the cache mishandles newlines in values,
11103 # but we know of no workaround that is simple, portable, and efficient.
11104 # So, don't put newlines in cache variables' values.
11105 # Ultrix sh set writes to stderr and can't be redirected directly,
11106 # and sets the high bit in the cache file unless we assign to the vars.
11109 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11111 # `set' does not quote correctly, so add quotes (double-quote
11112 # substitution turns \\\\ into \\, and sed turns \\ into \).
11115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11118 # `set' quotes correctly as required by POSIX, so do not add quotes.
11120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11129 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11131 if cmp -s $cache_file confcache; then :; else
11132 if test -w $cache_file; then
11133 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11134 cat confcache >$cache_file
11136 echo "not updating unwritable cache $cache_file"
11141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11142 # Let make expand exec_prefix.
11143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11147 # trailing colons and then remove the whole line if VPATH becomes empty
11148 # (actually we leave an empty line to preserve line numbers).
11149 if test "x$srcdir" = x.; then
11150 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11151 s/:*\$(srcdir):*/:/;
11152 s/:*\${srcdir}:*/:/;
11154 s/^\([^=]*=[ ]*\):*/\1/;
11160 DEFS=-DHAVE_CONFIG_H
11162 : ${CONFIG_STATUS=./config.status}
11163 ac_clean_files_save=$ac_clean_files
11164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11165 { echo "$as_me:11165: creating $CONFIG_STATUS" >&5
11166 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11167 cat >$CONFIG_STATUS <<_ACEOF
11169 # Generated automatically by configure.
11170 # Run this file to recreate the current configuration.
11171 # Compiler output produced by configure, useful for debugging
11172 # configure, is in config.log if it exists.
11175 SHELL=\${CONFIG_SHELL-$SHELL}
11176 ac_cs_invocation="\$0 \$@"
11180 cat >>$CONFIG_STATUS <<\_ACEOF
11181 # Be Bourne compatible
11182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11185 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11189 # Name of the executable.
11190 as_me=`echo "$0" |sed 's,.*[\\/],,'`
11192 if expr a : '\(a\)' >/dev/null 2>&1; then
11198 rm -f conf$$ conf$$.exe conf$$.file
11200 if ln -s conf$$.file conf$$ 2>/dev/null; then
11201 # We could just check for DJGPP; but this test a) works b) is more generic
11202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11203 if test -f conf$$.exe; then
11204 # Don't use ln at all; we don't have any links
11209 elif ln conf$$.file conf$$ 2>/dev/null; then
11214 rm -f conf$$ conf$$.exe conf$$.file
11216 as_executable_p="test -f"
11218 # Support unset when possible.
11219 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11226 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
11227 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
11228 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
11229 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
11230 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
11231 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
11232 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
11233 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
11236 # We need space, tab and new line, in precisely that order.
11242 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
11248 # Files that config.status was made for.
11249 if test -n "$ac_config_files"; then
11250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11253 if test -n "$ac_config_headers"; then
11254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11257 if test -n "$ac_config_links"; then
11258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11261 if test -n "$ac_config_commands"; then
11262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11265 cat >>$CONFIG_STATUS <<\EOF
11268 \`$as_me' instantiates files from templates according to the
11269 current configuration.
11271 Usage: $0 [OPTIONS] [FILE]...
11273 -h, --help print this help, then exit
11274 -V, --version print version number, then exit
11275 -d, --debug don't remove temporary files
11276 --recheck update $as_me by reconfiguring in the same conditions
11277 --file=FILE[:TEMPLATE]
11278 instantiate the configuration file FILE
11279 --header=FILE[:TEMPLATE]
11280 instantiate the configuration header FILE
11282 Configuration files:
11285 Configuration headers:
11288 Configuration commands:
11291 Report bugs to <bug-autoconf@gnu.org>."
11294 cat >>$CONFIG_STATUS <<EOF
11297 configured by $0, generated by GNU Autoconf 2.52.20100530,
11298 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11300 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11301 Free Software Foundation, Inc.
11302 This config.status script is free software; the Free Software Foundation
11303 gives unlimited permission to copy, distribute and modify it."
11308 cat >>$CONFIG_STATUS <<\EOF
11309 # If no file are specified by the user, then we need to provide default
11310 # value. By we need to know if files were specified by the user.
11316 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11317 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11319 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11323 *) # This is not an option, so the user has probably given explicit
11325 ac_need_defaults=false;;
11329 # Handling of the options.
11331 cat >>$CONFIG_STATUS <<EOF
11332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11333 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11334 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11336 cat >>$CONFIG_STATUS <<\EOF
11337 --version | --vers* | -V )
11338 echo "$ac_cs_version"; exit 0 ;;
11340 # Conflict between --help and --header
11341 { { echo "$as_me:11341: error: ambiguous option: $1
11342 Try \`$0 --help' for more information." >&5
11343 echo "$as_me: error: ambiguous option: $1
11344 Try \`$0 --help' for more information." >&2;}
11345 { (exit 1); exit 1; }; };;
11346 --help | --hel | -h )
11347 echo "$ac_cs_usage"; exit 0 ;;
11348 --debug | --d* | -d )
11350 --file | --fil | --fi | --f )
11352 CONFIG_FILES="$CONFIG_FILES $1"
11353 ac_need_defaults=false;;
11354 --header | --heade | --head | --hea )
11356 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11357 ac_need_defaults=false;;
11359 # This is an error.
11360 -*) { { echo "$as_me:11360: error: unrecognized option: $1
11361 Try \`$0 --help' for more information." >&5
11362 echo "$as_me: error: unrecognized option: $1
11363 Try \`$0 --help' for more information." >&2;}
11364 { (exit 1); exit 1; }; } ;;
11366 *) ac_config_targets="$ac_config_targets $1" ;;
11375 ## ----------------------- ##
11376 ## Running config.status. ##
11377 ## ----------------------- ##
11379 This file was extended by $as_me 2.52.20100530, executed with
11380 CONFIG_FILES = $CONFIG_FILES
11381 CONFIG_HEADERS = $CONFIG_HEADERS
11382 CONFIG_LINKS = $CONFIG_LINKS
11383 CONFIG_COMMANDS = $CONFIG_COMMANDS
11384 > $ac_cs_invocation
11385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11390 cat >>$CONFIG_STATUS <<EOF
11392 # INIT-COMMANDS section.
11395 ### Special initialization commands, used to pass information from the
11396 ### configuration-run into config.status
11399 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
11400 DFT_LWR_MODEL="$DFT_LWR_MODEL"
11401 ECHO_LINK="$ECHO_LINK"
11402 LIB_NAME="$LIB_NAME"
11403 LIB_SUFFIX="$LIB_SUFFIX"
11404 NCURSES_MAJOR="$NCURSES_MAJOR"
11405 NCURSES_MINOR="$NCURSES_MINOR"
11406 NCURSES_PATCH="$NCURSES_PATCH"
11407 cf_cv_abi_version="$cf_cv_abi_version"
11408 cf_cv_rel_version="$cf_cv_rel_version"
11409 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
11410 cf_cv_shared_soname='$cf_cv_shared_soname'
11411 cf_cv_shlib_version="$cf_cv_shlib_version"
11412 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
11413 cf_cv_system_name="$cf_cv_system_name"
11419 cat >>$CONFIG_STATUS <<\EOF
11420 for ac_config_target in $ac_config_targets
11422 case "$ac_config_target" in
11423 # Handling of arguments.
11424 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
11425 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11426 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11427 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
11428 *) { { echo "$as_me:11428: error: invalid argument: $ac_config_target" >&5
11429 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11430 { (exit 1); exit 1; }; };;
11434 # If the user did not use the arguments to specify the items to instantiate,
11435 # then the envvar interface is used. Set only those that are not.
11436 # We use the long form for the default assignment because of an extremely
11437 # bizarre bug on SunOS 4.1.3.
11438 if $ac_need_defaults; then
11439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11444 # Create a temporary directory, and hook for its removal unless debugging.
11447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11448 trap '{ (exit 1); exit 1; }' 1 2 13 15
11451 # Create a (secure) tmp directory for tmp files.
11454 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11455 test -n "$tmp" && test -d "$tmp"
11458 tmp=$TMPDIR/cs$$-$RANDOM
11459 (umask 077 && mkdir $tmp)
11462 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11463 { (exit 1); exit 1; }
11468 cat >>$CONFIG_STATUS <<EOF
11471 # CONFIG_FILES section.
11474 # No need to generate the scripts if there are no CONFIG_FILES.
11475 # This happens for instance when ./config.status config.h
11476 if test -n "\$CONFIG_FILES"; then
11477 # Protect against being on the right side of a sed subst in config.status.
11478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11480 s,@SHELL@,$SHELL,;t t
11481 s,@exec_prefix@,$exec_prefix,;t t
11482 s,@prefix@,$prefix,;t t
11483 s,@program_transform_name@,$program_transform_name,;t t
11484 s,@bindir@,$bindir,;t t
11485 s,@sbindir@,$sbindir,;t t
11486 s,@libexecdir@,$libexecdir,;t t
11487 s,@datadir@,$datadir,;t t
11488 s,@sysconfdir@,$sysconfdir,;t t
11489 s,@sharedstatedir@,$sharedstatedir,;t t
11490 s,@localstatedir@,$localstatedir,;t t
11491 s,@libdir@,$libdir,;t t
11492 s,@includedir@,$includedir,;t t
11493 s,@oldincludedir@,$oldincludedir,;t t
11494 s,@infodir@,$infodir,;t t
11495 s,@mandir@,$mandir,;t t
11496 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11497 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11498 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11499 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11500 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11501 s,@build_alias@,$build_alias,;t t
11502 s,@host_alias@,$host_alias,;t t
11503 s,@target_alias@,$target_alias,;t t
11504 s,@ECHO_C@,$ECHO_C,;t t
11505 s,@ECHO_N@,$ECHO_N,;t t
11506 s,@ECHO_T@,$ECHO_T,;t t
11507 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11508 s,@DEFS@,$DEFS,;t t
11509 s,@LIBS@,$LIBS,;t t
11510 s,@top_builddir@,$top_builddir,;t t
11511 s,@build@,$build,;t t
11512 s,@build_cpu@,$build_cpu,;t t
11513 s,@build_vendor@,$build_vendor,;t t
11514 s,@build_os@,$build_os,;t t
11515 s,@host@,$host,;t t
11516 s,@host_cpu@,$host_cpu,;t t
11517 s,@host_vendor@,$host_vendor,;t t
11518 s,@host_os@,$host_os,;t t
11519 s,@target@,$target,;t t
11520 s,@target_cpu@,$target_cpu,;t t
11521 s,@target_vendor@,$target_vendor,;t t
11522 s,@target_os@,$target_os,;t t
11524 s,@CFLAGS@,$CFLAGS,;t t
11525 s,@LDFLAGS@,$LDFLAGS,;t t
11526 s,@CPPFLAGS@,$CPPFLAGS,;t t
11527 s,@ac_ct_CC@,$ac_ct_CC,;t t
11528 s,@EXEEXT@,$EXEEXT,;t t
11529 s,@OBJEXT@,$OBJEXT,;t t
11531 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
11532 s,@PROG_EXT@,$PROG_EXT,;t t
11534 s,@EGREP@,$EGREP,;t t
11535 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11536 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11537 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11538 s,@LN_S@,$LN_S,;t t
11539 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11540 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
11541 s,@SET_MAKE@,$SET_MAKE,;t t
11542 s,@CTAGS@,$CTAGS,;t t
11543 s,@ETAGS@,$ETAGS,;t t
11544 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
11545 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
11546 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
11547 s,@RANLIB@,$RANLIB,;t t
11548 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11550 s,@ac_ct_LD@,$ac_ct_LD,;t t
11552 s,@ac_ct_AR@,$ac_ct_AR,;t t
11553 s,@ARFLAGS@,$ARFLAGS,;t t
11554 s,@DESTDIR@,$DESTDIR,;t t
11555 s,@BUILD_CC@,$BUILD_CC,;t t
11556 s,@BUILD_CPP@,$BUILD_CPP,;t t
11557 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
11558 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
11559 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
11560 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
11561 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
11562 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
11563 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
11564 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
11565 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
11566 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
11567 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
11568 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
11569 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
11570 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
11571 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
11572 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
11573 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
11574 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
11575 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
11576 s,@CC_G_OPT@,$CC_G_OPT,;t t
11577 s,@LD_MODEL@,$LD_MODEL,;t t
11578 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
11579 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
11580 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
11581 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
11582 s,@LINK_PROGS@,$LINK_PROGS,;t t
11583 s,@LINK_TESTS@,$LINK_TESTS,;t t
11584 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
11585 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
11586 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
11587 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
11588 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
11589 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
11590 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
11591 s,@PTHREAD@,$PTHREAD,;t t
11592 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
11593 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
11594 s,@ECHO_LINK@,$ECHO_LINK,;t t
11595 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
11596 s,@ADA_TRACE@,$ADA_TRACE,;t t
11597 s,@gnat_exists@,$gnat_exists,;t t
11598 s,@M4_exists@,$M4_exists,;t t
11599 s,@cf_ada_make@,$cf_ada_make,;t t
11600 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
11601 s,@cf_ada_package@,$cf_ada_package,;t t
11602 s,@ADAFLAGS@,$ADAFLAGS,;t t
11603 s,@cf_compile_generics@,$cf_compile_generics,;t t
11604 s,@cf_generic_objects@,$cf_generic_objects,;t t
11605 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
11606 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
11607 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
11608 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
11609 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
11610 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
11611 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
11612 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
11613 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
11614 s,@cross_compiling@,$cross_compiling,;t t
11615 s,@TEST_ARG2@,$TEST_ARG2,;t t
11616 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
11617 s,@NCURSES_COPY2@,$NCURSES_COPY2,;t t
11618 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
11619 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
11620 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
11625 cat >>$CONFIG_STATUS <<\EOF
11626 # Split the substitutions into bite-sized pieces for seds with
11627 # small command number limits, like on Digital OSF/1 and HP-UX.
11628 ac_max_sed_lines=48
11629 ac_sed_frag=1 # Number of current file.
11630 ac_beg=1 # First line for current file.
11631 ac_end=$ac_max_sed_lines # Line after last line for current file.
11634 while $ac_more_lines; do
11635 if test $ac_beg -gt 1; then
11636 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11638 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11640 if test ! -s $tmp/subs.frag; then
11641 ac_more_lines=false
11643 # The purpose of the label and of the branching condition is to
11644 # speed up the sed processing (if there are no `@' at all, there
11645 # is no need to browse any of the substitutions).
11646 # These are the two extra sed commands mentioned above.
11648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11649 if test -z "$ac_sed_cmds"; then
11650 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11652 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11654 ac_sed_frag=`expr $ac_sed_frag + 1`
11656 ac_end=`expr $ac_end + $ac_max_sed_lines`
11659 if test -z "$ac_sed_cmds"; then
11662 fi # test -n "$CONFIG_FILES"
11665 cat >>$CONFIG_STATUS <<\EOF
11666 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11667 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11669 - | *:- | *:-:* ) # input from stdin
11671 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11672 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11673 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11674 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11675 * ) ac_file_in=$ac_file.in ;;
11678 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11679 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11680 X"$ac_file" : 'X\(//\)[^/]' \| \
11681 X"$ac_file" : 'X\(//\)$' \| \
11682 X"$ac_file" : 'X\(/\)' \| \
11683 . : '\(.\)' 2>/dev/null ||
11685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11687 /^X\(\/\/\)$/{ s//\1/; q; }
11688 /^X\(\/\).*/{ s//\1/; q; }
11690 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11691 { case "$ac_dir" in
11692 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11696 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11697 case $as_mkdir_dir in
11698 # Skip DOS drivespec
11699 ?:) as_incr_dir=$as_mkdir_dir ;;
11701 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11702 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11707 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
11708 # A "../" for each directory in $ac_dir_suffix.
11709 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11711 ac_dir_suffix= ac_dots=
11716 if test -z "$ac_dots"; then
11719 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11721 [\\/]* | ?:[\\/]* )
11722 ac_srcdir=$srcdir$ac_dir_suffix;
11723 ac_top_srcdir=$srcdir ;;
11724 *) # Relative path.
11725 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11726 ac_top_srcdir=$ac_dots$srcdir ;;
11730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11731 *) ac_INSTALL=$ac_dots$INSTALL ;;
11734 if test x"$ac_file" != x-; then
11735 { echo "$as_me:11735: creating $ac_file" >&5
11736 echo "$as_me: creating $ac_file" >&6;}
11739 # Let's still pretend it is `configure' which instantiates (i.e., don't
11740 # use $as_me), people would be surprised to read:
11741 # /* config.h. Generated automatically by config.status. */
11742 configure_input="Generated automatically from `echo $ac_file_in |
11743 sed 's,.*/,,'` by configure."
11745 # First look for the input files in the build tree, otherwise in the
11747 ac_file_inputs=`IFS=:
11748 for f in $ac_file_in; do
11750 -) echo $tmp/stdin ;;
11752 # Absolute (can't be DOS-style, as IFS=:)
11753 test -f "$f" || { { echo "$as_me:11753: error: cannot find input file: $f" >&5
11754 echo "$as_me: error: cannot find input file: $f" >&2;}
11755 { (exit 1); exit 1; }; }
11758 if test -f "$f"; then
11761 elif test -f "$srcdir/$f"; then
11766 { { echo "$as_me:11766: error: cannot find input file: $f" >&5
11767 echo "$as_me: error: cannot find input file: $f" >&2;}
11768 { (exit 1); exit 1; }; }
11771 done` || { (exit 1); exit 1; }
11773 cat >>$CONFIG_STATUS <<EOF
11777 cat >>$CONFIG_STATUS <<\EOF
11779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11780 s,@configure_input@,$configure_input,;t t
11781 s,@srcdir@,$ac_srcdir,;t t
11782 s,@top_srcdir@,$ac_top_srcdir,;t t
11783 s,@INSTALL@,$ac_INSTALL,;t t
11784 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11786 if test x"$ac_file" != x-; then
11787 mv $tmp/out $ac_file
11795 cat >>$CONFIG_STATUS <<\EOF
11798 # CONFIG_HEADER section.
11801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11804 # ac_d sets the value in "#define NAME VALUE" lines.
11805 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11806 ac_dB='[ ].*$,\1#\2'
11809 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11810 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11811 ac_iB='\([ ]\),\1#\2define\3'
11814 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11815 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11816 ac_uB='$,\1#\2define\3'
11820 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11823 - | *:- | *:-:* ) # input from stdin
11825 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11827 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11829 * ) ac_file_in=$ac_file.in ;;
11832 test x"$ac_file" != x- && { echo "$as_me:11832: creating $ac_file" >&5
11833 echo "$as_me: creating $ac_file" >&6;}
11835 # First look for the input files in the build tree, otherwise in the
11837 ac_file_inputs=`IFS=:
11838 for f in $ac_file_in; do
11840 -) echo $tmp/stdin ;;
11842 # Absolute (can't be DOS-style, as IFS=:)
11843 test -f "$f" || { { echo "$as_me:11843: error: cannot find input file: $f" >&5
11844 echo "$as_me: error: cannot find input file: $f" >&2;}
11845 { (exit 1); exit 1; }; }
11848 if test -f "$f"; then
11851 elif test -f "$srcdir/$f"; then
11856 { { echo "$as_me:11856: error: cannot find input file: $f" >&5
11857 echo "$as_me: error: cannot find input file: $f" >&2;}
11858 { (exit 1); exit 1; }; }
11861 done` || { (exit 1); exit 1; }
11862 # Remove the trailing spaces.
11863 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11867 # Transform confdefs.h into a list of #define's. We won't use it as a sed
11868 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
11869 # be either 'cat' or 'sort'.
11870 cat confdefs.h | uniq >conftest.vals
11872 # Break up conftest.vals because some shells have a limit on
11873 # the size of here documents, and old seds have small limits too.
11875 rm -f conftest.tail
11876 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
11877 while grep . conftest.vals >/dev/null
11879 # Write chunks of a limited-size here document to conftest.frag.
11880 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
11881 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
11882 echo 'CEOF' >> $CONFIG_STATUS
11883 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11884 rm -f conftest.vals
11885 mv conftest.tail conftest.vals
11887 rm -f conftest.vals
11889 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
11891 echo ' cat >> conftest.edit <<CEOF
11892 /@DEFS@/r conftest.frag
11895 sed -f conftest.edit $tmp/in > $tmp/out
11897 mv $tmp/out $tmp/in
11898 rm -f conftest.edit conftest.frag
11899 ' >> $CONFIG_STATUS
11901 cat >>$CONFIG_STATUS <<\EOF
11902 # Let's still pretend it is `configure' which instantiates (i.e., don't
11903 # use $as_me), people would be surprised to read:
11904 # /* config.h. Generated automatically by config.status. */
11905 if test x"$ac_file" = x-; then
11906 echo "/* Generated automatically by configure. */" >$tmp/config.h
11908 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11910 cat $tmp/in >>$tmp/config.h
11912 if test x"$ac_file" != x-; then
11913 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11914 { echo "$as_me:11914: $ac_file is unchanged" >&5
11915 echo "$as_me: $ac_file is unchanged" >&6;}
11917 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11918 X"$ac_file" : 'X\(//\)[^/]' \| \
11919 X"$ac_file" : 'X\(//\)$' \| \
11920 X"$ac_file" : 'X\(/\)' \| \
11921 . : '\(.\)' 2>/dev/null ||
11923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11925 /^X\(\/\/\)$/{ s//\1/; q; }
11926 /^X\(\/\).*/{ s//\1/; q; }
11928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11929 { case "$ac_dir" in
11930 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11934 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11935 case $as_mkdir_dir in
11936 # Skip DOS drivespec
11937 ?:) as_incr_dir=$as_mkdir_dir ;;
11939 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11940 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11947 mv $tmp/config.h $ac_file
11951 rm -f $tmp/config.h
11956 cat >>$CONFIG_STATUS <<\EOF
11958 { (exit 0); exit 0; }
11960 chmod +x $CONFIG_STATUS
11961 ac_clean_files=$ac_clean_files_save
11963 # configure is writing to config.log, and then calls config.status.
11964 # config.status does its own redirection, appending to config.log.
11965 # Unfortunately, on DOS this fails, as config.log is still kept open
11966 # by configure, so config.status won't be able to write to it; its
11967 # output is simply discarded. So we exec the FD to /dev/null,
11968 # effectively closing config.log, so it can be properly (re)opened and
11969 # appended to by config.status. When coming back to configure, we
11970 # need to make the FD available again.
11971 if test "$no_create" != yes; then
11974 $SHELL $CONFIG_STATUS || ac_cs_success=false
11976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11977 # would make configure fail if this is the last instruction.
11978 $ac_cs_success || { (exit 1); exit 1; }
11980 ${MAKE-make} preinstall