2 # From configure.in Revision: 1.49 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="gen/gen.c"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 # Obsolete; use --without-fp.
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir=$ac_optarg ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix=$ac_optarg ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix=$ac_optarg ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name=$ac_optarg ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 sbindir=$ac_optarg ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 sharedstatedir=$ac_optarg ;;
368 -site | --site | --sit)
370 -site=* | --site=* | --sit=*)
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir=$ac_optarg ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target_alias ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target_alias=$ac_optarg ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers | -V)
397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid package name: $ac_package" >&2
401 { (exit 1); exit 1; }; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
407 eval "with_$ac_package='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid package name: $ac_package" >&2
414 { (exit 1); exit 1; }; }
415 ac_package=`echo $ac_package | sed 's/-/_/g'`
416 eval "with_$ac_package=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes=$ac_optarg ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries=$ac_optarg ;;
436 -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438 { (exit 1); exit 1; }; }
442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446 { (exit 1); exit 1; }; }
447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448 eval "$ac_envvar='$ac_optarg'"
452 # FIXME: should be removed in autoconf 3.0.
453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
462 if test -n "$ac_prev"; then
463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464 { echo "$as_me: error: missing argument to $ac_option" >&2
465 { (exit 1); exit 1; }; }
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
471 eval ac_val=$`echo $ac_var`
473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475 { (exit 1); exit 1; }; };;
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481 localstatedir libdir includedir oldincludedir infodir mandir
483 eval ac_val=$`echo $ac_var`
485 [\\/$]* | ?:[\\/]* ) ;;
486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487 { (exit 1); exit 1; }; };;
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499 if test "x$build_alias" = x; then
500 cross_compiling=maybe
501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502 If a cross compiler is detected then cross compile mode will be used." >&2
503 elif test "x$build_alias" != "x$host_alias"; then
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
511 test "$silent" = yes && exec 6>/dev/null
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530 { (exit 1); exit 1; }; }
532 { echo "$as_me: error: cannot find sources in $srcdir" >&2
533 { (exit 1); exit 1; }; }
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
571 # Report the --help message.
573 if test "$ac_init_help" = "long"; then
574 # Omit some internal or obsolete options to make the list less imposing.
575 # This message is too long to be a string in the A/UX 3.1 sh.
577 \`configure' configures this package to adapt to many kinds of systems.
579 Usage: $0 [OPTION]... [VAR=VALUE]...
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE. See below for descriptions of some of the useful variables.
584 Defaults for the options are specified in brackets.
587 -h, --help display this help and exit
588 --help=short display options specific to this package
589 --help=recursive display the short help of all the included packages
590 -V, --version display version information and exit
591 -q, --quiet, --silent do not print \`checking...' messages
592 --cache-file=FILE cache test results in FILE [disabled]
593 -C, --config-cache alias for \`--cache-file=config.cache'
594 -n, --no-create do not create output files
595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
600 Installation directories:
601 --prefix=PREFIX install architecture-independent files in PREFIX
603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
611 For better control, use the options below.
613 Fine tuning of the installation directories:
614 --bindir=DIR user executables [EPREFIX/bin]
615 --sbindir=DIR system admin executables [EPREFIX/sbin]
616 --libexecdir=DIR program executables [EPREFIX/libexec]
617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
622 --libdir=DIR object code libraries [EPREFIX/lib]
623 --includedir=DIR C header files [PREFIX/include]
624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
625 --infodir=DIR info documentation [DATAROOTDIR/info]
626 --mandir=DIR man documentation [DATAROOTDIR/man]
632 --program-prefix=PREFIX prepend PREFIX to installed program names
633 --program-suffix=SUFFIX append SUFFIX to installed program names
634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
637 --build=BUILD configure for building on BUILD [guessed]
638 --host=HOST build programs to run on HOST [BUILD]
639 --target=TARGET configure for building compilers for TARGET [HOST]
643 if test -n "$ac_init_help"; then
648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
655 --with-system-type=XXX test: override derived host system-type
656 --with-pkg-config{=path} enable/disable use of pkg-config
657 --with-pkg-config-libdir=XXX use given directory for installing pc-files
658 --enable-pc-files generate and install .pc files for pkg-config
659 --without-tests suppress build with test-programs
660 --enable-mixed-case tic should assume mixed-case filenames
661 --with-install-prefix prefixes actual install-location ($DESTDIR)
662 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
663 --with-build-cc=XXX the build C compiler ($BUILD_CC)
664 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
665 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
666 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
667 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
668 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
669 Options to Specify the Libraries Built/Used:
670 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
671 --enable-widec compile with wide-char/UTF-8 code
672 --with-curses-dir=DIR directory in which (n)curses is installed
673 --with-lib-prefix override library-prefix
674 --with-shlib-version=X Specify rel or abi version for shared libs
675 --enable-rpath-link link sample programs with rpath option
676 Fine-Tuning Your Configuration:
677 --enable-broken_linker compile with broken-linker support code
678 --disable-largefile omit support for large files
679 --with-rcs-ids compile-in RCS identifiers
681 --disable-ext-funcs disable function-extensions
682 --enable-const compile with extra/non-standard const
684 --without-develop disable development options
686 --with-pthread use POSIX thread library
687 --enable-weak-symbols enable weak-symbols for pthreads
688 --enable-reentrant compile with experimental reentrant code
689 --with-wrap-prefix=XXX override prefix used for public variables
690 Testing/development Options:
691 --disable-echo do not display "compiling" commands
692 --enable-warnings build: turn on GCC compiler warnings
693 --enable-assertions test: turn on generation of assertion code
694 --enable-expanded test: generate functions for certain macros
695 --disable-macros test: use functions rather than macros
696 --with-trace test: add trace() function to all models of ncurses
697 Ada95 Binding Options:
698 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
699 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
700 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
701 --with-ada-sharedlib=XX build Ada95 shared-library
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20121002. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1003 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1004 if test -f $ac_dir/install-sh; then
1006 ac_install_sh="$ac_aux_dir/install-sh -c"
1008 elif test -f $ac_dir/install.sh; then
1010 ac_install_sh="$ac_aux_dir/install.sh -c"
1012 elif test -f $ac_dir/shtool; then
1014 ac_install_sh="$ac_aux_dir/shtool install -c"
1018 if test -z "$ac_aux_dir"; then
1019 { { echo "$as_me:1019: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1020 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1021 { (exit 1); exit 1; }; }
1023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1025 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1027 # Make sure we can run config.sub.
1028 $ac_config_sub sun4 >/dev/null 2>&1 ||
1029 { { echo "$as_me:1029: error: cannot run $ac_config_sub" >&5
1030 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1031 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: checking build system type" >&5
1034 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1035 if test "${ac_cv_build+set}" = set; then
1036 echo $ECHO_N "(cached) $ECHO_C" >&6
1038 ac_cv_build_alias=$build_alias
1039 test -z "$ac_cv_build_alias" &&
1040 ac_cv_build_alias=`$ac_config_guess`
1041 test -z "$ac_cv_build_alias" &&
1042 { { echo "$as_me:1042: error: cannot guess build type; you must specify one" >&5
1043 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1044 { (exit 1); exit 1; }; }
1045 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1046 { { echo "$as_me:1046: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1047 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1048 { (exit 1); exit 1; }; }
1051 echo "$as_me:1051: result: $ac_cv_build" >&5
1052 echo "${ECHO_T}$ac_cv_build" >&6
1054 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$as_me:1058: checking host system type" >&5
1059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1060 if test "${ac_cv_host+set}" = set; then
1061 echo $ECHO_N "(cached) $ECHO_C" >&6
1063 ac_cv_host_alias=$host_alias
1064 test -z "$ac_cv_host_alias" &&
1065 ac_cv_host_alias=$ac_cv_build_alias
1066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1067 { { echo "$as_me:1067: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1069 { (exit 1); exit 1; }; }
1072 echo "$as_me:1072: result: $ac_cv_host" >&5
1073 echo "${ECHO_T}$ac_cv_host" >&6
1075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1080 echo "$as_me:1080: checking target system type" >&5
1081 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1082 if test "${ac_cv_target+set}" = set; then
1083 echo $ECHO_N "(cached) $ECHO_C" >&6
1085 ac_cv_target_alias=$target_alias
1086 test "x$ac_cv_target_alias" = "x" &&
1087 ac_cv_target_alias=$ac_cv_host_alias
1088 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1089 { { echo "$as_me:1089: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1090 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1091 { (exit 1); exit 1; }; }
1094 echo "$as_me:1094: result: $ac_cv_target" >&5
1095 echo "${ECHO_T}$ac_cv_target" >&6
1096 target=$ac_cv_target
1097 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1098 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1099 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 # The aliases save the names the user supplied, while $host etc.
1102 # will get canonicalized.
1103 test -n "$target_alias" &&
1104 test "$program_prefix$program_suffix$program_transform_name" = \
1106 program_prefix=${target_alias}-
1107 system_name="$host_os"
1109 system_name="`(uname -s -r) 2>/dev/null`"
1110 if test -z "$system_name" ; then
1111 system_name="`(hostname) 2>/dev/null`"
1114 test -n "$system_name" &&
1115 cat >>confdefs.h <<EOF
1116 #define SYSTEM_NAME "$system_name"
1119 if test "${cf_cv_system_name+set}" = set; then
1120 echo $ECHO_N "(cached) $ECHO_C" >&6
1122 cf_cv_system_name="$system_name"
1125 test -z "$system_name" && system_name="$cf_cv_system_name"
1126 test -n "$cf_cv_system_name" && echo "$as_me:1126: result: Configuring for $cf_cv_system_name" >&5
1127 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1129 if test ".$system_name" != ".$cf_cv_system_name" ; then
1130 echo "$as_me:1130: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1131 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1132 { { echo "$as_me:1132: error: \"Please remove config.cache and try again.\"" >&5
1133 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1134 { (exit 1); exit 1; }; }
1137 # Check whether --with-system-type or --without-system-type was given.
1138 if test "${with_system_type+set}" = set; then
1139 withval="$with_system_type"
1140 { echo "$as_me:1140: WARNING: overriding system type to $withval" >&5
1141 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1142 cf_cv_system_name=$withval
1147 ### Save the given $CFLAGS to allow user-override.
1148 cf_user_CFLAGS="$CFLAGS"
1150 ### Default install-location
1152 echo "$as_me:1152: checking for prefix" >&5
1153 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1154 if test "x$prefix" = "xNONE" ; then
1155 case "$cf_cv_system_name" in
1156 # non-vendor systems don't have a conflict
1157 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1160 *) prefix=$ac_default_prefix
1164 echo "$as_me:1164: result: $prefix" >&5
1165 echo "${ECHO_T}$prefix" >&6
1167 if test "x$prefix" = "xNONE" ; then
1168 echo "$as_me:1168: checking for default include-directory" >&5
1169 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1170 test -n "$verbose" && echo 1>&6
1173 $includedir/ncurses \
1175 $prefix/include/ncurses \
1176 /usr/local/include \
1177 /usr/local/include/ncurses \
1179 /usr/include/ncurses
1181 cf_dir=`eval echo $cf_symbol`
1182 if test -f $cf_dir/curses.h ; then
1183 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1184 includedir="$cf_symbol"
1185 test -n "$verbose" && echo $ac_n " found " 1>&6
1189 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1191 echo "$as_me:1191: result: $includedir" >&5
1192 echo "${ECHO_T}$includedir" >&6
1195 ### Checks for programs.
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1202 ac_main_return=return
1203 if test -n "$ac_tool_prefix"; then
1204 for ac_prog in gnatgcc gcc cc
1206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1208 echo "$as_me:1208: checking for $ac_word" >&5
1209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1210 if test "${ac_cv_prog_CC+set}" = set; then
1211 echo $ECHO_N "(cached) $ECHO_C" >&6
1213 if test -n "$CC"; then
1214 ac_cv_prog_CC="$CC" # Let the user override the test.
1216 ac_save_IFS=$IFS; IFS=$ac_path_separator
1218 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 $as_executable_p "$ac_dir/$ac_word" || continue
1222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1223 echo "$as_me:1223: found $ac_dir/$ac_word" >&5
1230 if test -n "$CC"; then
1231 echo "$as_me:1231: result: $CC" >&5
1232 echo "${ECHO_T}$CC" >&6
1234 echo "$as_me:1234: result: no" >&5
1235 echo "${ECHO_T}no" >&6
1238 test -n "$CC" && break
1241 if test -z "$CC"; then
1243 for ac_prog in gnatgcc gcc cc
1245 # Extract the first word of "$ac_prog", so it can be a program name with args.
1246 set dummy $ac_prog; ac_word=$2
1247 echo "$as_me:1247: checking for $ac_word" >&5
1248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1250 echo $ECHO_N "(cached) $ECHO_C" >&6
1252 if test -n "$ac_ct_CC"; then
1253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1255 ac_save_IFS=$IFS; IFS=$ac_path_separator
1257 for ac_dir in $ac_dummy; do
1259 test -z "$ac_dir" && ac_dir=.
1260 $as_executable_p "$ac_dir/$ac_word" || continue
1261 ac_cv_prog_ac_ct_CC="$ac_prog"
1262 echo "$as_me:1262: found $ac_dir/$ac_word" >&5
1268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1269 if test -n "$ac_ct_CC"; then
1270 echo "$as_me:1270: result: $ac_ct_CC" >&5
1271 echo "${ECHO_T}$ac_ct_CC" >&6
1273 echo "$as_me:1273: result: no" >&5
1274 echo "${ECHO_T}no" >&6
1277 test -n "$ac_ct_CC" && break
1283 test -z "$CC" && { { echo "$as_me:1283: error: no acceptable cc found in \$PATH" >&5
1284 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1285 { (exit 1); exit 1; }; }
1287 # Provide some information about the compiler.
1288 echo "$as_me:1288:" \
1289 "checking for C compiler version" >&5
1290 ac_compiler=`set X $ac_compile; echo $2`
1291 { (eval echo "$as_me:1291: \"$ac_compiler --version </dev/null >&5\"") >&5
1292 (eval $ac_compiler --version </dev/null >&5) 2>&5
1294 echo "$as_me:1294: \$? = $ac_status" >&5
1295 (exit $ac_status); }
1296 { (eval echo "$as_me:1296: \"$ac_compiler -v </dev/null >&5\"") >&5
1297 (eval $ac_compiler -v </dev/null >&5) 2>&5
1299 echo "$as_me:1299: \$? = $ac_status" >&5
1300 (exit $ac_status); }
1301 { (eval echo "$as_me:1301: \"$ac_compiler -V </dev/null >&5\"") >&5
1302 (eval $ac_compiler -V </dev/null >&5) 2>&5
1304 echo "$as_me:1304: \$? = $ac_status" >&5
1305 (exit $ac_status); }
1307 cat >conftest.$ac_ext <<_ACEOF
1308 #line 1308 "configure"
1309 #include "confdefs.h"
1319 ac_clean_files_save=$ac_clean_files
1320 ac_clean_files="$ac_clean_files a.out a.exe"
1321 # Try to create an executable without -o first, disregard a.out.
1322 # It will help us diagnose broken compilers, and finding out an intuition
1324 echo "$as_me:1324: checking for C compiler default output" >&5
1325 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1326 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1327 if { (eval echo "$as_me:1327: \"$ac_link_default\"") >&5
1328 (eval $ac_link_default) 2>&5
1330 echo "$as_me:1330: \$? = $ac_status" >&5
1331 (exit $ac_status); }; then
1332 # Find the output, starting from the most likely. This scheme is
1333 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1335 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1336 ls a.out conftest 2>/dev/null;
1337 ls a.* conftest.* 2>/dev/null`; do
1339 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1340 a.out ) # We found the default executable, but exeext='' is most
1343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1344 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1351 echo "$as_me: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1353 { { echo "$as_me:1353: error: C compiler cannot create executables" >&5
1354 echo "$as_me: error: C compiler cannot create executables" >&2;}
1355 { (exit 77); exit 77; }; }
1358 ac_exeext=$ac_cv_exeext
1359 echo "$as_me:1359: result: $ac_file" >&5
1360 echo "${ECHO_T}$ac_file" >&6
1362 # Check the compiler produces executables we can run. If not, either
1363 # the compiler is broken, or we cross compile.
1364 echo "$as_me:1364: checking whether the C compiler works" >&5
1365 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1366 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1367 # If not cross compiling, check that we can run a simple program.
1368 if test "$cross_compiling" != yes; then
1369 if { ac_try='./$ac_file'
1370 { (eval echo "$as_me:1370: \"$ac_try\"") >&5
1373 echo "$as_me:1373: \$? = $ac_status" >&5
1374 (exit $ac_status); }; }; then
1377 if test "$cross_compiling" = maybe; then
1380 { { echo "$as_me:1380: error: cannot run C compiled programs.
1381 If you meant to cross compile, use \`--host'." >&5
1382 echo "$as_me: error: cannot run C compiled programs.
1383 If you meant to cross compile, use \`--host'." >&2;}
1384 { (exit 1); exit 1; }; }
1388 echo "$as_me:1388: result: yes" >&5
1389 echo "${ECHO_T}yes" >&6
1391 rm -f a.out a.exe conftest$ac_cv_exeext
1392 ac_clean_files=$ac_clean_files_save
1393 # Check the compiler produces executables we can run. If not, either
1394 # the compiler is broken, or we cross compile.
1395 echo "$as_me:1395: checking whether we are cross compiling" >&5
1396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1397 echo "$as_me:1397: result: $cross_compiling" >&5
1398 echo "${ECHO_T}$cross_compiling" >&6
1400 echo "$as_me:1400: checking for executable suffix" >&5
1401 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1402 if { (eval echo "$as_me:1402: \"$ac_link\"") >&5
1403 (eval $ac_link) 2>&5
1405 echo "$as_me:1405: \$? = $ac_status" >&5
1406 (exit $ac_status); }; then
1407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1409 # work properly (i.e., refer to `conftest.exe'), while it won't with
1411 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1413 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1414 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1421 { { echo "$as_me:1421: error: cannot compute EXEEXT: cannot compile and link" >&5
1422 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1423 { (exit 1); exit 1; }; }
1426 rm -f conftest$ac_cv_exeext
1427 echo "$as_me:1427: result: $ac_cv_exeext" >&5
1428 echo "${ECHO_T}$ac_cv_exeext" >&6
1430 rm -f conftest.$ac_ext
1431 EXEEXT=$ac_cv_exeext
1433 echo "$as_me:1433: checking for object suffix" >&5
1434 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1435 if test "${ac_cv_objext+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 cat >conftest.$ac_ext <<_ACEOF
1439 #line 1439 "configure"
1440 #include "confdefs.h"
1450 rm -f conftest.o conftest.obj
1451 if { (eval echo "$as_me:1451: \"$ac_compile\"") >&5
1452 (eval $ac_compile) 2>&5
1454 echo "$as_me:1454: \$? = $ac_status" >&5
1455 (exit $ac_status); }; then
1456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1458 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1464 echo "$as_me: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1466 { { echo "$as_me:1466: error: cannot compute OBJEXT: cannot compile" >&5
1467 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1468 { (exit 1); exit 1; }; }
1471 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1473 echo "$as_me:1473: result: $ac_cv_objext" >&5
1474 echo "${ECHO_T}$ac_cv_objext" >&6
1475 OBJEXT=$ac_cv_objext
1477 echo "$as_me:1477: checking whether we are using the GNU C compiler" >&5
1478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 cat >conftest.$ac_ext <<_ACEOF
1483 #line 1483 "configure"
1484 #include "confdefs.h"
1497 rm -f conftest.$ac_objext
1498 if { (eval echo "$as_me:1498: \"$ac_compile\"") >&5
1499 (eval $ac_compile) 2>&5
1501 echo "$as_me:1501: \$? = $ac_status" >&5
1502 (exit $ac_status); } &&
1503 { ac_try='test -s conftest.$ac_objext'
1504 { (eval echo "$as_me:1504: \"$ac_try\"") >&5
1507 echo "$as_me:1507: \$? = $ac_status" >&5
1508 (exit $ac_status); }; }; then
1511 echo "$as_me: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1515 rm -f conftest.$ac_objext conftest.$ac_ext
1516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1519 echo "$as_me:1519: result: $ac_cv_c_compiler_gnu" >&5
1520 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1521 GCC=`test $ac_compiler_gnu = yes && echo yes`
1522 ac_test_CFLAGS=${CFLAGS+set}
1523 ac_save_CFLAGS=$CFLAGS
1525 echo "$as_me:1525: checking whether $CC accepts -g" >&5
1526 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1527 if test "${ac_cv_prog_cc_g+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 cat >conftest.$ac_ext <<_ACEOF
1531 #line 1531 "configure"
1532 #include "confdefs.h"
1542 rm -f conftest.$ac_objext
1543 if { (eval echo "$as_me:1543: \"$ac_compile\"") >&5
1544 (eval $ac_compile) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); } &&
1548 { ac_try='test -s conftest.$ac_objext'
1549 { (eval echo "$as_me:1549: \"$ac_try\"") >&5
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit $ac_status); }; }; then
1556 echo "$as_me: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1560 rm -f conftest.$ac_objext conftest.$ac_ext
1562 echo "$as_me:1562: result: $ac_cv_prog_cc_g" >&5
1563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1564 if test "$ac_test_CFLAGS" = set; then
1565 CFLAGS=$ac_save_CFLAGS
1566 elif test $ac_cv_prog_cc_g = yes; then
1567 if test "$GCC" = yes; then
1573 if test "$GCC" = yes; then
1579 # Some people use a C++ compiler to compile C. Since we use `exit',
1580 # in C++ we need to declare it. In case someone uses the same compiler
1581 # for both compiling C and C++ we need to have the C++ compiler decide
1582 # the declaration of exit, since it's the most demanding environment.
1583 cat >conftest.$ac_ext <<_ACEOF
1588 rm -f conftest.$ac_objext
1589 if { (eval echo "$as_me:1589: \"$ac_compile\"") >&5
1590 (eval $ac_compile) 2>&5
1592 echo "$as_me:1592: \$? = $ac_status" >&5
1593 (exit $ac_status); } &&
1594 { ac_try='test -s conftest.$ac_objext'
1595 { (eval echo "$as_me:1595: \"$ac_try\"") >&5
1598 echo "$as_me:1598: \$? = $ac_status" >&5
1599 (exit $ac_status); }; }; then
1600 for ac_declaration in \
1602 '#include <stdlib.h>' \
1603 'extern "C" void std::exit (int) throw (); using std::exit;' \
1604 'extern "C" void std::exit (int); using std::exit;' \
1605 'extern "C" void exit (int) throw ();' \
1606 'extern "C" void exit (int);' \
1609 cat >conftest.$ac_ext <<_ACEOF
1610 #line 1610 "configure"
1611 #include "confdefs.h"
1622 rm -f conftest.$ac_objext
1623 if { (eval echo "$as_me:1623: \"$ac_compile\"") >&5
1624 (eval $ac_compile) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); } &&
1628 { ac_try='test -s conftest.$ac_objext'
1629 { (eval echo "$as_me:1629: \"$ac_try\"") >&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }; }; then
1636 echo "$as_me: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1640 rm -f conftest.$ac_objext conftest.$ac_ext
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1653 rm -f conftest.$ac_objext
1654 if { (eval echo "$as_me:1654: \"$ac_compile\"") >&5
1655 (eval $ac_compile) 2>&5
1657 echo "$as_me:1657: \$? = $ac_status" >&5
1658 (exit $ac_status); } &&
1659 { ac_try='test -s conftest.$ac_objext'
1660 { (eval echo "$as_me:1660: \"$ac_try\"") >&5
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit $ac_status); }; }; then
1667 echo "$as_me: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 rm -f conftest.$ac_objext conftest.$ac_ext
1673 if test -n "$ac_declaration"; then
1674 echo '#ifdef __cplusplus' >>confdefs.h
1675 echo $ac_declaration >>confdefs.h
1676 echo '#endif' >>confdefs.h
1680 echo "$as_me: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1683 rm -f conftest.$ac_objext conftest.$ac_ext
1685 ac_cpp='$CPP $CPPFLAGS'
1686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1689 ac_main_return=return
1692 if test "$GCC" = yes ; then
1693 echo "$as_me:1693: checking version of $CC" >&5
1694 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1695 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1696 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1697 echo "$as_me:1697: result: $GCC_VERSION" >&5
1698 echo "${ECHO_T}$GCC_VERSION" >&6
1701 echo "$as_me:1701: checking for $CC option to accept ANSI C" >&5
1702 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1703 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 ac_cv_prog_cc_stdc=no
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1713 #include <sys/types.h>
1714 #include <sys/stat.h>
1715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1716 struct buf { int x; };
1717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1718 static char *e (p, i)
1724 static char *f (char * (*g) (char **, int), char **p, ...)
1729 s = g (p, va_arg (v,int));
1733 int test (int i, double x);
1734 struct s1 {int (*f) (int a);};
1735 struct s2 {int (*f) (double a);};
1736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1747 # Don't try gcc -ansi; that turns off useful extensions and
1748 # breaks some systems' header files.
1749 # AIX -qlanglvl=ansi
1750 # Ultrix and OSF/1 -std1
1751 # HP-UX 10.20 and later -Ae
1752 # HP-UX older versions -Aa -D_HPUX_SOURCE
1753 # SVR4 -Xc -D__EXTENSIONS__
1754 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1756 CC="$ac_save_CC $ac_arg"
1757 rm -f conftest.$ac_objext
1758 if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759 (eval $ac_compile) 2>&5
1761 echo "$as_me:1761: \$? = $ac_status" >&5
1762 (exit $ac_status); } &&
1763 { ac_try='test -s conftest.$ac_objext'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1769 ac_cv_prog_cc_stdc=$ac_arg
1772 echo "$as_me: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 rm -f conftest.$ac_objext
1777 rm -f conftest.$ac_ext conftest.$ac_objext
1782 case "x$ac_cv_prog_cc_stdc" in
1784 echo "$as_me:1784: result: none needed" >&5
1785 echo "${ECHO_T}none needed" >&6 ;;
1787 echo "$as_me:1787: result: $ac_cv_prog_cc_stdc" >&5
1788 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1789 CC="$CC $ac_cv_prog_cc_stdc" ;;
1792 # This should have been defined by AC_PROG_CC
1795 echo "$as_me:1795: checking \$CC variable" >&5
1796 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1799 echo "$as_me:1799: result: broken" >&5
1800 echo "${ECHO_T}broken" >&6
1801 { echo "$as_me:1801: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1802 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1804 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1805 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1810 cf_new_extra_cppflags=
1812 for cf_add_cflags in $cf_flags
1814 case $cf_fix_cppflags in
1816 case $cf_add_cflags in #(vi
1817 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1818 case $cf_add_cflags in
1820 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1822 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1823 && test -z "${cf_tst_cflags}" \
1824 && cf_fix_cppflags=yes
1826 if test $cf_fix_cppflags = yes ; then
1827 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1829 elif test "${cf_tst_cflags}" = "\"'" ; then
1830 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1836 *$cf_add_cflags) #(vi
1839 case $cf_add_cflags in #(vi
1841 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1843 CPPFLAGS=`echo "$CPPFLAGS" | \
1844 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1845 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1849 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1854 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1859 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1861 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1863 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1864 && test -z "${cf_tst_cflags}" \
1865 && cf_fix_cppflags=no
1870 if test -n "$cf_new_cflags" ; then
1872 CFLAGS="$CFLAGS $cf_new_cflags"
1875 if test -n "$cf_new_cppflags" ; then
1877 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1880 if test -n "$cf_new_extra_cppflags" ; then
1882 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1887 echo "$as_me:1887: result: ok" >&5
1888 echo "${ECHO_T}ok" >&6
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897 ac_main_return=return
1898 echo "$as_me:1898: checking how to run the C preprocessor" >&5
1899 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1900 # On Suns, sometimes $CPP names a directory.
1901 if test -n "$CPP" && test -d "$CPP"; then
1904 if test -z "$CPP"; then
1905 if test "${ac_cv_prog_CPP+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 # Double quotes because CPP needs to be expanded
1909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1912 for ac_c_preproc_warn_flag in '' yes
1914 # Use a header file that comes with gcc, so configuring glibc
1915 # with a fresh cross-compiler works.
1916 # On the NeXT, cc -E runs the code through the compiler's parser,
1917 # not just through cpp. "Syntax error" is here to catch this case.
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line 1919 "configure"
1920 #include "confdefs.h"
1924 if { (eval echo "$as_me:1924: \"$ac_cpp conftest.$ac_ext\"") >&5
1925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1927 egrep -v '^ *\+' conftest.er1 >conftest.err
1929 cat conftest.err >&5
1930 echo "$as_me:1930: \$? = $ac_status" >&5
1931 (exit $ac_status); } >/dev/null; then
1932 if test -s conftest.err; then
1933 ac_cpp_err=$ac_c_preproc_warn_flag
1940 if test -z "$ac_cpp_err"; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1945 # Broken: fails on valid input.
1948 rm -f conftest.err conftest.$ac_ext
1950 # OK, works on sane cases. Now check whether non-existent headers
1951 # can be detected and how.
1952 cat >conftest.$ac_ext <<_ACEOF
1953 #line 1953 "configure"
1954 #include "confdefs.h"
1955 #include <ac_nonexistent.h>
1957 if { (eval echo "$as_me:1957: \"$ac_cpp conftest.$ac_ext\"") >&5
1958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1960 egrep -v '^ *\+' conftest.er1 >conftest.err
1962 cat conftest.err >&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); } >/dev/null; then
1965 if test -s conftest.err; then
1966 ac_cpp_err=$ac_c_preproc_warn_flag
1973 if test -z "$ac_cpp_err"; then
1974 # Broken: success on invalid input.
1977 echo "$as_me: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 # Passes both tests.
1983 rm -f conftest.err conftest.$ac_ext
1986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1987 rm -f conftest.err conftest.$ac_ext
1988 if $ac_preproc_ok; then
2000 echo "$as_me:2000: result: $CPP" >&5
2001 echo "${ECHO_T}$CPP" >&6
2003 for ac_c_preproc_warn_flag in '' yes
2005 # Use a header file that comes with gcc, so configuring glibc
2006 # with a fresh cross-compiler works.
2007 # On the NeXT, cc -E runs the code through the compiler's parser,
2008 # not just through cpp. "Syntax error" is here to catch this case.
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line 2010 "configure"
2011 #include "confdefs.h"
2015 if { (eval echo "$as_me:2015: \"$ac_cpp conftest.$ac_ext\"") >&5
2016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2018 egrep -v '^ *\+' conftest.er1 >conftest.err
2020 cat conftest.err >&5
2021 echo "$as_me:2021: \$? = $ac_status" >&5
2022 (exit $ac_status); } >/dev/null; then
2023 if test -s conftest.err; then
2024 ac_cpp_err=$ac_c_preproc_warn_flag
2031 if test -z "$ac_cpp_err"; then
2034 echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 # Broken: fails on valid input.
2039 rm -f conftest.err conftest.$ac_ext
2041 # OK, works on sane cases. Now check whether non-existent headers
2042 # can be detected and how.
2043 cat >conftest.$ac_ext <<_ACEOF
2044 #line 2044 "configure"
2045 #include "confdefs.h"
2046 #include <ac_nonexistent.h>
2048 if { (eval echo "$as_me:2048: \"$ac_cpp conftest.$ac_ext\"") >&5
2049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2051 egrep -v '^ *\+' conftest.er1 >conftest.err
2053 cat conftest.err >&5
2054 echo "$as_me:2054: \$? = $ac_status" >&5
2055 (exit $ac_status); } >/dev/null; then
2056 if test -s conftest.err; then
2057 ac_cpp_err=$ac_c_preproc_warn_flag
2064 if test -z "$ac_cpp_err"; then
2065 # Broken: success on invalid input.
2068 echo "$as_me: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 # Passes both tests.
2074 rm -f conftest.err conftest.$ac_ext
2077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2078 rm -f conftest.err conftest.$ac_ext
2079 if $ac_preproc_ok; then
2082 { { echo "$as_me:2082: error: C preprocessor \"$CPP\" fails sanity check" >&5
2083 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2084 { (exit 1); exit 1; }; }
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 ac_main_return=return
2094 if test $ac_cv_c_compiler_gnu = yes; then
2095 echo "$as_me:2095: checking whether $CC needs -traditional" >&5
2096 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2097 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_pattern="Autoconf.*'x'"
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2105 int Autoconf = TIOCGETP;
2107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2108 egrep "$ac_pattern" >/dev/null 2>&1; then
2109 ac_cv_prog_gcc_traditional=yes
2111 ac_cv_prog_gcc_traditional=no
2115 if test $ac_cv_prog_gcc_traditional = no; then
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2120 int Autoconf = TCGETA;
2122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123 egrep "$ac_pattern" >/dev/null 2>&1; then
2124 ac_cv_prog_gcc_traditional=yes
2130 echo "$as_me:2130: result: $ac_cv_prog_gcc_traditional" >&5
2131 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2132 if test $ac_cv_prog_gcc_traditional = yes; then
2133 CC="$CC -traditional"
2137 echo "$as_me:2137: checking whether $CC understands -c and -o together" >&5
2138 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2139 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 cat > conftest.$ac_ext <<CF_EOF
2147 ${cf_cv_main_return:-return}(0);
2150 # We do the test twice because some compilers refuse to overwrite an
2151 # existing .o file with -o, though they will create one.
2152 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2153 if { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 test -f conftest2.$ac_objext && { (eval echo "$as_me:2158: \"$ac_try\"") >&5
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit $ac_status); };
2164 eval cf_cv_prog_CC_c_o=yes
2166 eval cf_cv_prog_CC_c_o=no
2171 if test $cf_cv_prog_CC_c_o = yes; then
2172 echo "$as_me:2172: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6
2175 echo "$as_me:2175: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 test "$program_prefix" != NONE &&
2180 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2181 # Use a double $ so make ignores it.
2182 test "$program_suffix" != NONE &&
2183 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2184 # Double any \ or $. echo might interpret backslashes.
2185 # By default was `s,x,x', remove it if useless.
2186 cat <<\_ACEOF >conftest.sed
2187 s/[\\$]/&&/g;s/;s,x,x,$//
2189 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2192 for ac_prog in mawk gawk nawk awk
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 echo "$as_me:2196: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_AWK+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$AWK"; then
2202 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2204 ac_save_IFS=$IFS; IFS=$ac_path_separator
2206 for ac_dir in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir=.
2209 $as_executable_p "$ac_dir/$ac_word" || continue
2210 ac_cv_prog_AWK="$ac_prog"
2211 echo "$as_me:2211: found $ac_dir/$ac_word" >&5
2218 if test -n "$AWK"; then
2219 echo "$as_me:2219: result: $AWK" >&5
2220 echo "${ECHO_T}$AWK" >&6
2222 echo "$as_me:2222: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2226 test -n "$AWK" && break
2229 test -z "$AWK" && { { echo "$as_me:2229: error: No awk program found" >&5
2230 echo "$as_me: error: No awk program found" >&2;}
2231 { (exit 1); exit 1; }; }
2233 echo "$as_me:2233: checking for egrep" >&5
2234 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2235 if test "${ac_cv_prog_egrep+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2239 then ac_cv_prog_egrep='grep -E'
2240 else ac_cv_prog_egrep='egrep'
2243 echo "$as_me:2243: result: $ac_cv_prog_egrep" >&5
2244 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2245 EGREP=$ac_cv_prog_egrep
2247 test -z "$EGREP" && { { echo "$as_me:2247: error: No egrep program found" >&5
2248 echo "$as_me: error: No egrep program found" >&2;}
2249 { (exit 1); exit 1; }; }
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # ./install, which can be erroneously created by make from ./install.sh.
2263 echo "$as_me:2263: checking for a BSD compatible install" >&5
2264 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2265 if test -z "$INSTALL"; then
2266 if test "${ac_cv_path_install+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 ac_save_IFS=$IFS; IFS=$ac_path_separator
2270 for ac_dir in $PATH; do
2272 # Account for people who put trailing slashes in PATH elements.
2274 / | ./ | .// | /cC/* \
2275 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2278 # OSF1 and SCO ODT 3.0 have their own names for install.
2279 # Don't use installbsd from OSF since it installs stuff as root
2281 for ac_prog in ginstall scoinst install; do
2282 if $as_executable_p "$ac_dir/$ac_prog"; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 ac_cv_path_install="$ac_dir/$ac_prog -c"
2302 if test "${ac_cv_path_install+set}" = set; then
2303 INSTALL=$ac_cv_path_install
2305 # As a last resort, use the slow shell script. We don't cache a
2306 # path for INSTALL within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the path is relative.
2309 INSTALL=$ac_install_sh
2312 echo "$as_me:2312: result: $INSTALL" >&5
2313 echo "${ECHO_T}$INSTALL" >&6
2315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316 # It thinks the first close brace ends the variable substitution.
2317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2323 echo "$as_me:2323: checking whether ln -s works" >&5
2324 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2326 if test "$LN_S" = "ln -s"; then
2327 echo "$as_me:2327: result: yes" >&5
2328 echo "${ECHO_T}yes" >&6
2330 echo "$as_me:2330: result: no, using $LN_S" >&5
2331 echo "${ECHO_T}no, using $LN_S" >&6
2334 echo "$as_me:2334: checking if $LN_S -f options work" >&5
2335 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2337 rm -f conf$$.src conf$$dst
2339 echo first >conf$$.src
2340 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2345 rm -f conf$$.dst conf$$src
2346 echo "$as_me:2346: result: $cf_prog_ln_sf" >&5
2347 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2349 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2351 echo "$as_me:2351: checking for long file names" >&5
2352 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2353 if test "${ac_cv_sys_long_file_names+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 ac_cv_sys_long_file_names=yes
2357 # Test for long file names in all the places we know might matter:
2358 # . the current directory, where building will happen
2359 # $prefix/lib where we will be installing things
2360 # $exec_prefix/lib likewise
2361 # eval it to expand exec_prefix.
2362 # $TMPDIR if set, where it might want to write temporary files
2363 # if $TMPDIR is not set:
2364 # /tmp where it might want to write temporary files
2367 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2370 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2372 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2373 test -d $ac_dir || continue
2374 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2375 ac_xdir=$ac_dir/cf$$
2376 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2377 ac_tf1=$ac_xdir/conftest9012345
2378 ac_tf2=$ac_xdir/conftest9012346
2379 (echo 1 >$ac_tf1) 2>/dev/null
2380 (echo 2 >$ac_tf2) 2>/dev/null
2381 ac_val=`cat $ac_tf1 2>/dev/null`
2382 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2383 ac_cv_sys_long_file_names=no
2384 rm -rf $ac_xdir 2>/dev/null
2387 rm -rf $ac_xdir 2>/dev/null
2390 echo "$as_me:2390: result: $ac_cv_sys_long_file_names" >&5
2391 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2392 if test $ac_cv_sys_long_file_names = yes; then
2394 cat >>confdefs.h <<\EOF
2395 #define HAVE_LONG_FILE_NAMES 1
2400 # if we find pkg-config, check if we should install the ".pc" files.
2402 echo "$as_me:2402: checking if you want to use pkg-config" >&5
2403 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2405 # Check whether --with-pkg-config or --without-pkg-config was given.
2406 if test "${with_pkg_config+set}" = set; then
2407 withval="$with_pkg_config"
2408 cf_pkg_config=$withval
2412 echo "$as_me:2412: result: $cf_pkg_config" >&5
2413 echo "${ECHO_T}$cf_pkg_config" >&6
2415 case $cf_pkg_config in #(vi
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2424 echo "$as_me:2424: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2434 ac_save_IFS=$IFS; IFS=$ac_path_separator
2436 for ac_dir in $ac_dummy; do
2438 test -z "$ac_dir" && ac_dir=.
2439 if $as_executable_p "$ac_dir/$ac_word"; then
2440 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2441 echo "$as_me:2441: found $ac_dir/$ac_word" >&5
2449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2451 if test -n "$PKG_CONFIG"; then
2452 echo "$as_me:2452: result: $PKG_CONFIG" >&5
2453 echo "${ECHO_T}$PKG_CONFIG" >&6
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2460 if test -z "$ac_cv_path_PKG_CONFIG"; then
2461 ac_pt_PKG_CONFIG=$PKG_CONFIG
2462 # Extract the first word of "pkg-config", so it can be a program name with args.
2463 set dummy pkg-config; ac_word=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 case $ac_pt_PKG_CONFIG in
2471 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2474 ac_save_IFS=$IFS; IFS=$ac_path_separator
2476 for ac_dir in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir=.
2479 if $as_executable_p "$ac_dir/$ac_word"; then
2480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2486 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2490 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2492 if test -n "$ac_pt_PKG_CONFIG"; then
2493 echo "$as_me:2493: result: $ac_pt_PKG_CONFIG" >&5
2494 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2496 echo "$as_me:2496: result: no" >&5
2497 echo "${ECHO_T}no" >&6
2500 PKG_CONFIG=$ac_pt_PKG_CONFIG
2502 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2511 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2512 if test "$PKG_CONFIG" != none ; then
2514 if test "x$prefix" != xNONE; then
2515 cf_path_syntax="$prefix"
2517 cf_path_syntax="$ac_default_prefix"
2520 case ".$PKG_CONFIG" in #(vi
2521 .\$\(*\)*|.\'*\'*) #(vi
2525 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2527 .\${*prefix}*|.\${*dir}*) #(vi
2528 eval PKG_CONFIG="$PKG_CONFIG"
2529 case ".$PKG_CONFIG" in #(vi
2531 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2536 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2539 { { echo "$as_me:2539: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2540 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2541 { (exit 1); exit 1; }; }
2547 if test "$PKG_CONFIG" != none ; then
2548 echo "$as_me:2548: checking for $PKG_CONFIG library directory" >&5
2549 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2551 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2552 if test "${with_pkg_config_libdir+set}" = set; then
2553 withval="$with_pkg_config_libdir"
2554 PKG_CONFIG_LIBDIR=$withval
2556 PKG_CONFIG_LIBDIR=yes
2559 case x$PKG_CONFIG_LIBDIR in #(vi
2563 # look for the library directory using the same prefix as the executable
2564 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2565 case x`(arch) 2>/dev/null` in #(vi
2567 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
2569 if test -d $cf_config/pkgconfig
2571 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2577 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
2585 echo "$as_me:2585: result: $PKG_CONFIG_LIBDIR" >&5
2586 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2589 if test "$PKG_CONFIG" != none ; then
2590 echo "$as_me:2590: checking if we should install .pc files for $PKG_CONFIG" >&5
2591 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2593 # Check whether --enable-pc-files or --disable-pc-files was given.
2594 if test "${enable_pc_files+set}" = set; then
2595 enableval="$enable_pc_files"
2596 enable_pc_files=$enableval
2600 echo "$as_me:2600: result: $enable_pc_files" >&5
2601 echo "${ECHO_T}$enable_pc_files" >&6
2602 if test "$enable_pc_files" != no
2605 if test "x$prefix" != xNONE; then
2606 cf_path_syntax="$prefix"
2608 cf_path_syntax="$ac_default_prefix"
2611 case ".$PKG_CONFIG_LIBDIR" in #(vi
2612 .\$\(*\)*|.\'*\'*) #(vi
2616 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2618 .\${*prefix}*|.\${*dir}*) #(vi
2619 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2620 case ".$PKG_CONFIG_LIBDIR" in #(vi
2622 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2627 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2630 { { echo "$as_me:2630: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
2631 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
2632 { (exit 1); exit 1; }; }
2641 echo "$as_me:2641: checking if you want to build test-programs" >&5
2642 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2644 # Check whether --with-tests or --without-tests was given.
2645 if test "${with_tests+set}" = set; then
2646 withval="$with_tests"
2647 cf_with_tests=$withval
2651 echo "$as_me:2651: result: $cf_with_tests" >&5
2652 echo "${ECHO_T}$cf_with_tests" >&6
2654 echo "$as_me:2654: checking if we should assume mixed-case filenames" >&5
2655 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2657 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2658 if test "${enable_mixed_case+set}" = set; then
2659 enableval="$enable_mixed_case"
2660 enable_mixedcase=$enableval
2662 enable_mixedcase=auto
2664 echo "$as_me:2664: result: $enable_mixedcase" >&5
2665 echo "${ECHO_T}$enable_mixedcase" >&6
2666 if test "$enable_mixedcase" = "auto" ; then
2668 echo "$as_me:2668: checking if filesystem supports mixed-case filenames" >&5
2669 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2670 if test "${cf_cv_mixedcase+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test "$cross_compiling" = yes ; then
2675 case $target_alias in #(vi
2676 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2684 rm -f conftest CONFTEST
2686 if test -f CONFTEST ; then
2691 rm -f conftest CONFTEST
2695 echo "$as_me:2695: result: $cf_cv_mixedcase" >&5
2696 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2697 test "$cf_cv_mixedcase" = yes &&
2698 cat >>confdefs.h <<\EOF
2699 #define MIXEDCASE_FILENAMES 1
2703 cf_cv_mixedcase=$enable_mixedcase
2704 if test "$enable_mixedcase" = "yes" ; then
2705 cat >>confdefs.h <<\EOF
2706 #define MIXEDCASE_FILENAMES 1
2712 # do this after mixed-case option (tags/TAGS is not as important as tic).
2713 echo "$as_me:2713: checking whether ${MAKE-make} sets \${MAKE}" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 cat >conftest.make <<\EOF
2721 @echo 'ac_maketemp="${MAKE}"'
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2728 eval ac_cv_prog_make_${ac_make}_set=no
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:2733: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2737 echo "$as_me:2737: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 for ac_prog in exctags ctags
2744 # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy $ac_prog; ac_word=$2
2746 echo "$as_me:2746: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2748 if test "${ac_cv_prog_CTAGS+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 if test -n "$CTAGS"; then
2752 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2754 ac_save_IFS=$IFS; IFS=$ac_path_separator
2756 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 $as_executable_p "$ac_dir/$ac_word" || continue
2760 ac_cv_prog_CTAGS="$ac_prog"
2761 echo "$as_me:2761: found $ac_dir/$ac_word" >&5
2767 CTAGS=$ac_cv_prog_CTAGS
2768 if test -n "$CTAGS"; then
2769 echo "$as_me:2769: result: $CTAGS" >&5
2770 echo "${ECHO_T}$CTAGS" >&6
2772 echo "$as_me:2772: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2776 test -n "$CTAGS" && break
2779 for ac_prog in exetags etags
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 echo "$as_me:2783: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2785 if test "${ac_cv_prog_ETAGS+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$ETAGS"; then
2789 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2791 ac_save_IFS=$IFS; IFS=$ac_path_separator
2793 for ac_dir in $ac_dummy; do
2795 test -z "$ac_dir" && ac_dir=.
2796 $as_executable_p "$ac_dir/$ac_word" || continue
2797 ac_cv_prog_ETAGS="$ac_prog"
2798 echo "$as_me:2798: found $ac_dir/$ac_word" >&5
2804 ETAGS=$ac_cv_prog_ETAGS
2805 if test -n "$ETAGS"; then
2806 echo "$as_me:2806: result: $ETAGS" >&5
2807 echo "${ECHO_T}$ETAGS" >&6
2809 echo "$as_me:2809: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2813 test -n "$ETAGS" && break
2816 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2817 set dummy ${CTAGS:-ctags}; ac_word=$2
2818 echo "$as_me:2818: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 if test -n "$MAKE_LOWER_TAGS"; then
2824 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2826 ac_save_IFS=$IFS; IFS=$ac_path_separator
2828 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=.
2831 $as_executable_p "$ac_dir/$ac_word" || continue
2832 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2833 echo "$as_me:2833: found $ac_dir/$ac_word" >&5
2837 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2840 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2841 if test -n "$MAKE_LOWER_TAGS"; then
2842 echo "$as_me:2842: result: $MAKE_LOWER_TAGS" >&5
2843 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2845 echo "$as_me:2845: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2849 if test "$cf_cv_mixedcase" = yes ; then
2850 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2851 set dummy ${ETAGS:-etags}; ac_word=$2
2852 echo "$as_me:2852: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -n "$MAKE_UPPER_TAGS"; then
2858 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2860 ac_save_IFS=$IFS; IFS=$ac_path_separator
2862 for ac_dir in $ac_dummy; do
2864 test -z "$ac_dir" && ac_dir=.
2865 $as_executable_p "$ac_dir/$ac_word" || continue
2866 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2867 echo "$as_me:2867: found $ac_dir/$ac_word" >&5
2871 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2874 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2875 if test -n "$MAKE_UPPER_TAGS"; then
2876 echo "$as_me:2876: result: $MAKE_UPPER_TAGS" >&5
2877 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2879 echo "$as_me:2879: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2887 if test "$MAKE_UPPER_TAGS" = yes ; then
2893 if test "$MAKE_LOWER_TAGS" = yes ; then
2899 echo "$as_me:2899: checking for makeflags variable" >&5
2900 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2901 if test "${cf_cv_makeflags+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2908 cat >cf_makeflags.tmp <<CF_EOF
2911 @ echo '.$cf_option'
2913 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2914 case "$cf_result" in
2916 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2917 case "$cf_result" in
2918 .*CC=*) cf_cv_makeflags=
2920 *) cf_cv_makeflags=$cf_option
2926 *) echo "given option \"$cf_option\", no match \"$cf_result\""
2930 rm -f cf_makeflags.tmp
2933 echo "$as_me:2933: result: $cf_cv_makeflags" >&5
2934 echo "${ECHO_T}$cf_cv_makeflags" >&6
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2939 echo "$as_me:2939: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_RANLIB+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$RANLIB"; then
2945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2947 ac_save_IFS=$IFS; IFS=$ac_path_separator
2949 for ac_dir in $ac_dummy; do
2951 test -z "$ac_dir" && ac_dir=.
2952 $as_executable_p "$ac_dir/$ac_word" || continue
2953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2954 echo "$as_me:2954: found $ac_dir/$ac_word" >&5
2960 RANLIB=$ac_cv_prog_RANLIB
2961 if test -n "$RANLIB"; then
2962 echo "$as_me:2962: result: $RANLIB" >&5
2963 echo "${ECHO_T}$RANLIB" >&6
2965 echo "$as_me:2965: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2970 if test -z "$ac_cv_prog_RANLIB"; then
2971 ac_ct_RANLIB=$RANLIB
2972 # Extract the first word of "ranlib", so it can be a program name with args.
2973 set dummy ranlib; ac_word=$2
2974 echo "$as_me:2974: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$ac_ct_RANLIB"; then
2980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2982 ac_save_IFS=$IFS; IFS=$ac_path_separator
2984 for ac_dir in $ac_dummy; do
2986 test -z "$ac_dir" && ac_dir=.
2987 $as_executable_p "$ac_dir/$ac_word" || continue
2988 ac_cv_prog_ac_ct_RANLIB="ranlib"
2989 echo "$as_me:2989: found $ac_dir/$ac_word" >&5
2993 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
2996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2997 if test -n "$ac_ct_RANLIB"; then
2998 echo "$as_me:2998: result: $ac_ct_RANLIB" >&5
2999 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3001 echo "$as_me:3001: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 RANLIB=$ac_ct_RANLIB
3007 RANLIB="$ac_cv_prog_RANLIB"
3010 if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3012 set dummy ${ac_tool_prefix}ld; ac_word=$2
3013 echo "$as_me:3013: checking for $ac_word" >&5
3014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3015 if test "${ac_cv_prog_LD+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 if test -n "$LD"; then
3019 ac_cv_prog_LD="$LD" # Let the user override the test.
3021 ac_save_IFS=$IFS; IFS=$ac_path_separator
3023 for ac_dir in $ac_dummy; do
3025 test -z "$ac_dir" && ac_dir=.
3026 $as_executable_p "$ac_dir/$ac_word" || continue
3027 ac_cv_prog_LD="${ac_tool_prefix}ld"
3028 echo "$as_me:3028: found $ac_dir/$ac_word" >&5
3035 if test -n "$LD"; then
3036 echo "$as_me:3036: result: $LD" >&5
3037 echo "${ECHO_T}$LD" >&6
3039 echo "$as_me:3039: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3044 if test -z "$ac_cv_prog_LD"; then
3046 # Extract the first word of "ld", so it can be a program name with args.
3047 set dummy ld; ac_word=$2
3048 echo "$as_me:3048: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 if test -n "$ac_ct_LD"; then
3054 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3056 ac_save_IFS=$IFS; IFS=$ac_path_separator
3058 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 $as_executable_p "$ac_dir/$ac_word" || continue
3062 ac_cv_prog_ac_ct_LD="ld"
3063 echo "$as_me:3063: found $ac_dir/$ac_word" >&5
3067 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3070 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3071 if test -n "$ac_ct_LD"; then
3072 echo "$as_me:3072: result: $ac_ct_LD" >&5
3073 echo "${ECHO_T}$ac_ct_LD" >&6
3075 echo "$as_me:3075: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}ar; ac_word=$2
3087 echo "$as_me:3087: checking for $ac_word" >&5
3088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089 if test "${ac_cv_prog_AR+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 if test -n "$AR"; then
3093 ac_cv_prog_AR="$AR" # Let the user override the test.
3095 ac_save_IFS=$IFS; IFS=$ac_path_separator
3097 for ac_dir in $ac_dummy; do
3099 test -z "$ac_dir" && ac_dir=.
3100 $as_executable_p "$ac_dir/$ac_word" || continue
3101 ac_cv_prog_AR="${ac_tool_prefix}ar"
3102 echo "$as_me:3102: found $ac_dir/$ac_word" >&5
3109 if test -n "$AR"; then
3110 echo "$as_me:3110: result: $AR" >&5
3111 echo "${ECHO_T}$AR" >&6
3113 echo "$as_me:3113: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3118 if test -z "$ac_cv_prog_AR"; then
3120 # Extract the first word of "ar", so it can be a program name with args.
3121 set dummy ar; ac_word=$2
3122 echo "$as_me:3122: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3130 ac_save_IFS=$IFS; IFS=$ac_path_separator
3132 for ac_dir in $ac_dummy; do
3134 test -z "$ac_dir" && ac_dir=.
3135 $as_executable_p "$ac_dir/$ac_word" || continue
3136 ac_cv_prog_ac_ct_AR="ar"
3137 echo "$as_me:3137: found $ac_dir/$ac_word" >&5
3141 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145 if test -n "$ac_ct_AR"; then
3146 echo "$as_me:3146: result: $ac_ct_AR" >&5
3147 echo "${ECHO_T}$ac_ct_AR" >&6
3149 echo "$as_me:3149: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}ar; ac_word=$2
3161 echo "$as_me:3161: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_AR+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$AR"; then
3167 ac_cv_prog_AR="$AR" # Let the user override the test.
3169 ac_save_IFS=$IFS; IFS=$ac_path_separator
3171 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 $as_executable_p "$ac_dir/$ac_word" || continue
3175 ac_cv_prog_AR="${ac_tool_prefix}ar"
3176 echo "$as_me:3176: found $ac_dir/$ac_word" >&5
3183 if test -n "$AR"; then
3184 echo "$as_me:3184: result: $AR" >&5
3185 echo "${ECHO_T}$AR" >&6
3187 echo "$as_me:3187: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3192 if test -z "$ac_cv_prog_AR"; then
3194 # Extract the first word of "ar", so it can be a program name with args.
3195 set dummy ar; ac_word=$2
3196 echo "$as_me:3196: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 if test -n "$ac_ct_AR"; then
3202 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3204 ac_save_IFS=$IFS; IFS=$ac_path_separator
3206 for ac_dir in $ac_dummy; do
3208 test -z "$ac_dir" && ac_dir=.
3209 $as_executable_p "$ac_dir/$ac_word" || continue
3210 ac_cv_prog_ac_ct_AR="ar"
3211 echo "$as_me:3211: found $ac_dir/$ac_word" >&5
3215 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3218 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3219 if test -n "$ac_ct_AR"; then
3220 echo "$as_me:3220: result: $ac_ct_AR" >&5
3221 echo "${ECHO_T}$ac_ct_AR" >&6
3223 echo "$as_me:3223: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3232 echo "$as_me:3232: checking for options to update archives" >&5
3233 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3234 if test "${cf_cv_ar_flags+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 cf_cv_ar_flags=unknown
3239 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3242 # check if $ARFLAGS already contains this choice
3243 if test "x$ARFLAGS" != "x" ; then
3244 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3245 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3251 rm -f conftest.$ac_cv_objext
3254 cat >conftest.$ac_ext <<EOF
3255 #line 3255 "configure"
3256 int testdata[3] = { 123, 456, 789 };
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } ; then
3263 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3264 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3265 if test -f conftest.a ; then
3266 cf_cv_ar_flags=$cf_ar_flags
3270 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3272 echo "${as_me:-configure}:3272: testing cannot compile test-program ..." 1>&5
3277 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3280 echo "$as_me:3280: result: $cf_cv_ar_flags" >&5
3281 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3283 if test -n "$ARFLAGS" ; then
3284 if test -n "$cf_cv_ar_flags" ; then
3285 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3288 ARFLAGS=$cf_cv_ar_flags
3291 echo "$as_me:3291: checking for PATH separator" >&5
3292 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3293 case $cf_cv_system_name in
3294 os2*) PATH_SEPARATOR=';' ;;
3295 *) ${PATH_SEPARATOR:=':'} ;;
3298 echo "$as_me:3298: result: $PATH_SEPARATOR" >&5
3299 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3301 echo "$as_me:3301: checking if you have specified an install-prefix" >&5
3302 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3304 # Check whether --with-install-prefix or --without-install-prefix was given.
3305 if test "${with_install_prefix+set}" = set; then
3306 withval="$with_install_prefix"
3307 case "$withval" in #(vi
3310 *) DESTDIR="$withval"
3314 echo "$as_me:3314: result: $DESTDIR" >&5
3315 echo "${ECHO_T}$DESTDIR" >&6
3317 ###############################################################################
3319 # If we're cross-compiling, allow the user to override the tools and their
3320 # options. The configure script is oriented toward identifying the host
3321 # compiler, etc., but we need a build compiler to generate parts of the source.
3323 if test "$cross_compiling" = yes ; then
3325 # defaults that we might want to override
3326 : ${BUILD_CFLAGS:=''}
3327 : ${BUILD_CPPFLAGS:=''}
3328 : ${BUILD_LDFLAGS:=''}
3330 : ${BUILD_EXEEXT:='$x'}
3331 : ${BUILD_OBJEXT:='o'}
3333 # Check whether --with-build-cc or --without-build-cc was given.
3334 if test "${with_build_cc+set}" = set; then
3335 withval="$with_build_cc"
3338 for ac_prog in gcc cc cl
3340 # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 echo "$as_me:3342: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$BUILD_CC"; then
3348 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3350 ac_save_IFS=$IFS; IFS=$ac_path_separator
3352 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 $as_executable_p "$ac_dir/$ac_word" || continue
3356 ac_cv_prog_BUILD_CC="$ac_prog"
3357 echo "$as_me:3357: found $ac_dir/$ac_word" >&5
3363 BUILD_CC=$ac_cv_prog_BUILD_CC
3364 if test -n "$BUILD_CC"; then
3365 echo "$as_me:3365: result: $BUILD_CC" >&5
3366 echo "${ECHO_T}$BUILD_CC" >&6
3368 echo "$as_me:3368: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3372 test -n "$BUILD_CC" && break
3376 echo "$as_me:3376: checking for native build C compiler" >&5
3377 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3378 echo "$as_me:3378: result: $BUILD_CC" >&5
3379 echo "${ECHO_T}$BUILD_CC" >&6
3381 echo "$as_me:3381: checking for native build C preprocessor" >&5
3382 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3384 # Check whether --with-build-cpp or --without-build-cpp was given.
3385 if test "${with_build_cpp+set}" = set; then
3386 withval="$with_build_cpp"
3387 BUILD_CPP="$withval"
3389 BUILD_CPP='${BUILD_CC} -E'
3391 echo "$as_me:3391: result: $BUILD_CPP" >&5
3392 echo "${ECHO_T}$BUILD_CPP" >&6
3394 echo "$as_me:3394: checking for native build C flags" >&5
3395 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3397 # Check whether --with-build-cflags or --without-build-cflags was given.
3398 if test "${with_build_cflags+set}" = set; then
3399 withval="$with_build_cflags"
3400 BUILD_CFLAGS="$withval"
3402 echo "$as_me:3402: result: $BUILD_CFLAGS" >&5
3403 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3405 echo "$as_me:3405: checking for native build C preprocessor-flags" >&5
3406 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3408 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3409 if test "${with_build_cppflags+set}" = set; then
3410 withval="$with_build_cppflags"
3411 BUILD_CPPFLAGS="$withval"
3413 echo "$as_me:3413: result: $BUILD_CPPFLAGS" >&5
3414 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3416 echo "$as_me:3416: checking for native build linker-flags" >&5
3417 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3419 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3420 if test "${with_build_ldflags+set}" = set; then
3421 withval="$with_build_ldflags"
3422 BUILD_LDFLAGS="$withval"
3424 echo "$as_me:3424: result: $BUILD_LDFLAGS" >&5
3425 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3427 echo "$as_me:3427: checking for native build linker-libraries" >&5
3428 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3430 # Check whether --with-build-libs or --without-build-libs was given.
3431 if test "${with_build_libs+set}" = set; then
3432 withval="$with_build_libs"
3433 BUILD_LIBS="$withval"
3435 echo "$as_me:3435: result: $BUILD_LIBS" >&5
3436 echo "${ECHO_T}$BUILD_LIBS" >&6
3438 # this assumes we're on Unix.
3442 : ${BUILD_CC:='${CC}'}
3444 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3445 { { echo "$as_me:3445: error: Cross-build requires two compilers.
3446 Use --with-build-cc to specify the native compiler." >&5
3447 echo "$as_me: error: Cross-build requires two compilers.
3448 Use --with-build-cc to specify the native compiler." >&2;}
3449 { (exit 1); exit 1; }; }
3453 : ${BUILD_CC:='${CC}'}
3454 : ${BUILD_CPP:='${CPP}'}
3455 : ${BUILD_CFLAGS:='${CFLAGS}'}
3456 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3457 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3458 : ${BUILD_LIBS:='${LIBS}'}
3459 : ${BUILD_EXEEXT:='$x'}
3460 : ${BUILD_OBJEXT:='o'}
3463 ###############################################################################
3465 ### Options to allow the user to specify the set of libraries which are used.
3466 ### Use "--without-normal --with-shared" to allow the default model to be
3467 ### shared, for example.
3470 echo "$as_me:3470: checking if you want to build shared C-objects" >&5
3471 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3473 # Check whether --with-shared or --without-shared was given.
3474 if test "${with_shared+set}" = set; then
3475 withval="$with_shared"
3476 with_shared=$withval
3480 echo "$as_me:3480: result: $with_shared" >&5
3481 echo "${ECHO_T}$with_shared" >&6
3482 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3484 echo "$as_me:3484: checking for specified models" >&5
3485 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3486 test -z "$cf_list_models" && cf_list_models=normal
3487 echo "$as_me:3487: result: $cf_list_models" >&5
3488 echo "${ECHO_T}$cf_list_models" >&6
3490 ### Use the first model as the default, and save its suffix for use in building
3491 ### up test-applications.
3492 echo "$as_me:3492: checking for default model" >&5
3493 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3494 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3495 echo "$as_me:3495: result: $DFT_LWR_MODEL" >&5
3496 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3498 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3500 echo "$as_me:3500: checking for specific curses-directory" >&5
3501 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3503 # Check whether --with-curses-dir or --without-curses-dir was given.
3504 if test "${with_curses_dir+set}" = set; then
3505 withval="$with_curses_dir"
3506 cf_cv_curses_dir=$withval
3510 echo "$as_me:3510: result: $cf_cv_curses_dir" >&5
3511 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3513 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3516 if test "x$prefix" != xNONE; then
3517 cf_path_syntax="$prefix"
3519 cf_path_syntax="$ac_default_prefix"
3522 case ".$withval" in #(vi
3523 .\$\(*\)*|.\'*\'*) #(vi
3527 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3529 .\${*prefix}*|.\${*dir}*) #(vi
3530 eval withval="$withval"
3531 case ".$withval" in #(vi
3533 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3538 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3541 { { echo "$as_me:3541: error: expected a pathname, not \"$withval\"" >&5
3542 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3543 { (exit 1); exit 1; }; }
3547 if test -d "$cf_cv_curses_dir"
3550 if test -n "$cf_cv_curses_dir/include" ; then
3551 for cf_add_incdir in $cf_cv_curses_dir/include
3553 while test $cf_add_incdir != /usr/include
3555 if test -d $cf_add_incdir
3558 if test -n "$CFLAGS$CPPFLAGS" ; then
3559 # a loop is needed to ensure we can add subdirs of existing dirs
3560 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3561 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3562 cf_have_incdir=yes; break
3567 if test "$cf_have_incdir" = no ; then
3568 if test "$cf_add_incdir" = /usr/local/include ; then
3569 if test "$GCC" = yes
3571 cf_save_CPPFLAGS=$CPPFLAGS
3572 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3573 cat >conftest.$ac_ext <<_ACEOF
3574 #line 3574 "configure"
3575 #include "confdefs.h"
3585 rm -f conftest.$ac_objext
3586 if { (eval echo "$as_me:3586: \"$ac_compile\"") >&5
3587 (eval $ac_compile) 2>&5
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:3592: \"$ac_try\"") >&5
3595 echo "$as_me:3595: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3599 echo "$as_me: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3603 rm -f conftest.$ac_objext conftest.$ac_ext
3604 CPPFLAGS=$cf_save_CPPFLAGS
3609 if test "$cf_have_incdir" = no ; then
3610 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3612 echo "${as_me:-configure}:3612: testing adding $cf_add_incdir to include-path ..." 1>&5
3614 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3616 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3617 test "$cf_top_incdir" = "$cf_add_incdir" && break
3618 cf_add_incdir="$cf_top_incdir"
3627 if test -n "$cf_cv_curses_dir/lib" ; then
3628 for cf_add_libdir in $cf_cv_curses_dir/lib
3630 if test $cf_add_libdir = /usr/lib ; then
3632 elif test -d $cf_add_libdir
3635 if test -n "$LDFLAGS$LIBS" ; then
3636 # a loop is needed to ensure we can add subdirs of existing dirs
3637 for cf_test_libdir in $LDFLAGS $LIBS ; do
3638 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3639 cf_have_libdir=yes; break
3643 if test "$cf_have_libdir" = no ; then
3644 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3646 echo "${as_me:-configure}:3646: testing adding $cf_add_libdir to library-path ..." 1>&5
3648 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3657 echo "$as_me:3657: checking if you want wide-character code" >&5
3658 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3660 # Check whether --enable-widec or --disable-widec was given.
3661 if test "${enable_widec+set}" = set; then
3662 enableval="$enable_widec"
3663 with_widec=$enableval
3667 echo "$as_me:3667: result: $with_widec" >&5
3668 echo "${ECHO_T}$with_widec" >&6
3669 if test "$with_widec" = yes ; then
3671 echo "$as_me:3671: checking for multibyte character support" >&5
3672 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3673 if test "${cf_cv_utf8_lib+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 cf_save_LIBS="$LIBS"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line 3679 "configure"
3680 #include "confdefs.h"
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (eval echo "$as_me:3692: \"$ac_link\"") >&5
3693 (eval $ac_link) 2>&5
3695 echo "$as_me:3695: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:3698: \"$ac_try\"") >&5
3701 echo "$as_me:3701: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3705 echo "$as_me: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3709 # will be set on completion of the AC_TRY_LINK below.
3710 cf_cv_header_path_utf8=
3711 cf_cv_library_path_utf8=
3713 echo "${as_me:-configure}:3713: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3715 cf_save_LIBS="$LIBS"
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line 3718 "configure"
3719 #include "confdefs.h"
3721 #include <libutf8.h>
3730 rm -f conftest.$ac_objext conftest$ac_exeext
3731 if { (eval echo "$as_me:3731: \"$ac_link\"") >&5
3732 (eval $ac_link) 2>&5
3734 echo "$as_me:3734: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -s conftest$ac_exeext'
3737 { (eval echo "$as_me:3737: \"$ac_try\"") >&5
3740 echo "$as_me:3740: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3743 cf_cv_find_linkage_utf8=yes
3744 cf_cv_header_path_utf8=/usr/include
3745 cf_cv_library_path_utf8=/usr/lib
3748 echo "$as_me: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 LIBS="-lutf8 $cf_save_LIBS"
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line 3754 "configure"
3755 #include "confdefs.h"
3757 #include <libutf8.h>
3766 rm -f conftest.$ac_objext conftest$ac_exeext
3767 if { (eval echo "$as_me:3767: \"$ac_link\"") >&5
3768 (eval $ac_link) 2>&5
3770 echo "$as_me:3770: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -s conftest$ac_exeext'
3773 { (eval echo "$as_me:3773: \"$ac_try\"") >&5
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3779 cf_cv_find_linkage_utf8=yes
3780 cf_cv_header_path_utf8=/usr/include
3781 cf_cv_library_path_utf8=/usr/lib
3782 cf_cv_library_file_utf8="-lutf8"
3785 echo "$as_me: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 cf_cv_find_linkage_utf8=no
3789 LIBS="$cf_save_LIBS"
3791 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3793 echo "${as_me:-configure}:3793: testing find linkage for utf8 library ..." 1>&5
3795 echo "${as_me:-configure}:3795: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3797 cf_save_CPPFLAGS="$CPPFLAGS"
3798 cf_test_CPPFLAGS="$CPPFLAGS"
3802 # collect the current set of include-directories from compiler flags
3803 cf_header_path_list=""
3804 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3805 for cf_header_path in $CPPFLAGS $CFLAGS
3807 case $cf_header_path in #(vi
3809 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3811 test "x$cf_header_path" != "xNONE" && \
3812 test -d "$cf_header_path" && \
3814 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3815 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3816 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3817 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3818 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3819 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3822 cf_header_path_list="$cf_header_path_list $cf_search"
3828 # add the variations for the package we are looking for
3832 test "x/usr" != "x$prefix" && \
3834 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
3835 test -n "$verbose" && echo " ... testing for include-directories under /usr"
3836 test -d /usr/include && cf_search="$cf_search /usr/include"
3837 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
3838 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
3839 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
3840 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
3843 test "x$prefix" != "xNONE" && \
3844 test -d "$prefix" && \
3846 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3847 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3848 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3849 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3850 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3851 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3854 test "x/usr/local" != "x$prefix" && \
3855 test -d "/usr/local" && \
3856 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
3857 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
3858 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
3859 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
3860 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
3861 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
3862 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
3865 test "x/opt" != "x$prefix" && \
3867 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
3868 test -n "$verbose" && echo " ... testing for include-directories under /opt"
3869 test -d /opt/include && cf_search="$cf_search /opt/include"
3870 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
3871 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
3872 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
3873 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
3876 test "x$HOME" != "x$prefix" && \
3877 test -d "$HOME" && \
3878 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
3879 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
3880 test -d $HOME/include && cf_search="$cf_search $HOME/include"
3881 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
3882 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
3883 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
3884 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
3887 test "$includedir" != NONE && \
3888 test "$includedir" != "/usr/include" && \
3889 test -d "$includedir" && {
3890 test -d $includedir && cf_search="$cf_search $includedir"
3891 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3894 test "$oldincludedir" != NONE && \
3895 test "$oldincludedir" != "/usr/include" && \
3896 test -d "$oldincludedir" && {
3897 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3898 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3901 cf_search="$cf_search $cf_header_path_list"
3903 for cf_cv_header_path_utf8 in $cf_search
3905 if test -d $cf_cv_header_path_utf8 ; then
3906 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3908 echo "${as_me:-configure}:3908: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3910 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3911 cat >conftest.$ac_ext <<_ACEOF
3912 #line 3912 "configure"
3913 #include "confdefs.h"
3915 #include <libutf8.h>
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:3925: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>&5
3928 echo "$as_me:3928: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:3931: \"$ac_try\"") >&5
3934 echo "$as_me:3934: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3937 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3939 echo "${as_me:-configure}:3939: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3941 cf_cv_find_linkage_utf8=maybe
3942 cf_test_CPPFLAGS="$CPPFLAGS"
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 CPPFLAGS="$cf_save_CPPFLAGS"
3951 rm -f conftest.$ac_objext conftest.$ac_ext
3955 if test "$cf_cv_find_linkage_utf8" = maybe ; then
3957 echo "${as_me:-configure}:3957: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
3959 cf_save_LIBS="$LIBS"
3960 cf_save_LDFLAGS="$LDFLAGS"
3962 if test "$cf_cv_find_linkage_utf8" != yes ; then
3965 cf_library_path_list=""
3966 if test -n "${LDFLAGS}${LIBS}" ; then
3967 for cf_library_path in $LDFLAGS $LIBS
3969 case $cf_library_path in #(vi
3971 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3973 test "x$cf_library_path" != "xNONE" && \
3974 test -d "$cf_library_path" && \
3976 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
3977 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
3978 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
3979 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
3980 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
3981 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
3984 cf_library_path_list="$cf_library_path_list $cf_search"
3992 test "x/usr" != "x$prefix" && \
3994 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
3995 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
3996 test -d /usr/lib && cf_search="$cf_search /usr/lib"
3997 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
3998 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
3999 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4000 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4003 test "x$prefix" != "xNONE" && \
4004 test -d "$prefix" && \
4006 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4007 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4008 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4009 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4010 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4011 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4014 test "x/usr/local" != "x$prefix" && \
4015 test -d "/usr/local" && \
4016 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
4017 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4018 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4019 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4020 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4021 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4022 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4025 test "x/opt" != "x$prefix" && \
4027 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
4028 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4029 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4030 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4031 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4032 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4033 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4036 test "x$HOME" != "x$prefix" && \
4037 test -d "$HOME" && \
4038 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
4039 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4040 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4041 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4042 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4043 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4044 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4047 cf_search="$cf_library_path_list $cf_search"
4049 for cf_cv_library_path_utf8 in $cf_search
4051 if test -d $cf_cv_library_path_utf8 ; then
4052 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4054 echo "${as_me:-configure}:4054: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4056 CPPFLAGS="$cf_test_CPPFLAGS"
4057 LIBS="-lutf8 $cf_save_LIBS"
4058 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 #line 4060 "configure"
4061 #include "confdefs.h"
4063 #include <libutf8.h>
4072 rm -f conftest.$ac_objext conftest$ac_exeext
4073 if { (eval echo "$as_me:4073: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -s conftest$ac_exeext'
4079 { (eval echo "$as_me:4079: \"$ac_try\"") >&5
4082 echo "$as_me:4082: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4085 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4087 echo "${as_me:-configure}:4087: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4089 cf_cv_find_linkage_utf8=yes
4090 cf_cv_library_file_utf8="-lutf8"
4093 echo "$as_me: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 CPPFLAGS="$cf_save_CPPFLAGS"
4097 LIBS="$cf_save_LIBS"
4098 LDFLAGS="$cf_save_LDFLAGS"
4101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4104 CPPFLAGS="$cf_save_CPPFLAGS"
4105 LDFLAGS="$cf_save_LDFLAGS"
4109 cf_cv_find_linkage_utf8=no
4113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4118 LIBS="$cf_save_LIBS"
4120 if test "$cf_cv_find_linkage_utf8" = yes ; then
4121 cf_cv_utf8_lib=add-on
4127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4129 echo "$as_me:4129: result: $cf_cv_utf8_lib" >&5
4130 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4132 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4134 if test "$cf_cv_utf8_lib" = "add-on" ; then
4136 cat >>confdefs.h <<\EOF
4137 #define HAVE_LIBUTF8_H 1
4140 if test -n "$cf_cv_header_path_utf8" ; then
4141 for cf_add_incdir in $cf_cv_header_path_utf8
4143 while test $cf_add_incdir != /usr/include
4145 if test -d $cf_add_incdir
4148 if test -n "$CFLAGS$CPPFLAGS" ; then
4149 # a loop is needed to ensure we can add subdirs of existing dirs
4150 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4151 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4152 cf_have_incdir=yes; break
4157 if test "$cf_have_incdir" = no ; then
4158 if test "$cf_add_incdir" = /usr/local/include ; then
4159 if test "$GCC" = yes
4161 cf_save_CPPFLAGS=$CPPFLAGS
4162 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4163 cat >conftest.$ac_ext <<_ACEOF
4164 #line 4164 "configure"
4165 #include "confdefs.h"
4175 rm -f conftest.$ac_objext
4176 if { (eval echo "$as_me:4176: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:4182: \"$ac_try\"") >&5
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4189 echo "$as_me: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4193 rm -f conftest.$ac_objext conftest.$ac_ext
4194 CPPFLAGS=$cf_save_CPPFLAGS
4199 if test "$cf_have_incdir" = no ; then
4200 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4202 echo "${as_me:-configure}:4202: testing adding $cf_add_incdir to include-path ..." 1>&5
4204 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4206 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4207 test "$cf_top_incdir" = "$cf_add_incdir" && break
4208 cf_add_incdir="$cf_top_incdir"
4217 if test -n "$cf_cv_library_path_utf8" ; then
4218 for cf_add_libdir in $cf_cv_library_path_utf8
4220 if test $cf_add_libdir = /usr/lib ; then
4222 elif test -d $cf_add_libdir
4225 if test -n "$LDFLAGS$LIBS" ; then
4226 # a loop is needed to ensure we can add subdirs of existing dirs
4227 for cf_test_libdir in $LDFLAGS $LIBS ; do
4228 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4229 cf_have_libdir=yes; break
4233 if test "$cf_have_libdir" = no ; then
4234 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4236 echo "${as_me:-configure}:4236: testing adding $cf_add_libdir to library-path ..." 1>&5
4238 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4244 LIBS="$cf_cv_library_file_utf8 $LIBS"
4247 cf_ncuconfig_root=ncursesw
4249 echo "Looking for ${cf_ncuconfig_root}-config"
4251 if test -n "$ac_tool_prefix"; then
4252 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4255 set dummy $ac_tool_prefix$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_prog_NCURSES_CONFIG+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 if test -n "$NCURSES_CONFIG"; then
4262 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
4264 ac_save_IFS=$IFS; IFS=$ac_path_separator
4266 for ac_dir in $ac_dummy; do
4268 test -z "$ac_dir" && ac_dir=.
4269 $as_executable_p "$ac_dir/$ac_word" || continue
4270 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
4271 echo "$as_me:4271: found $ac_dir/$ac_word" >&5
4277 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
4278 if test -n "$NCURSES_CONFIG"; then
4279 echo "$as_me:4279: result: $NCURSES_CONFIG" >&5
4280 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4282 echo "$as_me:4282: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4286 test -n "$NCURSES_CONFIG" && break
4289 if test -z "$NCURSES_CONFIG"; then
4290 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
4291 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 echo "$as_me:4295: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$ac_ct_NCURSES_CONFIG"; then
4301 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
4303 ac_save_IFS=$IFS; IFS=$ac_path_separator
4305 for ac_dir in $ac_dummy; do
4307 test -z "$ac_dir" && ac_dir=.
4308 $as_executable_p "$ac_dir/$ac_word" || continue
4309 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
4310 echo "$as_me:4310: found $ac_dir/$ac_word" >&5
4316 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
4317 if test -n "$ac_ct_NCURSES_CONFIG"; then
4318 echo "$as_me:4318: result: $ac_ct_NCURSES_CONFIG" >&5
4319 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
4321 echo "$as_me:4321: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4325 test -n "$ac_ct_NCURSES_CONFIG" && break
4327 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
4329 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
4332 if test "$NCURSES_CONFIG" != none ; then
4334 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4335 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4337 # even with config script, some packages use no-override for curses.h
4339 echo "$as_me:4339: checking if we have identified curses headers" >&5
4340 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4341 if test "${cf_cv_ncurses_header+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 cf_cv_ncurses_header=none
4347 ncursesw/ncurses.h \
4352 cat >conftest.$ac_ext <<_ACEOF
4353 #line 4353 "configure"
4354 #include "confdefs.h"
4355 #include <${cf_header}>
4359 initscr(); tgoto("?", 0,0)
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:4365: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4368 echo "$as_me:4368: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:4371: \"$ac_try\"") >&5
4374 echo "$as_me:4374: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 cf_cv_ncurses_header=$cf_header; break
4378 echo "$as_me: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4385 echo "$as_me:4385: result: $cf_cv_ncurses_header" >&5
4386 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4388 if test "$cf_cv_ncurses_header" = none ; then
4389 { { echo "$as_me:4389: error: No curses header-files found" >&5
4390 echo "$as_me: error: No curses header-files found" >&2;}
4391 { (exit 1); exit 1; }; }
4394 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4396 for ac_header in $cf_cv_ncurses_header
4398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 echo "$as_me:4399: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4405 #line 4405 "configure"
4406 #include "confdefs.h"
4407 #include <$ac_header>
4409 if { (eval echo "$as_me:4409: \"$ac_cpp conftest.$ac_ext\"") >&5
4410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412 egrep -v '^ *\+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:4415: \$? = $ac_status" >&5
4416 (exit $ac_status); } >/dev/null; then
4417 if test -s conftest.err; then
4418 ac_cpp_err=$ac_c_preproc_warn_flag
4425 if test -z "$ac_cpp_err"; then
4426 eval "$as_ac_Header=yes"
4428 echo "$as_me: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4430 eval "$as_ac_Header=no"
4432 rm -f conftest.err conftest.$ac_ext
4434 echo "$as_me:4434: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4437 cat >>confdefs.h <<EOF
4438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 cat >>confdefs.h <<\EOF
4448 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4450 cat >>confdefs.h <<EOF
4451 #define $cf_nculib_ROOT 1
4454 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4458 cf_ncuhdr_root=ncursesw
4460 test -n "$cf_cv_curses_dir" && \
4461 test "$cf_cv_curses_dir" != "no" && { \
4463 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4464 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4466 while test $cf_add_incdir != /usr/include
4468 if test -d $cf_add_incdir
4471 if test -n "$CFLAGS$CPPFLAGS" ; then
4472 # a loop is needed to ensure we can add subdirs of existing dirs
4473 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4474 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4475 cf_have_incdir=yes; break
4480 if test "$cf_have_incdir" = no ; then
4481 if test "$cf_add_incdir" = /usr/local/include ; then
4482 if test "$GCC" = yes
4484 cf_save_CPPFLAGS=$CPPFLAGS
4485 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4486 cat >conftest.$ac_ext <<_ACEOF
4487 #line 4487 "configure"
4488 #include "confdefs.h"
4498 rm -f conftest.$ac_objext
4499 if { (eval echo "$as_me:4499: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
4502 echo "$as_me:4502: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:4505: \"$ac_try\"") >&5
4508 echo "$as_me:4508: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4516 rm -f conftest.$ac_objext conftest.$ac_ext
4517 CPPFLAGS=$cf_save_CPPFLAGS
4522 if test "$cf_have_incdir" = no ; then
4523 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4525 echo "${as_me:-configure}:4525: testing adding $cf_add_incdir to include-path ..." 1>&5
4527 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4529 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4530 test "$cf_top_incdir" = "$cf_add_incdir" && break
4531 cf_add_incdir="$cf_top_incdir"
4542 echo "$as_me:4542: checking for $cf_ncuhdr_root header in include-path" >&5
4543 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4544 if test "${cf_cv_ncurses_h+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4549 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4550 for cf_header in $cf_header_list
4553 cat >conftest.$ac_ext <<_ACEOF
4554 #line 4554 "configure"
4555 #include "confdefs.h"
4557 #define _XOPEN_SOURCE_EXTENDED
4558 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4559 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4561 #include <$cf_header>
4566 #ifdef NCURSES_VERSION
4572 printf("%s\n", NCURSES_VERSION);
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:4586: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
4589 echo "$as_me:4589: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:4592: \"$ac_try\"") >&5
4595 echo "$as_me:4595: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 cf_cv_ncurses_h=$cf_header
4600 echo "$as_me: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4604 rm -f conftest.$ac_objext conftest.$ac_ext
4606 test "$cf_cv_ncurses_h" != no && break
4610 echo "$as_me:4610: result: $cf_cv_ncurses_h" >&5
4611 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4613 if test "$cf_cv_ncurses_h" != no ; then
4614 cf_cv_ncurses_header=$cf_cv_ncurses_h
4617 echo "$as_me:4617: checking for $cf_ncuhdr_root include-path" >&5
4618 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4619 if test "${cf_cv_ncurses_h2+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 test -n "$verbose" && echo
4627 # collect the current set of include-directories from compiler flags
4628 cf_header_path_list=""
4629 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4630 for cf_header_path in $CPPFLAGS $CFLAGS
4632 case $cf_header_path in #(vi
4634 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4636 test "x$cf_header_path" != "xNONE" && \
4637 test -d "$cf_header_path" && \
4639 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4640 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4641 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4642 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4643 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4644 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"
4647 cf_header_path_list="$cf_header_path_list $cf_search"
4653 # add the variations for the package we are looking for
4657 test "x/usr" != "x$prefix" && \
4659 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
4660 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4661 test -d /usr/include && cf_search="$cf_search /usr/include"
4662 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4663 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4664 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4665 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4668 test "x$prefix" != "xNONE" && \
4669 test -d "$prefix" && \
4671 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4672 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4673 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4674 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4675 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4676 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4679 test "x/usr/local" != "x$prefix" && \
4680 test -d "/usr/local" && \
4681 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
4682 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4683 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4684 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
4685 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
4686 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
4687 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4690 test "x/opt" != "x$prefix" && \
4692 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
4693 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4694 test -d /opt/include && cf_search="$cf_search /opt/include"
4695 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
4696 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
4697 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
4698 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4701 test "x$HOME" != "x$prefix" && \
4702 test -d "$HOME" && \
4703 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
4704 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4705 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4706 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
4707 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
4708 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
4709 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4712 test "$includedir" != NONE && \
4713 test "$includedir" != "/usr/include" && \
4714 test -d "$includedir" && {
4715 test -d $includedir && cf_search="$cf_search $includedir"
4716 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4719 test "$oldincludedir" != NONE && \
4720 test "$oldincludedir" != "/usr/include" && \
4721 test -d "$oldincludedir" && {
4722 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4723 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4726 cf_search="$cf_search $cf_header_path_list"
4728 test -n "$verbose" && echo search path $cf_search
4729 cf_save2_CPPFLAGS="$CPPFLAGS"
4730 for cf_incdir in $cf_search
4733 if test -n "$cf_incdir" ; then
4734 for cf_add_incdir in $cf_incdir
4736 while test $cf_add_incdir != /usr/include
4738 if test -d $cf_add_incdir
4741 if test -n "$CFLAGS$CPPFLAGS" ; then
4742 # a loop is needed to ensure we can add subdirs of existing dirs
4743 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4744 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4745 cf_have_incdir=yes; break
4750 if test "$cf_have_incdir" = no ; then
4751 if test "$cf_add_incdir" = /usr/local/include ; then
4752 if test "$GCC" = yes
4754 cf_save_CPPFLAGS=$CPPFLAGS
4755 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line 4757 "configure"
4758 #include "confdefs.h"
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:4769: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4772 echo "$as_me:4772: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:4775: \"$ac_try\"") >&5
4778 echo "$as_me:4778: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4782 echo "$as_me: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4786 rm -f conftest.$ac_objext conftest.$ac_ext
4787 CPPFLAGS=$cf_save_CPPFLAGS
4792 if test "$cf_have_incdir" = no ; then
4793 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4795 echo "${as_me:-configure}:4795: testing adding $cf_add_incdir to include-path ..." 1>&5
4797 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4799 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4800 test "$cf_top_incdir" = "$cf_add_incdir" && break
4801 cf_add_incdir="$cf_top_incdir"
4815 cat >conftest.$ac_ext <<_ACEOF
4816 #line 4816 "configure"
4817 #include "confdefs.h"
4819 #include <$cf_header>
4824 #ifdef NCURSES_VERSION
4826 printf("%s\n", NCURSES_VERSION);
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:4840: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>&5
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:4846: \"$ac_try\"") >&5
4849 echo "$as_me:4849: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 cf_cv_ncurses_h2=$cf_header
4854 echo "$as_me: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4858 rm -f conftest.$ac_objext conftest.$ac_ext
4860 if test "$cf_cv_ncurses_h2" != no ; then
4861 cf_cv_ncurses_h2=$cf_incdir/$cf_header
4862 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
4865 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
4867 CPPFLAGS="$cf_save2_CPPFLAGS"
4868 test "$cf_cv_ncurses_h2" != no && break
4870 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:4870: error: not found" >&5
4871 echo "$as_me: error: not found" >&2;}
4872 { (exit 1); exit 1; }; }
4875 echo "$as_me:4875: result: $cf_cv_ncurses_h2" >&5
4876 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
4878 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
4879 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
4880 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
4881 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
4884 if test -n "$cf_1st_incdir" ; then
4885 for cf_add_incdir in $cf_1st_incdir
4887 while test $cf_add_incdir != /usr/include
4889 if test -d $cf_add_incdir
4892 if test -n "$CFLAGS$CPPFLAGS" ; then
4893 # a loop is needed to ensure we can add subdirs of existing dirs
4894 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4895 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4896 cf_have_incdir=yes; break
4901 if test "$cf_have_incdir" = no ; then
4902 if test "$cf_add_incdir" = /usr/local/include ; then
4903 if test "$GCC" = yes
4905 cf_save_CPPFLAGS=$CPPFLAGS
4906 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4907 cat >conftest.$ac_ext <<_ACEOF
4908 #line 4908 "configure"
4909 #include "confdefs.h"
4919 rm -f conftest.$ac_objext
4920 if { (eval echo "$as_me:4920: \"$ac_compile\"") >&5
4921 (eval $ac_compile) 2>&5
4923 echo "$as_me:4923: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:4926: \"$ac_try\"") >&5
4929 echo "$as_me:4929: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4937 rm -f conftest.$ac_objext conftest.$ac_ext
4938 CPPFLAGS=$cf_save_CPPFLAGS
4943 if test "$cf_have_incdir" = no ; then
4944 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4946 echo "${as_me:-configure}:4946: testing adding $cf_add_incdir to include-path ..." 1>&5
4948 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4950 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4951 test "$cf_top_incdir" = "$cf_add_incdir" && break
4952 cf_add_incdir="$cf_top_incdir"
4963 # Set definitions to allow ifdef'ing for ncurses.h
4965 case $cf_cv_ncurses_header in # (vi
4968 cat >>confdefs.h <<\EOF
4969 #define HAVE_NCURSES_H 1
4975 case $cf_cv_ncurses_header in # (vi
4976 ncurses/curses.h|ncurses/ncurses.h)
4978 cat >>confdefs.h <<\EOF
4979 #define HAVE_NCURSES_NCURSES_H 1
4983 ncursesw/curses.h|ncursesw/ncurses.h)
4985 cat >>confdefs.h <<\EOF
4986 #define HAVE_NCURSESW_NCURSES_H 1
4992 echo "$as_me:4992: checking for terminfo header" >&5
4993 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4994 if test "${cf_cv_term_header+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 case ${cf_cv_ncurses_header} in #(vi
4999 */ncurses.h|*/ncursesw.h) #(vi
5000 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5003 cf_term_header=term.h
5007 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line 5010 "configure"
5011 #include "confdefs.h"
5013 #include <${cf_cv_ncurses_header:-curses.h}>
5019 int x = auto_left_margin
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:5025: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5028 echo "$as_me:5028: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:5031: \"$ac_try\"") >&5
5034 echo "$as_me:5034: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5037 cf_cv_term_header="$cf_test"
5039 echo "$as_me: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 cf_cv_term_header=unknown
5045 rm -f conftest.$ac_objext conftest.$ac_ext
5046 test "$cf_cv_term_header" != unknown && break
5050 echo "$as_me:5050: result: $cf_cv_term_header" >&5
5051 echo "${ECHO_T}$cf_cv_term_header" >&6
5053 # Set definitions to allow ifdef'ing to accommodate subdirectories
5055 case $cf_cv_term_header in # (vi
5058 cat >>confdefs.h <<\EOF
5059 #define HAVE_TERM_H 1
5065 case $cf_cv_term_header in # (vi
5066 ncurses/term.h) #(vi
5068 cat >>confdefs.h <<\EOF
5069 #define HAVE_NCURSES_TERM_H 1
5075 cat >>confdefs.h <<\EOF
5076 #define HAVE_NCURSESW_TERM_H 1
5082 # some applications need this, but should check for NCURSES_VERSION
5084 cat >>confdefs.h <<\EOF
5088 echo "$as_me:5088: checking for ncurses version" >&5
5089 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5090 if test "${cf_cv_ncurses_version+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 cf_cv_ncurses_version=no
5097 if test "$cross_compiling" = yes; then
5099 # This will not work if the preprocessor splits the line after the
5100 # Autoconf token. The 'unproto' program does that.
5101 cat > conftest.$ac_ext <<EOF
5102 #include <${cf_cv_ncurses_header:-curses.h}>
5104 #ifdef NCURSES_VERSION
5105 Autoconf NCURSES_VERSION
5113 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5114 { (eval echo "$as_me:5114: \"$cf_try\"") >&5
5117 echo "$as_me:5117: \$? = $ac_status" >&5
5118 (exit $ac_status); }
5119 if test -f conftest.out ; then
5120 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5121 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5126 cat >conftest.$ac_ext <<_ACEOF
5127 #line 5127 "configure"
5128 #include "confdefs.h"
5130 #include <${cf_cv_ncurses_header:-curses.h}>
5134 FILE *fp = fopen("$cf_tempfile", "w");
5135 #ifdef NCURSES_VERSION
5136 # ifdef NCURSES_VERSION_PATCH
5137 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5139 fprintf(fp, "%s\n", NCURSES_VERSION);
5143 fprintf(fp, "old\n");
5148 ${cf_cv_main_return:-return}(0);
5151 rm -f conftest$ac_exeext
5152 if { (eval echo "$as_me:5152: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>&5
5155 echo "$as_me:5155: \$? = $ac_status" >&5
5156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5157 { (eval echo "$as_me:5157: \"$ac_try\"") >&5
5160 echo "$as_me:5160: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5163 cf_cv_ncurses_version=`cat $cf_tempfile`
5165 echo "$as_me: program exited with status $ac_status" >&5
5166 echo "$as_me: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5169 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5174 echo "$as_me:5174: result: $cf_cv_ncurses_version" >&5
5175 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5176 test "$cf_cv_ncurses_version" = no ||
5177 cat >>confdefs.h <<\EOF
5181 cf_nculib_root=ncursesw
5182 # This works, except for the special case where we find gpm, but
5183 # ncurses is in a nonstandard location via $LIBS, and we really want
5186 cf_ncurses_SAVE="$LIBS"
5187 echo "$as_me:5187: checking for Gpm_Open in -lgpm" >&5
5188 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5189 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 ac_check_lib_save_LIBS=$LIBS
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line 5195 "configure"
5196 #include "confdefs.h"
5198 /* Override any gcc2 internal prototype to avoid an error. */
5202 /* We use char because int might match the return type of a gcc2
5203 builtin and then its argument prototype would still apply. */
5213 rm -f conftest.$ac_objext conftest$ac_exeext
5214 if { (eval echo "$as_me:5214: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest$ac_exeext'
5220 { (eval echo "$as_me:5220: \"$ac_try\"") >&5
5223 echo "$as_me:5223: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 ac_cv_lib_gpm_Gpm_Open=yes
5227 echo "$as_me: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 ac_cv_lib_gpm_Gpm_Open=no
5231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5232 LIBS=$ac_check_lib_save_LIBS
5234 echo "$as_me:5234: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5235 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5236 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5237 echo "$as_me:5237: checking for initscr in -lgpm" >&5
5238 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5239 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 ac_check_lib_save_LIBS=$LIBS
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line 5245 "configure"
5246 #include "confdefs.h"
5248 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>&5
5267 echo "$as_me:5267: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -s conftest$ac_exeext'
5270 { (eval echo "$as_me:5270: \"$ac_try\"") >&5
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_cv_lib_gpm_initscr=yes
5277 echo "$as_me: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5279 ac_cv_lib_gpm_initscr=no
5281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5284 echo "$as_me:5284: result: $ac_cv_lib_gpm_initscr" >&5
5285 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
5286 if test $ac_cv_lib_gpm_initscr = yes; then
5287 LIBS="$cf_ncurses_SAVE"
5289 cf_ncurses_LIBS="-lgpm"
5294 case $host_os in #(vi
5296 # This is only necessary if you are linking against an obsolete
5297 # version of ncurses (but it should do no harm, since it's static).
5298 if test "$cf_nculib_root" = ncurses ; then
5299 echo "$as_me:5299: checking for tgoto in -lmytinfo" >&5
5300 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5301 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 ac_check_lib_save_LIBS=$LIBS
5305 LIBS="-lmytinfo $LIBS"
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line 5307 "configure"
5308 #include "confdefs.h"
5310 /* Override any gcc2 internal prototype to avoid an error. */
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5325 rm -f conftest.$ac_objext conftest$ac_exeext
5326 if { (eval echo "$as_me:5326: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>&5
5329 echo "$as_me:5329: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -s conftest$ac_exeext'
5332 { (eval echo "$as_me:5332: \"$ac_try\"") >&5
5335 echo "$as_me:5335: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_lib_mytinfo_tgoto=yes
5339 echo "$as_me: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 ac_cv_lib_mytinfo_tgoto=no
5343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5344 LIBS=$ac_check_lib_save_LIBS
5346 echo "$as_me:5346: result: $ac_cv_lib_mytinfo_tgoto" >&5
5347 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5348 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5349 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5356 LIBS="$cf_ncurses_LIBS $LIBS"
5358 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5360 LIBS="-l$cf_nculib_root $LIBS"
5363 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5365 echo "$as_me:5365: checking for initscr" >&5
5366 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5367 if test "${ac_cv_func_initscr+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 cat >conftest.$ac_ext <<_ACEOF
5371 #line 5371 "configure"
5372 #include "confdefs.h"
5373 /* System header to define __stub macros and hopefully few prototypes,
5374 which can conflict with char initscr (); below. */
5376 /* Override any gcc2 internal prototype to avoid an error. */
5380 /* We use char because int might match the return type of a gcc2
5381 builtin and then its argument prototype would still apply. */
5388 /* The GNU C library defines this for functions which it implements
5389 to always fail with ENOSYS. Some functions are actually named
5390 something starting with __ and the normal name is an alias. */
5391 #if defined (__stub_initscr) || defined (__stub___initscr)
5394 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:5402: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>&5
5405 echo "$as_me:5405: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:5408: \"$ac_try\"") >&5
5411 echo "$as_me:5411: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_func_initscr=yes
5415 echo "$as_me: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 ac_cv_func_initscr=no
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5421 echo "$as_me:5421: result: $ac_cv_func_initscr" >&5
5422 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5423 if test $ac_cv_func_initscr = yes; then
5424 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5427 cf_save_LIBS="$LIBS"
5428 echo "$as_me:5428: checking for initscr in -l$cf_nculib_root" >&5
5429 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5430 LIBS="-l$cf_nculib_root $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line 5432 "configure"
5433 #include "confdefs.h"
5434 #include <${cf_cv_ncurses_header:-curses.h}>
5443 rm -f conftest.$ac_objext conftest$ac_exeext
5444 if { (eval echo "$as_me:5444: \"$ac_link\"") >&5
5445 (eval $ac_link) 2>&5
5447 echo "$as_me:5447: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -s conftest$ac_exeext'
5450 { (eval echo "$as_me:5450: \"$ac_try\"") >&5
5453 echo "$as_me:5453: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 echo "$as_me:5455: result: yes" >&5
5456 echo "${ECHO_T}yes" >&6
5457 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5460 echo "$as_me: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5462 echo "$as_me:5462: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5466 cf_library_path_list=""
5467 if test -n "${LDFLAGS}${LIBS}" ; then
5468 for cf_library_path in $LDFLAGS $LIBS
5470 case $cf_library_path in #(vi
5472 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5474 test "x$cf_library_path" != "xNONE" && \
5475 test -d "$cf_library_path" && \
5477 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5478 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5479 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5480 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5481 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5482 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"
5485 cf_library_path_list="$cf_library_path_list $cf_search"
5493 test "x/usr" != "x$prefix" && \
5495 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
5496 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
5497 test -d /usr/lib && cf_search="$cf_search /usr/lib"
5498 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
5499 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
5500 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
5501 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
5504 test "x$prefix" != "xNONE" && \
5505 test -d "$prefix" && \
5507 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5508 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5509 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5510 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5511 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5512 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5515 test "x/usr/local" != "x$prefix" && \
5516 test -d "/usr/local" && \
5517 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
5518 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
5519 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
5520 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
5521 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
5522 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
5523 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
5526 test "x/opt" != "x$prefix" && \
5528 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
5529 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
5530 test -d /opt/lib && cf_search="$cf_search /opt/lib"
5531 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
5532 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
5533 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
5534 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
5537 test "x$HOME" != "x$prefix" && \
5538 test -d "$HOME" && \
5539 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
5540 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
5541 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
5542 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
5543 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
5544 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
5545 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
5548 cf_search="$cf_library_path_list $cf_search"
5550 for cf_libdir in $cf_search
5552 echo "$as_me:5552: checking for -l$cf_nculib_root in $cf_libdir" >&5
5553 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5554 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line 5556 "configure"
5557 #include "confdefs.h"
5558 #include <${cf_cv_ncurses_header:-curses.h}>
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:5568: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>&5
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -s conftest$ac_exeext'
5574 { (eval echo "$as_me:5574: \"$ac_try\"") >&5
5577 echo "$as_me:5577: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 echo "$as_me:5579: result: yes" >&5
5580 echo "${ECHO_T}yes" >&6
5581 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5584 echo "$as_me: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5586 echo "$as_me:5586: result: no" >&5
5587 echo "${ECHO_T}no" >&6
5588 LIBS="$cf_save_LIBS"
5590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5598 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5600 if test $cf_found_library = no ; then
5601 { { echo "$as_me:5601: error: Cannot link $cf_nculib_root library" >&5
5602 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5603 { (exit 1); exit 1; }; }
5608 if test -n "$cf_ncurses_LIBS" ; then
5609 echo "$as_me:5609: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5610 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5611 cf_ncurses_SAVE="$LIBS"
5612 for p in $cf_ncurses_LIBS ; do
5613 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5614 if test "$q" != "$LIBS" ; then
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line 5619 "configure"
5620 #include "confdefs.h"
5621 #include <${cf_cv_ncurses_header:-curses.h}>
5625 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (eval echo "$as_me:5631: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>&5
5634 echo "$as_me:5634: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -s conftest$ac_exeext'
5637 { (eval echo "$as_me:5637: \"$ac_try\"") >&5
5640 echo "$as_me:5640: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 echo "$as_me:5642: result: yes" >&5
5643 echo "${ECHO_T}yes" >&6
5645 echo "$as_me: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 echo "$as_me:5647: result: no" >&5
5648 echo "${ECHO_T}no" >&6
5649 LIBS="$cf_ncurses_SAVE"
5651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5654 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5656 cat >>confdefs.h <<EOF
5657 #define $cf_nculib_ROOT 1
5664 cf_ncuconfig_root=ncurses
5666 echo "Looking for ${cf_ncuconfig_root}-config"
5668 if test -n "$ac_tool_prefix"; then
5669 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5673 echo "$as_me:5673: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5675 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 if test -n "$NCURSES_CONFIG"; then
5679 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
5681 ac_save_IFS=$IFS; IFS=$ac_path_separator
5683 for ac_dir in $ac_dummy; do
5685 test -z "$ac_dir" && ac_dir=.
5686 $as_executable_p "$ac_dir/$ac_word" || continue
5687 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
5688 echo "$as_me:5688: found $ac_dir/$ac_word" >&5
5694 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
5695 if test -n "$NCURSES_CONFIG"; then
5696 echo "$as_me:5696: result: $NCURSES_CONFIG" >&5
5697 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5699 echo "$as_me:5699: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5703 test -n "$NCURSES_CONFIG" && break
5706 if test -z "$NCURSES_CONFIG"; then
5707 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
5708 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5710 # Extract the first word of "$ac_prog", so it can be a program name with args.
5711 set dummy $ac_prog; ac_word=$2
5712 echo "$as_me:5712: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 if test -n "$ac_ct_NCURSES_CONFIG"; then
5718 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
5720 ac_save_IFS=$IFS; IFS=$ac_path_separator
5722 for ac_dir in $ac_dummy; do
5724 test -z "$ac_dir" && ac_dir=.
5725 $as_executable_p "$ac_dir/$ac_word" || continue
5726 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
5727 echo "$as_me:5727: found $ac_dir/$ac_word" >&5
5733 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
5734 if test -n "$ac_ct_NCURSES_CONFIG"; then
5735 echo "$as_me:5735: result: $ac_ct_NCURSES_CONFIG" >&5
5736 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
5738 echo "$as_me:5738: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5742 test -n "$ac_ct_NCURSES_CONFIG" && break
5744 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
5746 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
5749 if test "$NCURSES_CONFIG" != none ; then
5751 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5752 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5754 # even with config script, some packages use no-override for curses.h
5756 echo "$as_me:5756: checking if we have identified curses headers" >&5
5757 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5758 if test "${cf_cv_ncurses_header+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 cf_cv_ncurses_header=none
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line 5770 "configure"
5771 #include "confdefs.h"
5772 #include <${cf_header}>
5776 initscr(); tgoto("?", 0,0)
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:5782: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>&5
5785 echo "$as_me:5785: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:5788: \"$ac_try\"") >&5
5791 echo "$as_me:5791: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 cf_cv_ncurses_header=$cf_header; break
5795 echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5798 rm -f conftest.$ac_objext conftest.$ac_ext
5802 echo "$as_me:5802: result: $cf_cv_ncurses_header" >&5
5803 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5805 if test "$cf_cv_ncurses_header" = none ; then
5806 { { echo "$as_me:5806: error: No curses header-files found" >&5
5807 echo "$as_me: error: No curses header-files found" >&2;}
5808 { (exit 1); exit 1; }; }
5811 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5813 for ac_header in $cf_cv_ncurses_header
5815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5816 echo "$as_me:5816: checking for $ac_header" >&5
5817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 cat >conftest.$ac_ext <<_ACEOF
5822 #line 5822 "configure"
5823 #include "confdefs.h"
5824 #include <$ac_header>
5826 if { (eval echo "$as_me:5826: \"$ac_cpp conftest.$ac_ext\"") >&5
5827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5829 egrep -v '^ *\+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:5832: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null; then
5834 if test -s conftest.err; then
5835 ac_cpp_err=$ac_c_preproc_warn_flag
5842 if test -z "$ac_cpp_err"; then
5843 eval "$as_ac_Header=yes"
5845 echo "$as_me: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5847 eval "$as_ac_Header=no"
5849 rm -f conftest.err conftest.$ac_ext
5851 echo "$as_me:5851: result: `eval echo '${'$as_ac_Header'}'`" >&5
5852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5854 cat >>confdefs.h <<EOF
5855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5861 cat >>confdefs.h <<\EOF
5865 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5867 cat >>confdefs.h <<EOF
5868 #define $cf_nculib_ROOT 1
5871 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5875 cf_ncuhdr_root=ncurses
5877 test -n "$cf_cv_curses_dir" && \
5878 test "$cf_cv_curses_dir" != "no" && { \
5880 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5881 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
5883 while test $cf_add_incdir != /usr/include
5885 if test -d $cf_add_incdir
5888 if test -n "$CFLAGS$CPPFLAGS" ; then
5889 # a loop is needed to ensure we can add subdirs of existing dirs
5890 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5891 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5892 cf_have_incdir=yes; break
5897 if test "$cf_have_incdir" = no ; then
5898 if test "$cf_add_incdir" = /usr/local/include ; then
5899 if test "$GCC" = yes
5901 cf_save_CPPFLAGS=$CPPFLAGS
5902 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line 5904 "configure"
5905 #include "confdefs.h"
5915 rm -f conftest.$ac_objext
5916 if { (eval echo "$as_me:5916: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>&5
5919 echo "$as_me:5919: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:5922: \"$ac_try\"") >&5
5925 echo "$as_me:5925: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5929 echo "$as_me: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5933 rm -f conftest.$ac_objext conftest.$ac_ext
5934 CPPFLAGS=$cf_save_CPPFLAGS
5939 if test "$cf_have_incdir" = no ; then
5940 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5942 echo "${as_me:-configure}:5942: testing adding $cf_add_incdir to include-path ..." 1>&5
5944 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5946 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5947 test "$cf_top_incdir" = "$cf_add_incdir" && break
5948 cf_add_incdir="$cf_top_incdir"
5959 echo "$as_me:5959: checking for $cf_ncuhdr_root header in include-path" >&5
5960 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5961 if test "${cf_cv_ncurses_h+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5966 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5967 for cf_header in $cf_header_list
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line 5971 "configure"
5972 #include "confdefs.h"
5974 #include <$cf_header>
5979 #ifdef NCURSES_VERSION
5981 printf("%s\n", NCURSES_VERSION);
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:5995: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>&5
5998 echo "$as_me:5998: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:6001: \"$ac_try\"") >&5
6004 echo "$as_me:6004: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 cf_cv_ncurses_h=$cf_header
6009 echo "$as_me: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6013 rm -f conftest.$ac_objext conftest.$ac_ext
6015 test "$cf_cv_ncurses_h" != no && break
6019 echo "$as_me:6019: result: $cf_cv_ncurses_h" >&5
6020 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6022 if test "$cf_cv_ncurses_h" != no ; then
6023 cf_cv_ncurses_header=$cf_cv_ncurses_h
6026 echo "$as_me:6026: checking for $cf_ncuhdr_root include-path" >&5
6027 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6028 if test "${cf_cv_ncurses_h2+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 test -n "$verbose" && echo
6036 # collect the current set of include-directories from compiler flags
6037 cf_header_path_list=""
6038 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6039 for cf_header_path in $CPPFLAGS $CFLAGS
6041 case $cf_header_path in #(vi
6043 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6045 test "x$cf_header_path" != "xNONE" && \
6046 test -d "$cf_header_path" && \
6048 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6049 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6050 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6051 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6052 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6053 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"
6056 cf_header_path_list="$cf_header_path_list $cf_search"
6062 # add the variations for the package we are looking for
6066 test "x/usr" != "x$prefix" && \
6068 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
6069 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6070 test -d /usr/include && cf_search="$cf_search /usr/include"
6071 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6072 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6073 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6074 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6077 test "x$prefix" != "xNONE" && \
6078 test -d "$prefix" && \
6080 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6081 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6082 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6083 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6084 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6085 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6088 test "x/usr/local" != "x$prefix" && \
6089 test -d "/usr/local" && \
6090 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
6091 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6092 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6093 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6094 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6095 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6096 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6099 test "x/opt" != "x$prefix" && \
6101 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
6102 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6103 test -d /opt/include && cf_search="$cf_search /opt/include"
6104 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6105 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6106 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6107 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6110 test "x$HOME" != "x$prefix" && \
6111 test -d "$HOME" && \
6112 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
6113 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6114 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6115 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6116 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6117 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6118 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6121 test "$includedir" != NONE && \
6122 test "$includedir" != "/usr/include" && \
6123 test -d "$includedir" && {
6124 test -d $includedir && cf_search="$cf_search $includedir"
6125 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6128 test "$oldincludedir" != NONE && \
6129 test "$oldincludedir" != "/usr/include" && \
6130 test -d "$oldincludedir" && {
6131 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6132 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6135 cf_search="$cf_search $cf_header_path_list"
6137 test -n "$verbose" && echo search path $cf_search
6138 cf_save2_CPPFLAGS="$CPPFLAGS"
6139 for cf_incdir in $cf_search
6142 if test -n "$cf_incdir" ; then
6143 for cf_add_incdir in $cf_incdir
6145 while test $cf_add_incdir != /usr/include
6147 if test -d $cf_add_incdir
6150 if test -n "$CFLAGS$CPPFLAGS" ; then
6151 # a loop is needed to ensure we can add subdirs of existing dirs
6152 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6153 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6154 cf_have_incdir=yes; break
6159 if test "$cf_have_incdir" = no ; then
6160 if test "$cf_add_incdir" = /usr/local/include ; then
6161 if test "$GCC" = yes
6163 cf_save_CPPFLAGS=$CPPFLAGS
6164 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 #line 6166 "configure"
6167 #include "confdefs.h"
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:6178: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6181 echo "$as_me:6181: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:6184: \"$ac_try\"") >&5
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6191 echo "$as_me: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6195 rm -f conftest.$ac_objext conftest.$ac_ext
6196 CPPFLAGS=$cf_save_CPPFLAGS
6201 if test "$cf_have_incdir" = no ; then
6202 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6204 echo "${as_me:-configure}:6204: testing adding $cf_add_incdir to include-path ..." 1>&5
6206 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6208 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6209 test "$cf_top_incdir" = "$cf_add_incdir" && break
6210 cf_add_incdir="$cf_top_incdir"
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line 6225 "configure"
6226 #include "confdefs.h"
6228 #include <$cf_header>
6233 #ifdef NCURSES_VERSION
6235 printf("%s\n", NCURSES_VERSION);
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:6249: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>&5
6252 echo "$as_me:6252: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:6255: \"$ac_try\"") >&5
6258 echo "$as_me:6258: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 cf_cv_ncurses_h2=$cf_header
6263 echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6267 rm -f conftest.$ac_objext conftest.$ac_ext
6269 if test "$cf_cv_ncurses_h2" != no ; then
6270 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6271 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6274 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6276 CPPFLAGS="$cf_save2_CPPFLAGS"
6277 test "$cf_cv_ncurses_h2" != no && break
6279 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6279: error: not found" >&5
6280 echo "$as_me: error: not found" >&2;}
6281 { (exit 1); exit 1; }; }
6284 echo "$as_me:6284: result: $cf_cv_ncurses_h2" >&5
6285 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6287 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6288 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6289 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6290 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6293 if test -n "$cf_1st_incdir" ; then
6294 for cf_add_incdir in $cf_1st_incdir
6296 while test $cf_add_incdir != /usr/include
6298 if test -d $cf_add_incdir
6301 if test -n "$CFLAGS$CPPFLAGS" ; then
6302 # a loop is needed to ensure we can add subdirs of existing dirs
6303 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6304 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6305 cf_have_incdir=yes; break
6310 if test "$cf_have_incdir" = no ; then
6311 if test "$cf_add_incdir" = /usr/local/include ; then
6312 if test "$GCC" = yes
6314 cf_save_CPPFLAGS=$CPPFLAGS
6315 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line 6317 "configure"
6318 #include "confdefs.h"
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:6329: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>&5
6332 echo "$as_me:6332: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:6335: \"$ac_try\"") >&5
6338 echo "$as_me:6338: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6342 echo "$as_me: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6346 rm -f conftest.$ac_objext conftest.$ac_ext
6347 CPPFLAGS=$cf_save_CPPFLAGS
6352 if test "$cf_have_incdir" = no ; then
6353 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6355 echo "${as_me:-configure}:6355: testing adding $cf_add_incdir to include-path ..." 1>&5
6357 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6359 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6360 test "$cf_top_incdir" = "$cf_add_incdir" && break
6361 cf_add_incdir="$cf_top_incdir"
6372 # Set definitions to allow ifdef'ing for ncurses.h
6374 case $cf_cv_ncurses_header in # (vi
6377 cat >>confdefs.h <<\EOF
6378 #define HAVE_NCURSES_H 1
6384 case $cf_cv_ncurses_header in # (vi
6385 ncurses/curses.h|ncurses/ncurses.h)
6387 cat >>confdefs.h <<\EOF
6388 #define HAVE_NCURSES_NCURSES_H 1
6392 ncursesw/curses.h|ncursesw/ncurses.h)
6394 cat >>confdefs.h <<\EOF
6395 #define HAVE_NCURSESW_NCURSES_H 1
6401 echo "$as_me:6401: checking for terminfo header" >&5
6402 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6403 if test "${cf_cv_term_header+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 case ${cf_cv_ncurses_header} in #(vi
6408 */ncurses.h|*/ncursesw.h) #(vi
6409 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6412 cf_term_header=term.h
6416 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6418 cat >conftest.$ac_ext <<_ACEOF
6419 #line 6419 "configure"
6420 #include "confdefs.h"
6422 #include <${cf_cv_ncurses_header:-curses.h}>
6428 int x = auto_left_margin
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:6434: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>&5
6437 echo "$as_me:6437: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:6440: \"$ac_try\"") >&5
6443 echo "$as_me:6443: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6446 cf_cv_term_header="$cf_test"
6448 echo "$as_me: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 cf_cv_term_header=unknown
6454 rm -f conftest.$ac_objext conftest.$ac_ext
6455 test "$cf_cv_term_header" != unknown && break
6459 echo "$as_me:6459: result: $cf_cv_term_header" >&5
6460 echo "${ECHO_T}$cf_cv_term_header" >&6
6462 # Set definitions to allow ifdef'ing to accommodate subdirectories
6464 case $cf_cv_term_header in # (vi
6467 cat >>confdefs.h <<\EOF
6468 #define HAVE_TERM_H 1
6474 case $cf_cv_term_header in # (vi
6475 ncurses/term.h) #(vi
6477 cat >>confdefs.h <<\EOF
6478 #define HAVE_NCURSES_TERM_H 1
6484 cat >>confdefs.h <<\EOF
6485 #define HAVE_NCURSESW_TERM_H 1
6491 # some applications need this, but should check for NCURSES_VERSION
6493 cat >>confdefs.h <<\EOF
6497 echo "$as_me:6497: checking for ncurses version" >&5
6498 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6499 if test "${cf_cv_ncurses_version+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cf_cv_ncurses_version=no
6506 if test "$cross_compiling" = yes; then
6508 # This will not work if the preprocessor splits the line after the
6509 # Autoconf token. The 'unproto' program does that.
6510 cat > conftest.$ac_ext <<EOF
6511 #include <${cf_cv_ncurses_header:-curses.h}>
6513 #ifdef NCURSES_VERSION
6514 Autoconf NCURSES_VERSION
6522 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6523 { (eval echo "$as_me:6523: \"$cf_try\"") >&5
6526 echo "$as_me:6526: \$? = $ac_status" >&5
6527 (exit $ac_status); }
6528 if test -f conftest.out ; then
6529 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6530 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line 6536 "configure"
6537 #include "confdefs.h"
6539 #include <${cf_cv_ncurses_header:-curses.h}>
6543 FILE *fp = fopen("$cf_tempfile", "w");
6544 #ifdef NCURSES_VERSION
6545 # ifdef NCURSES_VERSION_PATCH
6546 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6548 fprintf(fp, "%s\n", NCURSES_VERSION);
6552 fprintf(fp, "old\n");
6557 ${cf_cv_main_return:-return}(0);
6560 rm -f conftest$ac_exeext
6561 if { (eval echo "$as_me:6561: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>&5
6564 echo "$as_me:6564: \$? = $ac_status" >&5
6565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6566 { (eval echo "$as_me:6566: \"$ac_try\"") >&5
6569 echo "$as_me:6569: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6572 cf_cv_ncurses_version=`cat $cf_tempfile`
6574 echo "$as_me: program exited with status $ac_status" >&5
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6583 echo "$as_me:6583: result: $cf_cv_ncurses_version" >&5
6584 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6585 test "$cf_cv_ncurses_version" = no ||
6586 cat >>confdefs.h <<\EOF
6590 cf_nculib_root=ncurses
6591 # This works, except for the special case where we find gpm, but
6592 # ncurses is in a nonstandard location via $LIBS, and we really want
6595 cf_ncurses_SAVE="$LIBS"
6596 echo "$as_me:6596: checking for Gpm_Open in -lgpm" >&5
6597 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6598 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_check_lib_save_LIBS=$LIBS
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line 6604 "configure"
6605 #include "confdefs.h"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (eval echo "$as_me:6623: \"$ac_link\"") >&5
6624 (eval $ac_link) 2>&5
6626 echo "$as_me:6626: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:6629: \"$ac_try\"") >&5
6632 echo "$as_me:6632: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_lib_gpm_Gpm_Open=yes
6636 echo "$as_me: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 ac_cv_lib_gpm_Gpm_Open=no
6640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6641 LIBS=$ac_check_lib_save_LIBS
6643 echo "$as_me:6643: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6644 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6645 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6646 echo "$as_me:6646: checking for initscr in -lgpm" >&5
6647 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6648 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 ac_check_lib_save_LIBS=$LIBS
6653 cat >conftest.$ac_ext <<_ACEOF
6654 #line 6654 "configure"
6655 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6672 rm -f conftest.$ac_objext conftest$ac_exeext
6673 if { (eval echo "$as_me:6673: \"$ac_link\"") >&5
6674 (eval $ac_link) 2>&5
6676 echo "$as_me:6676: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -s conftest$ac_exeext'
6679 { (eval echo "$as_me:6679: \"$ac_try\"") >&5
6682 echo "$as_me:6682: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6684 ac_cv_lib_gpm_initscr=yes
6686 echo "$as_me: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 ac_cv_lib_gpm_initscr=no
6690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6691 LIBS=$ac_check_lib_save_LIBS
6693 echo "$as_me:6693: result: $ac_cv_lib_gpm_initscr" >&5
6694 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6695 if test $ac_cv_lib_gpm_initscr = yes; then
6696 LIBS="$cf_ncurses_SAVE"
6698 cf_ncurses_LIBS="-lgpm"
6703 case $host_os in #(vi
6705 # This is only necessary if you are linking against an obsolete
6706 # version of ncurses (but it should do no harm, since it's static).
6707 if test "$cf_nculib_root" = ncurses ; then
6708 echo "$as_me:6708: checking for tgoto in -lmytinfo" >&5
6709 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6710 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_check_lib_save_LIBS=$LIBS
6714 LIBS="-lmytinfo $LIBS"
6715 cat >conftest.$ac_ext <<_ACEOF
6716 #line 6716 "configure"
6717 #include "confdefs.h"
6719 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:6735: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>&5
6738 echo "$as_me:6738: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:6741: \"$ac_try\"") >&5
6744 echo "$as_me:6744: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_lib_mytinfo_tgoto=yes
6748 echo "$as_me: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 ac_cv_lib_mytinfo_tgoto=no
6752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6753 LIBS=$ac_check_lib_save_LIBS
6755 echo "$as_me:6755: result: $ac_cv_lib_mytinfo_tgoto" >&5
6756 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6757 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6758 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6765 LIBS="$cf_ncurses_LIBS $LIBS"
6767 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6769 LIBS="-l$cf_nculib_root $LIBS"
6772 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6774 echo "$as_me:6774: checking for initscr" >&5
6775 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6776 if test "${ac_cv_func_initscr+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6780 #line 6780 "configure"
6781 #include "confdefs.h"
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char initscr (); below. */
6785 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6797 /* The GNU C library defines this for functions which it implements
6798 to always fail with ENOSYS. Some functions are actually named
6799 something starting with __ and the normal name is an alias. */
6800 #if defined (__stub_initscr) || defined (__stub___initscr)
6803 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6810 rm -f conftest.$ac_objext conftest$ac_exeext
6811 if { (eval echo "$as_me:6811: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>&5
6814 echo "$as_me:6814: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest$ac_exeext'
6817 { (eval echo "$as_me:6817: \"$ac_try\"") >&5
6820 echo "$as_me:6820: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_func_initscr=yes
6824 echo "$as_me: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6826 ac_cv_func_initscr=no
6828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6830 echo "$as_me:6830: result: $ac_cv_func_initscr" >&5
6831 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6832 if test $ac_cv_func_initscr = yes; then
6833 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6836 cf_save_LIBS="$LIBS"
6837 echo "$as_me:6837: checking for initscr in -l$cf_nculib_root" >&5
6838 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6839 LIBS="-l$cf_nculib_root $LIBS"
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line 6841 "configure"
6842 #include "confdefs.h"
6843 #include <${cf_cv_ncurses_header:-curses.h}>
6852 rm -f conftest.$ac_objext conftest$ac_exeext
6853 if { (eval echo "$as_me:6853: \"$ac_link\"") >&5
6854 (eval $ac_link) 2>&5
6856 echo "$as_me:6856: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -s conftest$ac_exeext'
6859 { (eval echo "$as_me:6859: \"$ac_try\"") >&5
6862 echo "$as_me:6862: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 echo "$as_me:6864: result: yes" >&5
6865 echo "${ECHO_T}yes" >&6
6866 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 echo "$as_me:6871: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6875 cf_library_path_list=""
6876 if test -n "${LDFLAGS}${LIBS}" ; then
6877 for cf_library_path in $LDFLAGS $LIBS
6879 case $cf_library_path in #(vi
6881 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6883 test "x$cf_library_path" != "xNONE" && \
6884 test -d "$cf_library_path" && \
6886 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6887 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6888 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6889 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6890 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6891 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"
6894 cf_library_path_list="$cf_library_path_list $cf_search"
6902 test "x/usr" != "x$prefix" && \
6904 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
6905 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6906 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6907 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6908 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6909 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6910 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6913 test "x$prefix" != "xNONE" && \
6914 test -d "$prefix" && \
6916 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6917 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6918 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6919 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6920 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6921 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6924 test "x/usr/local" != "x$prefix" && \
6925 test -d "/usr/local" && \
6926 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
6927 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6928 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6929 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6930 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6931 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6932 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6935 test "x/opt" != "x$prefix" && \
6937 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
6938 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6939 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6940 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6941 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6942 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6943 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6946 test "x$HOME" != "x$prefix" && \
6947 test -d "$HOME" && \
6948 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
6949 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6950 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6951 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6952 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6953 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6954 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6957 cf_search="$cf_library_path_list $cf_search"
6959 for cf_libdir in $cf_search
6961 echo "$as_me:6961: checking for -l$cf_nculib_root in $cf_libdir" >&5
6962 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6963 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6964 cat >conftest.$ac_ext <<_ACEOF
6965 #line 6965 "configure"
6966 #include "confdefs.h"
6967 #include <${cf_cv_ncurses_header:-curses.h}>
6976 rm -f conftest.$ac_objext conftest$ac_exeext
6977 if { (eval echo "$as_me:6977: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6980 echo "$as_me:6980: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -s conftest$ac_exeext'
6983 { (eval echo "$as_me:6983: \"$ac_try\"") >&5
6986 echo "$as_me:6986: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 echo "$as_me:6988: result: yes" >&5
6989 echo "${ECHO_T}yes" >&6
6990 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6993 echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 echo "$as_me:6995: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997 LIBS="$cf_save_LIBS"
6999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7007 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7009 if test $cf_found_library = no ; then
7010 { { echo "$as_me:7010: error: Cannot link $cf_nculib_root library" >&5
7011 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7012 { (exit 1); exit 1; }; }
7017 if test -n "$cf_ncurses_LIBS" ; then
7018 echo "$as_me:7018: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7019 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7020 cf_ncurses_SAVE="$LIBS"
7021 for p in $cf_ncurses_LIBS ; do
7022 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7023 if test "$q" != "$LIBS" ; then
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line 7028 "configure"
7029 #include "confdefs.h"
7030 #include <${cf_cv_ncurses_header:-curses.h}>
7034 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:7040: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:7046: \"$ac_try\"") >&5
7049 echo "$as_me:7049: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 echo "$as_me:7051: result: yes" >&5
7052 echo "${ECHO_T}yes" >&6
7054 echo "$as_me: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7056 echo "$as_me:7056: result: no" >&5
7057 echo "${ECHO_T}no" >&6
7058 LIBS="$cf_ncurses_SAVE"
7060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7063 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7065 cat >>confdefs.h <<EOF
7066 #define $cf_nculib_ROOT 1
7073 if test "$NCURSES_CONFIG" != none ; then
7075 cf_version=`$NCURSES_CONFIG --version`
7077 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
7078 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
7079 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
7081 # ABI version is not available from headers
7082 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version`
7086 for cf_name in MAJOR MINOR PATCH
7088 cat >conftest.$ac_ext <<CF_EOF
7089 #include <${cf_cv_ncurses_header:-curses.h}>
7090 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
7092 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
7093 { (eval echo "$as_me:7093: \"$cf_try\"") >&5
7096 echo "$as_me:7096: \$? = $ac_status" >&5
7097 (exit $ac_status); }
7098 if test -f conftest.out ; then
7099 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ][ ]*//"`
7100 eval NCURSES_$cf_name=\"$cf_result\"
7101 # cat conftest.$ac_ext
7106 cf_cv_abi_version=${NCURSES_MAJOR}
7110 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
7112 cf_cv_timestamp=`date`
7114 echo "$as_me:7114: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
7115 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
7117 echo "$as_me:7117: checking if you want to have a library-prefix" >&5
7118 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
7120 # Check whether --with-lib-prefix or --without-lib-prefix was given.
7121 if test "${with_lib_prefix+set}" = set; then
7122 withval="$with_lib_prefix"
7123 with_lib_prefix=$withval
7125 with_lib_prefix=auto
7127 echo "$as_me:7127: result: $with_lib_prefix" >&5
7128 echo "${ECHO_T}$with_lib_prefix" >&6
7130 if test $with_lib_prefix = auto
7133 case $cf_cv_system_name in #(vi
7140 cf_prefix=$LIB_PREFIX
7142 elif test $with_lib_prefix = no
7146 LIB_PREFIX=$with_lib_prefix
7151 ###############################################################################
7153 if test X"$CC_G_OPT" = X"" ; then
7155 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
7158 echo "$as_me:7158: checking for default loader flags" >&5
7159 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
7160 case $DFT_LWR_MODEL in
7161 normal) LD_MODEL='' ;;
7162 debug) LD_MODEL=$CC_G_OPT ;;
7163 profile) LD_MODEL='-pg';;
7164 shared) LD_MODEL='' ;;
7166 echo "$as_me:7166: result: $LD_MODEL" >&5
7167 echo "${ECHO_T}$LD_MODEL" >&6
7170 echo "$as_me:7170: checking for an rpath option" >&5
7171 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
7172 case $cf_cv_system_name in #(vi
7174 if test "$GCC" = yes; then
7175 LD_RPATH_OPT="-Wl,-rpath,"
7177 LD_RPATH_OPT="-rpath "
7180 linux*|gnu*|k*bsd*-gnu) #(vi
7181 LD_RPATH_OPT="-Wl,-rpath,"
7183 openbsd[2-9].*|mirbsd*) #(vi
7184 LD_RPATH_OPT="-Wl,-rpath,"
7186 dragonfly*|freebsd*) #(vi
7187 LD_RPATH_OPT="-rpath "
7190 LD_RPATH_OPT="-Wl,-rpath,"
7193 LD_RPATH_OPT="-rpath "
7201 echo "$as_me:7201: result: $LD_RPATH_OPT" >&5
7202 echo "${ECHO_T}$LD_RPATH_OPT" >&6
7204 case "x$LD_RPATH_OPT" in #(vi
7206 echo "$as_me:7206: checking if we need a space after rpath option" >&5
7207 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
7208 cf_save_LIBS="$LIBS"
7209 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
7210 cat >conftest.$ac_ext <<_ACEOF
7211 #line 7211 "configure"
7212 #include "confdefs.h"
7222 rm -f conftest.$ac_objext conftest$ac_exeext
7223 if { (eval echo "$as_me:7223: \"$ac_link\"") >&5
7224 (eval $ac_link) 2>&5
7226 echo "$as_me:7226: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -s conftest$ac_exeext'
7229 { (eval echo "$as_me:7229: \"$ac_try\"") >&5
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7236 echo "$as_me: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7241 LIBS="$cf_save_LIBS"
7242 echo "$as_me:7242: result: $cf_rpath_space" >&5
7243 echo "${ECHO_T}$cf_rpath_space" >&6
7244 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
7252 INSTALL_LIB="-m 644"
7253 : ${rel_builddir:=.}
7259 cf_cv_do_symlinks=no
7261 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
7263 echo "$as_me:7263: checking if release/abi version should be used for shared libs" >&5
7264 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
7266 # Check whether --with-shlib-version or --without-shlib-version was given.
7267 if test "${with_shlib_version+set}" = set; then
7268 withval="$with_shlib_version"
7269 test -z "$withval" && withval=auto
7270 case $withval in #(vi
7272 cf_cv_shlib_version=auto
7274 rel|abi|auto|no) #(vi
7275 cf_cv_shlib_version=$withval
7278 { { echo "$as_me:7278: error: option value must be one of: rel, abi, auto or no" >&5
7279 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
7280 { (exit 1); exit 1; }; }
7285 cf_cv_shlib_version=auto
7287 echo "$as_me:7287: result: $cf_cv_shlib_version" >&5
7288 echo "${ECHO_T}$cf_cv_shlib_version" >&6
7293 # Some less-capable ports of gcc support only -fpic
7295 if test "$GCC" = yes
7297 echo "$as_me:7297: checking which $CC option to use" >&5
7298 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
7299 cf_save_CFLAGS="$CFLAGS"
7300 for CC_SHARED_OPTS in -fPIC -fpic ''
7302 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line 7304 "configure"
7305 #include "confdefs.h"
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:7316: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:7322: \"$ac_try\"") >&5
7325 echo "$as_me:7325: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7329 echo "$as_me: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 rm -f conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me:7334: result: $CC_SHARED_OPTS" >&5
7335 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
7336 CFLAGS="$cf_save_CFLAGS"
7339 cf_cv_shlib_version_infix=no
7341 case $cf_cv_system_name in #(vi
7342 aix4.3-9*|aix[5-7]*) #(vi
7343 if test "$GCC" = yes; then
7345 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
7347 # CC_SHARED_OPTS='-qpic=large -G'
7348 # perhaps "-bM:SRE -bnoentry -bexpall"
7349 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
7353 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
7357 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7358 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7359 cf_cv_shlib_version=cygdll
7360 cf_cv_shlib_version_infix=cygdll
7363 cat >mk_shared_lib.sh <<-CF_EOF
7366 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7369 Linking shared library
7370 ** SHARED_LIB \$SHARED_LIB
7371 ** IMPORT_LIB \$IMPORT_LIB
7373 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7375 chmod +x mk_shared_lib.sh
7379 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7380 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7381 cf_cv_shlib_version=msysdll
7382 cf_cv_shlib_version_infix=msysdll
7385 cat >mk_shared_lib.sh <<-CF_EOF
7388 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7391 Linking shared library
7392 ** SHARED_LIB \$SHARED_LIB
7393 ** IMPORT_LIB \$IMPORT_LIB
7395 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7397 chmod +x mk_shared_lib.sh
7400 cf_try_cflags="no-cpp-precomp"
7401 CC_SHARED_OPTS="-dynamic"
7402 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
7403 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
7404 cf_cv_shlib_version_infix=yes
7405 echo "$as_me:7405: checking if ld -search_paths_first works" >&5
7406 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
7407 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cf_save_LDFLAGS=$LDFLAGS
7412 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7413 cat >conftest.$ac_ext <<_ACEOF
7414 #line 7414 "configure"
7415 #include "confdefs.h"
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (eval echo "$as_me:7426: \"$ac_link\"") >&5
7427 (eval $ac_link) 2>&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -s conftest$ac_exeext'
7432 { (eval echo "$as_me:7432: \"$ac_try\"") >&5
7435 echo "$as_me:7435: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 cf_cv_ldflags_search_paths_first=yes
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 cf_cv_ldflags_search_paths_first=no
7443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7444 LDFLAGS=$cf_save_LDFLAGS
7446 echo "$as_me:7446: result: $cf_cv_ldflags_search_paths_first" >&5
7447 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
7448 if test $cf_cv_ldflags_search_paths_first = yes; then
7449 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7453 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
7454 if test "$GCC" != yes; then
7457 MK_SHARED_LIB='${LD} -b -o $@'
7458 INSTALL_LIB="-m 555"
7461 # (tested with gcc 2.7.2 -- I don't have c89)
7462 if test "$GCC" = yes; then
7463 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
7466 LD_SHARED_OPTS='-Wl,+b,${libdir}'
7468 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
7469 # HP-UX shared libraries must be executable, and should be
7470 # readonly to exploit a quirk in the memory manager.
7471 INSTALL_LIB="-m 555"
7474 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7475 if test "$cf_cv_shlib_version" = rel; then
7476 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
7478 cf_shared_soname='`basename `'
7481 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
7484 if test "$cf_cv_enable_rpath" = yes ; then
7485 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7487 # tested with IRIX 5.2 and 'cc'.
7488 if test "$GCC" != yes; then
7489 CC_SHARED_OPTS='-KPIC'
7490 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
7492 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
7494 cf_cv_rm_so_locs=yes
7496 linux*|gnu*|k*bsd*-gnu) #(vi
7497 if test "$DFT_LWR_MODEL" = "shared" ; then
7498 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7499 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7501 if test "$cf_cv_enable_rpath" = yes ; then
7502 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7505 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7506 if test "$cf_cv_shlib_version" = rel; then
7507 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7509 cf_cv_shared_soname='`basename $@`'
7512 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7515 cf_cv_shlib_version=mingw
7516 cf_cv_shlib_version_infix=mingw
7519 if test "$DFT_LWR_MODEL" = "shared" ; then
7520 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
7521 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7522 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
7525 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7526 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7527 cat >mk_shared_lib.sh <<-CF_EOF
7530 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
7533 Linking shared library
7534 ** SHARED_LIB \$SHARED_LIB
7535 ** IMPORT_LIB \$IMPORT_LIB
7537 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7539 chmod +x mk_shared_lib.sh
7541 openbsd[2-9].*|mirbsd*) #(vi
7542 if test "$DFT_LWR_MODEL" = "shared" ; then
7543 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7544 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7546 if test "$cf_cv_enable_rpath" = yes ; then
7547 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7549 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7551 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7552 if test "$cf_cv_shlib_version" = rel; then
7553 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7555 cf_cv_shared_soname='`basename $@`'
7558 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7560 nto-qnx*|openbsd*|freebsd[12].*) #(vi
7561 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7562 MK_SHARED_LIB='${LD} -Bshareable -o $@'
7563 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7565 dragonfly*|freebsd*) #(vi
7566 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7567 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7568 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7569 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
7570 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7573 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7574 if test "$cf_cv_shlib_version" = rel; then
7575 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7577 cf_cv_shared_soname='`basename $@`'
7580 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
7583 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7584 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7585 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7586 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7587 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7588 if test "$cf_cv_shlib_version" = auto; then
7589 if test -f /usr/libexec/ld.elf_so; then
7590 cf_cv_shlib_version=abi
7592 cf_cv_shlib_version=rel
7596 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7597 if test "$cf_cv_shlib_version" = rel; then
7598 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7600 cf_cv_shared_soname='`basename $@`'
7603 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7605 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
7609 # tested with OSF/1 V3.2 and 'cc'
7610 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7611 # link with shared libs).
7612 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7613 case $host_os in #(vi
7615 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7618 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7619 if test "$DFT_LWR_MODEL" = "shared" ; then
7620 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7621 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7623 cf_cv_rm_so_locs=yes
7625 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
7626 # tested with osr5.0.5
7627 if test "$GCC" != yes; then
7628 CC_SHARED_OPTS='-belf -KPIC'
7630 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7631 if test "$cf_cv_enable_rpath" = yes ; then
7632 # only way is to set LD_RUN_PATH but no switch for it
7635 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7636 LINK_PROGS='LD_RUN_PATH=${libdir}'
7637 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7640 # tested with SunOS 4.1.1 and gcc 2.7.0
7641 if test "$GCC" != yes; then
7642 CC_SHARED_OPTS='-KPIC'
7644 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
7645 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7648 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7649 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7650 if test "$DFT_LWR_MODEL" = "shared" ; then
7651 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7652 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7654 if test "$cf_cv_enable_rpath" = yes ; then
7655 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7658 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7659 if test "$cf_cv_shlib_version" = rel; then
7660 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7662 cf_cv_shared_soname='`basename $@`'
7665 if test "$GCC" != yes; then
7666 cf_save_CFLAGS="$CFLAGS"
7667 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7669 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7670 cat >conftest.$ac_ext <<_ACEOF
7671 #line 7671 "configure"
7672 #include "confdefs.h"
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:7683: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>&5
7686 echo "$as_me:7686: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:7689: \"$ac_try\"") >&5
7692 echo "$as_me:7692: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7696 echo "$as_me: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7699 rm -f conftest.$ac_objext conftest.$ac_ext
7701 CFLAGS="$cf_save_CFLAGS"
7702 CC_SHARED_OPTS=$cf_shared_opts
7703 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
7705 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7708 sysv5uw7*|unix_sv*) #(vi
7709 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7710 if test "$GCC" != yes; then
7711 CC_SHARED_OPTS='-KPIC'
7713 MK_SHARED_LIB='${LD} -d y -G -o $@'
7716 CC_SHARED_OPTS='unknown'
7717 MK_SHARED_LIB='echo unknown'
7721 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7722 case "$cf_cv_shlib_version" in #(vi
7724 case "$MK_SHARED_LIB" in #(vi
7726 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7729 { echo "$as_me:7729: WARNING: ignored --with-shlib-version" >&5
7730 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7736 if test -n "$cf_try_cflags"
7738 cat > conftest.$ac_ext <<EOF
7739 #line 7739 "${as_me:-configure}"
7741 int main(int argc, char *argv[])
7744 return (argv[argc-1] == 0) ;
7747 cf_save_CFLAGS="$CFLAGS"
7748 for cf_opt in $cf_try_cflags
7750 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7751 echo "$as_me:7751: checking if CFLAGS option -$cf_opt works" >&5
7752 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7753 if { (eval echo "$as_me:7753: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>&5
7756 echo "$as_me:7756: \$? = $ac_status" >&5
7757 (exit $ac_status); }; then
7758 echo "$as_me:7758: result: yes" >&5
7759 echo "${ECHO_T}yes" >&6
7760 cf_save_CFLAGS="$CFLAGS"
7762 echo "$as_me:7762: result: no" >&5
7763 echo "${ECHO_T}no" >&6
7766 CFLAGS="$cf_save_CFLAGS"
7769 # RPATH_LIST is a colon-separated list of directories
7770 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7771 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7773 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7775 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7777 echo "${as_me:-configure}:7777: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7779 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7781 echo "${as_me:-configure}:7781: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7783 # The test/sample programs in the original tree link using rpath option.
7784 # Make it optional for packagers.
7785 if test -n "$LOCAL_LDFLAGS"
7787 echo "$as_me:7787: checking if you want to link sample programs with rpath option" >&5
7788 echo $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
7790 # Check whether --enable-rpath-link or --disable-rpath-link was given.
7791 if test "${enable_rpath_link+set}" = set; then
7792 enableval="$enable_rpath_link"
7793 with_rpath_link=$enableval
7797 echo "$as_me:7797: result: $with_rpath_link" >&5
7798 echo "${ECHO_T}$with_rpath_link" >&6
7799 if test "$with_rpath_link" = no
7806 ###############################################################################
7808 ### use option --enable-broken-linker to force on use of broken-linker support
7809 echo "$as_me:7809: checking if you want broken-linker support code" >&5
7810 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7812 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7813 if test "${enable_broken_linker+set}" = set; then
7814 enableval="$enable_broken_linker"
7815 with_broken_linker=$enableval
7817 with_broken_linker=${BROKEN_LINKER:-no}
7819 echo "$as_me:7819: result: $with_broken_linker" >&5
7820 echo "${ECHO_T}$with_broken_linker" >&6
7823 if test "$with_broken_linker" = yes ; then
7824 cat >>confdefs.h <<\EOF
7825 #define BROKEN_LINKER 1
7829 elif test "$DFT_LWR_MODEL" = shared ; then
7830 case $cf_cv_system_name in #(vi
7832 cat >>confdefs.h <<\EOF
7833 #define BROKEN_LINKER 1
7837 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7839 echo "${as_me:-configure}:7839: testing cygwin linker is broken anyway ..." 1>&5
7845 # Check to define _XOPEN_SOURCE "automatically"
7848 cf_POSIX_C_SOURCE=199506L
7851 case $host_os in #(vi
7853 cf_xopen_source="-D_ALL_SOURCE"
7859 cf_xopen_source="-D_APPLE_C_SOURCE"
7862 cf_xopen_source="-D_DARWIN_C_SOURCE"
7865 freebsd*|dragonfly*) #(vi
7866 # 5.x headers associate
7867 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7868 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7869 cf_POSIX_C_SOURCE=200112L
7871 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7874 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7877 cf_xopen_source="-D_HPUX_SOURCE"
7880 cf_xopen_source="-D_SGI_SOURCE"
7883 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7885 echo "$as_me:7885: checking if we must define _GNU_SOURCE" >&5
7886 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7887 if test "${cf_cv_gnu_source+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line 7892 "configure"
7893 #include "confdefs.h"
7894 #include <sys/types.h>
7899 #ifndef _XOPEN_SOURCE
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:7907: \"$ac_compile\"") >&5
7908 (eval $ac_compile) 2>&5
7910 echo "$as_me:7910: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:7913: \"$ac_try\"") >&5
7916 echo "$as_me:7916: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7920 echo "$as_me: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7923 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line 7925 "configure"
7926 #include "confdefs.h"
7927 #include <sys/types.h>
7932 #ifdef _XOPEN_SOURCE
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:7940: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>&5
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest.$ac_objext'
7946 { (eval echo "$as_me:7946: \"$ac_try\"") >&5
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 cf_cv_gnu_source=yes
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7961 rm -f conftest.$ac_objext conftest.$ac_ext
7964 echo "$as_me:7964: result: $cf_cv_gnu_source" >&5
7965 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7966 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7970 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7973 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7975 cf_save_CFLAGS="$CFLAGS"
7976 cf_save_CPPFLAGS="$CPPFLAGS"
7978 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7979 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7980 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7982 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7983 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7984 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7986 echo "$as_me:7986: checking if we should define _POSIX_C_SOURCE" >&5
7987 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7988 if test "${cf_cv_posix_c_source+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 echo "${as_me:-configure}:7992: testing if the symbol is already defined go no further ..." 1>&5
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line 7995 "configure"
7996 #include "confdefs.h"
7997 #include <sys/types.h>
8002 #ifndef _POSIX_C_SOURCE
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:8010: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>&5
8013 echo "$as_me:8013: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -s conftest.$ac_objext'
8016 { (eval echo "$as_me:8016: \"$ac_try\"") >&5
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 cf_cv_posix_c_source=no
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 cf_want_posix_source=no
8026 case .$cf_POSIX_C_SOURCE in #(vi
8028 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8031 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8032 cf_want_posix_source=yes
8035 cf_want_posix_source=yes
8038 if test "$cf_want_posix_source" = yes ; then
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line 8040 "configure"
8041 #include "confdefs.h"
8042 #include <sys/types.h>
8047 #ifdef _POSIX_SOURCE
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:8055: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8058 echo "$as_me:8058: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:8061: \"$ac_try\"") >&5
8064 echo "$as_me:8064: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8068 echo "$as_me: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8070 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8072 rm -f conftest.$ac_objext conftest.$ac_ext
8075 echo "${as_me:-configure}:8075: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8077 CFLAGS="$cf_trim_CFLAGS"
8078 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8080 echo "${as_me:-configure}:8080: testing if the second compile does not leave our definition intact error ..." 1>&5
8082 cat >conftest.$ac_ext <<_ACEOF
8083 #line 8083 "configure"
8084 #include "confdefs.h"
8085 #include <sys/types.h>
8090 #ifndef _POSIX_C_SOURCE
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:8098: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8101 echo "$as_me:8101: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (eval echo "$as_me:8104: \"$ac_try\"") >&5
8107 echo "$as_me:8107: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8111 echo "$as_me: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8113 cf_cv_posix_c_source=no
8115 rm -f conftest.$ac_objext conftest.$ac_ext
8116 CFLAGS="$cf_save_CFLAGS"
8117 CPPFLAGS="$cf_save_CPPFLAGS"
8120 rm -f conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me:8123: result: $cf_cv_posix_c_source" >&5
8124 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8126 if test "$cf_cv_posix_c_source" != no ; then
8127 CFLAGS="$cf_trim_CFLAGS"
8128 CPPFLAGS="$cf_trim_CPPFLAGS"
8133 cf_new_extra_cppflags=
8135 for cf_add_cflags in $cf_cv_posix_c_source
8137 case $cf_fix_cppflags in
8139 case $cf_add_cflags in #(vi
8140 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8141 case $cf_add_cflags in
8143 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8145 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8146 && test -z "${cf_tst_cflags}" \
8147 && cf_fix_cppflags=yes
8149 if test $cf_fix_cppflags = yes ; then
8150 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8152 elif test "${cf_tst_cflags}" = "\"'" ; then
8153 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8159 *$cf_add_cflags) #(vi
8162 case $cf_add_cflags in #(vi
8164 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8166 CPPFLAGS=`echo "$CPPFLAGS" | \
8167 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8168 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8172 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8177 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8182 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8184 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8186 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8187 && test -z "${cf_tst_cflags}" \
8188 && cf_fix_cppflags=no
8193 if test -n "$cf_new_cflags" ; then
8195 CFLAGS="$CFLAGS $cf_new_cflags"
8198 if test -n "$cf_new_cppflags" ; then
8200 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8203 if test -n "$cf_new_extra_cppflags" ; then
8205 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8212 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8215 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8216 cf_xopen_source="-D_BSD_SOURCE"
8220 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8223 cf_xopen_source="-D_OSF_SOURCE"
8226 cf_xopen_source="-D_QNX_SOURCE"
8229 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8232 cf_xopen_source="-D__EXTENSIONS__"
8233 cf_cv_xopen_source=broken
8237 echo "$as_me:8237: checking if we should define _XOPEN_SOURCE" >&5
8238 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8239 if test "${cf_cv_xopen_source+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line 8244 "configure"
8245 #include "confdefs.h"
8249 #include <sys/types.h>
8255 #ifndef _XOPEN_SOURCE
8262 rm -f conftest.$ac_objext
8263 if { (eval echo "$as_me:8263: \"$ac_compile\"") >&5
8264 (eval $ac_compile) 2>&5
8266 echo "$as_me:8266: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -s conftest.$ac_objext'
8269 { (eval echo "$as_me:8269: \"$ac_try\"") >&5
8272 echo "$as_me:8272: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 cf_cv_xopen_source=no
8276 echo "$as_me: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8280 cat >conftest.$ac_ext <<_ACEOF
8281 #line 8281 "configure"
8282 #include "confdefs.h"
8286 #include <sys/types.h>
8292 #ifdef _XOPEN_SOURCE
8299 rm -f conftest.$ac_objext
8300 if { (eval echo "$as_me:8300: \"$ac_compile\"") >&5
8301 (eval $ac_compile) 2>&5
8303 echo "$as_me:8303: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -s conftest.$ac_objext'
8306 { (eval echo "$as_me:8306: \"$ac_try\"") >&5
8309 echo "$as_me:8309: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 cf_cv_xopen_source=no
8313 echo "$as_me: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8315 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8317 rm -f conftest.$ac_objext conftest.$ac_ext
8321 rm -f conftest.$ac_objext conftest.$ac_ext
8324 echo "$as_me:8324: result: $cf_cv_xopen_source" >&5
8325 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8327 if test "$cf_cv_xopen_source" != no ; then
8329 CFLAGS=`echo "$CFLAGS" | \
8330 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8331 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8333 CPPFLAGS=`echo "$CPPFLAGS" | \
8334 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8335 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8337 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8342 cf_new_extra_cppflags=
8344 for cf_add_cflags in $cf_temp_xopen_source
8346 case $cf_fix_cppflags in
8348 case $cf_add_cflags in #(vi
8349 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8350 case $cf_add_cflags in
8352 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8354 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8355 && test -z "${cf_tst_cflags}" \
8356 && cf_fix_cppflags=yes
8358 if test $cf_fix_cppflags = yes ; then
8359 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8361 elif test "${cf_tst_cflags}" = "\"'" ; then
8362 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8368 *$cf_add_cflags) #(vi
8371 case $cf_add_cflags in #(vi
8373 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8375 CPPFLAGS=`echo "$CPPFLAGS" | \
8376 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8377 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8381 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8386 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8391 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8393 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8395 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8396 && test -z "${cf_tst_cflags}" \
8397 && cf_fix_cppflags=no
8402 if test -n "$cf_new_cflags" ; then
8404 CFLAGS="$CFLAGS $cf_new_cflags"
8407 if test -n "$cf_new_cppflags" ; then
8409 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8412 if test -n "$cf_new_extra_cppflags" ; then
8414 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8419 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8421 cf_save_CFLAGS="$CFLAGS"
8422 cf_save_CPPFLAGS="$CPPFLAGS"
8424 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8425 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8426 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8428 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8429 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8430 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8432 echo "$as_me:8432: checking if we should define _POSIX_C_SOURCE" >&5
8433 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8434 if test "${cf_cv_posix_c_source+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 echo "${as_me:-configure}:8438: testing if the symbol is already defined go no further ..." 1>&5
8440 cat >conftest.$ac_ext <<_ACEOF
8441 #line 8441 "configure"
8442 #include "confdefs.h"
8443 #include <sys/types.h>
8448 #ifndef _POSIX_C_SOURCE
8455 rm -f conftest.$ac_objext
8456 if { (eval echo "$as_me:8456: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>&5
8459 echo "$as_me:8459: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:8462: \"$ac_try\"") >&5
8465 echo "$as_me:8465: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 cf_cv_posix_c_source=no
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 cf_want_posix_source=no
8472 case .$cf_POSIX_C_SOURCE in #(vi
8474 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8477 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8478 cf_want_posix_source=yes
8481 cf_want_posix_source=yes
8484 if test "$cf_want_posix_source" = yes ; then
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line 8486 "configure"
8487 #include "confdefs.h"
8488 #include <sys/types.h>
8493 #ifdef _POSIX_SOURCE
8500 rm -f conftest.$ac_objext
8501 if { (eval echo "$as_me:8501: \"$ac_compile\"") >&5
8502 (eval $ac_compile) 2>&5
8504 echo "$as_me:8504: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:8507: \"$ac_try\"") >&5
8510 echo "$as_me:8510: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8514 echo "$as_me: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8518 rm -f conftest.$ac_objext conftest.$ac_ext
8521 echo "${as_me:-configure}:8521: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8523 CFLAGS="$cf_trim_CFLAGS"
8524 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8526 echo "${as_me:-configure}:8526: testing if the second compile does not leave our definition intact error ..." 1>&5
8528 cat >conftest.$ac_ext <<_ACEOF
8529 #line 8529 "configure"
8530 #include "confdefs.h"
8531 #include <sys/types.h>
8536 #ifndef _POSIX_C_SOURCE
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:8544: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>&5
8547 echo "$as_me:8547: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -s conftest.$ac_objext'
8550 { (eval echo "$as_me:8550: \"$ac_try\"") >&5
8553 echo "$as_me:8553: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8557 echo "$as_me: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 cf_cv_posix_c_source=no
8561 rm -f conftest.$ac_objext conftest.$ac_ext
8562 CFLAGS="$cf_save_CFLAGS"
8563 CPPFLAGS="$cf_save_CPPFLAGS"
8566 rm -f conftest.$ac_objext conftest.$ac_ext
8569 echo "$as_me:8569: result: $cf_cv_posix_c_source" >&5
8570 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8572 if test "$cf_cv_posix_c_source" != no ; then
8573 CFLAGS="$cf_trim_CFLAGS"
8574 CPPFLAGS="$cf_trim_CPPFLAGS"
8579 cf_new_extra_cppflags=
8581 for cf_add_cflags in $cf_cv_posix_c_source
8583 case $cf_fix_cppflags in
8585 case $cf_add_cflags in #(vi
8586 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8587 case $cf_add_cflags in
8589 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8591 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8592 && test -z "${cf_tst_cflags}" \
8593 && cf_fix_cppflags=yes
8595 if test $cf_fix_cppflags = yes ; then
8596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8598 elif test "${cf_tst_cflags}" = "\"'" ; then
8599 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8605 *$cf_add_cflags) #(vi
8608 case $cf_add_cflags in #(vi
8610 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8612 CPPFLAGS=`echo "$CPPFLAGS" | \
8613 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8614 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8618 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8623 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8630 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8632 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8633 && test -z "${cf_tst_cflags}" \
8634 && cf_fix_cppflags=no
8639 if test -n "$cf_new_cflags" ; then
8641 CFLAGS="$CFLAGS $cf_new_cflags"
8644 if test -n "$cf_new_cppflags" ; then
8646 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8649 if test -n "$cf_new_extra_cppflags" ; then
8651 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8659 if test -n "$cf_xopen_source" ; then
8664 cf_new_extra_cppflags=
8666 for cf_add_cflags in $cf_xopen_source
8668 case $cf_fix_cppflags in
8670 case $cf_add_cflags in #(vi
8671 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8672 case $cf_add_cflags in
8674 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8676 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8677 && test -z "${cf_tst_cflags}" \
8678 && cf_fix_cppflags=yes
8680 if test $cf_fix_cppflags = yes ; then
8681 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8683 elif test "${cf_tst_cflags}" = "\"'" ; then
8684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8690 *$cf_add_cflags) #(vi
8693 case $cf_add_cflags in #(vi
8695 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8697 CPPFLAGS=`echo "$CPPFLAGS" | \
8698 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8699 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8703 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8708 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8713 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8715 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8717 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8718 && test -z "${cf_tst_cflags}" \
8719 && cf_fix_cppflags=no
8724 if test -n "$cf_new_cflags" ; then
8726 CFLAGS="$CFLAGS $cf_new_cflags"
8729 if test -n "$cf_new_cppflags" ; then
8731 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8734 if test -n "$cf_new_extra_cppflags" ; then
8736 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8741 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8742 echo "$as_me:8742: checking if _XOPEN_SOURCE really is set" >&5
8743 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line 8745 "configure"
8746 #include "confdefs.h"
8752 #ifndef _XOPEN_SOURCE
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:8760: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>&5
8763 echo "$as_me:8763: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (eval echo "$as_me:8766: \"$ac_try\"") >&5
8769 echo "$as_me:8769: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 cf_XOPEN_SOURCE_set=yes
8773 echo "$as_me: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8775 cf_XOPEN_SOURCE_set=no
8777 rm -f conftest.$ac_objext conftest.$ac_ext
8778 echo "$as_me:8778: result: $cf_XOPEN_SOURCE_set" >&5
8779 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8780 if test $cf_XOPEN_SOURCE_set = yes
8782 cat >conftest.$ac_ext <<_ACEOF
8783 #line 8783 "configure"
8784 #include "confdefs.h"
8790 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8797 rm -f conftest.$ac_objext
8798 if { (eval echo "$as_me:8798: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>&5
8801 echo "$as_me:8801: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:8804: \"$ac_try\"") >&5
8807 echo "$as_me:8807: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 cf_XOPEN_SOURCE_set_ok=yes
8811 echo "$as_me: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 cf_XOPEN_SOURCE_set_ok=no
8815 rm -f conftest.$ac_objext conftest.$ac_ext
8816 if test $cf_XOPEN_SOURCE_set_ok = no
8818 { echo "$as_me:8818: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8819 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8823 echo "$as_me:8823: checking if we should define _XOPEN_SOURCE" >&5
8824 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8825 if test "${cf_cv_xopen_source+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line 8830 "configure"
8831 #include "confdefs.h"
8835 #include <sys/types.h>
8841 #ifndef _XOPEN_SOURCE
8848 rm -f conftest.$ac_objext
8849 if { (eval echo "$as_me:8849: \"$ac_compile\"") >&5
8850 (eval $ac_compile) 2>&5
8852 echo "$as_me:8852: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -s conftest.$ac_objext'
8855 { (eval echo "$as_me:8855: \"$ac_try\"") >&5
8858 echo "$as_me:8858: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 cf_cv_xopen_source=no
8862 echo "$as_me: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8865 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8866 cat >conftest.$ac_ext <<_ACEOF
8867 #line 8867 "configure"
8868 #include "confdefs.h"
8872 #include <sys/types.h>
8878 #ifdef _XOPEN_SOURCE
8885 rm -f conftest.$ac_objext
8886 if { (eval echo "$as_me:8886: \"$ac_compile\"") >&5
8887 (eval $ac_compile) 2>&5
8889 echo "$as_me:8889: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -s conftest.$ac_objext'
8892 { (eval echo "$as_me:8892: \"$ac_try\"") >&5
8895 echo "$as_me:8895: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 cf_cv_xopen_source=no
8899 echo "$as_me: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8903 rm -f conftest.$ac_objext conftest.$ac_ext
8907 rm -f conftest.$ac_objext conftest.$ac_ext
8910 echo "$as_me:8910: result: $cf_cv_xopen_source" >&5
8911 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8913 if test "$cf_cv_xopen_source" != no ; then
8915 CFLAGS=`echo "$CFLAGS" | \
8916 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8917 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8919 CPPFLAGS=`echo "$CPPFLAGS" | \
8920 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8921 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8923 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8928 cf_new_extra_cppflags=
8930 for cf_add_cflags in $cf_temp_xopen_source
8932 case $cf_fix_cppflags in
8934 case $cf_add_cflags in #(vi
8935 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8936 case $cf_add_cflags in
8938 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8940 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8941 && test -z "${cf_tst_cflags}" \
8942 && cf_fix_cppflags=yes
8944 if test $cf_fix_cppflags = yes ; then
8945 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8947 elif test "${cf_tst_cflags}" = "\"'" ; then
8948 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8954 *$cf_add_cflags) #(vi
8957 case $cf_add_cflags in #(vi
8959 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8961 CPPFLAGS=`echo "$CPPFLAGS" | \
8962 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8963 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8967 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8972 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8977 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8979 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8981 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8982 && test -z "${cf_tst_cflags}" \
8983 && cf_fix_cppflags=no
8988 if test -n "$cf_new_cflags" ; then
8990 CFLAGS="$CFLAGS $cf_new_cflags"
8993 if test -n "$cf_new_cppflags" ; then
8995 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8998 if test -n "$cf_new_extra_cppflags" ; then
9000 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9008 # Check whether --enable-largefile or --disable-largefile was given.
9009 if test "${enable_largefile+set}" = set; then
9010 enableval="$enable_largefile"
9013 if test "$enable_largefile" != no; then
9015 echo "$as_me:9015: checking for special C compiler options needed for large files" >&5
9016 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9017 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 ac_cv_sys_largefile_CC=no
9021 if test "$GCC" != yes; then
9024 # IRIX 6.2 and later do not support large files by default,
9025 # so use the C compiler's -n32 option if that helps.
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line 9027 "configure"
9028 #include "confdefs.h"
9029 #include <sys/types.h>
9030 /* Check that off_t can represent 2**63 - 1 correctly.
9031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9032 since some C++ compilers masquerading as C compilers
9033 incorrectly reject 9223372036854775807. */
9034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9036 && LARGE_OFF_T % 2147483647 == 1)
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:9047: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>&5
9050 echo "$as_me:9050: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:9053: \"$ac_try\"") >&5
9056 echo "$as_me:9056: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9060 echo "$as_me: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 rm -f conftest.$ac_objext
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:9066: \"$ac_compile\"") >&5
9067 (eval $ac_compile) 2>&5
9069 echo "$as_me:9069: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:9072: \"$ac_try\"") >&5
9075 echo "$as_me:9075: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_cv_sys_largefile_CC=' -n32'; break
9079 echo "$as_me: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 rm -f conftest.$ac_objext
9086 rm -f conftest.$ac_ext
9089 echo "$as_me:9089: result: $ac_cv_sys_largefile_CC" >&5
9090 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9091 if test "$ac_cv_sys_largefile_CC" != no; then
9092 CC=$CC$ac_cv_sys_largefile_CC
9095 echo "$as_me:9095: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9096 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9097 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 ac_cv_sys_file_offset_bits=no
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line 9103 "configure"
9104 #include "confdefs.h"
9105 #include <sys/types.h>
9106 /* Check that off_t can represent 2**63 - 1 correctly.
9107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9108 since some C++ compilers masquerading as C compilers
9109 incorrectly reject 9223372036854775807. */
9110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9112 && LARGE_OFF_T % 2147483647 == 1)
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:9123: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9126 echo "$as_me:9126: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:9129: \"$ac_try\"") >&5
9132 echo "$as_me:9132: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9143 #define _FILE_OFFSET_BITS 64
9144 #include <sys/types.h>
9145 /* Check that off_t can represent 2**63 - 1 correctly.
9146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9147 since some C++ compilers masquerading as C compilers
9148 incorrectly reject 9223372036854775807. */
9149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9151 && LARGE_OFF_T % 2147483647 == 1)
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:9162: \"$ac_compile\"") >&5
9163 (eval $ac_compile) 2>&5
9165 echo "$as_me:9165: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -s conftest.$ac_objext'
9168 { (eval echo "$as_me:9168: \"$ac_try\"") >&5
9171 echo "$as_me:9171: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_sys_file_offset_bits=64; break
9175 echo "$as_me: failed program was:" >&5
9176 cat conftest.$ac_ext >&5
9178 rm -f conftest.$ac_objext conftest.$ac_ext
9182 echo "$as_me:9182: result: $ac_cv_sys_file_offset_bits" >&5
9183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9184 if test "$ac_cv_sys_file_offset_bits" != no; then
9186 cat >>confdefs.h <<EOF
9187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9192 echo "$as_me:9192: checking for _LARGE_FILES value needed for large files" >&5
9193 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9194 if test "${ac_cv_sys_large_files+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 ac_cv_sys_large_files=no
9199 cat >conftest.$ac_ext <<_ACEOF
9200 #line 9200 "configure"
9201 #include "confdefs.h"
9202 #include <sys/types.h>
9203 /* Check that off_t can represent 2**63 - 1 correctly.
9204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9205 since some C++ compilers masquerading as C compilers
9206 incorrectly reject 9223372036854775807. */
9207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9209 && LARGE_OFF_T % 2147483647 == 1)
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:9220: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:9226: \"$ac_try\"") >&5
9229 echo "$as_me:9229: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9233 echo "$as_me: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 rm -f conftest.$ac_objext conftest.$ac_ext
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line 9238 "configure"
9239 #include "confdefs.h"
9240 #define _LARGE_FILES 1
9241 #include <sys/types.h>
9242 /* Check that off_t can represent 2**63 - 1 correctly.
9243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9244 since some C++ compilers masquerading as C compilers
9245 incorrectly reject 9223372036854775807. */
9246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9248 && LARGE_OFF_T % 2147483647 == 1)
9258 rm -f conftest.$ac_objext
9259 if { (eval echo "$as_me:9259: \"$ac_compile\"") >&5
9260 (eval $ac_compile) 2>&5
9262 echo "$as_me:9262: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try='test -s conftest.$ac_objext'
9265 { (eval echo "$as_me:9265: \"$ac_try\"") >&5
9268 echo "$as_me:9268: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_sys_large_files=1; break
9272 echo "$as_me: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9275 rm -f conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:9279: result: $ac_cv_sys_large_files" >&5
9280 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9281 if test "$ac_cv_sys_large_files" != no; then
9283 cat >>confdefs.h <<EOF
9284 #define _LARGE_FILES $ac_cv_sys_large_files
9291 if test "$enable_largefile" != no ; then
9292 echo "$as_me:9292: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9293 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9294 if test "${ac_cv_sys_largefile_source+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 ac_cv_sys_largefile_source=no
9299 cat >conftest.$ac_ext <<_ACEOF
9300 #line 9300 "configure"
9301 #include "confdefs.h"
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:9312: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9315 echo "$as_me:9315: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:9318: \"$ac_try\"") >&5
9321 echo "$as_me:9321: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9325 echo "$as_me: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9328 rm -f conftest.$ac_objext conftest.$ac_ext
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9332 #define _LARGEFILE_SOURCE 1
9342 rm -f conftest.$ac_objext
9343 if { (eval echo "$as_me:9343: \"$ac_compile\"") >&5
9344 (eval $ac_compile) 2>&5
9346 echo "$as_me:9346: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -s conftest.$ac_objext'
9349 { (eval echo "$as_me:9349: \"$ac_try\"") >&5
9352 echo "$as_me:9352: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_sys_largefile_source=1; break
9356 echo "$as_me: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9359 rm -f conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:9363: result: $ac_cv_sys_largefile_source" >&5
9364 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9365 if test "$ac_cv_sys_largefile_source" != no; then
9367 cat >>confdefs.h <<EOF
9368 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9374 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9375 # in glibc 2.1.3, but that breaks too many other things.
9376 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9377 echo "$as_me:9377: checking for fseeko" >&5
9378 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9379 if test "${ac_cv_func_fseeko+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line 9383 "configure"
9384 #include "confdefs.h"
9389 return fseeko && fseeko (stdin, 0, 0);
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (eval echo "$as_me:9395: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>&5
9398 echo "$as_me:9398: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:9401: \"$ac_try\"") >&5
9404 echo "$as_me:9404: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_cv_func_fseeko=yes
9408 echo "$as_me: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9410 ac_cv_func_fseeko=no
9412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9414 echo "$as_me:9414: result: $ac_cv_func_fseeko" >&5
9415 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9416 if test $ac_cv_func_fseeko = yes; then
9418 cat >>confdefs.h <<\EOF
9419 #define HAVE_FSEEKO 1
9424 # Normally we would collect these definitions in the config.h,
9425 # but (like _XOPEN_SOURCE), some environments rely on having these
9426 # defined before any of the system headers are included. Another
9427 # case comes up with C++, e.g., on AIX the compiler compiles the
9428 # header files by themselves before looking at the body files it is
9429 # told to compile. For ncurses, those header files do not include
9431 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9432 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9433 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9435 echo "$as_me:9435: checking whether to use struct dirent64" >&5
9436 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9437 if test "${cf_cv_struct_dirent64+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line 9442 "configure"
9443 #include "confdefs.h"
9445 #include <sys/types.h>
9452 /* if transitional largefile support is setup, this is true */
9453 extern struct dirent64 * readdir(DIR *);
9454 struct dirent64 *x = readdir((DIR *)0);
9455 struct dirent *y = readdir((DIR *)0);
9462 rm -f conftest.$ac_objext
9463 if { (eval echo "$as_me:9463: \"$ac_compile\"") >&5
9464 (eval $ac_compile) 2>&5
9466 echo "$as_me:9466: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest.$ac_objext'
9469 { (eval echo "$as_me:9469: \"$ac_try\"") >&5
9472 echo "$as_me:9472: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 cf_cv_struct_dirent64=yes
9476 echo "$as_me: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 cf_cv_struct_dirent64=no
9480 rm -f conftest.$ac_objext conftest.$ac_ext
9483 echo "$as_me:9483: result: $cf_cv_struct_dirent64" >&5
9484 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9485 test "$cf_cv_struct_dirent64" = yes &&
9486 cat >>confdefs.h <<\EOF
9487 #define HAVE_STRUCT_DIRENT64 1
9492 ### Enable compiling-in rcs id's
9493 echo "$as_me:9493: checking if RCS identifiers should be compiled-in" >&5
9494 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9496 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9497 if test "${with_rcs_ids+set}" = set; then
9498 withval="$with_rcs_ids"
9499 with_rcs_ids=$withval
9503 echo "$as_me:9503: result: $with_rcs_ids" >&5
9504 echo "${ECHO_T}$with_rcs_ids" >&6
9505 test "$with_rcs_ids" = yes &&
9506 cat >>confdefs.h <<\EOF
9507 #define USE_RCS_IDS 1
9510 ###############################################################################
9512 ### Note that some functions (such as const) are normally disabled anyway.
9513 echo "$as_me:9513: checking if you want to build with function extensions" >&5
9514 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9516 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9517 if test "${enable_ext_funcs+set}" = set; then
9518 enableval="$enable_ext_funcs"
9519 with_ext_funcs=$enableval
9523 echo "$as_me:9523: result: $with_ext_funcs" >&5
9524 echo "${ECHO_T}$with_ext_funcs" >&6
9525 if test "$with_ext_funcs" = yes ; then
9528 cat >>confdefs.h <<\EOF
9529 #define HAVE_USE_DEFAULT_COLORS 1
9532 cat >>confdefs.h <<\EOF
9533 #define NCURSES_EXT_FUNCS 1
9540 ### use option --enable-const to turn on use of const beyond that in XSI.
9541 echo "$as_me:9541: checking for extended use of const keyword" >&5
9542 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9544 # Check whether --enable-const or --disable-const was given.
9545 if test "${enable_const+set}" = set; then
9546 enableval="$enable_const"
9547 with_ext_const=$enableval
9551 echo "$as_me:9551: result: $with_ext_const" >&5
9552 echo "${ECHO_T}$with_ext_const" >&6
9553 NCURSES_CONST='/*nothing*/'
9554 if test "$with_ext_const" = yes ; then
9558 ###############################################################################
9559 # These options are relatively safe to experiment with.
9561 echo "$as_me:9561: checking if you want all development code" >&5
9562 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9564 # Check whether --with-develop or --without-develop was given.
9565 if test "${with_develop+set}" = set; then
9566 withval="$with_develop"
9567 with_develop=$withval
9571 echo "$as_me:9571: result: $with_develop" >&5
9572 echo "${ECHO_T}$with_develop" >&6
9574 ###############################################################################
9575 # These are just experimental, probably should not be in a package:
9577 # This is still experimental (20080329), but should ultimately be moved to
9578 # the script-block --with-normal, etc.
9580 echo "$as_me:9580: checking if you want to link with the pthread library" >&5
9581 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
9583 # Check whether --with-pthread or --without-pthread was given.
9584 if test "${with_pthread+set}" = set; then
9585 withval="$with_pthread"
9586 with_pthread=$withval
9590 echo "$as_me:9590: result: $with_pthread" >&5
9591 echo "${ECHO_T}$with_pthread" >&6
9593 if test "$with_pthread" != no ; then
9594 echo "$as_me:9594: checking for pthread.h" >&5
9595 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9596 if test "${ac_cv_header_pthread_h+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9600 #line 9600 "configure"
9601 #include "confdefs.h"
9602 #include <pthread.h>
9604 if { (eval echo "$as_me:9604: \"$ac_cpp conftest.$ac_ext\"") >&5
9605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9607 egrep -v '^ *\+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:9610: \$? = $ac_status" >&5
9611 (exit $ac_status); } >/dev/null; then
9612 if test -s conftest.err; then
9613 ac_cpp_err=$ac_c_preproc_warn_flag
9620 if test -z "$ac_cpp_err"; then
9621 ac_cv_header_pthread_h=yes
9623 echo "$as_me: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9625 ac_cv_header_pthread_h=no
9627 rm -f conftest.err conftest.$ac_ext
9629 echo "$as_me:9629: result: $ac_cv_header_pthread_h" >&5
9630 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9631 if test $ac_cv_header_pthread_h = yes; then
9633 cat >>confdefs.h <<\EOF
9634 #define HAVE_PTHREADS_H 1
9637 for cf_lib_pthread in pthread c_r
9639 echo "$as_me:9639: checking if we can link with the $cf_lib_pthread library" >&5
9640 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
9641 cf_save_LIBS="$LIBS"
9642 LIBS="-l$cf_lib_pthread $LIBS"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 #line 9644 "configure"
9645 #include "confdefs.h"
9647 #include <pthread.h>
9653 int rc = pthread_create(0,0,0,0);
9654 int r2 = pthread_mutexattr_settype(0, 0);
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:9661: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>&5
9664 echo "$as_me:9664: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:9667: \"$ac_try\"") >&5
9670 echo "$as_me:9670: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9674 echo "$as_me: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9679 LIBS="$cf_save_LIBS"
9680 echo "$as_me:9680: result: $with_pthread" >&5
9681 echo "${ECHO_T}$with_pthread" >&6
9682 test "$with_pthread" = yes && break
9685 if test "$with_pthread" = yes ; then
9686 LIBS="-l$cf_lib_pthread $LIBS"
9688 cat >>confdefs.h <<\EOF
9689 #define HAVE_LIBPTHREADS 1
9693 { { echo "$as_me:9693: error: Cannot link with pthread library" >&5
9694 echo "$as_me: error: Cannot link with pthread library" >&2;}
9695 { (exit 1); exit 1; }; }
9702 echo "$as_me:9702: checking if you want to use weak-symbols for pthreads" >&5
9703 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
9705 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
9706 if test "${enable_weak_symbols+set}" = set; then
9707 enableval="$enable_weak_symbols"
9708 use_weak_symbols=$withval
9712 echo "$as_me:9712: result: $use_weak_symbols" >&5
9713 echo "${ECHO_T}$use_weak_symbols" >&6
9714 if test "$use_weak_symbols" = yes ; then
9716 echo "$as_me:9716: checking if $CC supports weak symbols" >&5
9717 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
9718 if test "${cf_cv_weak_symbols+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line 9723 "configure"
9724 #include "confdefs.h"
9731 #if defined(__GNUC__)
9732 # if defined __USE_ISOC99
9733 # define _cat_pragma(exp) _Pragma(#exp)
9734 # define _weak_pragma(exp) _cat_pragma(weak name)
9736 # define _weak_pragma(exp)
9738 # define _declare(name) __extension__ extern __typeof__(name) name
9739 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
9748 rm -f conftest.$ac_objext
9749 if { (eval echo "$as_me:9749: \"$ac_compile\"") >&5
9750 (eval $ac_compile) 2>&5
9752 echo "$as_me:9752: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -s conftest.$ac_objext'
9755 { (eval echo "$as_me:9755: \"$ac_try\"") >&5
9758 echo "$as_me:9758: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 cf_cv_weak_symbols=yes
9762 echo "$as_me: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 cf_cv_weak_symbols=no
9766 rm -f conftest.$ac_objext conftest.$ac_ext
9769 echo "$as_me:9769: result: $cf_cv_weak_symbols" >&5
9770 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
9773 cf_cv_weak_symbols=no
9776 if test $cf_cv_weak_symbols = yes ; then
9778 cat >>confdefs.h <<\EOF
9779 #define USE_WEAK_SYMBOLS 1
9785 if test "$with_pthread" = "yes" ; then
9787 cat >>confdefs.h <<\EOF
9788 #define USE_PTHREADS 1
9791 enable_reentrant=yes
9792 if test $cf_cv_weak_symbols = yes ; then
9797 # OpenSUSE is installing ncurses6, using reentrant option.
9798 echo "$as_me:9798: checking for _nc_TABSIZE" >&5
9799 echo $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
9800 if test "${ac_cv_func__nc_TABSIZE+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.$ac_ext <<_ACEOF
9804 #line 9804 "configure"
9805 #include "confdefs.h"
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char _nc_TABSIZE (); below. */
9809 /* Override any gcc2 internal prototype to avoid an error. */
9813 /* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9815 char _nc_TABSIZE ();
9821 /* The GNU C library defines this for functions which it implements
9822 to always fail with ENOSYS. Some functions are actually named
9823 something starting with __ and the normal name is an alias. */
9824 #if defined (__stub__nc_TABSIZE) || defined (__stub____nc_TABSIZE)
9827 f = _nc_TABSIZE; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:9835: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>&5
9838 echo "$as_me:9838: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:9841: \"$ac_try\"") >&5
9844 echo "$as_me:9844: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_func__nc_TABSIZE=yes
9848 echo "$as_me: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9850 ac_cv_func__nc_TABSIZE=no
9852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9854 echo "$as_me:9854: result: $ac_cv_func__nc_TABSIZE" >&5
9855 echo "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
9856 if test $ac_cv_func__nc_TABSIZE = yes; then
9857 assume_reentrant=yes
9862 # Reentrant code has to be opaque; there's little advantage to making ncurses
9863 # opaque outside of that, so there is no --enable-opaque option. We can use
9864 # this option without --with-pthreads, but this will be always set for
9866 echo "$as_me:9866: checking if you want experimental reentrant code" >&5
9867 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9869 # Check whether --enable-reentrant or --disable-reentrant was given.
9870 if test "${enable_reentrant+set}" = set; then
9871 enableval="$enable_reentrant"
9872 with_reentrant=$enableval
9874 with_reentrant=$assume_reentrant
9876 echo "$as_me:9876: result: $with_reentrant" >&5
9877 echo "${ECHO_T}$with_reentrant" >&6
9878 if test "$with_reentrant" = yes ; then
9879 cf_cv_enable_reentrant=1
9880 if test $cf_cv_weak_symbols = yes ; then
9882 # remove pthread library from $LIBS
9883 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
9885 elif test "$assume_reentrant" = no ; then
9886 LIB_SUFFIX="t${LIB_SUFFIX}"
9889 cat >>confdefs.h <<\EOF
9890 #define USE_REENTRANT 1
9894 cf_cv_enable_reentrant=0
9897 ### Allow using a different wrap-prefix
9898 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
9899 echo "$as_me:9899: checking for prefix used to wrap public variables" >&5
9900 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
9902 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
9903 if test "${with_wrap_prefix+set}" = set; then
9904 withval="$with_wrap_prefix"
9905 NCURSES_WRAP_PREFIX=$withval
9907 NCURSES_WRAP_PREFIX=_nc_
9909 echo "$as_me:9909: result: $NCURSES_WRAP_PREFIX" >&5
9910 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
9912 NCURSES_WRAP_PREFIX=_nc_
9915 cat >>confdefs.h <<EOF
9916 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
9919 ###############################################################################
9921 ### use option --disable-echo to suppress full display compiling commands
9923 echo "$as_me:9923: checking if you want to see long compiling messages" >&5
9924 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
9926 # Check whether --enable-echo or --disable-echo was given.
9927 if test "${enable_echo+set}" = set; then
9928 enableval="$enable_echo"
9929 test "$enableval" != no && enableval=yes
9930 if test "$enableval" != "yes" ; then
9933 ECHO_LD='@echo linking $@;'
9934 RULE_CC='@echo compiling $<'
9935 SHOW_CC='@echo compiling $@'
9957 echo "$as_me:9957: result: $enableval" >&5
9958 echo "${ECHO_T}$enableval" >&6
9960 ### use option --enable-warnings to turn on all gcc warnings
9961 echo "$as_me:9961: checking if you want to see compiler warnings" >&5
9962 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
9964 # Check whether --enable-warnings or --disable-warnings was given.
9965 if test "${enable_warnings+set}" = set; then
9966 enableval="$enable_warnings"
9967 with_warnings=$enableval
9969 echo "$as_me:9969: result: $with_warnings" >&5
9970 echo "${ECHO_T}$with_warnings" >&6
9972 if test "x$with_warnings" = "xyes"; then
9974 ADAFLAGS="$ADAFLAGS -gnatg"
9978 if test "$GCC" = yes ; then
9981 echo "$as_me:9981: checking if this is really Intel C compiler" >&5
9982 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
9983 cf_save_CFLAGS="$CFLAGS"
9984 CFLAGS="$CFLAGS -no-gcc"
9985 cat >conftest.$ac_ext <<_ACEOF
9986 #line 9986 "configure"
9987 #include "confdefs.h"
9993 #ifdef __INTEL_COMPILER
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:10003: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>&5
10006 echo "$as_me:10006: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:10009: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:10012: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10015 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
10018 echo "$as_me: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10022 CFLAGS="$cf_save_CFLAGS"
10023 echo "$as_me:10023: result: $INTEL_COMPILER" >&5
10024 echo "${ECHO_T}$INTEL_COMPILER" >&6
10031 if test "$GCC" = yes ; then
10032 echo "$as_me:10032: checking if this is really Clang C compiler" >&5
10033 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
10034 cf_save_CFLAGS="$CFLAGS"
10035 CFLAGS="$CFLAGS -Qunused-arguments"
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line 10037 "configure"
10038 #include "confdefs.h"
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:10054: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10057 echo "$as_me:10057: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -s conftest.$ac_objext'
10060 { (eval echo "$as_me:10060: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:10063: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10066 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
10069 echo "$as_me: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10072 rm -f conftest.$ac_objext conftest.$ac_ext
10073 CFLAGS="$cf_save_CFLAGS"
10074 echo "$as_me:10074: result: $CLANG_COMPILER" >&5
10075 echo "${ECHO_T}$CLANG_COMPILER" >&6
10078 cat > conftest.$ac_ext <<EOF
10079 #line 10079 "${as_me:-configure}"
10080 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10083 if test "$INTEL_COMPILER" = yes
10085 # The "-wdXXX" options suppress warnings:
10086 # remark #1419: external declaration in primary source file
10087 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10088 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10089 # remark #193: zero used for undefined preprocessing identifier
10090 # remark #593: variable "curs_sb_left_arrow" was set but never used
10091 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10092 # remark #869: parameter "tw" was never referenced
10093 # remark #981: operands are evaluated in unspecified order
10094 # warning #279: controlling expression is constant
10096 { echo "$as_me:10096: checking for $CC warning options..." >&5
10097 echo "$as_me: checking for $CC warning options..." >&6;}
10098 cf_save_CFLAGS="$CFLAGS"
10099 EXTRA_CFLAGS="-Wall"
10111 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10112 if { (eval echo "$as_me:10112: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10115 echo "$as_me:10115: \$? = $ac_status" >&5
10116 (exit $ac_status); }; then
10117 test -n "$verbose" && echo "$as_me:10117: result: ... -$cf_opt" >&5
10118 echo "${ECHO_T}... -$cf_opt" >&6
10119 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10122 CFLAGS="$cf_save_CFLAGS"
10124 elif test "$GCC" = yes
10126 { echo "$as_me:10126: checking for $CC warning options..." >&5
10127 echo "$as_me: checking for $CC warning options..." >&6;}
10128 cf_save_CFLAGS="$CFLAGS"
10131 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10132 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
10133 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
10134 for cf_opt in W Wall \
10135 Wbad-function-cast \
10138 Wdeclaration-after-statement \
10141 Wmissing-declarations \
10142 Wmissing-prototypes \
10146 Wstrict-prototypes \
10147 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
10149 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10150 if { (eval echo "$as_me:10150: \"$ac_compile\"") >&5
10151 (eval $ac_compile) 2>&5
10153 echo "$as_me:10153: \$? = $ac_status" >&5
10154 (exit $ac_status); }; then
10155 test -n "$verbose" && echo "$as_me:10155: result: ... -$cf_opt" >&5
10156 echo "${ECHO_T}... -$cf_opt" >&6
10157 case $cf_opt in #(vi
10159 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10162 case $GCC_VERSION in
10164 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10166 echo "${as_me:-configure}:10166: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10171 Wpointer-arith) #(vi
10172 case $GCC_VERSION in
10174 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10176 echo "${as_me:-configure}:10176: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10182 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10185 CFLAGS="$cf_save_CFLAGS"
10191 if test "$GCC" = yes
10193 cat > conftest.i <<EOF
10195 #define GCC_PRINTF 0
10198 #define GCC_SCANF 0
10200 #ifndef GCC_NORETURN
10201 #define GCC_NORETURN /* nothing */
10204 #define GCC_UNUSED /* nothing */
10207 if test "$GCC" = yes
10209 { echo "$as_me:10209: checking for $CC __attribute__ directives..." >&5
10210 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10212 "${as_me:-configure}"
10213 #include "confdefs.h"
10214 #include "conftest.h"
10215 #include "conftest.i"
10217 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10219 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
10222 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10224 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
10226 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
10227 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
10228 extern void foo(void) GCC_NORETURN;
10229 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
10231 cf_printf_attribute=no
10232 cf_scanf_attribute=no
10233 for cf_attribute in scanf printf unused noreturn
10236 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10238 cf_directive="__attribute__(($cf_attribute))"
10239 echo "checking for $CC $cf_directive" 1>&5
10241 case $cf_attribute in #(vi
10243 cf_printf_attribute=yes
10244 cat >conftest.h <<EOF
10245 #define GCC_$cf_ATTRIBUTE 1
10249 cf_scanf_attribute=yes
10250 cat >conftest.h <<EOF
10251 #define GCC_$cf_ATTRIBUTE 1
10255 cat >conftest.h <<EOF
10256 #define GCC_$cf_ATTRIBUTE $cf_directive
10261 if { (eval echo "$as_me:10261: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>&5
10264 echo "$as_me:10264: \$? = $ac_status" >&5
10265 (exit $ac_status); }; then
10266 test -n "$verbose" && echo "$as_me:10266: result: ... $cf_attribute" >&5
10267 echo "${ECHO_T}... $cf_attribute" >&6
10268 cat conftest.h >>confdefs.h
10269 case $cf_attribute in #(vi
10272 cat >>confdefs.h <<EOF
10273 #define GCC_NORETURN $cf_directive
10278 cf_value='/* nothing */'
10279 if test "$cf_printf_attribute" != no ; then
10280 cf_value='__attribute__((format(printf,fmt,var)))'
10282 cat >>confdefs.h <<\EOF
10283 #define GCC_PRINTF 1
10288 cat >>confdefs.h <<EOF
10289 #define GCC_PRINTFLIKE(fmt,var) $cf_value
10294 cf_value='/* nothing */'
10295 if test "$cf_scanf_attribute" != no ; then
10296 cf_value='__attribute__((format(scanf,fmt,var)))'
10298 cat >>confdefs.h <<\EOF
10299 #define GCC_SCANF 1
10304 cat >>confdefs.h <<EOF
10305 #define GCC_SCANFLIKE(fmt,var) $cf_value
10311 cat >>confdefs.h <<EOF
10312 #define GCC_UNUSED $cf_directive
10320 fgrep define conftest.i >>confdefs.h
10325 ### use option --enable-assertions to turn on generation of assertion code
10326 echo "$as_me:10326: checking if you want to enable runtime assertions" >&5
10327 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
10329 # Check whether --enable-assertions or --disable-assertions was given.
10330 if test "${enable_assertions+set}" = set; then
10331 enableval="$enable_assertions"
10332 with_assertions=$enableval
10336 echo "$as_me:10336: result: $with_assertions" >&5
10337 echo "${ECHO_T}$with_assertions" >&6
10340 if test "$with_assertions" = no
10342 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10345 ADAFLAGS="$ADAFLAGS -gnata"
10350 ### use option --disable-leaks to suppress "permanent" leaks, for testing
10352 cat >>confdefs.h <<\EOF
10353 #define HAVE_NC_ALLOC_H 1
10356 ### use option --enable-expanded to generate certain macros as functions
10358 # Check whether --enable-expanded or --disable-expanded was given.
10359 if test "${enable_expanded+set}" = set; then
10360 enableval="$enable_expanded"
10361 test "$enableval" = yes &&
10362 cat >>confdefs.h <<\EOF
10363 #define NCURSES_EXPANDED 1
10368 ### use option --disable-macros to suppress macros in favor of functions
10370 # Check whether --enable-macros or --disable-macros was given.
10371 if test "${enable_macros+set}" = set; then
10372 enableval="$enable_macros"
10373 test "$enableval" = no &&
10374 cat >>confdefs.h <<\EOF
10375 #define NCURSES_NOMACROS 1
10380 # Normally we only add trace() to the debug-library. Allow this to be
10381 # extended to all models of the ncurses library:
10383 case "$CFLAGS $CPPFLAGS" in
10389 echo "$as_me:10389: checking whether to add trace feature to all models" >&5
10390 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
10392 # Check whether --with-trace or --without-trace was given.
10393 if test "${with_trace+set}" = set; then
10394 withval="$with_trace"
10395 cf_with_trace=$withval
10397 cf_with_trace=$cf_all_traces
10399 echo "$as_me:10399: result: $cf_with_trace" >&5
10400 echo "${ECHO_T}$cf_with_trace" >&6
10402 if test "$cf_with_trace" = yes ; then
10408 cf_new_extra_cppflags=
10410 for cf_add_cflags in -DTRACE
10412 case $cf_fix_cppflags in
10414 case $cf_add_cflags in #(vi
10415 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10416 case $cf_add_cflags in
10418 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10420 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10421 && test -z "${cf_tst_cflags}" \
10422 && cf_fix_cppflags=yes
10424 if test $cf_fix_cppflags = yes ; then
10425 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10427 elif test "${cf_tst_cflags}" = "\"'" ; then
10428 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10433 case "$CPPFLAGS" in
10434 *$cf_add_cflags) #(vi
10437 case $cf_add_cflags in #(vi
10439 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10441 CPPFLAGS=`echo "$CPPFLAGS" | \
10442 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10443 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10447 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10452 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10457 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10461 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10462 && test -z "${cf_tst_cflags}" \
10463 && cf_fix_cppflags=no
10468 if test -n "$cf_new_cflags" ; then
10470 CFLAGS="$CFLAGS $cf_new_cflags"
10473 if test -n "$cf_new_cppflags" ; then
10475 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10478 if test -n "$cf_new_extra_cppflags" ; then
10480 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10487 ### Checks for libraries.
10488 case $cf_cv_system_name in #(vi
10492 echo "$as_me:10492: checking for gettimeofday" >&5
10493 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
10494 if test "${ac_cv_func_gettimeofday+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 #line 10498 "configure"
10499 #include "confdefs.h"
10500 /* System header to define __stub macros and hopefully few prototypes,
10501 which can conflict with char gettimeofday (); below. */
10502 #include <assert.h>
10503 /* Override any gcc2 internal prototype to avoid an error. */
10507 /* We use char because int might match the return type of a gcc2
10508 builtin and then its argument prototype would still apply. */
10509 char gettimeofday ();
10515 /* The GNU C library defines this for functions which it implements
10516 to always fail with ENOSYS. Some functions are actually named
10517 something starting with __ and the normal name is an alias. */
10518 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
10521 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:10529: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>&5
10532 echo "$as_me:10532: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (eval echo "$as_me:10535: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:10538: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 ac_cv_func_gettimeofday=yes
10542 echo "$as_me: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10544 ac_cv_func_gettimeofday=no
10546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10548 echo "$as_me:10548: result: $ac_cv_func_gettimeofday" >&5
10549 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
10550 if test $ac_cv_func_gettimeofday = yes; then
10551 cat >>confdefs.h <<\EOF
10552 #define HAVE_GETTIMEOFDAY 1
10557 echo "$as_me:10557: checking for gettimeofday in -lbsd" >&5
10558 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
10559 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 ac_check_lib_save_LIBS=$LIBS
10564 cat >conftest.$ac_ext <<_ACEOF
10565 #line 10565 "configure"
10566 #include "confdefs.h"
10568 /* Override any gcc2 internal prototype to avoid an error. */
10572 /* We use char because int might match the return type of a gcc2
10573 builtin and then its argument prototype would still apply. */
10574 char gettimeofday ();
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (eval echo "$as_me:10584: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>&5
10587 echo "$as_me:10587: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -s conftest$ac_exeext'
10590 { (eval echo "$as_me:10590: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:10593: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 ac_cv_lib_bsd_gettimeofday=yes
10597 echo "$as_me: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10599 ac_cv_lib_bsd_gettimeofday=no
10601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 echo "$as_me:10604: result: $ac_cv_lib_bsd_gettimeofday" >&5
10605 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
10606 if test $ac_cv_lib_bsd_gettimeofday = yes; then
10608 cat >>confdefs.h <<\EOF
10609 #define HAVE_GETTIMEOFDAY 1
10619 ### Checks for header files.
10620 echo "$as_me:10620: checking for ANSI C header files" >&5
10621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10622 if test "${ac_cv_header_stdc+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line 10626 "configure"
10627 #include "confdefs.h"
10628 #include <stdlib.h>
10629 #include <stdarg.h>
10630 #include <string.h>
10634 if { (eval echo "$as_me:10634: \"$ac_cpp conftest.$ac_ext\"") >&5
10635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10637 egrep -v '^ *\+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:10640: \$? = $ac_status" >&5
10641 (exit $ac_status); } >/dev/null; then
10642 if test -s conftest.err; then
10643 ac_cpp_err=$ac_c_preproc_warn_flag
10650 if test -z "$ac_cpp_err"; then
10651 ac_cv_header_stdc=yes
10653 echo "$as_me: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 ac_cv_header_stdc=no
10657 rm -f conftest.err conftest.$ac_ext
10659 if test $ac_cv_header_stdc = yes; then
10660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line 10662 "configure"
10663 #include "confdefs.h"
10664 #include <string.h>
10667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10668 egrep "memchr" >/dev/null 2>&1; then
10671 ac_cv_header_stdc=no
10677 if test $ac_cv_header_stdc = yes; then
10678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line 10680 "configure"
10681 #include "confdefs.h"
10682 #include <stdlib.h>
10685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10686 egrep "free" >/dev/null 2>&1; then
10689 ac_cv_header_stdc=no
10695 if test $ac_cv_header_stdc = yes; then
10696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10697 if test "$cross_compiling" = yes; then
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line 10701 "configure"
10702 #include "confdefs.h"
10704 #if ((' ' & 0x0FF) == 0x020)
10705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10708 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10709 || ('j' <= (c) && (c) <= 'r') \
10710 || ('s' <= (c) && (c) <= 'z'))
10711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10719 for (i = 0; i < 256; i++)
10720 if (XOR (islower (i), ISLOWER (i))
10721 || toupper (i) != TOUPPER (i))
10722 $ac_main_return(2);
10723 $ac_main_return (0);
10726 rm -f conftest$ac_exeext
10727 if { (eval echo "$as_me:10727: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>&5
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10732 { (eval echo "$as_me:10732: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:10735: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10739 echo "$as_me: program exited with status $ac_status" >&5
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 ac_cv_header_stdc=no
10744 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:10748: result: $ac_cv_header_stdc" >&5
10749 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10750 if test $ac_cv_header_stdc = yes; then
10752 cat >>confdefs.h <<\EOF
10753 #define STDC_HEADERS 1
10758 ac_header_dirent=no
10759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10761 echo "$as_me:10761: checking for $ac_hdr that defines DIR" >&5
10762 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10767 #line 10767 "configure"
10768 #include "confdefs.h"
10769 #include <sys/types.h>
10781 rm -f conftest.$ac_objext
10782 if { (eval echo "$as_me:10782: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>&5
10785 echo "$as_me:10785: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:10788: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:10791: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 eval "$as_ac_Header=yes"
10795 echo "$as_me: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 eval "$as_ac_Header=no"
10799 rm -f conftest.$ac_objext conftest.$ac_ext
10801 echo "$as_me:10801: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10804 cat >>confdefs.h <<EOF
10805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10808 ac_header_dirent=$ac_hdr; break
10812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10813 if test $ac_header_dirent = dirent.h; then
10814 echo "$as_me:10814: checking for opendir in -ldir" >&5
10815 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
10816 if test "${ac_cv_lib_dir_opendir+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 ac_check_lib_save_LIBS=$LIBS
10821 cat >conftest.$ac_ext <<_ACEOF
10822 #line 10822 "configure"
10823 #include "confdefs.h"
10825 /* Override any gcc2 internal prototype to avoid an error. */
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (eval echo "$as_me:10841: \"$ac_link\"") >&5
10842 (eval $ac_link) 2>&5
10844 echo "$as_me:10844: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:10847: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:10850: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_lib_dir_opendir=yes
10854 echo "$as_me: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 ac_cv_lib_dir_opendir=no
10858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10861 echo "$as_me:10861: result: $ac_cv_lib_dir_opendir" >&5
10862 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
10863 if test $ac_cv_lib_dir_opendir = yes; then
10868 echo "$as_me:10868: checking for opendir in -lx" >&5
10869 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
10870 if test "${ac_cv_lib_x_opendir+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_check_lib_save_LIBS=$LIBS
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line 10876 "configure"
10877 #include "confdefs.h"
10879 /* Override any gcc2 internal prototype to avoid an error. */
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:10895: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (eval echo "$as_me:10901: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:10904: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_lib_x_opendir=yes
10908 echo "$as_me: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 ac_cv_lib_x_opendir=no
10912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10915 echo "$as_me:10915: result: $ac_cv_lib_x_opendir" >&5
10916 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
10917 if test $ac_cv_lib_x_opendir = yes; then
10923 echo "$as_me:10923: checking whether time.h and sys/time.h may both be included" >&5
10924 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10925 if test "${ac_cv_header_time+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.$ac_ext <<_ACEOF
10929 #line 10929 "configure"
10930 #include "confdefs.h"
10931 #include <sys/types.h>
10932 #include <sys/time.h>
10938 if ((struct tm *) 0)
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:10945: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>&5
10948 echo "$as_me:10948: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:10951: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:10954: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_header_time=yes
10958 echo "$as_me: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10960 ac_cv_header_time=no
10962 rm -f conftest.$ac_objext conftest.$ac_ext
10964 echo "$as_me:10964: result: $ac_cv_header_time" >&5
10965 echo "${ECHO_T}$ac_cv_header_time" >&6
10966 if test $ac_cv_header_time = yes; then
10968 cat >>confdefs.h <<\EOF
10969 #define TIME_WITH_SYS_TIME 1
10974 ### checks for compiler characteristics
10976 ac_cpp='$CPP $CPPFLAGS'
10977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10980 ac_main_return=return
10982 echo "$as_me:10982: checking for an ANSI C-conforming const" >&5
10983 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10984 if test "${ac_cv_c_const+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line 10988 "configure"
10989 #include "confdefs.h"
10994 /* FIXME: Include the comments suggested by Paul. */
10995 #ifndef __cplusplus
10996 /* Ultrix mips cc rejects this. */
10997 typedef int charset[2];
10999 /* SunOS 4.1.1 cc rejects this. */
11000 char const *const *ccp;
11002 /* NEC SVR4.0.2 mips cc rejects this. */
11003 struct point {int x, y;};
11004 static struct point const zero = {0,0};
11005 /* AIX XL C 1.02.0.0 rejects this.
11006 It does not let you subtract one const X* pointer from another in
11007 an arm of an if-expression whose if-part is not a constant
11009 const char *g = "string";
11010 ccp = &g + (g ? g-g : 0);
11011 /* HPUX 7.0 cc rejects these. */
11014 ccp = (char const *const *) p;
11015 { /* SCO 3.2v4 cc rejects this. */
11017 char const *s = 0 ? (char *) 0 : (char const *) 0;
11021 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11022 int x[] = {25, 17};
11023 const int *foo = &x[0];
11026 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11027 typedef const int *iptr;
11031 { /* AIX XL C 1.02.0.0 rejects this saying
11032 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11033 struct s { int j; const int *ap[3]; };
11034 struct s *b; b->j = 5;
11036 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11037 const int foo = 10;
11045 rm -f conftest.$ac_objext
11046 if { (eval echo "$as_me:11046: \"$ac_compile\"") >&5
11047 (eval $ac_compile) 2>&5
11049 echo "$as_me:11049: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -s conftest.$ac_objext'
11052 { (eval echo "$as_me:11052: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:11055: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11059 echo "$as_me: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11063 rm -f conftest.$ac_objext conftest.$ac_ext
11065 echo "$as_me:11065: result: $ac_cv_c_const" >&5
11066 echo "${ECHO_T}$ac_cv_c_const" >&6
11067 if test $ac_cv_c_const = no; then
11069 cat >>confdefs.h <<\EOF
11075 ### Checks for external-data
11077 echo "$as_me:11077: checking if data-only library module links" >&5
11078 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
11079 if test "${cf_cv_link_dataonly+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<EOF
11085 #line 11085 "configure"
11086 int testdata[3] = { 123, 456, 789 };
11088 if { (eval echo "$as_me:11088: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11091 echo "$as_me:11091: \$? = $ac_status" >&5
11092 (exit $ac_status); } ; then
11093 mv conftest.o data.o && \
11094 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
11096 rm -f conftest.$ac_ext data.o
11097 cat >conftest.$ac_ext <<EOF
11098 #line 11098 "configure"
11102 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
11104 extern int testdata[3];
11105 return testdata[0] == 123
11106 && testdata[1] == 456
11107 && testdata[2] == 789;
11111 if { (eval echo "$as_me:11111: \"$ac_compile\"") >&5
11112 (eval $ac_compile) 2>&5
11114 echo "$as_me:11114: \$? = $ac_status" >&5
11115 (exit $ac_status); }; then
11116 mv conftest.o func.o && \
11117 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
11119 rm -f conftest.$ac_ext func.o
11120 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
11121 cf_saveLIBS="$LIBS"
11122 LIBS="conftest.a $LIBS"
11123 if test "$cross_compiling" = yes; then
11124 cf_cv_link_dataonly=unknown
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line 11127 "configure"
11128 #include "confdefs.h"
11132 extern int testfunc();
11133 ${cf_cv_main_return:-return} (!testfunc());
11137 rm -f conftest$ac_exeext
11138 if { (eval echo "$as_me:11138: \"$ac_link\"") >&5
11139 (eval $ac_link) 2>&5
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11143 { (eval echo "$as_me:11143: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11146 echo "$as_me:11146: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 cf_cv_link_dataonly=yes
11150 echo "$as_me: program exited with status $ac_status" >&5
11151 echo "$as_me: failed program was:" >&5
11152 cat conftest.$ac_ext >&5
11153 cf_cv_link_dataonly=no
11155 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11157 LIBS="$cf_saveLIBS"
11161 echo "$as_me:11161: result: $cf_cv_link_dataonly" >&5
11162 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
11164 if test "$cf_cv_link_dataonly" = no ; then
11166 cat >>confdefs.h <<\EOF
11167 #define BROKEN_LINKER 1
11173 ### Checks for library functions.
11175 echo "$as_me:11175: checking for working mkstemp" >&5
11176 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
11177 if test "${cf_cv_func_mkstemp+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 if test "$cross_compiling" = yes; then
11183 cf_cv_func_mkstemp=maybe
11185 cat >conftest.$ac_ext <<_ACEOF
11186 #line 11186 "configure"
11187 #include "confdefs.h"
11189 #include <sys/types.h>
11190 #include <stdlib.h>
11192 #include <string.h>
11193 #include <sys/stat.h>
11196 char *tmpl = "conftestXXXXXX";
11204 for (n = 0; n < 2; ++n) {
11205 strcpy(name[n], tmpl);
11206 if ((fd = mkstemp(name[n])) >= 0) {
11207 if (!strcmp(name[n], tmpl)
11208 || stat(name[n], &sb) != 0
11209 || (sb.st_mode & S_IFMT) != S_IFREG
11210 || (sb.st_mode & 077) != 0) {
11217 && !strcmp(name[0], name[1]))
11219 ${cf_cv_main_return:-return}(result);
11223 rm -f conftest$ac_exeext
11224 if { (eval echo "$as_me:11224: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>&5
11227 echo "$as_me:11227: \$? = $ac_status" >&5
11228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11229 { (eval echo "$as_me:11229: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11232 echo "$as_me:11232: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 cf_cv_func_mkstemp=yes
11237 echo "$as_me: program exited with status $ac_status" >&5
11238 echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 cf_cv_func_mkstemp=no
11243 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11247 echo "$as_me:11247: result: $cf_cv_func_mkstemp" >&5
11248 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
11249 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
11250 echo "$as_me:11250: checking for mkstemp" >&5
11251 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
11252 if test "${ac_cv_func_mkstemp+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11258 /* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char mkstemp (); below. */
11260 #include <assert.h>
11261 /* Override any gcc2 internal prototype to avoid an error. */
11265 /* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11273 /* The GNU C library defines this for functions which it implements
11274 to always fail with ENOSYS. Some functions are actually named
11275 something starting with __ and the normal name is an alias. */
11276 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
11279 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:11287: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>&5
11290 echo "$as_me:11290: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (eval echo "$as_me:11293: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:11296: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_func_mkstemp=yes
11300 echo "$as_me: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 ac_cv_func_mkstemp=no
11304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306 echo "$as_me:11306: result: $ac_cv_func_mkstemp" >&5
11307 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
11310 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
11312 cat >>confdefs.h <<\EOF
11313 #define HAVE_MKSTEMP 1
11318 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
11319 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
11320 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
11324 if test "$cf_with_ada" != "no" ; then
11326 cf_ada_make=gnatmake
11327 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
11328 set dummy $cf_ada_make; ac_word=$2
11329 echo "$as_me:11329: checking for $ac_word" >&5
11330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11331 if test "${ac_cv_prog_gnat_exists+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 if test -n "$gnat_exists"; then
11335 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
11337 ac_save_IFS=$IFS; IFS=$ac_path_separator
11339 for ac_dir in $ac_dummy; do
11341 test -z "$ac_dir" && ac_dir=.
11342 $as_executable_p "$ac_dir/$ac_word" || continue
11343 ac_cv_prog_gnat_exists="yes"
11344 echo "$as_me:11344: found $ac_dir/$ac_word" >&5
11348 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
11351 gnat_exists=$ac_cv_prog_gnat_exists
11352 if test -n "$gnat_exists"; then
11353 echo "$as_me:11353: result: $gnat_exists" >&5
11354 echo "${ECHO_T}$gnat_exists" >&6
11356 echo "$as_me:11356: result: no" >&5
11357 echo "${ECHO_T}no" >&6
11360 if test "$ac_cv_prog_gnat_exists" = no; then
11362 cf_cv_prog_gnat_correct=no
11365 echo "$as_me:11365: checking for gnat version" >&5
11366 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
11367 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
11368 grep '[0-9].[0-9][0-9]*' |\
11369 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
11370 echo "$as_me:11370: result: $cf_gnat_version" >&5
11371 echo "${ECHO_T}$cf_gnat_version" >&6
11373 case $cf_gnat_version in #(vi
11374 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
11375 cf_cv_prog_gnat_correct=yes
11378 { echo "$as_me:11378: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
11379 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
11380 cf_cv_prog_gnat_correct=no
11384 # Extract the first word of "m4", so it can be a program name with args.
11385 set dummy m4; ac_word=$2
11386 echo "$as_me:11386: checking for $ac_word" >&5
11387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11388 if test "${ac_cv_prog_M4_exists+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 if test -n "$M4_exists"; then
11392 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
11394 ac_save_IFS=$IFS; IFS=$ac_path_separator
11396 for ac_dir in $ac_dummy; do
11398 test -z "$ac_dir" && ac_dir=.
11399 $as_executable_p "$ac_dir/$ac_word" || continue
11400 ac_cv_prog_M4_exists="yes"
11401 echo "$as_me:11401: found $ac_dir/$ac_word" >&5
11405 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
11408 M4_exists=$ac_cv_prog_M4_exists
11409 if test -n "$M4_exists"; then
11410 echo "$as_me:11410: result: $M4_exists" >&5
11411 echo "${ECHO_T}$M4_exists" >&6
11413 echo "$as_me:11413: result: no" >&5
11414 echo "${ECHO_T}no" >&6
11417 if test "$ac_cv_prog_M4_exists" = no; then
11418 cf_cv_prog_gnat_correct=no
11419 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
11421 if test "$cf_cv_prog_gnat_correct" = yes; then
11422 echo "$as_me:11422: checking if GNAT works" >&5
11423 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
11425 rm -rf conftest* *~conftest*
11426 cat >>conftest.ads <<CF_EOF
11427 procedure conftest;
11429 cat >>conftest.adb <<CF_EOF
11432 procedure conftest is
11434 Text_IO.Put ("Hello World");
11436 GNAT.OS_Lib.OS_Exit (0);
11439 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11440 if ( ./conftest 1>&5 2>&1 ) ; then
11441 cf_cv_prog_gnat_correct=yes
11443 cf_cv_prog_gnat_correct=no
11446 cf_cv_prog_gnat_correct=no
11448 rm -rf conftest* *~conftest*
11450 echo "$as_me:11450: result: $cf_cv_prog_gnat_correct" >&5
11451 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
11455 if test "$cf_cv_prog_gnat_correct" = yes; then
11457 echo "$as_me:11457: checking optimization options for ADAFLAGS" >&5
11458 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
11462 ADAFLAGS="$ADAFLAGS -g"
11468 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
11470 ADAFLAGS="$ADAFLAGS $cf_O_flag"
11474 echo "$as_me:11474: result: $ADAFLAGS" >&5
11475 echo "${ECHO_T}$ADAFLAGS" >&6
11477 echo "$as_me:11477: checking if GNAT supports generics" >&5
11478 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
11479 case $cf_gnat_version in #(vi
11480 3.[1-9]*|[4-9].*) #(vi
11481 cf_gnat_generics=yes
11484 cf_gnat_generics=no
11487 echo "$as_me:11487: result: $cf_gnat_generics" >&5
11488 echo "${ECHO_T}$cf_gnat_generics" >&6
11490 if test "$cf_gnat_generics" = yes
11492 cf_compile_generics=generics
11493 cf_generic_objects="\${GENOBJS}"
11495 cf_compile_generics=
11496 cf_generic_objects=
11499 echo "$as_me:11499: checking if GNAT supports SIGINT" >&5
11500 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
11501 if test "${cf_cv_gnat_sigint+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 rm -rf conftest* *~conftest*
11506 cat >>conftest.ads <<CF_EOF
11507 with Ada.Interrupts.Names;
11509 package ConfTest is
11511 pragma Warnings (Off); -- the next pragma exists since 3.11p
11512 pragma Unreserve_All_Interrupts;
11513 pragma Warnings (On);
11515 protected Process is
11517 function Continue return Boolean;
11518 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
11520 Done : Boolean := False;
11525 cat >>conftest.adb <<CF_EOF
11526 package body ConfTest is
11527 protected body Process is
11532 function Continue return Boolean is
11539 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11540 cf_cv_gnat_sigint=yes
11542 cf_cv_gnat_sigint=no
11544 rm -rf conftest* *~conftest*
11547 echo "$as_me:11547: result: $cf_cv_gnat_sigint" >&5
11548 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
11550 if test $cf_cv_gnat_sigint = yes ; then
11553 USE_GNAT_SIGINT="#"
11556 echo "$as_me:11556: checking if GNAT pragma Unreferenced works" >&5
11557 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
11558 if test "${cf_cv_pragma_unreferenced+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 rm -rf conftest* *~conftest*
11563 cat >>conftest.ads <<CF_EOF
11564 procedure conftest;
11566 cat >>conftest.adb <<CF_EOF
11569 procedure conftest is
11571 pragma Unreferenced (test);
11574 Text_IO.Put ("Hello World");
11576 GNAT.OS_Lib.OS_Exit (0);
11579 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11580 cf_cv_pragma_unreferenced=yes
11582 cf_cv_pragma_unreferenced=no
11584 rm -rf conftest* *~conftest*
11587 echo "$as_me:11587: result: $cf_cv_pragma_unreferenced" >&5
11588 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
11590 # if the pragma is supported, use it (needed in the Trace code).
11591 if test $cf_cv_pragma_unreferenced = yes ; then
11597 cf_gnat_libraries=no
11598 cf_gnat_projects=no
11600 echo "$as_me:11600: checking if GNAT supports project files" >&5
11601 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
11602 case $cf_gnat_version in #(vi
11606 case $cf_cv_system_name in #(vi
11607 cygwin*|msys*) #(vi
11610 mkdir conftest.src conftest.bin conftest.lib
11612 rm -rf conftest* *~conftest*
11613 cat >>library.gpr <<CF_EOF
11615 Kind := External ("LIB_KIND");
11616 for Library_Name use "ConfTest";
11617 for Object_Dir use ".";
11618 for Library_ALI_Dir use External("LIBRARY_DIR");
11619 for Library_Version use External ("SONAME");
11620 for Library_Kind use Kind;
11621 for Library_Dir use External("BUILD_DIR");
11622 Source_Dir := External ("SOURCE_DIR");
11623 for Source_Dirs use (Source_Dir);
11624 package Compiler is
11625 for Default_Switches ("Ada") use
11629 "-gnatVa", -- All validity checks
11630 "-gnatwa"); -- Activate all optional errors
11634 cat >>confpackage.ads <<CF_EOF
11635 package ConfPackage is
11636 procedure conftest;
11639 cat >>confpackage.adb <<CF_EOF
11641 package body ConfPackage is
11642 procedure conftest is
11644 Text_IO.Put ("Hello World");
11649 if ( $cf_ada_make $ADAFLAGS \
11651 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
11652 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
11653 -XSOURCE_DIR=`pwd` \
11654 -XSONAME=libConfTest.so.1 \
11655 -XLIB_KIND=static 1>&5 2>&1 ) ; then
11656 cf_gnat_projects=yes
11659 if test -f conftest.lib/confpackage.ali
11661 cf_gnat_libraries=yes
11663 rm -rf conftest* *~conftest*
11668 echo "$as_me:11668: result: $cf_gnat_projects" >&5
11669 echo "${ECHO_T}$cf_gnat_projects" >&6
11671 if test $cf_gnat_projects = yes
11673 echo "$as_me:11673: checking if GNAT supports libraries" >&5
11674 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
11675 echo "$as_me:11675: result: $cf_gnat_libraries" >&5
11676 echo "${ECHO_T}$cf_gnat_libraries" >&6
11679 if test "$cf_gnat_projects" = yes
11681 USE_OLD_MAKERULES="#"
11682 USE_GNAT_PROJECTS=""
11684 USE_OLD_MAKERULES=""
11685 USE_GNAT_PROJECTS="#"
11688 if test "$cf_gnat_libraries" = yes
11690 USE_GNAT_LIBRARIES=""
11692 USE_GNAT_LIBRARIES="#"
11695 echo "$as_me:11695: checking for ada-compiler" >&5
11696 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
11698 # Check whether --with-ada-compiler or --without-ada-compiler was given.
11699 if test "${with_ada_compiler+set}" = set; then
11700 withval="$with_ada_compiler"
11701 cf_ada_compiler=$withval
11703 cf_ada_compiler=gnatmake
11706 echo "$as_me:11706: result: $cf_ada_compiler" >&5
11707 echo "${ECHO_T}$cf_ada_compiler" >&6
11709 cf_ada_package=terminal_interface
11711 echo "$as_me:11711: checking for ada-include" >&5
11712 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
11714 # Check whether --with-ada-include or --without-ada-include was given.
11715 if test "${with_ada_include+set}" = set; then
11716 withval="$with_ada_include"
11719 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
11720 fi; if test -n "$prefix/share/ada/adainclude" ; then
11722 if test "x$prefix" != xNONE; then
11723 cf_path_syntax="$prefix"
11725 cf_path_syntax="$ac_default_prefix"
11728 case ".$withval" in #(vi
11729 .\$\(*\)*|.\'*\'*) #(vi
11733 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11735 .\${*prefix}*|.\${*dir}*) #(vi
11736 eval withval="$withval"
11737 case ".$withval" in #(vi
11739 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11744 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11747 { { echo "$as_me:11747: error: expected a pathname, not \"$withval\"" >&5
11748 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11749 { (exit 1); exit 1; }; }
11754 eval ADA_INCLUDE="$withval"
11756 echo "$as_me:11756: result: $ADA_INCLUDE" >&5
11757 echo "${ECHO_T}$ADA_INCLUDE" >&6
11759 echo "$as_me:11759: checking for ada-objects" >&5
11760 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
11762 # Check whether --with-ada-objects or --without-ada-objects was given.
11763 if test "${with_ada_objects+set}" = set; then
11764 withval="$with_ada_objects"
11767 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
11768 fi; if test -n "$prefix/lib/ada/adalib" ; then
11770 if test "x$prefix" != xNONE; then
11771 cf_path_syntax="$prefix"
11773 cf_path_syntax="$ac_default_prefix"
11776 case ".$withval" in #(vi
11777 .\$\(*\)*|.\'*\'*) #(vi
11781 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11783 .\${*prefix}*|.\${*dir}*) #(vi
11784 eval withval="$withval"
11785 case ".$withval" in #(vi
11787 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11792 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11795 { { echo "$as_me:11795: error: expected a pathname, not \"$withval\"" >&5
11796 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11797 { (exit 1); exit 1; }; }
11802 eval ADA_OBJECTS="$withval"
11804 echo "$as_me:11804: result: $ADA_OBJECTS" >&5
11805 echo "${ECHO_T}$ADA_OBJECTS" >&6
11807 echo "$as_me:11807: checking if an Ada95 shared-library should be built" >&5
11808 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
11810 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
11811 if test "${with_ada_sharedlib+set}" = set; then
11812 withval="$with_ada_sharedlib"
11813 with_ada_sharedlib=$withval
11815 with_ada_sharedlib=no
11817 echo "$as_me:11817: result: $with_ada_sharedlib" >&5
11818 echo "${ECHO_T}$with_ada_sharedlib" >&6
11820 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
11821 MAKE_ADA_SHAREDLIB="#"
11823 if test "x$with_ada_sharedlib" != xno
11825 MAKE_ADA_SHAREDLIB=
11826 if test "x$with_ada_sharedlib" != xyes
11828 ADA_SHAREDLIB="$with_ada_sharedlib"
11833 { { echo "$as_me:11833: error: No usable Ada compiler found" >&5
11834 echo "$as_me: error: No usable Ada compiler found" >&2;}
11835 { (exit 1); exit 1; }; }
11838 { { echo "$as_me:11838: error: The Ada compiler is needed for this package" >&5
11839 echo "$as_me: error: The Ada compiler is needed for this package" >&2;}
11840 { (exit 1); exit 1; }; }
11843 ################################################################################
11850 ### Construct the list of include-directories to be generated
11852 if test "$GCC" != yes; then
11853 CPPFLAGS="-I\${includedir} $CPPFLAGS"
11854 elif test "$includedir" != "/usr/include"; then
11855 if test "$includedir" = '${prefix}/include' ; then
11856 if test x$prefix != x/usr ; then
11857 CPPFLAGS="-I\${includedir} $CPPFLAGS"
11860 CPPFLAGS="-I\${includedir} $CPPFLAGS"
11863 if test "$srcdir" != "."; then
11864 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
11866 CPPFLAGS="-I. -I../include $CPPFLAGS"
11868 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
11869 if test "$srcdir" != "."; then
11870 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
11872 if test "$GCC" != yes; then
11873 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11874 elif test "$includedir" != "/usr/include"; then
11875 if test "$includedir" = '${prefix}/include' ; then
11876 if test x$prefix != x/usr ; then
11877 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11880 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11884 ### Build up pieces for makefile rules
11885 echo "$as_me:11885: checking default library suffix" >&5
11886 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
11888 case $DFT_LWR_MODEL in
11889 libtool) DFT_ARG_SUFFIX='' ;;
11890 normal) DFT_ARG_SUFFIX='' ;;
11891 debug) DFT_ARG_SUFFIX='_g' ;;
11892 profile) DFT_ARG_SUFFIX='_p' ;;
11893 shared) DFT_ARG_SUFFIX='' ;;
11895 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
11896 echo "$as_me:11896: result: $DFT_ARG_SUFFIX" >&5
11897 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
11899 echo "$as_me:11899: checking default library-dependency suffix" >&5
11900 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
11902 case X$DFT_LWR_MODEL in #(vi
11904 DFT_LIB_SUFFIX='.la'
11905 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11908 DFT_LIB_SUFFIX='_g.a'
11909 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11912 DFT_LIB_SUFFIX='_p.a'
11913 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11916 case $cf_cv_system_name in
11918 DFT_LIB_SUFFIX='.a'
11919 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11921 cygwin*|msys*|mingw*) #(vi
11922 DFT_LIB_SUFFIX='.dll'
11923 DFT_DEP_SUFFIX='.dll.a'
11926 DFT_LIB_SUFFIX='.dylib'
11927 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11932 DFT_LIB_SUFFIX='.so'
11933 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11936 DFT_LIB_SUFFIX='.sl'
11937 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11942 DFT_LIB_SUFFIX='.so'
11943 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11948 DFT_LIB_SUFFIX='.a'
11949 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11952 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
11953 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
11954 echo "$as_me:11954: result: $DFT_DEP_SUFFIX" >&5
11955 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
11957 echo "$as_me:11957: checking default object directory" >&5
11958 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
11960 case $DFT_LWR_MODEL in
11961 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
11962 normal) DFT_OBJ_SUBDIR='objects' ;;
11963 debug) DFT_OBJ_SUBDIR='obj_g' ;;
11964 profile) DFT_OBJ_SUBDIR='obj_p' ;;
11966 case $cf_cv_system_name in #(vi
11968 DFT_OBJ_SUBDIR='objects' ;;
11970 DFT_OBJ_SUBDIR='obj_s' ;;
11973 echo "$as_me:11973: result: $DFT_OBJ_SUBDIR" >&5
11974 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
11976 ### Set up low-level terminfo dependencies for makefiles.
11978 if test "$DFT_LWR_MODEL" = shared ; then
11979 case $cf_cv_system_name in #(vi
11981 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
11984 # "lib" files have ".dll.a" suffix, "msys-" files have ".dll"
11989 ### Construct the list of subdirectories for which we'll customize makefiles
11990 ### with the appropriate compile-rules.
11992 SUB_MAKEFILES="gen/adacurses${DFT_ARG_SUFFIX}-config:gen/adacurses-config.in"
11994 cat >>confdefs.h <<EOF
11995 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
11998 ### Now that we're done running tests, add the compiler-warnings, if any
12003 cf_new_extra_cppflags=
12005 for cf_add_cflags in $EXTRA_CFLAGS
12007 case $cf_fix_cppflags in
12009 case $cf_add_cflags in #(vi
12010 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12011 case $cf_add_cflags in
12013 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12015 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12016 && test -z "${cf_tst_cflags}" \
12017 && cf_fix_cppflags=yes
12019 if test $cf_fix_cppflags = yes ; then
12020 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12022 elif test "${cf_tst_cflags}" = "\"'" ; then
12023 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12028 case "$CPPFLAGS" in
12029 *$cf_add_cflags) #(vi
12032 case $cf_add_cflags in #(vi
12034 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12036 CPPFLAGS=`echo "$CPPFLAGS" | \
12037 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12038 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12042 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12047 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12052 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12054 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12056 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12057 && test -z "${cf_tst_cflags}" \
12058 && cf_fix_cppflags=no
12063 if test -n "$cf_new_cflags" ; then
12065 CFLAGS="$CFLAGS $cf_new_cflags"
12068 if test -n "$cf_new_cppflags" ; then
12070 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12073 if test -n "$cf_new_extra_cppflags" ; then
12075 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12078 ################################################################################
12080 if test x"$enable_pc_files" = xyes ; then \
12081 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
12087 ################################################################################
12093 NCURSES_SHLIB2="sh -c"
12095 ADA_SUBDIRS="include gen src doc"
12096 if test "x$cf_with_tests" != "xno" ; then
12097 ADA_SUBDIRS="$ADA_SUBDIRS samples"
12099 for cf_dir in $ADA_SUBDIRS
12101 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
12108 # match layout used by make-tar.sh
12109 ADAHTML_DIR=../doc/ada
12111 ac_config_files="$ac_config_files $SUB_MAKEFILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in Makefile"
12112 ac_config_commands="$ac_config_commands default"
12113 cat >confcache <<\_ACEOF
12114 # This file is a shell script that caches the results of configure
12115 # tests run on this system so they can be shared between configure
12116 # scripts and configure runs, see configure's option --config-cache.
12117 # It is not useful on other systems. If it contains results you don't
12118 # want to keep, you may remove or edit it.
12120 # config.status only pays attention to the cache file if you give it
12121 # the --recheck option to rerun configure.
12123 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12125 # following values.
12129 # The following way of writing the cache mishandles newlines in values,
12130 # but we know of no workaround that is simple, portable, and efficient.
12131 # So, don't put newlines in cache variables' values.
12132 # Ultrix sh set writes to stderr and can't be redirected directly,
12133 # and sets the high bit in the cache file unless we assign to the vars.
12136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12138 # `set' does not quote correctly, so add quotes (double-quote
12139 # substitution turns \\\\ into \\, and sed turns \\ into \).
12142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12145 # `set' quotes correctly as required by POSIX, so do not add quotes.
12147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12156 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12158 if cmp -s $cache_file confcache; then :; else
12159 if test -w $cache_file; then
12160 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12161 cat confcache >$cache_file
12163 echo "not updating unwritable cache $cache_file"
12168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12169 # Let make expand exec_prefix.
12170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12174 # trailing colons and then remove the whole line if VPATH becomes empty
12175 # (actually we leave an empty line to preserve line numbers).
12176 if test "x$srcdir" = x.; then
12177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12178 s/:*\$(srcdir):*/:/;
12179 s/:*\${srcdir}:*/:/;
12181 s/^\([^=]*=[ ]*\):*/\1/;
12187 DEFS=-DHAVE_CONFIG_H
12189 : ${CONFIG_STATUS=./config.status}
12190 ac_clean_files_save=$ac_clean_files
12191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12192 { echo "$as_me:12192: creating $CONFIG_STATUS" >&5
12193 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12194 cat >$CONFIG_STATUS <<_ACEOF
12196 # Generated automatically by configure.
12197 # Run this file to recreate the current configuration.
12198 # Compiler output produced by configure, useful for debugging
12199 # configure, is in config.log if it exists.
12202 SHELL=\${CONFIG_SHELL-$SHELL}
12203 ac_cs_invocation="\$0 \$@"
12207 cat >>$CONFIG_STATUS <<\_ACEOF
12208 # Be Bourne compatible
12209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12216 # Name of the executable.
12217 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12219 if expr a : '\(a\)' >/dev/null 2>&1; then
12225 rm -f conf$$ conf$$.exe conf$$.file
12227 if ln -s conf$$.file conf$$ 2>/dev/null; then
12228 # We could just check for DJGPP; but this test a) works b) is more generic
12229 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12230 if test -f conf$$.exe; then
12231 # Don't use ln at all; we don't have any links
12236 elif ln conf$$.file conf$$ 2>/dev/null; then
12241 rm -f conf$$ conf$$.exe conf$$.file
12243 as_executable_p="test -f"
12245 # Support unset when possible.
12246 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12253 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12254 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12255 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12256 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12257 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12258 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12259 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12260 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12263 # We need space, tab and new line, in precisely that order.
12269 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12275 # Files that config.status was made for.
12276 if test -n "$ac_config_files"; then
12277 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12280 if test -n "$ac_config_headers"; then
12281 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12284 if test -n "$ac_config_links"; then
12285 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12288 if test -n "$ac_config_commands"; then
12289 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12292 cat >>$CONFIG_STATUS <<\EOF
12295 \`$as_me' instantiates files from templates according to the
12296 current configuration.
12298 Usage: $0 [OPTIONS] [FILE]...
12300 -h, --help print this help, then exit
12301 -V, --version print version number, then exit
12302 -d, --debug don't remove temporary files
12303 --recheck update $as_me by reconfiguring in the same conditions
12304 --file=FILE[:TEMPLATE]
12305 instantiate the configuration file FILE
12306 --header=FILE[:TEMPLATE]
12307 instantiate the configuration header FILE
12309 Configuration files:
12312 Configuration headers:
12315 Configuration commands:
12318 Report bugs to <dickey@invisible-island.net>."
12321 cat >>$CONFIG_STATUS <<EOF
12324 configured by $0, generated by GNU Autoconf 2.52.20121002,
12325 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12327 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12328 Free Software Foundation, Inc.
12329 This config.status script is free software; the Free Software Foundation
12330 gives unlimited permission to copy, distribute and modify it."
12335 cat >>$CONFIG_STATUS <<\EOF
12336 # If no file are specified by the user, then we need to provide default
12337 # value. By we need to know if files were specified by the user.
12343 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12344 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12346 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12350 *) # This is not an option, so the user has probably given explicit
12352 ac_need_defaults=false;;
12356 # Handling of the options.
12358 cat >>$CONFIG_STATUS <<EOF
12359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12360 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12361 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12363 cat >>$CONFIG_STATUS <<\EOF
12364 --version | --vers* | -V )
12365 echo "$ac_cs_version"; exit 0 ;;
12367 # Conflict between --help and --header
12368 { { echo "$as_me:12368: error: ambiguous option: $1
12369 Try \`$0 --help' for more information." >&5
12370 echo "$as_me: error: ambiguous option: $1
12371 Try \`$0 --help' for more information." >&2;}
12372 { (exit 1); exit 1; }; };;
12373 --help | --hel | -h )
12374 echo "$ac_cs_usage"; exit 0 ;;
12375 --debug | --d* | -d )
12377 --file | --fil | --fi | --f )
12379 CONFIG_FILES="$CONFIG_FILES $1"
12380 ac_need_defaults=false;;
12381 --header | --heade | --head | --hea )
12383 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12384 ac_need_defaults=false;;
12386 # This is an error.
12387 -*) { { echo "$as_me:12387: error: unrecognized option: $1
12388 Try \`$0 --help' for more information." >&5
12389 echo "$as_me: error: unrecognized option: $1
12390 Try \`$0 --help' for more information." >&2;}
12391 { (exit 1); exit 1; }; } ;;
12393 *) ac_config_targets="$ac_config_targets $1" ;;
12402 ## ----------------------- ##
12403 ## Running config.status. ##
12404 ## ----------------------- ##
12406 This file was extended by $as_me 2.52.20121002, executed with
12407 CONFIG_FILES = $CONFIG_FILES
12408 CONFIG_HEADERS = $CONFIG_HEADERS
12409 CONFIG_LINKS = $CONFIG_LINKS
12410 CONFIG_COMMANDS = $CONFIG_COMMANDS
12411 > $ac_cs_invocation
12412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12417 cat >>$CONFIG_STATUS <<EOF
12419 # INIT-COMMANDS section.
12422 ### Special initialization commands, used to pass information from the
12423 ### configuration-run into config.status
12426 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
12427 DFT_LWR_MODEL="$DFT_LWR_MODEL"
12428 LIB_NAME="$LIB_NAME"
12429 LIB_PREFIX="$LIB_PREFIX"
12430 LIB_SUFFIX="$LIB_SUFFIX"
12432 NCURSES_MAJOR="$NCURSES_MAJOR"
12433 NCURSES_MINOR="$NCURSES_MINOR"
12434 NCURSES_PATCH="$NCURSES_PATCH"
12435 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
12436 cf_cv_abi_version="$cf_cv_abi_version"
12437 cf_cv_rel_version="$cf_cv_rel_version"
12438 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
12439 cf_cv_shared_soname='$cf_cv_shared_soname'
12440 cf_cv_shlib_version="$cf_cv_shlib_version"
12441 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
12442 cf_cv_system_name="$cf_cv_system_name"
12448 cat >>$CONFIG_STATUS <<\EOF
12449 for ac_config_target in $ac_config_targets
12451 case "$ac_config_target" in
12452 # Handling of arguments.
12453 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
12454 "doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in" ;;
12455 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12456 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12457 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
12458 *) { { echo "$as_me:12458: error: invalid argument: $ac_config_target" >&5
12459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12460 { (exit 1); exit 1; }; };;
12464 # If the user did not use the arguments to specify the items to instantiate,
12465 # then the envvar interface is used. Set only those that are not.
12466 # We use the long form for the default assignment because of an extremely
12467 # bizarre bug on SunOS 4.1.3.
12468 if $ac_need_defaults; then
12469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12474 # Create a temporary directory, and hook for its removal unless debugging.
12477 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12478 trap '{ (exit 1); exit 1; }' 1 2 13 15
12481 # Create a (secure) tmp directory for tmp files.
12484 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12485 test -n "$tmp" && test -d "$tmp"
12488 tmp=$TMPDIR/cs$$-$RANDOM
12489 (umask 077 && mkdir $tmp)
12492 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12493 { (exit 1); exit 1; }
12498 cat >>$CONFIG_STATUS <<EOF
12501 # CONFIG_FILES section.
12504 # No need to generate the scripts if there are no CONFIG_FILES.
12505 # This happens for instance when ./config.status config.h
12506 if test -n "\$CONFIG_FILES"; then
12507 # Protect against being on the right side of a sed subst in config.status.
12508 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12509 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12510 s,@SHELL@,$SHELL,;t t
12511 s,@exec_prefix@,$exec_prefix,;t t
12512 s,@prefix@,$prefix,;t t
12513 s,@program_transform_name@,$program_transform_name,;t t
12514 s,@bindir@,$bindir,;t t
12515 s,@sbindir@,$sbindir,;t t
12516 s,@libexecdir@,$libexecdir,;t t
12517 s,@datarootdir@,$datarootdir,;t t
12518 s,@datadir@,$datadir,;t t
12519 s,@sysconfdir@,$sysconfdir,;t t
12520 s,@sharedstatedir@,$sharedstatedir,;t t
12521 s,@localstatedir@,$localstatedir,;t t
12522 s,@libdir@,$libdir,;t t
12523 s,@includedir@,$includedir,;t t
12524 s,@oldincludedir@,$oldincludedir,;t t
12525 s,@infodir@,$infodir,;t t
12526 s,@mandir@,$mandir,;t t
12527 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12528 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12529 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12530 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12531 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12532 s,@build_alias@,$build_alias,;t t
12533 s,@host_alias@,$host_alias,;t t
12534 s,@target_alias@,$target_alias,;t t
12535 s,@ECHO_C@,$ECHO_C,;t t
12536 s,@ECHO_N@,$ECHO_N,;t t
12537 s,@ECHO_T@,$ECHO_T,;t t
12538 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12539 s,@DEFS@,$DEFS,;t t
12540 s,@LIBS@,$LIBS,;t t
12541 s,@top_builddir@,$top_builddir,;t t
12542 s,@build@,$build,;t t
12543 s,@build_cpu@,$build_cpu,;t t
12544 s,@build_vendor@,$build_vendor,;t t
12545 s,@build_os@,$build_os,;t t
12546 s,@host@,$host,;t t
12547 s,@host_cpu@,$host_cpu,;t t
12548 s,@host_vendor@,$host_vendor,;t t
12549 s,@host_os@,$host_os,;t t
12550 s,@target@,$target,;t t
12551 s,@target_cpu@,$target_cpu,;t t
12552 s,@target_vendor@,$target_vendor,;t t
12553 s,@target_os@,$target_os,;t t
12555 s,@CFLAGS@,$CFLAGS,;t t
12556 s,@LDFLAGS@,$LDFLAGS,;t t
12557 s,@CPPFLAGS@,$CPPFLAGS,;t t
12558 s,@ac_ct_CC@,$ac_ct_CC,;t t
12559 s,@EXEEXT@,$EXEEXT,;t t
12560 s,@OBJEXT@,$OBJEXT,;t t
12561 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
12564 s,@EGREP@,$EGREP,;t t
12565 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12566 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12567 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12568 s,@LN_S@,$LN_S,;t t
12569 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12570 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
12571 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
12572 s,@SET_MAKE@,$SET_MAKE,;t t
12573 s,@CTAGS@,$CTAGS,;t t
12574 s,@ETAGS@,$ETAGS,;t t
12575 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
12576 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
12577 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
12578 s,@RANLIB@,$RANLIB,;t t
12579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12581 s,@ac_ct_LD@,$ac_ct_LD,;t t
12583 s,@ac_ct_AR@,$ac_ct_AR,;t t
12584 s,@ARFLAGS@,$ARFLAGS,;t t
12585 s,@DESTDIR@,$DESTDIR,;t t
12586 s,@BUILD_CC@,$BUILD_CC,;t t
12587 s,@BUILD_CPP@,$BUILD_CPP,;t t
12588 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12589 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
12590 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
12591 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
12592 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
12593 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
12594 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
12595 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
12596 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
12597 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
12598 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
12599 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
12600 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
12601 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
12602 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
12603 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
12604 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
12605 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
12606 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
12607 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
12608 s,@CC_G_OPT@,$CC_G_OPT,;t t
12609 s,@LD_MODEL@,$LD_MODEL,;t t
12610 s,@shlibdir@,$shlibdir,;t t
12611 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
12612 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
12613 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
12614 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
12615 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
12616 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
12617 s,@LINK_PROGS@,$LINK_PROGS,;t t
12618 s,@LINK_TESTS@,$LINK_TESTS,;t t
12619 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
12620 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
12621 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
12622 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
12623 s,@RPATH_LIST@,$RPATH_LIST,;t t
12624 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
12625 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
12626 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
12627 s,@PTHREAD@,$PTHREAD,;t t
12628 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
12629 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
12630 s,@ECHO_LT@,$ECHO_LT,;t t
12631 s,@ECHO_LD@,$ECHO_LD,;t t
12632 s,@RULE_CC@,$RULE_CC,;t t
12633 s,@SHOW_CC@,$SHOW_CC,;t t
12634 s,@ECHO_CC@,$ECHO_CC,;t t
12635 s,@ADAFLAGS@,$ADAFLAGS,;t t
12636 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
12637 s,@ADA_TRACE@,$ADA_TRACE,;t t
12638 s,@gnat_exists@,$gnat_exists,;t t
12639 s,@M4_exists@,$M4_exists,;t t
12640 s,@cf_ada_make@,$cf_ada_make,;t t
12641 s,@cf_compile_generics@,$cf_compile_generics,;t t
12642 s,@cf_generic_objects@,$cf_generic_objects,;t t
12643 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
12644 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
12645 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
12646 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
12647 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
12648 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
12649 s,@cf_ada_package@,$cf_ada_package,;t t
12650 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
12651 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
12652 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
12653 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
12654 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
12655 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
12656 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
12657 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
12658 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
12659 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
12660 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
12661 s,@cross_compiling@,$cross_compiling,;t t
12662 s,@TEST_ARG2@,$TEST_ARG2,;t t
12663 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
12664 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
12665 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
12666 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
12667 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
12668 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
12673 cat >>$CONFIG_STATUS <<\EOF
12674 # Split the substitutions into bite-sized pieces for seds with
12675 # small command number limits, like on Digital OSF/1 and HP-UX.
12676 ac_max_sed_lines=48
12677 ac_sed_frag=1 # Number of current file.
12678 ac_beg=1 # First line for current file.
12679 ac_end=$ac_max_sed_lines # Line after last line for current file.
12682 while $ac_more_lines; do
12683 if test $ac_beg -gt 1; then
12684 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12686 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12688 if test ! -s $tmp/subs.frag; then
12689 ac_more_lines=false
12691 # The purpose of the label and of the branching condition is to
12692 # speed up the sed processing (if there are no `@' at all, there
12693 # is no need to browse any of the substitutions).
12694 # These are the two extra sed commands mentioned above.
12696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12697 if test -z "$ac_sed_cmds"; then
12698 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12700 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12702 ac_sed_frag=`expr $ac_sed_frag + 1`
12704 ac_end=`expr $ac_end + $ac_max_sed_lines`
12707 if test -z "$ac_sed_cmds"; then
12710 fi # test -n "$CONFIG_FILES"
12713 cat >>$CONFIG_STATUS <<\EOF
12714 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12717 - | *:- | *:-:* ) # input from stdin
12719 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12721 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12723 * ) ac_file_in=$ac_file.in ;;
12726 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12727 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12728 X"$ac_file" : 'X\(//\)[^/]' \| \
12729 X"$ac_file" : 'X\(//\)$' \| \
12730 X"$ac_file" : 'X\(/\)' \| \
12731 . : '\(.\)' 2>/dev/null ||
12733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12735 /^X\(\/\/\)$/{ s//\1/; q; }
12736 /^X\(\/\).*/{ s//\1/; q; }
12738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12739 { case "$ac_dir" in
12740 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12744 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12745 case $as_mkdir_dir in
12746 # Skip DOS drivespec
12747 ?:) as_incr_dir=$as_mkdir_dir ;;
12749 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12750 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12755 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12756 # A "../" for each directory in $ac_dir_suffix.
12757 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12759 ac_dir_suffix= ac_dots=
12764 if test -z "$ac_dots"; then
12767 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12769 [\\/]* | ?:[\\/]* )
12770 ac_srcdir=$srcdir$ac_dir_suffix;
12771 ac_top_srcdir=$srcdir ;;
12772 *) # Relative path.
12773 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12774 ac_top_srcdir=$ac_dots$srcdir ;;
12778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12779 *) ac_INSTALL=$ac_dots$INSTALL ;;
12782 if test x"$ac_file" != x-; then
12783 { echo "$as_me:12783: creating $ac_file" >&5
12784 echo "$as_me: creating $ac_file" >&6;}
12787 # Let's still pretend it is `configure' which instantiates (i.e., don't
12788 # use $as_me), people would be surprised to read:
12789 # /* config.h. Generated automatically by config.status. */
12790 configure_input="Generated automatically from `echo $ac_file_in |
12791 sed 's,.*/,,'` by configure."
12793 # First look for the input files in the build tree, otherwise in the
12795 ac_file_inputs=`IFS=:
12796 for f in $ac_file_in; do
12798 -) echo $tmp/stdin ;;
12800 # Absolute (can't be DOS-style, as IFS=:)
12801 test -f "$f" || { { echo "$as_me:12801: error: cannot find input file: $f" >&5
12802 echo "$as_me: error: cannot find input file: $f" >&2;}
12803 { (exit 1); exit 1; }; }
12806 if test -f "$f"; then
12809 elif test -f "$srcdir/$f"; then
12814 { { echo "$as_me:12814: error: cannot find input file: $f" >&5
12815 echo "$as_me: error: cannot find input file: $f" >&2;}
12816 { (exit 1); exit 1; }; }
12819 done` || { (exit 1); exit 1; }
12821 cat >>$CONFIG_STATUS <<\EOF
12822 ac_warn_datarootdir=no
12823 if test x"$ac_file" != x-; then
12824 for ac_item in $ac_file_inputs
12826 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
12827 if test -n "$ac_seen"; then
12828 ac_used=`grep '@datarootdir@' $ac_item`
12829 if test -z "$ac_used"; then
12830 { echo "$as_me:12830: WARNING: datarootdir was used implicitly but not set:
12832 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
12834 ac_warn_datarootdir=yes
12837 ac_seen=`grep '${datarootdir}' $ac_item`
12838 if test -n "$ac_seen"; then
12839 { echo "$as_me:12839: WARNING: datarootdir was used explicitly but not set:
12841 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
12843 ac_warn_datarootdir=yes
12848 if test "x$ac_warn_datarootdir" = xyes; then
12849 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
12853 cat >>$CONFIG_STATUS <<EOF
12857 cat >>$CONFIG_STATUS <<\EOF
12859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12860 s,@configure_input@,$configure_input,;t t
12861 s,@srcdir@,$ac_srcdir,;t t
12862 s,@top_srcdir@,$ac_top_srcdir,;t t
12863 s,@INSTALL@,$ac_INSTALL,;t t
12864 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12866 if test x"$ac_file" != x-; then
12867 cp $tmp/out $ac_file
12869 for ac_name in prefix exec_prefix datarootdir
12871 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
12872 if test -n "$ac_seen"; then
12873 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
12874 if test -z "$ac_init"; then
12875 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
12876 { echo "$as_me:12876: WARNING: Variable $ac_name is used but was not set:
12878 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
12883 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
12884 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
12885 if test -s $tmp/out; then
12886 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
12887 { echo "$as_me:12887: WARNING: Some variables may not be substituted:
12889 echo "$as_me: WARNING: Some variables may not be substituted:
12899 cat >>$CONFIG_STATUS <<\EOF
12902 # CONFIG_HEADER section.
12905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12908 # ac_d sets the value in "#define NAME VALUE" lines.
12909 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12910 ac_dB='[ ].*$,\1#\2'
12913 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12914 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12915 ac_iB='\([ ]\),\1#\2define\3'
12918 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12919 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12920 ac_uB='$,\1#\2define\3'
12924 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12927 - | *:- | *:-:* ) # input from stdin
12929 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12931 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12933 * ) ac_file_in=$ac_file.in ;;
12936 test x"$ac_file" != x- && { echo "$as_me:12936: creating $ac_file" >&5
12937 echo "$as_me: creating $ac_file" >&6;}
12939 # First look for the input files in the build tree, otherwise in the
12941 ac_file_inputs=`IFS=:
12942 for f in $ac_file_in; do
12944 -) echo $tmp/stdin ;;
12946 # Absolute (can't be DOS-style, as IFS=:)
12947 test -f "$f" || { { echo "$as_me:12947: error: cannot find input file: $f" >&5
12948 echo "$as_me: error: cannot find input file: $f" >&2;}
12949 { (exit 1); exit 1; }; }
12952 if test -f "$f"; then
12955 elif test -f "$srcdir/$f"; then
12960 { { echo "$as_me:12960: error: cannot find input file: $f" >&5
12961 echo "$as_me: error: cannot find input file: $f" >&2;}
12962 { (exit 1); exit 1; }; }
12965 done` || { (exit 1); exit 1; }
12966 # Remove the trailing spaces.
12967 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12971 # Transform confdefs.h into a list of #define's. We won't use it as a sed
12972 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
12973 # be either 'cat' or 'sort'.
12974 cat confdefs.h | uniq >conftest.vals
12976 # Break up conftest.vals because some shells have a limit on
12977 # the size of here documents, and old seds have small limits too.
12979 rm -f conftest.tail
12980 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
12981 while grep . conftest.vals >/dev/null
12983 # Write chunks of a limited-size here document to conftest.frag.
12984 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
12985 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
12986 echo 'CEOF' >> $CONFIG_STATUS
12987 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12988 rm -f conftest.vals
12989 mv conftest.tail conftest.vals
12991 rm -f conftest.vals
12993 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
12995 echo ' cat >> conftest.edit <<CEOF
12996 /@DEFS@/r conftest.frag
12999 sed -f conftest.edit $tmp/in > $tmp/out
13001 mv $tmp/out $tmp/in
13002 rm -f conftest.edit conftest.frag
13003 ' >> $CONFIG_STATUS
13005 cat >>$CONFIG_STATUS <<\EOF
13006 # Let's still pretend it is `configure' which instantiates (i.e., don't
13007 # use $as_me), people would be surprised to read:
13008 # /* config.h. Generated automatically by config.status. */
13009 if test x"$ac_file" = x-; then
13010 echo "/* Generated automatically by configure. */" >$tmp/config.h
13012 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13014 cat $tmp/in >>$tmp/config.h
13016 if test x"$ac_file" != x-; then
13017 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13018 { echo "$as_me:13018: $ac_file is unchanged" >&5
13019 echo "$as_me: $ac_file is unchanged" >&6;}
13021 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13022 X"$ac_file" : 'X\(//\)[^/]' \| \
13023 X"$ac_file" : 'X\(//\)$' \| \
13024 X"$ac_file" : 'X\(/\)' \| \
13025 . : '\(.\)' 2>/dev/null ||
13027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13029 /^X\(\/\/\)$/{ s//\1/; q; }
13030 /^X\(\/\).*/{ s//\1/; q; }
13032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13033 { case "$ac_dir" in
13034 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13038 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13039 case $as_mkdir_dir in
13040 # Skip DOS drivespec
13041 ?:) as_incr_dir=$as_mkdir_dir ;;
13043 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13044 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13051 mv $tmp/config.h $ac_file
13055 rm -f $tmp/config.h
13059 cat >>$CONFIG_STATUS <<\EOF
13061 # CONFIG_COMMANDS section.
13063 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13064 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13065 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13069 if test -z "$USE_OLD_MAKERULES" ; then
13070 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
13077 cat >>$CONFIG_STATUS <<\EOF
13079 { (exit 0); exit 0; }
13081 chmod +x $CONFIG_STATUS
13082 ac_clean_files=$ac_clean_files_save
13084 # configure is writing to config.log, and then calls config.status.
13085 # config.status does its own redirection, appending to config.log.
13086 # Unfortunately, on DOS this fails, as config.log is still kept open
13087 # by configure, so config.status won't be able to write to it; its
13088 # output is simply discarded. So we exec the FD to /dev/null,
13089 # effectively closing config.log, so it can be properly (re)opened and
13090 # appended to by config.status. When coming back to configure, we
13091 # need to make the FD available again.
13092 if test "$no_create" != yes; then
13095 $SHELL $CONFIG_STATUS || ac_cs_success=false
13097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13098 # would make configure fail if this is the last instruction.
13099 $ac_cs_success || { (exit 1); exit 1; }
13101 ${MAKE:-make} preinstall