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