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