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