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