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