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