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