]> ncurses.scripts.mit.edu Git - ncurses.git/blob - configure
ncurses 6.0 - patch 20171104
[ncurses.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.646 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
5 #
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.
10
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
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
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"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36   as_expr=expr
37 else
38   as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >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
48     as_ln_s='cp -p'
49   else
50     as_ln_s='ln -s'
51   fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53   as_ln_s=ln
54 else
55   as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63   as_unset=unset
64 else
65   as_unset=false
66 fi
67
68 # NLS nuisances.
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; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS="   $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
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`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
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}
107
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 #  include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 #  include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 #  include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
184
185 # Identity of this package.
186 PACKAGE_NAME=
187 PACKAGE_TARNAME=
188 PACKAGE_VERSION=
189 PACKAGE_STRING=
190 PACKAGE_BUGREPORT=
191
192 ac_prev=
193 for ac_option
194 do
195   # If the previous option needs an argument, assign it.
196   if test -n "$ac_prev"; then
197     eval "$ac_prev=\$ac_option"
198     ac_prev=
199     continue
200   fi
201
202   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203
204   # Accept the important Cygnus configure options, so we can diagnose typos.
205
206   case $ac_option in
207
208   -bindir | --bindir | --bindi | --bind | --bin | --bi)
209     ac_prev=bindir ;;
210   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211     bindir=$ac_optarg ;;
212
213   -build | --build | --buil | --bui | --bu)
214     ac_prev=build_alias ;;
215   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216     build_alias=$ac_optarg ;;
217
218   -cache-file | --cache-file | --cache-fil | --cache-fi \
219   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220     ac_prev=cache_file ;;
221   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223     cache_file=$ac_optarg ;;
224
225   --config-cache | -C)
226     cache_file=config.cache ;;
227
228   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229     ac_prev=datadir ;;
230   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231   | --da=*)
232     datadir=$ac_optarg ;;
233
234   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235   | --dataroo | --dataro | --datar)
236     ac_prev=datarootdir ;;
237   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239     datarootdir=$ac_optarg ;;
240
241   -disable-* | --disable-*)
242     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243     # Reject names that are not valid shell variable names.
244     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246    { (exit 1); exit 1; }; }
247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248     eval "enable_$ac_feature=no" ;;
249
250   -enable-* | --enable-*)
251     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252     # Reject names that are not valid shell variable names.
253     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255    { (exit 1); exit 1; }; }
256     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
257     case $ac_option in
258       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
259       *) ac_optarg=yes ;;
260     esac
261     eval "enable_$ac_feature='$ac_optarg'" ;;
262
263   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265   | --exec | --exe | --ex)
266     ac_prev=exec_prefix ;;
267   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269   | --exec=* | --exe=* | --ex=*)
270     exec_prefix=$ac_optarg ;;
271
272   -gas | --gas | --ga | --g)
273     # Obsolete; use --with-gas.
274     with_gas=yes ;;
275
276   -help | --help | --hel | --he | -h)
277     ac_init_help=long ;;
278   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279     ac_init_help=recursive ;;
280   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281     ac_init_help=short ;;
282
283   -host | --host | --hos | --ho)
284     ac_prev=host_alias ;;
285   -host=* | --host=* | --hos=* | --ho=*)
286     host_alias=$ac_optarg ;;
287
288   -includedir | --includedir | --includedi | --included | --include \
289   | --includ | --inclu | --incl | --inc)
290     ac_prev=includedir ;;
291   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292   | --includ=* | --inclu=* | --incl=* | --inc=*)
293     includedir=$ac_optarg ;;
294
295   -infodir | --infodir | --infodi | --infod | --info | --inf)
296     ac_prev=infodir ;;
297   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298     infodir=$ac_optarg ;;
299
300   -libdir | --libdir | --libdi | --libd)
301     ac_prev=libdir ;;
302   -libdir=* | --libdir=* | --libdi=* | --libd=*)
303     libdir=$ac_optarg ;;
304
305   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306   | --libexe | --libex | --libe)
307     ac_prev=libexecdir ;;
308   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309   | --libexe=* | --libex=* | --libe=*)
310     libexecdir=$ac_optarg ;;
311
312   -localstatedir | --localstatedir | --localstatedi | --localstated \
313   | --localstate | --localstat | --localsta | --localst \
314   | --locals | --local | --loca | --loc | --lo)
315     ac_prev=localstatedir ;;
316   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319     localstatedir=$ac_optarg ;;
320
321   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322     ac_prev=mandir ;;
323   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
324     mandir=$ac_optarg ;;
325
326   -nfp | --nfp | --nf)
327     # Obsolete; use --without-fp.
328     with_fp=no ;;
329
330   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
331   | --no-cr | --no-c)
332     no_create=yes ;;
333
334   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
336     no_recursion=yes ;;
337
338   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340   | --oldin | --oldi | --old | --ol | --o)
341     ac_prev=oldincludedir ;;
342   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345     oldincludedir=$ac_optarg ;;
346
347   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348     ac_prev=prefix ;;
349   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
350     prefix=$ac_optarg ;;
351
352   -program-prefix | --program-prefix | --program-prefi | --program-pref \
353   | --program-pre | --program-pr | --program-p)
354     ac_prev=program_prefix ;;
355   -program-prefix=* | --program-prefix=* | --program-prefi=* \
356   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357     program_prefix=$ac_optarg ;;
358
359   -program-suffix | --program-suffix | --program-suffi | --program-suff \
360   | --program-suf | --program-su | --program-s)
361     ac_prev=program_suffix ;;
362   -program-suffix=* | --program-suffix=* | --program-suffi=* \
363   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364     program_suffix=$ac_optarg ;;
365
366   -program-transform-name | --program-transform-name \
367   | --program-transform-nam | --program-transform-na \
368   | --program-transform-n | --program-transform- \
369   | --program-transform | --program-transfor \
370   | --program-transfo | --program-transf \
371   | --program-trans | --program-tran \
372   | --progr-tra | --program-tr | --program-t)
373     ac_prev=program_transform_name ;;
374   -program-transform-name=* | --program-transform-name=* \
375   | --program-transform-nam=* | --program-transform-na=* \
376   | --program-transform-n=* | --program-transform-=* \
377   | --program-transform=* | --program-transfor=* \
378   | --program-transfo=* | --program-transf=* \
379   | --program-trans=* | --program-tran=* \
380   | --progr-tra=* | --program-tr=* | --program-t=*)
381     program_transform_name=$ac_optarg ;;
382
383   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384   | -silent | --silent | --silen | --sile | --sil)
385     silent=yes ;;
386
387   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388     ac_prev=sbindir ;;
389   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390   | --sbi=* | --sb=*)
391     sbindir=$ac_optarg ;;
392
393   -sharedstatedir | --sharedstatedir | --sharedstatedi \
394   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395   | --sharedst | --shareds | --shared | --share | --shar \
396   | --sha | --sh)
397     ac_prev=sharedstatedir ;;
398   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401   | --sha=* | --sh=*)
402     sharedstatedir=$ac_optarg ;;
403
404   -site | --site | --sit)
405     ac_prev=site ;;
406   -site=* | --site=* | --sit=*)
407     site=$ac_optarg ;;
408
409   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410     ac_prev=srcdir ;;
411   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
412     srcdir=$ac_optarg ;;
413
414   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415   | --syscon | --sysco | --sysc | --sys | --sy)
416     ac_prev=sysconfdir ;;
417   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419     sysconfdir=$ac_optarg ;;
420
421   -target | --target | --targe | --targ | --tar | --ta | --t)
422     ac_prev=target_alias ;;
423   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424     target_alias=$ac_optarg ;;
425
426   -v | -verbose | --verbose | --verbos | --verbo | --verb)
427     verbose=yes ;;
428
429   -version | --version | --versio | --versi | --vers | -V)
430     ac_init_version=: ;;
431
432   -with-* | --with-*)
433     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434     # Reject names that are not valid shell variable names.
435     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436       { echo "$as_me: error: invalid package name: $ac_package" >&2
437    { (exit 1); exit 1; }; }
438     ac_package=`echo $ac_package| sed 's/-/_/g'`
439     case $ac_option in
440       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
441       *) ac_optarg=yes ;;
442     esac
443     eval "with_$ac_package='$ac_optarg'" ;;
444
445   -without-* | --without-*)
446     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447     # Reject names that are not valid shell variable names.
448     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449       { echo "$as_me: error: invalid package name: $ac_package" >&2
450    { (exit 1); exit 1; }; }
451     ac_package=`echo $ac_package | sed 's/-/_/g'`
452     eval "with_$ac_package=no" ;;
453
454   --x)
455     # Obsolete; use --with-x.
456     with_x=yes ;;
457
458   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459   | --x-incl | --x-inc | --x-in | --x-i)
460     ac_prev=x_includes ;;
461   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463     x_includes=$ac_optarg ;;
464
465   -x-libraries | --x-libraries | --x-librarie | --x-librari \
466   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467     ac_prev=x_libraries ;;
468   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470     x_libraries=$ac_optarg ;;
471
472   -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474    { (exit 1); exit 1; }; }
475     ;;
476
477   *=*)
478     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479     # Reject names that are not valid shell variable names.
480     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482    { (exit 1); exit 1; }; }
483     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484     eval "$ac_envvar='$ac_optarg'"
485     export $ac_envvar ;;
486
487   *)
488     # FIXME: should be removed in autoconf 3.0.
489     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
493     ;;
494
495   esac
496 done
497
498 if test -n "$ac_prev"; then
499   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500   { echo "$as_me: error: missing argument to $ac_option" >&2
501    { (exit 1); exit 1; }; }
502 fi
503
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
506 do
507   eval ac_val=$`echo $ac_var`
508   case $ac_val in
509     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511    { (exit 1); exit 1; }; };;
512   esac
513 done
514
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517               localstatedir libdir includedir oldincludedir infodir mandir
518 do
519   eval ac_val=$`echo $ac_var`
520   case $ac_val in
521     [\\/$]* | ?:[\\/]* ) ;;
522     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523    { (exit 1); exit 1; }; };;
524   esac
525 done
526
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
529 build=$build_alias
530 host=$host_alias
531 target=$target_alias
532
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535   if test "x$build_alias" = x; then
536     cross_compiling=maybe
537     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538     If a cross compiler is detected then cross compile mode will be used." >&2
539   elif test "x$build_alias" != "x$host_alias"; then
540     cross_compiling=yes
541   fi
542 fi
543
544 ac_tool_prefix=
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
546
547 test "$silent" = yes && exec 6>/dev/null
548
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551   ac_srcdir_defaulted=yes
552   # Try the directory containing this script, then its parent.
553   ac_prog=$0
554   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556   srcdir=$ac_confdir
557   if test ! -r $srcdir/$ac_unique_file; then
558     srcdir=..
559   fi
560 else
561   ac_srcdir_defaulted=no
562 fi
563 if test ! -r $srcdir/$ac_unique_file; then
564   if test "$ac_srcdir_defaulted" = yes; then
565     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566    { (exit 1); exit 1; }; }
567   else
568     { echo "$as_me: error: cannot find sources in $srcdir" >&2
569    { (exit 1); exit 1; }; }
570   fi
571 fi
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
586 ac_env_CC_value=$CC
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
617
618 #
619 # Report the --help message.
620 #
621 if test "$ac_init_help" = "long"; then
622   # Omit some internal or obsolete options to make the list less imposing.
623   # This message is too long to be a string in the A/UX 3.1 sh.
624   cat <<EOF
625 \`configure' configures this package to adapt to many kinds of systems.
626
627 Usage: $0 [OPTION]... [VAR=VALUE]...
628
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE.  See below for descriptions of some of the useful variables.
631
632 Defaults for the options are specified in brackets.
633
634 Configuration:
635   -h, --help              display this help and exit
636       --help=short        display options specific to this package
637       --help=recursive    display the short help of all the included packages
638   -V, --version           display version information and exit
639   -q, --quiet, --silent   do not print \`checking...' messages
640       --cache-file=FILE   cache test results in FILE [disabled]
641   -C, --config-cache      alias for \`--cache-file=config.cache'
642   -n, --no-create         do not create output files
643       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
644
645 EOF
646
647   cat <<EOF
648 Installation directories:
649   --prefix=PREFIX         install architecture-independent files in PREFIX
650                           [$ac_default_prefix]
651   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
652                           [PREFIX]
653
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
658
659 For better control, use the options below.
660
661 Fine tuning of the installation directories:
662   --bindir=DIR            user executables [EPREFIX/bin]
663   --sbindir=DIR           system admin executables [EPREFIX/sbin]
664   --libexecdir=DIR        program executables [EPREFIX/libexec]
665   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
666   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
667   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
668   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
669   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
670   --libdir=DIR            object code libraries [EPREFIX/lib]
671   --includedir=DIR        C header files [PREFIX/include]
672   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
673   --infodir=DIR           info documentation [DATAROOTDIR/info]
674   --mandir=DIR            man documentation [DATAROOTDIR/man]
675 EOF
676
677   cat <<\EOF
678
679 Program names:
680   --program-prefix=PREFIX            prepend PREFIX to installed program names
681   --program-suffix=SUFFIX            append SUFFIX to installed program names
682   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
683
684 System types:
685   --build=BUILD           configure for building on BUILD [guessed]
686   --host=HOST       build programs to run on HOST [BUILD]
687   --target=TARGET   configure for building compilers for TARGET [HOST]
688 EOF
689 fi
690
691 if test -n "$ac_init_help"; then
692
693   cat <<\EOF
694
695 Optional Packages:
696   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
697   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
698
699 Optional Features:
700   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
701   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
702
703   --with-rel-version=XXX  override derived release version
704   --with-abi-version=XXX  override derived ABI version
705   --with-system-type=XXX  test: override derived host system-type
706   --without-ada           suppress check for Ada95, don't build demo
707   --without-cxx           do not adjust ncurses bool to match C++
708   --without-cxx-binding   do not build C++ binding and demo
709   --disable-db-install    suppress install of terminal database
710   --without-manpages      suppress install of manpages
711   --without-progs         suppress build/install with programs (e.g., tic)
712   --without-tack          suppress build/install with tack program
713   --without-tests         suppress build/install with test-programs
714   --without-curses-h      install curses.h as ncurses.h only
715   --with-pkg-config{=path} enable/disable use of pkg-config
716   --with-pkg-config-libdir=XXX use given directory for installing pc-files
717   --enable-pc-files       generate and install .pc files for pkg-config
718   --with-pc-suffix        suffixes pc-files
719   --enable-mixed-case     tic should assume mixed-case filenames
720   --with-install-prefix   prefixes actual install-location ($DESTDIR)
721 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
722   --with-build-cc=XXX     the build C compiler ($BUILD_CC)
723   --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
724   --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
725   --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
726   --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
727   --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
728 Options to Specify the Libraries Built/Used:
729   --disable-libtool-version  enable to use libtool's incompatible naming scheme
730   --with-libtool          generate libraries with libtool
731   --with-shared           generate shared-libraries
732   --with-normal           generate normal-libraries (default)
733   --with-debug            generate debug-libraries (default)
734   --with-profile          generate profile-libraries
735   --with-cxx-shared       generate C++ shared-libraries
736   --with-lib-prefix       override library-prefix
737   --with-termlib          generate separate terminfo library
738   --with-ticlib           generate separate tic library
739   --with-gpm              use Alessandro Rubini's GPM library
740   --without-dlsym         do not use dlsym() to load GPM dynamically
741   --with-sysmouse         use sysmouse (FreeBSD console)
742   --enable-rpath          use rpath option when generating shared libraries
743   --disable-relink        relink shared libraries during install
744   --with-shlib-version=X  Specify rel or abi version for shared libs
745   --with-libtool-opts=XXX specify additional libtool options
746   --with-export-syms=XXX  limit exported symbols using libtool
747   --with-versioned-syms=X markup versioned symbols using ld
748   --disable-lib-suffixes  disable library suffixes
749   --disable-rpath-hack    don't add rpath options for additional libraries
750 Fine-Tuning Your Configuration:
751   --with-extra-suffix=X   append extra suffix to header/library paths
752   --disable-overwrite     put headers in subdir, omit link to -lcurses
753   --disable-database      do not use terminfo, only fallbacks/termcap
754   --with-database=XXX     specify terminfo source to install
755   --with-hashed-db        specify hashed-database library
756   --with-fallbacks=XXX    specify list of fallback terminal descriptions
757   --without-xterm-new     specify if xterm terminfo should be old version
758   --with-xterm-kbs=XXX    specify if xterm backspace sends BS or DEL
759   --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
760   --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
761   --disable-big-core      assume machine has little memory
762   --disable-big-strings   assume compiler has only standard-size strings
763   --enable-termcap        compile in termcap fallback support
764   --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
765   --enable-getcap         fast termcap load, no xrefs to terminfo
766   --enable-getcap-cache   cache translated termcaps in ~/.terminfo
767   --disable-home-terminfo drop ~/.terminfo from terminfo search-path
768   --disable-root-environ  restrict environment when running as root
769   --enable-symlinks       make tic use symbolic links not hard links
770   --enable-broken_linker  compile with broken-linker support code
771   --enable-bsdpad         recognize BSD-style prefix padding
772   --enable-widec          compile with wide-char/UTF-8 code
773   --disable-lp64          allow chtype to be long (ignore _LP64)
774   --disable-largefile     omit support for large files
775   --disable-tparm-varargs compile tparm() without varargs interface
776   --disable-tic-depends   link tic library without explicit dependency on ncurses library
777   --disable-wattr-macros  suppress wattr* macros to help with ncurses5/ncurses6 transition
778   --with-bool=TYPE        override fallback type of bool variable
779   --with-caps=alt         compile with alternate Caps file
780   --with-chtype=TYPE      override type of chtype
781   --with-ospeed=TYPE      override type of ospeed variable
782   --with-mmask-t=TYPE     override type of mmask_t
783   --with-ccharw-max=XXX   override size CCHARW_MAX
784   --with-tparm-arg=TYPE   override parameter type of tparm
785   --with-rcs-ids          compile-in RCS identifiers
786 Options to Specify How Manpages are Installed:
787   --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
788                           optionally formatted/catonly, e.g., gzip,formatted
789   --with-manpage-renames  specify manpage-renaming
790   --with-manpage-aliases  specify manpage-aliases using .so
791   --with-manpage-symlinks specify manpage-aliases using symlinks
792   --with-manpage-tbl      specify manpage processing with tbl
793 Extensions:
794   --disable-ext-funcs     disable function-extensions
795   --enable-sp-funcs       enable SCREEN-extensions
796   --enable-term-driver    enable terminal-driver
797   --enable-const          compile with extra/non-standard const
798   --enable-ext-colors     compile for 256-color support
799   --enable-ext-mouse      compile for extended mouse-encoding
800   --enable-ext-putwin     compile with extended putwin/screendump
801   --enable-no-padding     compile with $NCURSES_NO_PADDING code
802   --enable-signed-char    compile using signed Boolean's in term.h
803   --enable-sigwinch       compile with SIGWINCH handler
804   --enable-tcap-names     compile with user-definable terminal capabilities
805   --with-pthread          use POSIX thread library
806   --enable-pthreads-eintr enable EINTR in wgetch with pthreads
807   --enable-weak-symbols   enable weak-symbols for pthreads
808   --enable-reentrant      compile with reentrant code
809   --enable-opaque-curses  make curses WINDOW, etc., "opaque"
810   --enable-opaque-form    make form-library structures "opaque"
811   --enable-opaque-menu    make menu-library structures "opaque"
812   --enable-opaque-panel   make panel-library structures "opaque"
813   --with-wrap-prefix=XXX  override prefix used for public variables
814 Development Code:
815   --without-develop       disable development options
816   --enable-hard-tabs      compile with hard-tabs code
817   --enable-xmc-glitch     compile with support for xmc (magic-cookie)
818 Experimental Code:
819   --disable-assumed-color do not assume anything about default-colors
820   --disable-hashmap       compile without hashmap scrolling-optimization
821   --enable-colorfgbg      compile-in experimental $COLORFGBG code
822   --enable-interop        compile-in interop bindings
823   --enable-safe-sprintf   compile with experimental safe-sprintf code
824   --disable-scroll-hints  compile without scroll-hints code
825   --enable-wgetch-events  compile with wgetch-events code
826 Testing/development Options:
827   --disable-echo          do not display "compiling" commands
828   --enable-warnings       build: turn on GCC compiler warnings
829   --enable-string-hacks   work around bogus compiler/loader warnings
830   --enable-assertions     test: turn on generation of assertion code
831   --with-dmalloc          test: use Gray Watson's dmalloc library
832   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
833   --with-valgrind         test: use valgrind
834   --disable-leaks         test: free permanent memory, analyze leaks
835   --enable-expanded       test: generate functions for certain macros
836   --disable-macros        test: use functions rather than macros
837   --with-trace            test: add trace() function to all models of ncurses
838   --disable-gnat-projects test: disable GNAT projects even if usable
839 Ada95 Binding Options:
840   --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
841   --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
842   --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
843   --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
844
845 Some influential environment variables:
846   CC          C compiler command
847   CFLAGS      C compiler flags
848   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
849               nonstandard directory <lib dir>
850   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
851               headers in a nonstandard directory <include dir>
852   CPP         C preprocessor
853   CXX         C++ compiler command
854   CXXFLAGS    C++ compiler flags
855   CXXCPP      C++ preprocessor
856
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
859
860 EOF
861 fi
862
863 if test "$ac_init_help" = "recursive"; then
864   # If there are subdirs, report their specific --help.
865   ac_popdir=`pwd`
866   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
867     cd $ac_subdir
868     # A "../" for each directory in /$ac_subdir.
869     ac_dots=`echo $ac_subdir |
870              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
871
872     case $srcdir in
873     .) # No --srcdir option.  We are building in place.
874       ac_sub_srcdir=$srcdir ;;
875     [\\/]* | ?:[\\/]* ) # Absolute path.
876       ac_sub_srcdir=$srcdir/$ac_subdir ;;
877     *) # Relative path.
878       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
879     esac
880
881     # Check for guested configure; otherwise get Cygnus style configure.
882     if test -f $ac_sub_srcdir/configure.gnu; then
883       echo
884       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
885     elif test -f $ac_sub_srcdir/configure; then
886       echo
887       $SHELL $ac_sub_srcdir/configure  --help=recursive
888     elif test -f $ac_sub_srcdir/configure.ac ||
889            test -f $ac_sub_srcdir/configure.in; then
890       echo
891       $ac_configure --help
892     else
893       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
894     fi
895     cd $ac_popdir
896   done
897 fi
898
899 test -n "$ac_init_help" && exit 0
900 if $ac_init_version; then
901   cat <<\EOF
902
903 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
904 Free Software Foundation, Inc.
905 This configure script is free software; the Free Software Foundation
906 gives unlimited permission to copy, distribute and modify it.
907 EOF
908   exit 0
909 fi
910 exec 5>config.log
911 cat >&5 <<EOF
912 This file contains any messages produced by compilers while
913 running configure, to aid debugging if configure makes a mistake.
914
915 It was created by $as_me, which was
916 generated by GNU Autoconf 2.52.20170501.  Invocation command line was
917
918   $ $0 $@
919
920 EOF
921 {
922 cat <<_ASUNAME
923 ## ---------- ##
924 ## Platform.  ##
925 ## ---------- ##
926
927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
932
933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
934 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
935
936 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
937 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
939 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
940 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
941 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
942 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
943
944 PATH = $PATH
945
946 _ASUNAME
947 } >&5
948
949 cat >&5 <<EOF
950 ## ------------ ##
951 ## Core tests.  ##
952 ## ------------ ##
953
954 EOF
955
956 # Keep a trace of the command line.
957 # Strip out --no-create and --no-recursion so they do not pile up.
958 # Also quote any args containing shell meta-characters.
959 ac_configure_args=
960 ac_sep=
961 for ac_arg
962 do
963   case $ac_arg in
964   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965   | --no-cr | --no-c) ;;
966   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
968   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
970     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
971     ac_sep=" " ;;
972   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
973      ac_sep=" " ;;
974   esac
975   # Get rid of the leading space.
976 done
977
978 # When interrupted or exit'd, cleanup temporary files, and complete
979 # config.log.  We remove comments because anyway the quotes in there
980 # would cause problems or look ugly.
981 trap 'exit_status=$?
982   # Save into config.log some information that might help in debugging.
983   echo >&5
984   echo "## ----------------- ##" >&5
985   echo "## Cache variables.  ##" >&5
986   echo "## ----------------- ##" >&5
987   echo >&5
988   # The following way of writing the cache mishandles newlines in values,
989 {
990   (set) 2>&1 |
991     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
992     *ac_space=\ *)
993       sed -n \
994         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
995           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
996       ;;
997     *)
998       sed -n \
999         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1000       ;;
1001     esac;
1002 } >&5
1003   sed "/^$/d" confdefs.h >conftest.log
1004   if test -s conftest.log; then
1005     echo >&5
1006     echo "## ------------ ##" >&5
1007     echo "## confdefs.h.  ##" >&5
1008     echo "## ------------ ##" >&5
1009     echo >&5
1010     cat conftest.log >&5
1011   fi
1012   (echo; echo) >&5
1013   test "$ac_signal" != 0 &&
1014     echo "$as_me: caught signal $ac_signal" >&5
1015   echo "$as_me: exit $exit_status" >&5
1016   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1017     exit $exit_status
1018      ' 0
1019 for ac_signal in 1 2 13 15; do
1020   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1021 done
1022 ac_signal=0
1023
1024 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1025 rm -rf conftest* confdefs.h
1026 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1027 echo >confdefs.h
1028
1029 # Let the site file select an alternate cache file if it wants to.
1030 # Prefer explicitly selected file to automatically selected ones.
1031 if test -z "$CONFIG_SITE"; then
1032   if test "x$prefix" != xNONE; then
1033     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1034   else
1035     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1036   fi
1037 fi
1038 for ac_site_file in $CONFIG_SITE; do
1039   if test -r "$ac_site_file"; then
1040     { echo "$as_me:1040: loading site script $ac_site_file" >&5
1041 echo "$as_me: loading site script $ac_site_file" >&6;}
1042     cat "$ac_site_file" >&5
1043     . "$ac_site_file"
1044   fi
1045 done
1046
1047 if test -r "$cache_file"; then
1048   # Some versions of bash will fail to source /dev/null (special
1049   # files actually), so we avoid doing that.
1050   if test -f "$cache_file"; then
1051     { echo "$as_me:1051: loading cache $cache_file" >&5
1052 echo "$as_me: loading cache $cache_file" >&6;}
1053     case $cache_file in
1054       [\\/]* | ?:[\\/]* ) . $cache_file;;
1055       *)                      . ./$cache_file;;
1056     esac
1057   fi
1058 else
1059   { echo "$as_me:1059: creating cache $cache_file" >&5
1060 echo "$as_me: creating cache $cache_file" >&6;}
1061   >$cache_file
1062 fi
1063
1064 # Check that the precious variables saved in the cache have kept the same
1065 # value.
1066 ac_cache_corrupted=false
1067 for ac_var in `(set) 2>&1 |
1068                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1069   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1070   eval ac_new_set=\$ac_env_${ac_var}_set
1071   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1072   eval ac_new_val="\$ac_env_${ac_var}_value"
1073   case $ac_old_set,$ac_new_set in
1074     set,)
1075       { echo "$as_me:1075: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1076 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1077       ac_cache_corrupted=: ;;
1078     ,set)
1079       { echo "$as_me:1079: error: \`$ac_var' was not set in the previous run" >&5
1080 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1081       ac_cache_corrupted=: ;;
1082     ,);;
1083     *)
1084       if test "x$ac_old_val" != "x$ac_new_val"; then
1085         { echo "$as_me:1085: error: \`$ac_var' has changed since the previous run:" >&5
1086 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1087         { echo "$as_me:1087:   former value:  $ac_old_val" >&5
1088 echo "$as_me:   former value:  $ac_old_val" >&2;}
1089         { echo "$as_me:1089:   current value: $ac_new_val" >&5
1090 echo "$as_me:   current value: $ac_new_val" >&2;}
1091         ac_cache_corrupted=:
1092       fi;;
1093   esac
1094   # Pass precious variables to config.status.  It doesn't matter if
1095   # we pass some twice (in addition to the command line arguments).
1096   if test "$ac_new_set" = set; then
1097     case $ac_new_val in
1098     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1100       ac_configure_args="$ac_configure_args '$ac_arg'"
1101       ;;
1102     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1103        ;;
1104     esac
1105   fi
1106 done
1107 if $ac_cache_corrupted; then
1108   { echo "$as_me:1108: error: changes in the environment can compromise the build" >&5
1109 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1110   { { echo "$as_me:1110: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1111 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1112    { (exit 1); exit 1; }; }
1113 fi
1114
1115 ac_ext=c
1116 ac_cpp='$CPP $CPPFLAGS'
1117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1120 ac_main_return=return
1121
1122 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1123   *c*,-n*) ECHO_N= ECHO_C=      # newlines do not sed ;-) only broken shells would use this case anyway
1124                    ECHO_T='     ' ;;
1125   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1126   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1127 esac
1128 echo "#! $SHELL" >conftest.sh
1129 echo  "exit 0"   >>conftest.sh
1130 chmod +x conftest.sh
1131 if { (echo "$as_me:1131: PATH=\".;.\"; conftest.sh") >&5
1132   (PATH=".;."; conftest.sh) 2>&5
1133   ac_status=$?
1134   echo "$as_me:1134: \$? = $ac_status" >&5
1135   (exit $ac_status); }; then
1136   ac_path_separator=';'
1137 else
1138   ac_path_separator=:
1139 fi
1140 PATH_SEPARATOR="$ac_path_separator"
1141 rm -f conftest.sh
1142
1143 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1144
1145 top_builddir=`pwd`
1146
1147 echo "$as_me:1147: checking for egrep" >&5
1148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1149 if test "${ac_cv_prog_egrep+set}" = set; then
1150   echo $ECHO_N "(cached) $ECHO_C" >&6
1151 else
1152   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1153                 then ac_cv_prog_egrep='grep -E'
1154                 else ac_cv_prog_egrep='egrep'
1155         fi
1156 fi
1157 echo "$as_me:1157: result: $ac_cv_prog_egrep" >&5
1158 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1159         EGREP=$ac_cv_prog_egrep
1160
1161         test -z "$EGREP" && { { echo "$as_me:1161: error: No egrep program found" >&5
1162 echo "$as_me: error: No egrep program found" >&2;}
1163    { (exit 1); exit 1; }; }
1164
1165 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1166 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1167 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1168 cf_cv_abi_version=${NCURSES_MAJOR}
1169 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1170 cf_cv_timestamp=`date`
1171 echo "$as_me:1171: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1172 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1173
1174 if test -f $srcdir/VERSION ; then
1175         echo "$as_me:1175: checking for package version" >&5
1176 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1177
1178         # if there are not enough fields, cut returns the last one...
1179         cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1180         cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1181         cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1182
1183         # this is how CF_BUNDLED_INTL uses $VERSION:
1184         VERSION="$cf_field1"
1185
1186         VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1187         test -z "$VERSION_MAJOR" && { { echo "$as_me:1187: error: missing major-version" >&5
1188 echo "$as_me: error: missing major-version" >&2;}
1189    { (exit 1); exit 1; }; }
1190
1191         VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1192         test -z "$VERSION_MINOR" && { { echo "$as_me:1192: error: missing minor-version" >&5
1193 echo "$as_me: error: missing minor-version" >&2;}
1194    { (exit 1); exit 1; }; }
1195
1196         echo "$as_me:1196: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1197 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1198
1199         echo "$as_me:1199: checking for package patch date" >&5
1200 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1201         VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1202         case .$VERSION_PATCH in
1203         (.)
1204                 { { echo "$as_me:1204: error: missing patch-date $VERSION_PATCH" >&5
1205 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1206    { (exit 1); exit 1; }; }
1207                 ;;
1208         (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1209                 ;;
1210         (*)
1211                 { { echo "$as_me:1211: error: illegal patch-date $VERSION_PATCH" >&5
1212 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1213    { (exit 1); exit 1; }; }
1214                 ;;
1215         esac
1216         echo "$as_me:1216: result: $VERSION_PATCH" >&5
1217 echo "${ECHO_T}$VERSION_PATCH" >&6
1218 else
1219         { { echo "$as_me:1219: error: did not find $srcdir/VERSION" >&5
1220 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1221    { (exit 1); exit 1; }; }
1222 fi
1223
1224 # show the actual data that we have for versions:
1225 test -n "$verbose" && echo "    ABI VERSION $VERSION" 1>&6
1226
1227 echo "${as_me:-configure}:1227: testing ABI VERSION $VERSION ..." 1>&5
1228
1229 test -n "$verbose" && echo "    VERSION_MAJOR $VERSION_MAJOR" 1>&6
1230
1231 echo "${as_me:-configure}:1231: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1232
1233 test -n "$verbose" && echo "    VERSION_MINOR $VERSION_MINOR" 1>&6
1234
1235 echo "${as_me:-configure}:1235: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1236
1237 test -n "$verbose" && echo "    VERSION_PATCH $VERSION_PATCH" 1>&6
1238
1239 echo "${as_me:-configure}:1239: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1240
1241         cf_PACKAGE=NCURSES
1242         PACKAGE=ncurses
1243
1244 cat >>confdefs.h <<EOF
1245 #define PACKAGE "$PACKAGE"
1246 EOF
1247
1248 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1249
1250         cat >>confdefs.h <<EOF
1251 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1252 EOF
1253
1254         cat >>confdefs.h <<EOF
1255 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1256 EOF
1257
1258 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1259
1260 # Check whether --with-rel-version or --without-rel-version was given.
1261 if test "${with_rel_version+set}" = set; then
1262   withval="$with_rel_version"
1263   { echo "$as_me:1263: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1264 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1265  cf_cv_rel_version=$withval
1266 fi;
1267
1268  NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1269  NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1270
1271 if test -n "$NCURSES_MAJOR" ; then
1272   case $NCURSES_MAJOR in
1273   ([0-9]*)
1274         ;;
1275   (*)
1276         { { echo "$as_me:1276: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1277 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1278    { (exit 1); exit 1; }; }
1279         ;;
1280   esac
1281 else
1282   { { echo "$as_me:1282: error: Release major-version value is empty" >&5
1283 echo "$as_me: error: Release major-version value is empty" >&2;}
1284    { (exit 1); exit 1; }; }
1285 fi
1286
1287 if test -n "$NCURSES_MINOR" ; then
1288   case $NCURSES_MINOR in
1289   ([0-9]*)
1290         ;;
1291   (*)
1292         { { echo "$as_me:1292: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1293 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1294    { (exit 1); exit 1; }; }
1295         ;;
1296   esac
1297 else
1298   { { echo "$as_me:1298: error: Release minor-version value is empty" >&5
1299 echo "$as_me: error: Release minor-version value is empty" >&2;}
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1304
1305 # Check whether --with-abi-version or --without-abi-version was given.
1306 if test "${with_abi_version+set}" = set; then
1307   withval="$with_abi_version"
1308
1309         if test "x$cf_cv_abi_version" != "x$withval"
1310         then
1311                 { echo "$as_me:1311: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1312 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1313                 case $cf_cv_rel_version in
1314                 (5.*)
1315                         cf_cv_rel_version=$withval.0
1316                         ;;
1317                 (6.*)
1318                         cf_cv_rel_version=$withval.9    # FIXME: should be 10 as of 6.0 release
1319                         ;;
1320                 esac
1321         fi
1322         cf_cv_abi_version=$withval
1323 fi;
1324
1325 if test -n "$cf_cv_abi_version" ; then
1326   case $cf_cv_abi_version in
1327   ([0-9]*)
1328         ;;
1329   (*)
1330         { { echo "$as_me:1330: error: ABI version is not a number: $cf_cv_abi_version" >&5
1331 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1332    { (exit 1); exit 1; }; }
1333         ;;
1334   esac
1335 else
1336   { { echo "$as_me:1336: error: ABI version value is empty" >&5
1337 echo "$as_me: error: ABI version value is empty" >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340
1341 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1342 then
1343         case $cf_cv_rel_version in
1344         (5.*)
1345                 cf_cv_rel_version=$with_abi_version.0
1346                 ;;
1347         esac
1348 fi
1349
1350 ac_aux_dir=
1351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1352   if test -f $ac_dir/install-sh; then
1353     ac_aux_dir=$ac_dir
1354     ac_install_sh="$ac_aux_dir/install-sh -c"
1355     break
1356   elif test -f $ac_dir/install.sh; then
1357     ac_aux_dir=$ac_dir
1358     ac_install_sh="$ac_aux_dir/install.sh -c"
1359     break
1360   elif test -f $ac_dir/shtool; then
1361     ac_aux_dir=$ac_dir
1362     ac_install_sh="$ac_aux_dir/shtool install -c"
1363     break
1364   fi
1365 done
1366 if test -z "$ac_aux_dir"; then
1367   { { echo "$as_me:1367: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374
1375 # Make sure we can run config.sub.
1376 $ac_config_sub sun4 >/dev/null 2>&1 ||
1377   { { echo "$as_me:1377: error: cannot run $ac_config_sub" >&5
1378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1379    { (exit 1); exit 1; }; }
1380
1381 echo "$as_me:1381: checking build system type" >&5
1382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1383 if test "${ac_cv_build+set}" = set; then
1384   echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386   ac_cv_build_alias=$build_alias
1387 test -z "$ac_cv_build_alias" &&
1388   ac_cv_build_alias=`$ac_config_guess`
1389 test -z "$ac_cv_build_alias" &&
1390   { { echo "$as_me:1390: error: cannot guess build type; you must specify one" >&5
1391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1392    { (exit 1); exit 1; }; }
1393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1394   { { echo "$as_me:1394: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1396    { (exit 1); exit 1; }; }
1397
1398 fi
1399 echo "$as_me:1399: result: $ac_cv_build" >&5
1400 echo "${ECHO_T}$ac_cv_build" >&6
1401 build=$ac_cv_build
1402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405
1406 echo "$as_me:1406: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413   ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415   { { echo "$as_me:1415: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:1420: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1422 host=$ac_cv_host
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1428         echo "$as_me:1428: checking target system type" >&5
1429 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1430 if test "${ac_cv_target+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_target_alias=$target_alias
1434 test "x$ac_cv_target_alias" = "x" &&
1435   ac_cv_target_alias=$ac_cv_host_alias
1436 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1437   { { echo "$as_me:1437: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:1442: result: $ac_cv_target" >&5
1443 echo "${ECHO_T}$ac_cv_target" >&6
1444 target=$ac_cv_target
1445 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449 # The aliases save the names the user supplied, while $host etc.
1450 # will get canonicalized.
1451 test -n "$target_alias" &&
1452   test "$program_prefix$program_suffix$program_transform_name" = \
1453     NONENONEs,x,x, &&
1454   program_prefix=${target_alias}-
1455         system_name="$host_os"
1456 else
1457         system_name="`(uname -s -r) 2>/dev/null`"
1458         if test -z "$system_name" ; then
1459                 system_name="`(hostname) 2>/dev/null`"
1460         fi
1461 fi
1462 test -n "$system_name" &&
1463 cat >>confdefs.h <<EOF
1464 #define SYSTEM_NAME "$system_name"
1465 EOF
1466
1467 if test "${cf_cv_system_name+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   cf_cv_system_name="$system_name"
1471 fi
1472
1473 test -z "$system_name" && system_name="$cf_cv_system_name"
1474 test -n "$cf_cv_system_name" && echo "$as_me:1474: result: Configuring for $cf_cv_system_name" >&5
1475 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1476
1477 if test ".$system_name" != ".$cf_cv_system_name" ; then
1478         echo "$as_me:1478: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1479 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1480         { { echo "$as_me:1480: error: \"Please remove config.cache and try again.\"" >&5
1481 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 # Check whether --with-system-type or --without-system-type was given.
1486 if test "${with_system_type+set}" = set; then
1487   withval="$with_system_type"
1488   { echo "$as_me:1488: WARNING: overriding system type to $withval" >&5
1489 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1490         cf_cv_system_name=$withval
1491         host_os=$withval
1492
1493 fi;
1494
1495 ###     Save the given $CFLAGS to allow user-override.
1496 cf_user_CFLAGS="$CFLAGS"
1497
1498 ###     Default install-location
1499
1500 echo "$as_me:1500: checking for prefix" >&5
1501 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1502 if test "x$prefix" = "xNONE" ; then
1503         case "$cf_cv_system_name" in
1504                 # non-vendor systems don't have a conflict
1505         (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1506                 prefix=/usr
1507                 ;;
1508         (*)     prefix=$ac_default_prefix
1509                 ;;
1510         esac
1511 fi
1512 echo "$as_me:1512: result: $prefix" >&5
1513 echo "${ECHO_T}$prefix" >&6
1514
1515 if test "x$prefix" = "xNONE" ; then
1516 echo "$as_me:1516: checking for default include-directory" >&5
1517 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1518 test -n "$verbose" && echo 1>&6
1519 for cf_symbol in \
1520         $includedir \
1521         $includedir/ncurses \
1522         $prefix/include \
1523         $prefix/include/ncurses \
1524         /usr/local/include \
1525         /usr/local/include/ncurses \
1526         /usr/include \
1527         /usr/include/ncurses
1528 do
1529         cf_dir=`eval echo $cf_symbol`
1530         if test -f $cf_dir/curses.h ; then
1531         if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1532                 includedir="$cf_symbol"
1533                 test -n "$verbose"  && echo $ac_n "     found " 1>&6
1534                 break
1535         fi
1536         fi
1537         test -n "$verbose"  && echo "   tested $cf_dir" 1>&6
1538 done
1539 echo "$as_me:1539: result: $includedir" >&5
1540 echo "${ECHO_T}$includedir" >&6
1541 fi
1542
1543 ### Defaults for ncurses ABI
1544
1545 case x$cf_cv_abi_version in
1546 (x[6789])
1547         cf_dft_ext_colors=yes
1548         cf_dft_ext_const=yes
1549         cf_dft_ext_mouse=yes
1550         cf_dft_ext_putwin=yes
1551         cf_dft_ext_spfuncs=yes
1552         cf_dft_filter_syms=yes
1553         cf_dft_chtype=uint32_t
1554         cf_dft_mmask_t=uint32_t
1555         cf_dft_interop=yes
1556         cf_dft_tparm_arg=intptr_t
1557         cf_dft_with_lp64=yes
1558         ;;
1559 (*)
1560         cf_dft_ext_colors=no
1561         cf_dft_ext_const=no
1562         cf_dft_ext_mouse=no
1563         cf_dft_ext_putwin=no
1564         cf_dft_ext_spfuncs=no
1565         cf_dft_filter_syms=no
1566         cf_dft_chtype=auto
1567         cf_dft_mmask_t=auto
1568         cf_dft_interop=no
1569         cf_dft_tparm_arg=long
1570         cf_dft_with_lp64=no
1571         ;;
1572 esac
1573
1574 ###     Checks for programs.
1575
1576 # Check whether --with-ada or --without-ada was given.
1577 if test "${with_ada+set}" = set; then
1578   withval="$with_ada"
1579   cf_with_ada=$withval
1580 else
1581   cf_with_ada=yes
1582 fi;
1583 if test "x$cf_with_ada" = xyes
1584 then
1585         cf_PROG_CC="gnatgcc gcc cc"
1586 else
1587         cf_PROG_CC="gcc cc"
1588 fi
1589
1590 ac_ext=c
1591 ac_cpp='$CPP $CPPFLAGS'
1592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1595 ac_main_return=return
1596 if test -n "$ac_tool_prefix"; then
1597   for ac_prog in $cf_PROG_CC
1598   do
1599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:1601: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$CC"; then
1607   ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609   ac_save_IFS=$IFS; IFS=$ac_path_separator
1610 ac_dummy="$PATH"
1611 for ac_dir in $ac_dummy; do
1612   IFS=$ac_save_IFS
1613   test -z "$ac_dir" && ac_dir=.
1614   $as_executable_p "$ac_dir/$ac_word" || continue
1615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1616 echo "$as_me:1616: found $ac_dir/$ac_word" >&5
1617 break
1618 done
1619
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624   echo "$as_me:1624: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627   echo "$as_me:1627: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631     test -n "$CC" && break
1632   done
1633 fi
1634 if test -z "$CC"; then
1635   ac_ct_CC=$CC
1636   for ac_prog in $cf_PROG_CC
1637 do
1638   # Extract the first word of "$ac_prog", so it can be a program name with args.
1639 set dummy $ac_prog; ac_word=$2
1640 echo "$as_me:1640: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$ac_ct_CC"; then
1646   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 else
1648   ac_save_IFS=$IFS; IFS=$ac_path_separator
1649 ac_dummy="$PATH"
1650 for ac_dir in $ac_dummy; do
1651   IFS=$ac_save_IFS
1652   test -z "$ac_dir" && ac_dir=.
1653   $as_executable_p "$ac_dir/$ac_word" || continue
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:1655: found $ac_dir/$ac_word" >&5
1656 break
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663   echo "$as_me:1663: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666   echo "$as_me:1666: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670   test -n "$ac_ct_CC" && break
1671 done
1672
1673   CC=$ac_ct_CC
1674 fi
1675
1676 test -z "$CC" && { { echo "$as_me:1676: error: no acceptable cc found in \$PATH" >&5
1677 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1678    { (exit 1); exit 1; }; }
1679
1680 # Provide some information about the compiler.
1681 echo "$as_me:1681:" \
1682      "checking for C compiler version" >&5
1683 ac_compiler=`set X $ac_compile; echo $2`
1684 { (eval echo "$as_me:1684: \"$ac_compiler --version </dev/null >&5\"") >&5
1685   (eval $ac_compiler --version </dev/null >&5) 2>&5
1686   ac_status=$?
1687   echo "$as_me:1687: \$? = $ac_status" >&5
1688   (exit $ac_status); }
1689 { (eval echo "$as_me:1689: \"$ac_compiler -v </dev/null >&5\"") >&5
1690   (eval $ac_compiler -v </dev/null >&5) 2>&5
1691   ac_status=$?
1692   echo "$as_me:1692: \$? = $ac_status" >&5
1693   (exit $ac_status); }
1694 { (eval echo "$as_me:1694: \"$ac_compiler -V </dev/null >&5\"") >&5
1695   (eval $ac_compiler -V </dev/null >&5) 2>&5
1696   ac_status=$?
1697   echo "$as_me:1697: \$? = $ac_status" >&5
1698   (exit $ac_status); }
1699
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1703
1704 int
1705 main (void)
1706 {
1707
1708   ;
1709   return 0;
1710 }
1711 _ACEOF
1712 ac_clean_files_save=$ac_clean_files
1713 ac_clean_files="$ac_clean_files a.out a.exe"
1714 # Try to create an executable without -o first, disregard a.out.
1715 # It will help us diagnose broken compilers, and finding out an intuition
1716 # of exeext.
1717 echo "$as_me:1717: checking for C compiler default output" >&5
1718 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1720 if { (eval echo "$as_me:1720: \"$ac_link_default\"") >&5
1721   (eval $ac_link_default) 2>&5
1722   ac_status=$?
1723   echo "$as_me:1723: \$? = $ac_status" >&5
1724   (exit $ac_status); }; then
1725   # Find the output, starting from the most likely.  This scheme is
1726 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1727 # resort.
1728 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1729                 ls a.out conftest 2>/dev/null;
1730                 ls a.* conftest.* 2>/dev/null`; do
1731   case $ac_file in
1732     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1733     a.out ) # We found the default executable, but exeext='' is most
1734             # certainly right.
1735             break;;
1736     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738           export ac_cv_exeext
1739           break;;
1740     * ) break;;
1741   esac
1742 done
1743 else
1744   echo "$as_me: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 { { echo "$as_me:1746: error: C compiler cannot create executables" >&5
1747 echo "$as_me: error: C compiler cannot create executables" >&2;}
1748    { (exit 77); exit 77; }; }
1749 fi
1750
1751 ac_exeext=$ac_cv_exeext
1752 echo "$as_me:1752: result: $ac_file" >&5
1753 echo "${ECHO_T}$ac_file" >&6
1754
1755 # Check the compiler produces executables we can run.  If not, either
1756 # the compiler is broken, or we cross compile.
1757 echo "$as_me:1757: checking whether the C compiler works" >&5
1758 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1759 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1760 # If not cross compiling, check that we can run a simple program.
1761 if test "$cross_compiling" != yes; then
1762   if { ac_try='./$ac_file'
1763   { (eval echo "$as_me:1763: \"$ac_try\"") >&5
1764   (eval $ac_try) 2>&5
1765   ac_status=$?
1766   echo "$as_me:1766: \$? = $ac_status" >&5
1767   (exit $ac_status); }; }; then
1768     cross_compiling=no
1769   else
1770     if test "$cross_compiling" = maybe; then
1771         cross_compiling=yes
1772     else
1773         { { echo "$as_me:1773: error: cannot run C compiled programs.
1774 If you meant to cross compile, use \`--host'." >&5
1775 echo "$as_me: error: cannot run C compiled programs.
1776 If you meant to cross compile, use \`--host'." >&2;}
1777    { (exit 1); exit 1; }; }
1778     fi
1779   fi
1780 fi
1781 echo "$as_me:1781: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1783
1784 rm -f a.out a.exe conftest$ac_cv_exeext
1785 ac_clean_files=$ac_clean_files_save
1786 # Check the compiler produces executables we can run.  If not, either
1787 # the compiler is broken, or we cross compile.
1788 echo "$as_me:1788: checking whether we are cross compiling" >&5
1789 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1790 echo "$as_me:1790: result: $cross_compiling" >&5
1791 echo "${ECHO_T}$cross_compiling" >&6
1792
1793 echo "$as_me:1793: checking for executable suffix" >&5
1794 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1795 if { (eval echo "$as_me:1795: \"$ac_link\"") >&5
1796   (eval $ac_link) 2>&5
1797   ac_status=$?
1798   echo "$as_me:1798: \$? = $ac_status" >&5
1799   (exit $ac_status); }; then
1800   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1801 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1802 # work properly (i.e., refer to `conftest.exe'), while it won't with
1803 # `rm'.
1804 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1805   case $ac_file in
1806     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1807     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808           export ac_cv_exeext
1809           break;;
1810     * ) break;;
1811   esac
1812 done
1813 else
1814   { { echo "$as_me:1814: error: cannot compute EXEEXT: cannot compile and link" >&5
1815 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1816    { (exit 1); exit 1; }; }
1817 fi
1818
1819 rm -f conftest$ac_cv_exeext
1820 echo "$as_me:1820: result: $ac_cv_exeext" >&5
1821 echo "${ECHO_T}$ac_cv_exeext" >&6
1822
1823 rm -f conftest.$ac_ext
1824 EXEEXT=$ac_cv_exeext
1825 ac_exeext=$EXEEXT
1826 echo "$as_me:1826: checking for object suffix" >&5
1827 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1828 if test "${ac_cv_objext+set}" = set; then
1829   echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831   cat >conftest.$ac_ext <<_ACEOF
1832 #line 1832 "configure"
1833 #include "confdefs.h"
1834
1835 int
1836 main (void)
1837 {
1838
1839   ;
1840   return 0;
1841 }
1842 _ACEOF
1843 rm -f conftest.o conftest.obj
1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845   (eval $ac_compile) 2>&5
1846   ac_status=$?
1847   echo "$as_me:1847: \$? = $ac_status" >&5
1848   (exit $ac_status); }; then
1849   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1850   case $ac_file in
1851     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1852     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1853        break;;
1854   esac
1855 done
1856 else
1857   echo "$as_me: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 { { echo "$as_me:1859: error: cannot compute OBJEXT: cannot compile" >&5
1860 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1861    { (exit 1); exit 1; }; }
1862 fi
1863
1864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1865 fi
1866 echo "$as_me:1866: result: $ac_cv_objext" >&5
1867 echo "${ECHO_T}$ac_cv_objext" >&6
1868 OBJEXT=$ac_cv_objext
1869 ac_objext=$OBJEXT
1870 echo "$as_me:1870: checking whether we are using the GNU C compiler" >&5
1871 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1872 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   cat >conftest.$ac_ext <<_ACEOF
1876 #line 1876 "configure"
1877 #include "confdefs.h"
1878
1879 int
1880 main (void)
1881 {
1882 #ifndef __GNUC__
1883        choke me
1884 #endif
1885
1886   ;
1887   return 0;
1888 }
1889 _ACEOF
1890 rm -f conftest.$ac_objext
1891 if { (eval echo "$as_me:1891: \"$ac_compile\"") >&5
1892   (eval $ac_compile) 2>&5
1893   ac_status=$?
1894   echo "$as_me:1894: \$? = $ac_status" >&5
1895   (exit $ac_status); } &&
1896          { ac_try='test -s conftest.$ac_objext'
1897   { (eval echo "$as_me:1897: \"$ac_try\"") >&5
1898   (eval $ac_try) 2>&5
1899   ac_status=$?
1900   echo "$as_me:1900: \$? = $ac_status" >&5
1901   (exit $ac_status); }; }; then
1902   ac_compiler_gnu=yes
1903 else
1904   echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1906 ac_compiler_gnu=no
1907 fi
1908 rm -f conftest.$ac_objext conftest.$ac_ext
1909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1910
1911 fi
1912 echo "$as_me:1912: result: $ac_cv_c_compiler_gnu" >&5
1913 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1914 GCC=`test $ac_compiler_gnu = yes && echo yes`
1915 ac_test_CFLAGS=${CFLAGS+set}
1916 ac_save_CFLAGS=$CFLAGS
1917 CFLAGS="-g"
1918 echo "$as_me:1918: checking whether $CC accepts -g" >&5
1919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_g+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   cat >conftest.$ac_ext <<_ACEOF
1924 #line 1924 "configure"
1925 #include "confdefs.h"
1926
1927 int
1928 main (void)
1929 {
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5
1937   (eval $ac_compile) 2>&5
1938   ac_status=$?
1939   echo "$as_me:1939: \$? = $ac_status" >&5
1940   (exit $ac_status); } &&
1941          { ac_try='test -s conftest.$ac_objext'
1942   { (eval echo "$as_me:1942: \"$ac_try\"") >&5
1943   (eval $ac_try) 2>&5
1944   ac_status=$?
1945   echo "$as_me:1945: \$? = $ac_status" >&5
1946   (exit $ac_status); }; }; then
1947   ac_cv_prog_cc_g=yes
1948 else
1949   echo "$as_me: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1951 ac_cv_prog_cc_g=no
1952 fi
1953 rm -f conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 echo "$as_me:1955: result: $ac_cv_prog_cc_g" >&5
1956 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1957 if test "$ac_test_CFLAGS" = set; then
1958   CFLAGS=$ac_save_CFLAGS
1959 elif test $ac_cv_prog_cc_g = yes; then
1960   if test "$GCC" = yes; then
1961     CFLAGS="-g -O2"
1962   else
1963     CFLAGS="-g"
1964   fi
1965 else
1966   if test "$GCC" = yes; then
1967     CFLAGS="-O2"
1968   else
1969     CFLAGS=
1970   fi
1971 fi
1972 # Some people use a C++ compiler to compile C.  Since we use `exit',
1973 # in C++ we need to declare it.  In case someone uses the same compiler
1974 # for both compiling C and C++ we need to have the C++ compiler decide
1975 # the declaration of exit, since it's the most demanding environment.
1976 cat >conftest.$ac_ext <<_ACEOF
1977 #ifndef __cplusplus
1978   choke me
1979 #endif
1980 _ACEOF
1981 rm -f conftest.$ac_objext
1982 if { (eval echo "$as_me:1982: \"$ac_compile\"") >&5
1983   (eval $ac_compile) 2>&5
1984   ac_status=$?
1985   echo "$as_me:1985: \$? = $ac_status" >&5
1986   (exit $ac_status); } &&
1987          { ac_try='test -s conftest.$ac_objext'
1988   { (eval echo "$as_me:1988: \"$ac_try\"") >&5
1989   (eval $ac_try) 2>&5
1990   ac_status=$?
1991   echo "$as_me:1991: \$? = $ac_status" >&5
1992   (exit $ac_status); }; }; then
1993   for ac_declaration in \
1994    ''\
1995    '#include <stdlib.h>' \
1996    'extern "C" void std::exit (int) throw (); using std::exit;' \
1997    'extern "C" void std::exit (int); using std::exit;' \
1998    'extern "C" void exit (int) throw ();' \
1999    'extern "C" void exit (int);' \
2000    'void exit (int);'
2001 do
2002   cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2005 #include <stdlib.h>
2006 $ac_declaration
2007 int
2008 main (void)
2009 {
2010 exit (42);
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:2016: \"$ac_compile\"") >&5
2017   (eval $ac_compile) 2>&5
2018   ac_status=$?
2019   echo "$as_me:2019: \$? = $ac_status" >&5
2020   (exit $ac_status); } &&
2021          { ac_try='test -s conftest.$ac_objext'
2022   { (eval echo "$as_me:2022: \"$ac_try\"") >&5
2023   (eval $ac_try) 2>&5
2024   ac_status=$?
2025   echo "$as_me:2025: \$? = $ac_status" >&5
2026   (exit $ac_status); }; }; then
2027   :
2028 else
2029   echo "$as_me: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2031 continue
2032 fi
2033 rm -f conftest.$ac_objext conftest.$ac_ext
2034   cat >conftest.$ac_ext <<_ACEOF
2035 #line 2035 "configure"
2036 #include "confdefs.h"
2037 $ac_declaration
2038 int
2039 main (void)
2040 {
2041 exit (42);
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:2047: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>&5
2049   ac_status=$?
2050   echo "$as_me:2050: \$? = $ac_status" >&5
2051   (exit $ac_status); } &&
2052          { ac_try='test -s conftest.$ac_objext'
2053   { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2054   (eval $ac_try) 2>&5
2055   ac_status=$?
2056   echo "$as_me:2056: \$? = $ac_status" >&5
2057   (exit $ac_status); }; }; then
2058   break
2059 else
2060   echo "$as_me: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 fi
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 done
2065 rm -rf conftest*
2066 if test -n "$ac_declaration"; then
2067   echo '#ifdef __cplusplus' >>confdefs.h
2068   echo $ac_declaration      >>confdefs.h
2069   echo '#endif'             >>confdefs.h
2070 fi
2071
2072 else
2073   echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 fi
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_main_return=return
2083
2084 GCC_VERSION=none
2085 if test "$GCC" = yes ; then
2086         echo "$as_me:2086: checking version of $CC" >&5
2087 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2088         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.].*//'`"
2089         test -z "$GCC_VERSION" && GCC_VERSION=unknown
2090         echo "$as_me:2090: result: $GCC_VERSION" >&5
2091 echo "${ECHO_T}$GCC_VERSION" >&6
2092 fi
2093
2094 echo "$as_me:2094: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   ac_cv_prog_cc_stdc=no
2100 ac_save_CC=$CC
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2104 #include <stdarg.h>
2105 #include <stdio.h>
2106 #include <sys/types.h>
2107 #include <sys/stat.h>
2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2109 struct buf { int x; };
2110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (p, i)
2112      char **p;
2113      int i;
2114 {
2115   return p[i];
2116 }
2117 static char *f (char * (*g) (char **, int), char **p, ...)
2118 {
2119   char *s;
2120   va_list v;
2121   va_start (v,p);
2122   s = g (p, va_arg (v,int));
2123   va_end (v);
2124   return s;
2125 }
2126 int test (int i, double x);
2127 struct s1 {int (*f) (int a);};
2128 struct s2 {int (*f) (double a);};
2129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2130 int argc;
2131 char **argv;
2132 int
2133 main (void)
2134 {
2135 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 # Don't try gcc -ansi; that turns off useful extensions and
2141 # breaks some systems' header files.
2142 # AIX                   -qlanglvl=ansi
2143 # Ultrix and OSF/1      -std1
2144 # HP-UX 10.20 and later -Ae
2145 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2146 # SVR4                  -Xc -D__EXTENSIONS__
2147 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2148 do
2149   CC="$ac_save_CC $ac_arg"
2150   rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:2151: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>&5
2153   ac_status=$?
2154   echo "$as_me:2154: \$? = $ac_status" >&5
2155   (exit $ac_status); } &&
2156          { ac_try='test -s conftest.$ac_objext'
2157   { (eval echo "$as_me:2157: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:2160: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   ac_cv_prog_cc_stdc=$ac_arg
2163 break
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 fi
2168 rm -f conftest.$ac_objext
2169 done
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2171 CC=$ac_save_CC
2172
2173 fi
2174
2175 case "x$ac_cv_prog_cc_stdc" in
2176   x|xno)
2177     echo "$as_me:2177: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2179   *)
2180     echo "$as_me:2180: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182     CC="$CC $ac_cv_prog_cc_stdc" ;;
2183 esac
2184
2185 # This should have been defined by AC_PROG_CC
2186 : ${CC:=cc}
2187
2188 echo "$as_me:2188: checking \$CC variable" >&5
2189 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2190 case "$CC" in
2191 (*[\ \  ]-*)
2192         echo "$as_me:2192: result: broken" >&5
2193 echo "${ECHO_T}broken" >&6
2194         { echo "$as_me:2194: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2195 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2196         # humor him...
2197         cf_prog=`echo "$CC" | sed -e 's/        / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2198         cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2199         CC="$cf_prog"
2200         for cf_arg in $cf_flags
2201         do
2202                 case "x$cf_arg" in
2203                 (x-[IUDfgOW]*)
2204
2205 cf_fix_cppflags=no
2206 cf_new_cflags=
2207 cf_new_cppflags=
2208 cf_new_extra_cppflags=
2209
2210 for cf_add_cflags in $cf_arg
2211 do
2212 case $cf_fix_cppflags in
2213 (no)
2214         case $cf_add_cflags in
2215         (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2216                 case $cf_add_cflags in
2217                 (-D*)
2218                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2219
2220                         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2221                                 && test -z "${cf_tst_cflags}" \
2222                                 && cf_fix_cppflags=yes
2223
2224                         if test $cf_fix_cppflags = yes ; then
2225
2226         test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2227         cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2228
2229                                 continue
2230                         elif test "${cf_tst_cflags}" = "\"'" ; then
2231
2232         test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2233         cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2234
2235                                 continue
2236                         fi
2237                         ;;
2238                 esac
2239                 case "$CPPFLAGS" in
2240                 (*$cf_add_cflags)
2241                         ;;
2242                 (*)
2243                         case $cf_add_cflags in
2244                         (-D*)
2245                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2246
2247 CPPFLAGS=`echo "$CPPFLAGS" | \
2248         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2249                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2250
2251                                 ;;
2252                         esac
2253
2254         test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2255         cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2256
2257                         ;;
2258                 esac
2259                 ;;
2260         (*)
2261
2262         test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2263         cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2264
2265                 ;;
2266         esac
2267         ;;
2268 (yes)
2269
2270         test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2271         cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2272
2273         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2274
2275         test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2276                 && test -z "${cf_tst_cflags}" \
2277                 && cf_fix_cppflags=no
2278         ;;
2279 esac
2280 done
2281
2282 if test -n "$cf_new_cflags" ; then
2283
2284         test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2285         CFLAGS="${CFLAGS}$cf_new_cflags"
2286
2287 fi
2288
2289 if test -n "$cf_new_cppflags" ; then
2290
2291         test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2292         CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2293
2294 fi
2295
2296 if test -n "$cf_new_extra_cppflags" ; then
2297
2298         test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2299         EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2300
2301 fi
2302
2303                         ;;
2304                 (*)
2305                         CC="$CC $cf_arg"
2306                         ;;
2307                 esac
2308         done
2309         test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
2310
2311 echo "${as_me:-configure}:2311: testing resulting CC: '$CC' ..." 1>&5
2312
2313         test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
2314
2315 echo "${as_me:-configure}:2315: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2316
2317         test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2318
2319 echo "${as_me:-configure}:2319: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2320
2321         ;;
2322 (*)
2323         echo "$as_me:2323: result: ok" >&5
2324 echo "${ECHO_T}ok" >&6
2325         ;;
2326 esac
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2334 echo "$as_me:2334: checking how to run the C preprocessor" >&5
2335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2336 # On Suns, sometimes $CPP names a directory.
2337 if test -n "$CPP" && test -d "$CPP"; then
2338   CPP=
2339 fi
2340 if test -z "$CPP"; then
2341   if test "${ac_cv_prog_CPP+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344       # Double quotes because CPP needs to be expanded
2345     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2346     do
2347       ac_preproc_ok=false
2348 for ac_c_preproc_warn_flag in '' yes
2349 do
2350   # Use a header file that comes with gcc, so configuring glibc
2351   # with a fresh cross-compiler works.
2352   # On the NeXT, cc -E runs the code through the compiler's parser,
2353   # not just through cpp. "Syntax error" is here to catch this case.
2354   cat >conftest.$ac_ext <<_ACEOF
2355 #line 2355 "configure"
2356 #include "confdefs.h"
2357 #include <assert.h>
2358                      Syntax error
2359 _ACEOF
2360 if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
2361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2362   ac_status=$?
2363   egrep -v '^ *\+' conftest.er1 >conftest.err
2364   rm -f conftest.er1
2365   cat conftest.err >&5
2366   echo "$as_me:2366: \$? = $ac_status" >&5
2367   (exit $ac_status); } >/dev/null; then
2368   if test -s conftest.err; then
2369     ac_cpp_err=$ac_c_preproc_warn_flag
2370   else
2371     ac_cpp_err=
2372   fi
2373 else
2374   ac_cpp_err=yes
2375 fi
2376 if test -z "$ac_cpp_err"; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380   cat conftest.$ac_ext >&5
2381   # Broken: fails on valid input.
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_ext
2385
2386   # OK, works on sane cases.  Now check whether non-existent headers
2387   # can be detected and how.
2388   cat >conftest.$ac_ext <<_ACEOF
2389 #line 2389 "configure"
2390 #include "confdefs.h"
2391 #include <ac_nonexistent.h>
2392 _ACEOF
2393 if { (eval echo "$as_me:2393: \"$ac_cpp conftest.$ac_ext\"") >&5
2394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2395   ac_status=$?
2396   egrep -v '^ *\+' conftest.er1 >conftest.err
2397   rm -f conftest.er1
2398   cat conftest.err >&5
2399   echo "$as_me:2399: \$? = $ac_status" >&5
2400   (exit $ac_status); } >/dev/null; then
2401   if test -s conftest.err; then
2402     ac_cpp_err=$ac_c_preproc_warn_flag
2403   else
2404     ac_cpp_err=
2405   fi
2406 else
2407   ac_cpp_err=yes
2408 fi
2409 if test -z "$ac_cpp_err"; then
2410   # Broken: success on invalid input.
2411 continue
2412 else
2413   echo "$as_me: failed program was:" >&5
2414   cat conftest.$ac_ext >&5
2415   # Passes both tests.
2416 ac_preproc_ok=:
2417 break
2418 fi
2419 rm -f conftest.err conftest.$ac_ext
2420
2421 done
2422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423 rm -f conftest.err conftest.$ac_ext
2424 if $ac_preproc_ok; then
2425   break
2426 fi
2427
2428     done
2429     ac_cv_prog_CPP=$CPP
2430
2431 fi
2432   CPP=$ac_cv_prog_CPP
2433 else
2434   ac_cv_prog_CPP=$CPP
2435 fi
2436 echo "$as_me:2436: result: $CPP" >&5
2437 echo "${ECHO_T}$CPP" >&6
2438 ac_preproc_ok=false
2439 for ac_c_preproc_warn_flag in '' yes
2440 do
2441   # Use a header file that comes with gcc, so configuring glibc
2442   # with a fresh cross-compiler works.
2443   # On the NeXT, cc -E runs the code through the compiler's parser,
2444   # not just through cpp. "Syntax error" is here to catch this case.
2445   cat >conftest.$ac_ext <<_ACEOF
2446 #line 2446 "configure"
2447 #include "confdefs.h"
2448 #include <assert.h>
2449                      Syntax error
2450 _ACEOF
2451 if { (eval echo "$as_me:2451: \"$ac_cpp conftest.$ac_ext\"") >&5
2452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2453   ac_status=$?
2454   egrep -v '^ *\+' conftest.er1 >conftest.err
2455   rm -f conftest.er1
2456   cat conftest.err >&5
2457   echo "$as_me:2457: \$? = $ac_status" >&5
2458   (exit $ac_status); } >/dev/null; then
2459   if test -s conftest.err; then
2460     ac_cpp_err=$ac_c_preproc_warn_flag
2461   else
2462     ac_cpp_err=
2463   fi
2464 else
2465   ac_cpp_err=yes
2466 fi
2467 if test -z "$ac_cpp_err"; then
2468   :
2469 else
2470   echo "$as_me: failed program was:" >&5
2471   cat conftest.$ac_ext >&5
2472   # Broken: fails on valid input.
2473 continue
2474 fi
2475 rm -f conftest.err conftest.$ac_ext
2476
2477   # OK, works on sane cases.  Now check whether non-existent headers
2478   # can be detected and how.
2479   cat >conftest.$ac_ext <<_ACEOF
2480 #line 2480 "configure"
2481 #include "confdefs.h"
2482 #include <ac_nonexistent.h>
2483 _ACEOF
2484 if { (eval echo "$as_me:2484: \"$ac_cpp conftest.$ac_ext\"") >&5
2485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486   ac_status=$?
2487   egrep -v '^ *\+' conftest.er1 >conftest.err
2488   rm -f conftest.er1
2489   cat conftest.err >&5
2490   echo "$as_me:2490: \$? = $ac_status" >&5
2491   (exit $ac_status); } >/dev/null; then
2492   if test -s conftest.err; then
2493     ac_cpp_err=$ac_c_preproc_warn_flag
2494   else
2495     ac_cpp_err=
2496   fi
2497 else
2498   ac_cpp_err=yes
2499 fi
2500 if test -z "$ac_cpp_err"; then
2501   # Broken: success on invalid input.
2502 continue
2503 else
2504   echo "$as_me: failed program was:" >&5
2505   cat conftest.$ac_ext >&5
2506   # Passes both tests.
2507 ac_preproc_ok=:
2508 break
2509 fi
2510 rm -f conftest.err conftest.$ac_ext
2511
2512 done
2513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2514 rm -f conftest.err conftest.$ac_ext
2515 if $ac_preproc_ok; then
2516   :
2517 else
2518   { { echo "$as_me:2518: error: C preprocessor \"$CPP\" fails sanity check" >&5
2519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2520    { (exit 1); exit 1; }; }
2521 fi
2522
2523 ac_ext=c
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_main_return=return
2529
2530 if test $ac_cv_c_compiler_gnu = yes; then
2531     echo "$as_me:2531: checking whether $CC needs -traditional" >&5
2532 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536     ac_pattern="Autoconf.*'x'"
2537   cat >conftest.$ac_ext <<_ACEOF
2538 #line 2538 "configure"
2539 #include "confdefs.h"
2540 #include <sgtty.h>
2541 int Autoconf = TIOCGETP;
2542 _ACEOF
2543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2544   egrep "$ac_pattern" >/dev/null 2>&1; then
2545   ac_cv_prog_gcc_traditional=yes
2546 else
2547   ac_cv_prog_gcc_traditional=no
2548 fi
2549 rm -rf conftest*
2550
2551   if test $ac_cv_prog_gcc_traditional = no; then
2552     cat >conftest.$ac_ext <<_ACEOF
2553 #line 2553 "configure"
2554 #include "confdefs.h"
2555 #include <termio.h>
2556 int Autoconf = TCGETA;
2557 _ACEOF
2558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2559   egrep "$ac_pattern" >/dev/null 2>&1; then
2560   ac_cv_prog_gcc_traditional=yes
2561 fi
2562 rm -rf conftest*
2563
2564   fi
2565 fi
2566 echo "$as_me:2566: result: $ac_cv_prog_gcc_traditional" >&5
2567 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2568   if test $ac_cv_prog_gcc_traditional = yes; then
2569     CC="$CC -traditional"
2570   fi
2571 fi
2572
2573 echo "$as_me:2573: checking whether $CC understands -c and -o together" >&5
2574 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2575 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578
2579 cat > conftest.$ac_ext <<CF_EOF
2580 int main(void)
2581 {
2582         ${cf_cv_main_return:-return}(0);
2583 }
2584 CF_EOF
2585 # We do the test twice because some compilers refuse to overwrite an
2586 # existing .o file with -o, though they will create one.
2587 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2588 if { (eval echo "$as_me:2588: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:2591: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593   test -f conftest2.$ac_objext && { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:2596: \$? = $ac_status" >&5
2597   (exit $ac_status); };
2598 then
2599   eval cf_cv_prog_CC_c_o=yes
2600 else
2601   eval cf_cv_prog_CC_c_o=no
2602 fi
2603 rm -rf conftest*
2604
2605 fi
2606 if test $cf_cv_prog_CC_c_o = yes; then
2607   echo "$as_me:2607: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2609 else
2610   echo "$as_me:2610: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2612 fi
2613
2614 if test "$cross_compiling" = yes ; then
2615         LDCONFIG=:
2616 else
2617         case "$cf_cv_system_name" in
2618         (dragonfly*|mirbsd*|freebsd*)
2619                 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2620                 ;;
2621         (*) LDPATH=$PATH:/sbin:/usr/sbin
2622                 # Extract the first word of "ldconfig", so it can be a program name with args.
2623 set dummy ldconfig; ac_word=$2
2624 echo "$as_me:2624: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   case $LDCONFIG in
2630   [\\/]* | ?:[\\/]*)
2631   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2632   ;;
2633   *)
2634   ac_save_IFS=$IFS; IFS=$ac_path_separator
2635 ac_dummy="$LDPATH"
2636 for ac_dir in $ac_dummy; do
2637   IFS=$ac_save_IFS
2638   test -z "$ac_dir" && ac_dir=.
2639   if $as_executable_p "$ac_dir/$ac_word"; then
2640    ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2641    echo "$as_me:2641: found $ac_dir/$ac_word" >&5
2642    break
2643 fi
2644 done
2645
2646   ;;
2647 esac
2648 fi
2649 LDCONFIG=$ac_cv_path_LDCONFIG
2650
2651 if test -n "$LDCONFIG"; then
2652   echo "$as_me:2652: result: $LDCONFIG" >&5
2653 echo "${ECHO_T}$LDCONFIG" >&6
2654 else
2655   echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658
2659                 ;;
2660         esac
2661 fi
2662
2663 echo "$as_me:2663: checking if you want to ensure bool is consistent with C++" >&5
2664 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2665
2666 # Check whether --with-cxx or --without-cxx was given.
2667 if test "${with_cxx+set}" = set; then
2668   withval="$with_cxx"
2669   cf_with_cxx=$withval
2670 else
2671   cf_with_cxx=yes
2672 fi;
2673 echo "$as_me:2673: result: $cf_with_cxx" >&5
2674 echo "${ECHO_T}$cf_with_cxx" >&6
2675 if test "X$cf_with_cxx" = Xno ; then
2676         CXX=""
2677         GXX=""
2678 else
2679         # with autoconf 2.13, we can change the error to a warning:
2680                 ac_ext=cc
2681 ac_cpp='$CXXCPP $CPPFLAGS'
2682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2685 ac_main_return=return
2686 if test -n "$ac_tool_prefix"; then
2687   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2688   do
2689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 echo "$as_me:2691: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CXX+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   if test -n "$CXX"; then
2697   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2698 else
2699   ac_save_IFS=$IFS; IFS=$ac_path_separator
2700 ac_dummy="$PATH"
2701 for ac_dir in $ac_dummy; do
2702   IFS=$ac_save_IFS
2703   test -z "$ac_dir" && ac_dir=.
2704   $as_executable_p "$ac_dir/$ac_word" || continue
2705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2706 echo "$as_me:2706: found $ac_dir/$ac_word" >&5
2707 break
2708 done
2709
2710 fi
2711 fi
2712 CXX=$ac_cv_prog_CXX
2713 if test -n "$CXX"; then
2714   echo "$as_me:2714: result: $CXX" >&5
2715 echo "${ECHO_T}$CXX" >&6
2716 else
2717   echo "$as_me:2717: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2719 fi
2720
2721     test -n "$CXX" && break
2722   done
2723 fi
2724 if test -z "$CXX"; then
2725   ac_ct_CXX=$CXX
2726   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2727 do
2728   # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 echo "$as_me:2730: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -n "$ac_ct_CXX"; then
2736   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2737 else
2738   ac_save_IFS=$IFS; IFS=$ac_path_separator
2739 ac_dummy="$PATH"
2740 for ac_dir in $ac_dummy; do
2741   IFS=$ac_save_IFS
2742   test -z "$ac_dir" && ac_dir=.
2743   $as_executable_p "$ac_dir/$ac_word" || continue
2744 ac_cv_prog_ac_ct_CXX="$ac_prog"
2745 echo "$as_me:2745: found $ac_dir/$ac_word" >&5
2746 break
2747 done
2748
2749 fi
2750 fi
2751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2752 if test -n "$ac_ct_CXX"; then
2753   echo "$as_me:2753: result: $ac_ct_CXX" >&5
2754 echo "${ECHO_T}$ac_ct_CXX" >&6
2755 else
2756   echo "$as_me:2756: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2758 fi
2759
2760   test -n "$ac_ct_CXX" && break
2761 done
2762 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2763
2764   CXX=$ac_ct_CXX
2765 fi
2766
2767 # Provide some information about the compiler.
2768 echo "$as_me:2768:" \
2769      "checking for C++ compiler version" >&5
2770 ac_compiler=`set X $ac_compile; echo $2`
2771 { (eval echo "$as_me:2771: \"$ac_compiler --version </dev/null >&5\"") >&5
2772   (eval $ac_compiler --version </dev/null >&5) 2>&5
2773   ac_status=$?
2774   echo "$as_me:2774: \$? = $ac_status" >&5
2775   (exit $ac_status); }
2776 { (eval echo "$as_me:2776: \"$ac_compiler -v </dev/null >&5\"") >&5
2777   (eval $ac_compiler -v </dev/null >&5) 2>&5
2778   ac_status=$?
2779   echo "$as_me:2779: \$? = $ac_status" >&5
2780   (exit $ac_status); }
2781 { (eval echo "$as_me:2781: \"$ac_compiler -V </dev/null >&5\"") >&5
2782   (eval $ac_compiler -V </dev/null >&5) 2>&5
2783   ac_status=$?
2784   echo "$as_me:2784: \$? = $ac_status" >&5
2785   (exit $ac_status); }
2786
2787 echo "$as_me:2787: checking whether we are using the GNU C++ compiler" >&5
2788 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2789 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2795
2796 int
2797 main (void)
2798 {
2799 #ifndef __GNUC__
2800        choke me
2801 #endif
2802
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809   (eval $ac_compile) 2>&5
2810   ac_status=$?
2811   echo "$as_me:2811: \$? = $ac_status" >&5
2812   (exit $ac_status); } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:2817: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   ac_compiler_gnu=yes
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 ac_compiler_gnu=no
2824 fi
2825 rm -f conftest.$ac_objext conftest.$ac_ext
2826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2827
2828 fi
2829 echo "$as_me:2829: result: $ac_cv_cxx_compiler_gnu" >&5
2830 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2831 GXX=`test $ac_compiler_gnu = yes && echo yes`
2832 ac_test_CXXFLAGS=${CXXFLAGS+set}
2833 ac_save_CXXFLAGS=$CXXFLAGS
2834 CXXFLAGS="-g"
2835 echo "$as_me:2835: checking whether $CXX accepts -g" >&5
2836 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2837 if test "${ac_cv_prog_cxx_g+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   cat >conftest.$ac_ext <<_ACEOF
2841 #line 2841 "configure"
2842 #include "confdefs.h"
2843
2844 int
2845 main (void)
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>&5
2855   ac_status=$?
2856   echo "$as_me:2856: \$? = $ac_status" >&5
2857   (exit $ac_status); } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:2862: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   ac_cv_prog_cxx_g=yes
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 ac_cv_prog_cxx_g=no
2869 fi
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 echo "$as_me:2872: result: $ac_cv_prog_cxx_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2874 if test "$ac_test_CXXFLAGS" = set; then
2875   CXXFLAGS=$ac_save_CXXFLAGS
2876 elif test $ac_cv_prog_cxx_g = yes; then
2877   if test "$GXX" = yes; then
2878     CXXFLAGS="-g -O2"
2879   else
2880     CXXFLAGS="-g"
2881   fi
2882 else
2883   if test "$GXX" = yes; then
2884     CXXFLAGS="-O2"
2885   else
2886     CXXFLAGS=
2887   fi
2888 fi
2889 for ac_declaration in \
2890    ''\
2891    '#include <stdlib.h>' \
2892    'extern "C" void std::exit (int) throw (); using std::exit;' \
2893    'extern "C" void std::exit (int); using std::exit;' \
2894    'extern "C" void exit (int) throw ();' \
2895    'extern "C" void exit (int);' \
2896    'void exit (int);'
2897 do
2898   cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2901 #include <stdlib.h>
2902 $ac_declaration
2903 int
2904 main (void)
2905 {
2906 exit (42);
2907   ;
2908   return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913   (eval $ac_compile) 2>&5
2914   ac_status=$?
2915   echo "$as_me:2915: \$? = $ac_status" >&5
2916   (exit $ac_status); } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:2921: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   :
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 continue
2928 fi
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2930   cat >conftest.$ac_ext <<_ACEOF
2931 #line 2931 "configure"
2932 #include "confdefs.h"
2933 $ac_declaration
2934 int
2935 main (void)
2936 {
2937 exit (42);
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944   (eval $ac_compile) 2>&5
2945   ac_status=$?
2946   echo "$as_me:2946: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -s conftest.$ac_objext'
2949   { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:2952: \$? = $ac_status" >&5
2953   (exit $ac_status); }; }; then
2954   break
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 fi
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2960 done
2961 rm -rf conftest*
2962 if test -n "$ac_declaration"; then
2963   echo '#ifdef __cplusplus' >>confdefs.h
2964   echo $ac_declaration      >>confdefs.h
2965   echo '#endif'             >>confdefs.h
2966 fi
2967
2968 ac_ext=c
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_main_return=return
2974
2975         ac_ext=cc
2976 ac_cpp='$CXXCPP $CPPFLAGS'
2977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2980 ac_main_return=return
2981
2982         if test "x$cf_with_cxx" != xno
2983         then
2984                 # Several of the C++ configurations do not work, particularly when
2985                 # cross-compiling (20140913 -TD)
2986                 echo "$as_me:2986: checking if $CXX works" >&5
2987 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2988
2989                 save_CPPFLAGS="$CPPFLAGS"
2990                 eval cf_includedir=${includedir}
2991                 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2992
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
2996
2997 #include <stdlib.h>
2998 #include <stdio.h>
2999
3000 int
3001 main (void)
3002 {
3003
3004                 printf("Hello world!\n")
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:3011: \"$ac_compile\"") >&5
3012   (eval $ac_compile) 2>&5
3013   ac_status=$?
3014   echo "$as_me:3014: \$? = $ac_status" >&5
3015   (exit $ac_status); } &&
3016          { ac_try='test -s conftest.$ac_objext'
3017   { (eval echo "$as_me:3017: \"$ac_try\"") >&5
3018   (eval $ac_try) 2>&5
3019   ac_status=$?
3020   echo "$as_me:3020: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   cf_cxx_works=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 cf_cxx_works=no
3027 fi
3028 rm -f conftest.$ac_objext conftest.$ac_ext
3029                 CPPFLAGS="$save_CPPFLAGS"
3030
3031                 echo "$as_me:3031: result: $cf_cxx_works" >&5
3032 echo "${ECHO_T}$cf_cxx_works" >&6
3033                 if test "x$cf_cxx_works" = xno
3034                 then
3035                         { echo "$as_me:3035: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3036 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3037                         cf_with_cxx=no; CXX=""; GXX="";
3038                 fi
3039         fi
3040         ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 ac_main_return=return
3046
3047         # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3048         if test "$CXX" = "g++" ; then
3049                 # Extract the first word of "g++", so it can be a program name with args.
3050 set dummy g++; ac_word=$2
3051 echo "$as_me:3051: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3053 if test "${ac_cv_path_CXX+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   case $CXX in
3057   [\\/]* | ?:[\\/]*)
3058   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3059   ;;
3060   *)
3061   ac_save_IFS=$IFS; IFS=$ac_path_separator
3062 ac_dummy="$PATH"
3063 for ac_dir in $ac_dummy; do
3064   IFS=$ac_save_IFS
3065   test -z "$ac_dir" && ac_dir=.
3066   if $as_executable_p "$ac_dir/$ac_word"; then
3067    ac_cv_path_CXX="$ac_dir/$ac_word"
3068    echo "$as_me:3068: found $ac_dir/$ac_word" >&5
3069    break
3070 fi
3071 done
3072
3073   ;;
3074 esac
3075 fi
3076 CXX=$ac_cv_path_CXX
3077
3078 if test -n "$CXX"; then
3079   echo "$as_me:3079: result: $CXX" >&5
3080 echo "${ECHO_T}$CXX" >&6
3081 else
3082   echo "$as_me:3082: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3084 fi
3085
3086         fi
3087         case "x$CXX" in
3088         (x|xg++)
3089                 { echo "$as_me:3089: WARNING: You don't have any C++ compiler, too bad" >&5
3090 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3091                 cf_with_cxx=no; CXX=""; GXX="";
3092                 ;;
3093         esac
3094 fi
3095
3096 GXX_VERSION=none
3097 if test "$GXX" = yes; then
3098         echo "$as_me:3098: checking version of ${CXX:-g++}" >&5
3099 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3100         GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3101         if test -z "$GXX_VERSION"
3102         then
3103                 GXX_VERSION=unknown
3104                 GXX=no
3105         fi
3106         echo "$as_me:3106: result: $GXX_VERSION" >&5
3107 echo "${ECHO_T}$GXX_VERSION" >&6
3108 fi
3109
3110 case $GXX_VERSION in
3111 (1*|2.[0-6]*)
3112         # GXX=""; CXX=""; ac_cv_prog_gxx=no
3113         # cf_cxx_library=no
3114         { echo "$as_me:3114: WARNING: templates do not work" >&5
3115 echo "$as_me: WARNING: templates do not work" >&2;}
3116         ;;
3117 esac
3118
3119 echo "$as_me:3119: checking if you want to build C++ binding and demo" >&5
3120 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3121
3122 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3123 if test "${with_cxx_binding+set}" = set; then
3124   withval="$with_cxx_binding"
3125   cf_with_cxx_binding=$withval
3126 else
3127   cf_with_cxx_binding=$cf_with_cxx
3128 fi;
3129 echo "$as_me:3129: result: $cf_with_cxx_binding" >&5
3130 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3131
3132 echo "$as_me:3132: checking if you want to build with Ada95" >&5
3133 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3134 echo "$as_me:3134: result: $cf_with_ada" >&5
3135 echo "${ECHO_T}$cf_with_ada" >&6
3136
3137 echo "$as_me:3137: checking if you want to install terminal database" >&5
3138 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3139
3140 # Check whether --enable-db-install or --disable-db-install was given.
3141 if test "${enable_db_install+set}" = set; then
3142   enableval="$enable_db_install"
3143   cf_with_db_install=$enableval
3144 else
3145   cf_with_db_install=yes
3146 fi;
3147 echo "$as_me:3147: result: $cf_with_db_install" >&5
3148 echo "${ECHO_T}$cf_with_db_install" >&6
3149
3150 echo "$as_me:3150: checking if you want to install manpages" >&5
3151 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3152
3153 # Check whether --with-manpages or --without-manpages was given.
3154 if test "${with_manpages+set}" = set; then
3155   withval="$with_manpages"
3156   cf_with_manpages=$withval
3157 else
3158   cf_with_manpages=yes
3159 fi;
3160 echo "$as_me:3160: result: $cf_with_manpages" >&5
3161 echo "${ECHO_T}$cf_with_manpages" >&6
3162
3163 echo "$as_me:3163: checking if you want to build programs such as tic" >&5
3164 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3165
3166 # Check whether --with-progs or --without-progs was given.
3167 if test "${with_progs+set}" = set; then
3168   withval="$with_progs"
3169   cf_with_progs=$withval
3170 else
3171   cf_with_progs=yes
3172 fi;
3173 echo "$as_me:3173: result: $cf_with_progs" >&5
3174 echo "${ECHO_T}$cf_with_progs" >&6
3175
3176 if test -f $srcdir/tack/tack.h; then
3177         if test "x$cross_compiling" = xyes ; then
3178                 test -n "$verbose" && echo "    ignoring tack because we are cross-compiling" 1>&6
3179
3180 echo "${as_me:-configure}:3180: testing ignoring tack because we are cross-compiling ..." 1>&5
3181
3182                 cf_with_tack=no
3183         else
3184                 echo "$as_me:3184: checking if you want to build the tack program" >&5
3185 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3186
3187 # Check whether --with-tack or --without-tack was given.
3188 if test "${with_tack+set}" = set; then
3189   withval="$with_tack"
3190   cf_with_tack=$withval
3191 else
3192   cf_with_tack=$cf_with_progs
3193 fi;
3194                 echo "$as_me:3194: result: $cf_with_tack" >&5
3195 echo "${ECHO_T}$cf_with_tack" >&6
3196         fi
3197 else
3198         cf_with_tack=no
3199 fi
3200
3201 echo "$as_me:3201: checking if you want to build test-programs" >&5
3202 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3203
3204 # Check whether --with-tests or --without-tests was given.
3205 if test "${with_tests+set}" = set; then
3206   withval="$with_tests"
3207   cf_with_tests=$withval
3208 else
3209   cf_with_tests=yes
3210 fi;
3211 echo "$as_me:3211: result: $cf_with_tests" >&5
3212 echo "${ECHO_T}$cf_with_tests" >&6
3213
3214 echo "$as_me:3214: checking if you wish to install curses.h" >&5
3215 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3216
3217 # Check whether --with-curses-h or --without-curses-h was given.
3218 if test "${with_curses_h+set}" = set; then
3219   withval="$with_curses_h"
3220   with_curses_h=$withval
3221 else
3222   with_curses_h=yes
3223 fi;
3224 echo "$as_me:3224: result: $with_curses_h" >&5
3225 echo "${ECHO_T}$with_curses_h" >&6
3226
3227 modules_to_build="ncurses"
3228 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3229 test "X$cf_with_tack"  != Xno && modules_to_build="$modules_to_build tack"
3230 modules_to_build="$modules_to_build panel menu form"
3231
3232 test "$program_prefix" != NONE &&
3233   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3234 # Use a double $ so make ignores it.
3235 test "$program_suffix" != NONE &&
3236   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3237 # Double any \ or $.  echo might interpret backslashes.
3238 # By default was `s,x,x', remove it if useless.
3239 cat <<\_ACEOF >conftest.sed
3240 s/[\\$]/&&/g;s/;s,x,x,$//
3241 _ACEOF
3242 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3243 rm conftest.sed
3244
3245 for ac_prog in mawk gawk nawk awk
3246 do
3247   # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy $ac_prog; ac_word=$2
3249 echo "$as_me:3249: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251 if test "${ac_cv_prog_AWK+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   if test -n "$AWK"; then
3255   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3256 else
3257   ac_save_IFS=$IFS; IFS=$ac_path_separator
3258 ac_dummy="$PATH"
3259 for ac_dir in $ac_dummy; do
3260   IFS=$ac_save_IFS
3261   test -z "$ac_dir" && ac_dir=.
3262   $as_executable_p "$ac_dir/$ac_word" || continue
3263 ac_cv_prog_AWK="$ac_prog"
3264 echo "$as_me:3264: found $ac_dir/$ac_word" >&5
3265 break
3266 done
3267
3268 fi
3269 fi
3270 AWK=$ac_cv_prog_AWK
3271 if test -n "$AWK"; then
3272   echo "$as_me:3272: result: $AWK" >&5
3273 echo "${ECHO_T}$AWK" >&6
3274 else
3275   echo "$as_me:3275: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277 fi
3278
3279   test -n "$AWK" && break
3280 done
3281
3282 test -z "$AWK" && { { echo "$as_me:3282: error: No awk program found" >&5
3283 echo "$as_me: error: No awk program found" >&2;}
3284    { (exit 1); exit 1; }; }
3285
3286 echo "$as_me:3286: checking for egrep" >&5
3287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3288 if test "${ac_cv_prog_egrep+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3292                 then ac_cv_prog_egrep='grep -E'
3293                 else ac_cv_prog_egrep='egrep'
3294         fi
3295 fi
3296 echo "$as_me:3296: result: $ac_cv_prog_egrep" >&5
3297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3298         EGREP=$ac_cv_prog_egrep
3299
3300         test -z "$EGREP" && { { echo "$as_me:3300: error: No egrep program found" >&5
3301 echo "$as_me: error: No egrep program found" >&2;}
3302    { (exit 1); exit 1; }; }
3303
3304 # Find a good install program.  We prefer a C program (faster),
3305 # so one script is as good as another.  But avoid the broken or
3306 # incompatible versions:
3307 # SysV /etc/install, /usr/sbin/install
3308 # SunOS /usr/etc/install
3309 # IRIX /sbin/install
3310 # AIX /bin/install
3311 # AmigaOS /C/install, which installs bootblocks on floppy discs
3312 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3313 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3314 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3315 # ./install, which can be erroneously created by make from ./install.sh.
3316 echo "$as_me:3316: checking for a BSD compatible install" >&5
3317 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3318 if test -z "$INSTALL"; then
3319 if test "${ac_cv_path_install+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322     ac_save_IFS=$IFS; IFS=$ac_path_separator
3323   for ac_dir in $PATH; do
3324     IFS=$ac_save_IFS
3325     # Account for people who put trailing slashes in PATH elements.
3326     case $ac_dir/ in
3327     / | ./ | .// | /cC/* \
3328     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3329     | /usr/ucb/* ) ;;
3330     *)
3331       # OSF1 and SCO ODT 3.0 have their own names for install.
3332       # Don't use installbsd from OSF since it installs stuff as root
3333       # by default.
3334       for ac_prog in ginstall scoinst install; do
3335         if $as_executable_p "$ac_dir/$ac_prog"; then
3336           if test $ac_prog = install &&
3337             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3338             # AIX install.  It has an incompatible calling convention.
3339             :
3340           elif test $ac_prog = install &&
3341             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3342             # program-specific install script used by HP pwplus--don't use.
3343             :
3344           else
3345             ac_cv_path_install="$ac_dir/$ac_prog -c"
3346             break 2
3347           fi
3348         fi
3349       done
3350       ;;
3351     esac
3352   done
3353
3354 fi
3355   if test "${ac_cv_path_install+set}" = set; then
3356     INSTALL=$ac_cv_path_install
3357   else
3358     # As a last resort, use the slow shell script.  We don't cache a
3359     # path for INSTALL within a source directory, because that will
3360     # break other packages using the cache if that directory is
3361     # removed, or if the path is relative.
3362     INSTALL=$ac_install_sh
3363   fi
3364 fi
3365 echo "$as_me:3365: result: $INSTALL" >&5
3366 echo "${ECHO_T}$INSTALL" >&6
3367
3368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369 # It thinks the first close brace ends the variable substitution.
3370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3371
3372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3373
3374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3375
3376 case $INSTALL in
3377 (/*)
3378         ;;
3379 (*)
3380         cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3381         test -z "$cf_dir" && cf_dir=.
3382         INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3383         ;;
3384 esac
3385
3386 for ac_prog in lint cppcheck splint
3387 do
3388   # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 echo "$as_me:3390: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_LINT+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   if test -n "$LINT"; then
3396   ac_cv_prog_LINT="$LINT" # Let the user override the test.
3397 else
3398   ac_save_IFS=$IFS; IFS=$ac_path_separator
3399 ac_dummy="$PATH"
3400 for ac_dir in $ac_dummy; do
3401   IFS=$ac_save_IFS
3402   test -z "$ac_dir" && ac_dir=.
3403   $as_executable_p "$ac_dir/$ac_word" || continue
3404 ac_cv_prog_LINT="$ac_prog"
3405 echo "$as_me:3405: found $ac_dir/$ac_word" >&5
3406 break
3407 done
3408
3409 fi
3410 fi
3411 LINT=$ac_cv_prog_LINT
3412 if test -n "$LINT"; then
3413   echo "$as_me:3413: result: $LINT" >&5
3414 echo "${ECHO_T}$LINT" >&6
3415 else
3416   echo "$as_me:3416: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3418 fi
3419
3420   test -n "$LINT" && break
3421 done
3422
3423 echo "$as_me:3423: checking whether ln -s works" >&5
3424 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3425 LN_S=$as_ln_s
3426 if test "$LN_S" = "ln -s"; then
3427   echo "$as_me:3427: result: yes" >&5
3428 echo "${ECHO_T}yes" >&6
3429 else
3430   echo "$as_me:3430: result: no, using $LN_S" >&5
3431 echo "${ECHO_T}no, using $LN_S" >&6
3432 fi
3433
3434 echo "$as_me:3434: checking if $LN_S -f options work" >&5
3435 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3436
3437 rm -f conf$$.src conf$$dst
3438 echo >conf$$.dst
3439 echo first >conf$$.src
3440 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3441         cf_prog_ln_sf=yes
3442 else
3443         cf_prog_ln_sf=no
3444 fi
3445 rm -f conf$$.dst conf$$src
3446 echo "$as_me:3446: result: $cf_prog_ln_sf" >&5
3447 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3448
3449 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3450
3451 echo "$as_me:3451: checking for long file names" >&5
3452 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3453 if test "${ac_cv_sys_long_file_names+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   ac_cv_sys_long_file_names=yes
3457 # Test for long file names in all the places we know might matter:
3458 #      .                the current directory, where building will happen
3459 #      $prefix/lib      where we will be installing things
3460 #      $exec_prefix/lib likewise
3461 # eval it to expand exec_prefix.
3462 #      $TMPDIR          if set, where it might want to write temporary files
3463 # if $TMPDIR is not set:
3464 #      /tmp             where it might want to write temporary files
3465 #      /var/tmp         likewise
3466 #      /usr/tmp         likewise
3467 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3468   ac_tmpdirs=$TMPDIR
3469 else
3470   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3471 fi
3472 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3473   test -d $ac_dir || continue
3474   test -w $ac_dir || continue # It is less confusing to not echo anything here.
3475   ac_xdir=$ac_dir/cf$$
3476   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3477   ac_tf1=$ac_xdir/conftest9012345
3478   ac_tf2=$ac_xdir/conftest9012346
3479   (echo 1 >$ac_tf1) 2>/dev/null
3480   (echo 2 >$ac_tf2) 2>/dev/null
3481   ac_val=`cat $ac_tf1 2>/dev/null`
3482   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3483     ac_cv_sys_long_file_names=no
3484     rm -rf $ac_xdir 2>/dev/null
3485     break
3486   fi
3487   rm -rf $ac_xdir 2>/dev/null
3488 done
3489 fi
3490 echo "$as_me:3490: result: $ac_cv_sys_long_file_names" >&5
3491 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3492 if test $ac_cv_sys_long_file_names = yes; then
3493
3494 cat >>confdefs.h <<\EOF
3495 #define HAVE_LONG_FILE_NAMES 1
3496 EOF
3497
3498 fi
3499
3500 # if we find pkg-config, check if we should install the ".pc" files.
3501
3502 echo "$as_me:3502: checking if you want to use pkg-config" >&5
3503 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3504
3505 # Check whether --with-pkg-config or --without-pkg-config was given.
3506 if test "${with_pkg_config+set}" = set; then
3507   withval="$with_pkg_config"
3508   cf_pkg_config=$withval
3509 else
3510   cf_pkg_config=yes
3511 fi;
3512 echo "$as_me:3512: result: $cf_pkg_config" >&5
3513 echo "${ECHO_T}$cf_pkg_config" >&6
3514
3515 case $cf_pkg_config in
3516 (no)
3517         PKG_CONFIG=none
3518         ;;
3519 (yes)
3520
3521 if test -n "$ac_tool_prefix"; then
3522   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3524 echo "$as_me:3524: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   case $PKG_CONFIG in
3530   [\\/]* | ?:[\\/]*)
3531   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3532   ;;
3533   *)
3534   ac_save_IFS=$IFS; IFS=$ac_path_separator
3535 ac_dummy="$PATH"
3536 for ac_dir in $ac_dummy; do
3537   IFS=$ac_save_IFS
3538   test -z "$ac_dir" && ac_dir=.
3539   if $as_executable_p "$ac_dir/$ac_word"; then
3540    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3541    echo "$as_me:3541: found $ac_dir/$ac_word" >&5
3542    break
3543 fi
3544 done
3545
3546   ;;
3547 esac
3548 fi
3549 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3550
3551 if test -n "$PKG_CONFIG"; then
3552   echo "$as_me:3552: result: $PKG_CONFIG" >&5
3553 echo "${ECHO_T}$PKG_CONFIG" >&6
3554 else
3555   echo "$as_me:3555: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558
3559 fi
3560 if test -z "$ac_cv_path_PKG_CONFIG"; then
3561   ac_pt_PKG_CONFIG=$PKG_CONFIG
3562   # Extract the first word of "pkg-config", so it can be a program name with args.
3563 set dummy pkg-config; ac_word=$2
3564 echo "$as_me:3564: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   case $ac_pt_PKG_CONFIG in
3570   [\\/]* | ?:[\\/]*)
3571   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3572   ;;
3573   *)
3574   ac_save_IFS=$IFS; IFS=$ac_path_separator
3575 ac_dummy="$PATH"
3576 for ac_dir in $ac_dummy; do
3577   IFS=$ac_save_IFS
3578   test -z "$ac_dir" && ac_dir=.
3579   if $as_executable_p "$ac_dir/$ac_word"; then
3580    ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3581    echo "$as_me:3581: found $ac_dir/$ac_word" >&5
3582    break
3583 fi
3584 done
3585
3586   test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3587   ;;
3588 esac
3589 fi
3590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3591
3592 if test -n "$ac_pt_PKG_CONFIG"; then
3593   echo "$as_me:3593: result: $ac_pt_PKG_CONFIG" >&5
3594 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3595 else
3596   echo "$as_me:3596: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3598 fi
3599
3600   PKG_CONFIG=$ac_pt_PKG_CONFIG
3601 else
3602   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3603 fi
3604
3605         ;;
3606 (*)
3607         PKG_CONFIG=$withval
3608         ;;
3609 esac
3610
3611 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3612 if test "$PKG_CONFIG" != none ; then
3613
3614 if test "x$prefix" != xNONE; then
3615         cf_path_syntax="$prefix"
3616 else
3617         cf_path_syntax="$ac_default_prefix"
3618 fi
3619
3620 case ".$PKG_CONFIG" in
3621 (.\$\(*\)*|.\'*\'*)
3622         ;;
3623 (..|./*|.\\*)
3624         ;;
3625 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3626         ;;
3627 (.\${*prefix}*|.\${*dir}*)
3628         eval PKG_CONFIG="$PKG_CONFIG"
3629         case ".$PKG_CONFIG" in
3630         (.NONE/*)
3631                 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3632                 ;;
3633         esac
3634         ;;
3635 (.no|.NONE/*)
3636         PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3637         ;;
3638 (*)
3639         { { echo "$as_me:3639: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3640 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3641    { (exit 1); exit 1; }; }
3642         ;;
3643 esac
3644
3645 elif test "x$cf_pkg_config" != xno ; then
3646         { echo "$as_me:3646: WARNING: pkg-config is not installed" >&5
3647 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3648 fi
3649
3650 case $PKG_CONFIG in
3651 (no|none|yes)
3652         echo "$as_me:3652: checking for pkg-config library directory" >&5
3653 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3654         ;;
3655 (*)
3656         echo "$as_me:3656: checking for $PKG_CONFIG library directory" >&5
3657 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3658         ;;
3659 esac
3660
3661 PKG_CONFIG_LIBDIR=no
3662
3663 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3664 if test "${with_pkg_config_libdir+set}" = set; then
3665   withval="$with_pkg_config_libdir"
3666   PKG_CONFIG_LIBDIR=$withval
3667 else
3668   test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3669 fi;
3670
3671 case x$PKG_CONFIG_LIBDIR in
3672 (x/*)
3673         ;;
3674 (xyes)
3675         # Look for the library directory using the same prefix as the executable
3676         if test "x$PKG_CONFIG" = xnone
3677         then
3678                 cf_path=$prefix
3679         else
3680                 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3681         fi
3682
3683         # If you don't like using the default architecture, you have to specify the
3684         # intended library directory and corresponding compiler/linker options.
3685         #
3686         # This case allows for Debian's 2014-flavor of multiarch, along with the
3687         # most common variations before that point.  Some other variants spell the
3688         # directory differently, e.g., "pkg-config", and put it in unusual places.
3689         # pkg-config has always been poorly standardized, which is ironic...
3690         case x`(arch) 2>/dev/null` in
3691         (*64)
3692                 cf_search_path="\
3693                         $cf_path/lib/*64-linux-gnu \
3694                         $cf_path/share \
3695                         $cf_path/lib64 \
3696                         $cf_path/lib32 \
3697                         $cf_path/lib"
3698                 ;;
3699         (*)
3700                 cf_search_path="\
3701                         $cf_path/lib/*-linux-gnu \
3702                         $cf_path/share \
3703                         $cf_path/lib32 \
3704                         $cf_path/lib \
3705                         $cf_path/libdata"
3706                 ;;
3707         esac
3708
3709         test -n "$verbose" && echo "    list..." 1>&6
3710
3711 echo "${as_me:-configure}:3711: testing list... ..." 1>&5
3712
3713         for cf_config in $cf_search_path
3714         do
3715                 test -n "$verbose" && echo "    checking $cf_config/pkgconfig" 1>&6
3716
3717 echo "${as_me:-configure}:3717: testing checking $cf_config/pkgconfig ..." 1>&5
3718
3719                 if test -d $cf_config/pkgconfig
3720                 then
3721                         PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3722                         echo "$as_me:3722: checking done" >&5
3723 echo $ECHO_N "checking done... $ECHO_C" >&6
3724                         break
3725                 fi
3726         done
3727         ;;
3728 (*)
3729         ;;
3730 esac
3731
3732 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3733         echo "$as_me:3733: result: $PKG_CONFIG_LIBDIR" >&5
3734 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3735 fi
3736
3737 if test "x$PKG_CONFIG" != xnone
3738 then
3739         echo "$as_me:3739: checking if we should install .pc files for $PKG_CONFIG" >&5
3740 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3741 else
3742         echo "$as_me:3742: checking if we should install .pc files" >&5
3743 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3744 fi
3745
3746 # Check whether --enable-pc-files or --disable-pc-files was given.
3747 if test "${enable_pc_files+set}" = set; then
3748   enableval="$enable_pc_files"
3749   enable_pc_files=$enableval
3750 else
3751   enable_pc_files=no
3752 fi;
3753 echo "$as_me:3753: result: $enable_pc_files" >&5
3754 echo "${ECHO_T}$enable_pc_files" >&6
3755
3756 if test "x$enable_pc_files" != xno
3757 then
3758         MAKE_PC_FILES=
3759         case "x$PKG_CONFIG_LIBDIR" in
3760         (xno|xyes)
3761                 { echo "$as_me:3761: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3762 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3763                 ;;
3764         (*)
3765
3766 if test "x$prefix" != xNONE; then
3767         cf_path_syntax="$prefix"
3768 else
3769         cf_path_syntax="$ac_default_prefix"
3770 fi
3771
3772 case ".$PKG_CONFIG_LIBDIR" in
3773 (.\$\(*\)*|.\'*\'*)
3774         ;;
3775 (..|./*|.\\*)
3776         ;;
3777 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3778         ;;
3779 (.\${*prefix}*|.\${*dir}*)
3780         eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3781         case ".$PKG_CONFIG_LIBDIR" in
3782         (.NONE/*)
3783                 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3784                 ;;
3785         esac
3786         ;;
3787 (.no|.NONE/*)
3788         PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3789         ;;
3790 (*)
3791         { { echo "$as_me:3791: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3792 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3793    { (exit 1); exit 1; }; }
3794         ;;
3795 esac
3796
3797                 ;;
3798         esac
3799 else
3800         MAKE_PC_FILES="#"
3801 fi
3802
3803 if test -z "$MAKE_PC_FILES"
3804 then
3805         echo "$as_me:3805: checking for suffix to add to pc-files" >&5
3806 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3807
3808 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3809 if test "${with_pc_suffix+set}" = set; then
3810   withval="$with_pc_suffix"
3811   case "x$withval" in
3812         (xyes|xno)
3813                 PC_MODULE_SUFFIX=
3814                 ;;
3815         (*)     PC_MODULE_SUFFIX="$withval"
3816                 ;;
3817         esac
3818 fi;
3819         test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3820         echo "$as_me:3820: result: $PC_MODULE_SUFFIX" >&5
3821 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3822         test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3823
3824 fi
3825
3826 echo "$as_me:3826: checking if we should assume mixed-case filenames" >&5
3827 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3828
3829 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3830 if test "${enable_mixed_case+set}" = set; then
3831   enableval="$enable_mixed_case"
3832   enable_mixedcase=$enableval
3833 else
3834   enable_mixedcase=auto
3835 fi;
3836 echo "$as_me:3836: result: $enable_mixedcase" >&5
3837 echo "${ECHO_T}$enable_mixedcase" >&6
3838 if test "$enable_mixedcase" = "auto" ; then
3839
3840 echo "$as_me:3840: checking if filesystem supports mixed-case filenames" >&5
3841 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3842 if test "${cf_cv_mixedcase+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845
3846 if test "$cross_compiling" = yes ; then
3847         case $target_alias in
3848         (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3849                 cf_cv_mixedcase=no
3850                 ;;
3851         (*)
3852                 cf_cv_mixedcase=yes
3853                 ;;
3854         esac
3855 else
3856         rm -f conftest CONFTEST
3857         echo test >conftest
3858         if test -f CONFTEST ; then
3859                 cf_cv_mixedcase=no
3860         else
3861                 cf_cv_mixedcase=yes
3862         fi
3863         rm -f conftest CONFTEST
3864 fi
3865
3866 fi
3867 echo "$as_me:3867: result: $cf_cv_mixedcase" >&5
3868 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3869 test "$cf_cv_mixedcase" = yes &&
3870 cat >>confdefs.h <<\EOF
3871 #define MIXEDCASE_FILENAMES 1
3872 EOF
3873
3874 else
3875         cf_cv_mixedcase=$enable_mixedcase
3876         if test "x$enable_mixedcase" = "xyes" ; then
3877
3878 cat >>confdefs.h <<\EOF
3879 #define MIXEDCASE_FILENAMES 1
3880 EOF
3881
3882         fi
3883 fi
3884
3885 # do this after mixed-case option (tags/TAGS is not as important as tic).
3886 echo "$as_me:3886: checking whether ${MAKE-make} sets \${MAKE}" >&5
3887 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   cat >conftest.make <<\EOF
3893 all:
3894         @echo 'ac_maketemp="${MAKE}"'
3895 EOF
3896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3898 if test -n "$ac_maketemp"; then
3899   eval ac_cv_prog_make_${ac_make}_set=yes
3900 else
3901   eval ac_cv_prog_make_${ac_make}_set=no
3902 fi
3903 rm -f conftest.make
3904 fi
3905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3906   echo "$as_me:3906: result: yes" >&5
3907 echo "${ECHO_T}yes" >&6
3908   SET_MAKE=
3909 else
3910   echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912   SET_MAKE="MAKE=${MAKE-make}"
3913 fi
3914
3915 for ac_prog in exctags ctags
3916 do
3917   # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 echo "$as_me:3919: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_CTAGS+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   if test -n "$CTAGS"; then
3925   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3926 else
3927   ac_save_IFS=$IFS; IFS=$ac_path_separator
3928 ac_dummy="$PATH"
3929 for ac_dir in $ac_dummy; do
3930   IFS=$ac_save_IFS
3931   test -z "$ac_dir" && ac_dir=.
3932   $as_executable_p "$ac_dir/$ac_word" || continue
3933 ac_cv_prog_CTAGS="$ac_prog"
3934 echo "$as_me:3934: found $ac_dir/$ac_word" >&5
3935 break
3936 done
3937
3938 fi
3939 fi
3940 CTAGS=$ac_cv_prog_CTAGS
3941 if test -n "$CTAGS"; then
3942   echo "$as_me:3942: result: $CTAGS" >&5
3943 echo "${ECHO_T}$CTAGS" >&6
3944 else
3945   echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948
3949   test -n "$CTAGS" && break
3950 done
3951
3952 for ac_prog in exetags etags
3953 do
3954   # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:3956: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ETAGS+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if test -n "$ETAGS"; then
3962   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3963 else
3964   ac_save_IFS=$IFS; IFS=$ac_path_separator
3965 ac_dummy="$PATH"
3966 for ac_dir in $ac_dummy; do
3967   IFS=$ac_save_IFS
3968   test -z "$ac_dir" && ac_dir=.
3969   $as_executable_p "$ac_dir/$ac_word" || continue
3970 ac_cv_prog_ETAGS="$ac_prog"
3971 echo "$as_me:3971: found $ac_dir/$ac_word" >&5
3972 break
3973 done
3974
3975 fi
3976 fi
3977 ETAGS=$ac_cv_prog_ETAGS
3978 if test -n "$ETAGS"; then
3979   echo "$as_me:3979: result: $ETAGS" >&5
3980 echo "${ECHO_T}$ETAGS" >&6
3981 else
3982   echo "$as_me:3982: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986   test -n "$ETAGS" && break
3987 done
3988
3989 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3990 set dummy ${CTAGS:-ctags}; ac_word=$2
3991 echo "$as_me:3991: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$MAKE_LOWER_TAGS"; then
3997   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3998 else
3999   ac_save_IFS=$IFS; IFS=$ac_path_separator
4000 ac_dummy="$PATH"
4001 for ac_dir in $ac_dummy; do
4002   IFS=$ac_save_IFS
4003   test -z "$ac_dir" && ac_dir=.
4004   $as_executable_p "$ac_dir/$ac_word" || continue
4005 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4006 echo "$as_me:4006: found $ac_dir/$ac_word" >&5
4007 break
4008 done
4009
4010   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4011 fi
4012 fi
4013 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4014 if test -n "$MAKE_LOWER_TAGS"; then
4015   echo "$as_me:4015: result: $MAKE_LOWER_TAGS" >&5
4016 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4017 else
4018   echo "$as_me:4018: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4020 fi
4021
4022 if test "$cf_cv_mixedcase" = yes ; then
4023         # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4024 set dummy ${ETAGS:-etags}; ac_word=$2
4025 echo "$as_me:4025: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6