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