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