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