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