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