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