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