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