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