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