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