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