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