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