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