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