Imported Upstream version 20120115
[platform/upstream/byacc.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.10 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36   as_expr=expr
37 else
38   as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44   # We could just check for DJGPP; but this test a) works b) is more generic
45   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46   if test -f conf$$.exe; then
47     # Don't use ln at all; we don't have any links
48     as_ln_s='cp -p'
49   else
50     as_ln_s='ln -s'
51   fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53   as_ln_s=ln
54 else
55   as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63   as_unset=unset
64 else
65   as_unset=false
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS="   $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete.  It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
107
108 ac_unique_file="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.20101002.  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 -rf 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 if filesystem supports mixed-case filenames" >&5
2081 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2082 if test "${cf_cv_mixedcase+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085
2086 if test "$cross_compiling" = yes ; then
2087         case $target_alias in #(vi
2088         *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2089                 cf_cv_mixedcase=no
2090                 ;;
2091         *)
2092                 cf_cv_mixedcase=yes
2093                 ;;
2094         esac
2095 else
2096         rm -f conftest CONFTEST
2097         echo test >conftest
2098         if test -f CONFTEST ; then
2099                 cf_cv_mixedcase=no
2100         else
2101                 cf_cv_mixedcase=yes
2102         fi
2103         rm -f conftest CONFTEST
2104 fi
2105
2106 fi
2107 echo "$as_me:2107: result: $cf_cv_mixedcase" >&5
2108 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2109 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2110 #define MIXEDCASE_FILENAMES 1
2111 EOF
2112
2113 for ac_prog in exctags ctags
2114 do
2115   # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:2117: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CTAGS+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test -n "$CTAGS"; then
2123   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2124 else
2125   ac_save_IFS=$IFS; IFS=$ac_path_separator
2126 ac_dummy="$PATH"
2127 for ac_dir in $ac_dummy; do
2128   IFS=$ac_save_IFS
2129   test -z "$ac_dir" && ac_dir=.
2130   $as_executable_p "$ac_dir/$ac_word" || continue
2131 ac_cv_prog_CTAGS="$ac_prog"
2132 echo "$as_me:2132: found $ac_dir/$ac_word" >&5
2133 break
2134 done
2135
2136 fi
2137 fi
2138 CTAGS=$ac_cv_prog_CTAGS
2139 if test -n "$CTAGS"; then
2140   echo "$as_me:2140: result: $CTAGS" >&5
2141 echo "${ECHO_T}$CTAGS" >&6
2142 else
2143   echo "$as_me:2143: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2145 fi
2146
2147   test -n "$CTAGS" && break
2148 done
2149
2150 for ac_prog in exetags etags
2151 do
2152   # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 set dummy $ac_prog; ac_word=$2
2154 echo "$as_me:2154: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ETAGS+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test -n "$ETAGS"; then
2160   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2161 else
2162   ac_save_IFS=$IFS; IFS=$ac_path_separator
2163 ac_dummy="$PATH"
2164 for ac_dir in $ac_dummy; do
2165   IFS=$ac_save_IFS
2166   test -z "$ac_dir" && ac_dir=.
2167   $as_executable_p "$ac_dir/$ac_word" || continue
2168 ac_cv_prog_ETAGS="$ac_prog"
2169 echo "$as_me:2169: found $ac_dir/$ac_word" >&5
2170 break
2171 done
2172
2173 fi
2174 fi
2175 ETAGS=$ac_cv_prog_ETAGS
2176 if test -n "$ETAGS"; then
2177   echo "$as_me:2177: result: $ETAGS" >&5
2178 echo "${ECHO_T}$ETAGS" >&6
2179 else
2180   echo "$as_me:2180: result: no" >&5
2181 echo "${ECHO_T}no" >&6
2182 fi
2183
2184   test -n "$ETAGS" && break
2185 done
2186
2187 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2188 set dummy ${CTAGS:-ctags}; ac_word=$2
2189 echo "$as_me:2189: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test -n "$MAKE_LOWER_TAGS"; then
2195   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2196 else
2197   ac_save_IFS=$IFS; IFS=$ac_path_separator
2198 ac_dummy="$PATH"
2199 for ac_dir in $ac_dummy; do
2200   IFS=$ac_save_IFS
2201   test -z "$ac_dir" && ac_dir=.
2202   $as_executable_p "$ac_dir/$ac_word" || continue
2203 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2204 echo "$as_me:2204: found $ac_dir/$ac_word" >&5
2205 break
2206 done
2207
2208   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2209 fi
2210 fi
2211 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2212 if test -n "$MAKE_LOWER_TAGS"; then
2213   echo "$as_me:2213: result: $MAKE_LOWER_TAGS" >&5
2214 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2215 else
2216   echo "$as_me:2216: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2218 fi
2219
2220 if test "$cf_cv_mixedcase" = yes ; then
2221         # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2222 set dummy ${ETAGS:-etags}; ac_word=$2
2223 echo "$as_me:2223: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$MAKE_UPPER_TAGS"; then
2229   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2230 else
2231   ac_save_IFS=$IFS; IFS=$ac_path_separator
2232 ac_dummy="$PATH"
2233 for ac_dir in $ac_dummy; do
2234   IFS=$ac_save_IFS
2235   test -z "$ac_dir" && ac_dir=.
2236   $as_executable_p "$ac_dir/$ac_word" || continue
2237 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2238 echo "$as_me:2238: found $ac_dir/$ac_word" >&5
2239 break
2240 done
2241
2242   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2243 fi
2244 fi
2245 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2246 if test -n "$MAKE_UPPER_TAGS"; then
2247   echo "$as_me:2247: result: $MAKE_UPPER_TAGS" >&5
2248 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2249 else
2250   echo "$as_me:2250: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2253
2254 else
2255         MAKE_UPPER_TAGS=no
2256 fi
2257
2258 if test "$MAKE_UPPER_TAGS" = yes ; then
2259         MAKE_UPPER_TAGS=
2260 else
2261         MAKE_UPPER_TAGS="#"
2262 fi
2263
2264 if test "$MAKE_LOWER_TAGS" = yes ; then
2265         MAKE_LOWER_TAGS=
2266 else
2267         MAKE_LOWER_TAGS="#"
2268 fi
2269
2270 for ac_prog in tdlint lint alint splint lclint
2271 do
2272   # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 echo "$as_me:2274: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_LINT+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$LINT"; then
2280   ac_cv_prog_LINT="$LINT" # Let the user override the test.
2281 else
2282   ac_save_IFS=$IFS; IFS=$ac_path_separator
2283 ac_dummy="$PATH"
2284 for ac_dir in $ac_dummy; do
2285   IFS=$ac_save_IFS
2286   test -z "$ac_dir" && ac_dir=.
2287   $as_executable_p "$ac_dir/$ac_word" || continue
2288 ac_cv_prog_LINT="$ac_prog"
2289 echo "$as_me:2289: found $ac_dir/$ac_word" >&5
2290 break
2291 done
2292
2293 fi
2294 fi
2295 LINT=$ac_cv_prog_LINT
2296 if test -n "$LINT"; then
2297   echo "$as_me:2297: result: $LINT" >&5
2298 echo "${ECHO_T}$LINT" >&6
2299 else
2300   echo "$as_me:2300: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2302 fi
2303
2304   test -n "$LINT" && break
2305 done
2306
2307 # This should have been defined by AC_PROG_CC
2308 : ${CC:=cc}
2309
2310 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2311 # into CC.  This will not help with broken scripts that wrap the compiler with
2312 # options, but eliminates a more common category of user confusion.
2313 echo "$as_me:2313: checking \$CC variable" >&5
2314 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2315 case "$CC" in #(vi
2316 *[\ \   ]-[IUD]*)
2317         echo "$as_me:2317: result: broken" >&5
2318 echo "${ECHO_T}broken" >&6
2319         { echo "$as_me:2319: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2320 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2321         # humor him...
2322         cf_flags=`echo "$CC" | sed -e 's/^[^    ]*[     ]//'`
2323         CC=`echo "$CC" | sed -e 's/[    ].*//'`
2324
2325 cf_fix_cppflags=no
2326 cf_new_cflags=
2327 cf_new_cppflags=
2328 cf_new_extra_cppflags=
2329
2330 for cf_add_cflags in $cf_flags
2331 do
2332 case $cf_fix_cppflags in
2333 no)
2334         case $cf_add_cflags in #(vi
2335         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2336                 case $cf_add_cflags in
2337                 -D*)
2338                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2339
2340                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2341                                 && test -z "${cf_tst_cflags}" \
2342                                 && cf_fix_cppflags=yes
2343
2344                         if test $cf_fix_cppflags = yes ; then
2345                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2346                                 continue
2347                         elif test "${cf_tst_cflags}" = "\"'" ; then
2348                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2349                                 continue
2350                         fi
2351                         ;;
2352                 esac
2353                 case "$CPPFLAGS" in
2354                 *$cf_add_cflags) #(vi
2355                         ;;
2356                 *) #(vi
2357                         case $cf_add_cflags in #(vi
2358                         -D*)
2359                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2360
2361 CPPFLAGS=`echo "$CPPFLAGS" | \
2362         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2363                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2364
2365                                 ;;
2366                         esac
2367                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2368                         ;;
2369                 esac
2370                 ;;
2371         *)
2372                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2373                 ;;
2374         esac
2375         ;;
2376 yes)
2377         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2378
2379         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2380
2381         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2382                 && test -z "${cf_tst_cflags}" \
2383                 && cf_fix_cppflags=no
2384         ;;
2385 esac
2386 done
2387
2388 if test -n "$cf_new_cflags" ; then
2389
2390         CFLAGS="$CFLAGS $cf_new_cflags"
2391 fi
2392
2393 if test -n "$cf_new_cppflags" ; then
2394
2395         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2396 fi
2397
2398 if test -n "$cf_new_extra_cppflags" ; then
2399
2400         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2401 fi
2402
2403         ;;
2404 *)
2405         echo "$as_me:2405: result: ok" >&5
2406 echo "${ECHO_T}ok" >&6
2407         ;;
2408 esac
2409
2410 echo "$as_me:2410: checking for ${CC:-cc} option to accept ANSI C" >&5
2411 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2412 if test "${cf_cv_ansi_cc+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415
2416 cf_cv_ansi_cc=no
2417 cf_save_CFLAGS="$CFLAGS"
2418 cf_save_CPPFLAGS="$CPPFLAGS"
2419 # Don't try gcc -ansi; that turns off useful extensions and
2420 # breaks some systems' header files.
2421 # AIX                   -qlanglvl=ansi
2422 # Ultrix and OSF/1      -std1
2423 # HP-UX                 -Aa -D_HPUX_SOURCE
2424 # SVR4                  -Xc
2425 # UnixWare 1.2          (cannot use -Xc, since ANSI/POSIX clashes)
2426 for cf_arg in "-DCC_HAS_PROTOS" \
2427         "" \
2428         -qlanglvl=ansi \
2429         -std1 \
2430         -Ae \
2431         "-Aa -D_HPUX_SOURCE" \
2432         -Xc
2433 do
2434
2435 cf_fix_cppflags=no
2436 cf_new_cflags=
2437 cf_new_cppflags=
2438 cf_new_extra_cppflags=
2439
2440 for cf_add_cflags in $cf_arg
2441 do
2442 case $cf_fix_cppflags in
2443 no)
2444         case $cf_add_cflags in #(vi
2445         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2446                 case $cf_add_cflags in
2447                 -D*)
2448                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2449
2450                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2451                                 && test -z "${cf_tst_cflags}" \
2452                                 && cf_fix_cppflags=yes
2453
2454                         if test $cf_fix_cppflags = yes ; then
2455                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2456                                 continue
2457                         elif test "${cf_tst_cflags}" = "\"'" ; then
2458                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2459                                 continue
2460                         fi
2461                         ;;
2462                 esac
2463                 case "$CPPFLAGS" in
2464                 *$cf_add_cflags) #(vi
2465                         ;;
2466                 *) #(vi
2467                         case $cf_add_cflags in #(vi
2468                         -D*)
2469                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2470
2471 CPPFLAGS=`echo "$CPPFLAGS" | \
2472         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2473                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2474
2475                                 ;;
2476                         esac
2477                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2478                         ;;
2479                 esac
2480                 ;;
2481         *)
2482                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2483                 ;;
2484         esac
2485         ;;
2486 yes)
2487         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2488
2489         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2490
2491         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2492                 && test -z "${cf_tst_cflags}" \
2493                 && cf_fix_cppflags=no
2494         ;;
2495 esac
2496 done
2497
2498 if test -n "$cf_new_cflags" ; then
2499
2500         CFLAGS="$CFLAGS $cf_new_cflags"
2501 fi
2502
2503 if test -n "$cf_new_cppflags" ; then
2504
2505         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2506 fi
2507
2508 if test -n "$cf_new_extra_cppflags" ; then
2509
2510         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2511 fi
2512
2513         cat >conftest.$ac_ext <<_ACEOF
2514 #line 2514 "configure"
2515 #include "confdefs.h"
2516
2517 #ifndef CC_HAS_PROTOS
2518 #if !defined(__STDC__) || (__STDC__ != 1)
2519 choke me
2520 #endif
2521 #endif
2522
2523 int
2524 main ()
2525 {
2526
2527         int test (int i, double x);
2528         struct s1 {int (*f) (int a);};
2529         struct s2 {int (*f) (double a);};
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:2535: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>&5
2537   ac_status=$?
2538   echo "$as_me:2538: \$? = $ac_status" >&5
2539   (exit $ac_status); } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (eval echo "$as_me:2541: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:2544: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   cf_cv_ansi_cc="$cf_arg"; break
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 fi
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2552 done
2553 CFLAGS="$cf_save_CFLAGS"
2554 CPPFLAGS="$cf_save_CPPFLAGS"
2555
2556 fi
2557 echo "$as_me:2557: result: $cf_cv_ansi_cc" >&5
2558 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2559
2560 if test "$cf_cv_ansi_cc" != "no"; then
2561 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2562
2563 cf_fix_cppflags=no
2564 cf_new_cflags=
2565 cf_new_cppflags=
2566 cf_new_extra_cppflags=
2567
2568 for cf_add_cflags in $cf_cv_ansi_cc
2569 do
2570 case $cf_fix_cppflags in
2571 no)
2572         case $cf_add_cflags in #(vi
2573         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2574                 case $cf_add_cflags in
2575                 -D*)
2576                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2577
2578                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2579                                 && test -z "${cf_tst_cflags}" \
2580                                 && cf_fix_cppflags=yes
2581
2582                         if test $cf_fix_cppflags = yes ; then
2583                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2584                                 continue
2585                         elif test "${cf_tst_cflags}" = "\"'" ; then
2586                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2587                                 continue
2588                         fi
2589                         ;;
2590                 esac
2591                 case "$CPPFLAGS" in
2592                 *$cf_add_cflags) #(vi
2593                         ;;
2594                 *) #(vi
2595                         case $cf_add_cflags in #(vi
2596                         -D*)
2597                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2598
2599 CPPFLAGS=`echo "$CPPFLAGS" | \
2600         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2601                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2602
2603                                 ;;
2604                         esac
2605                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2606                         ;;
2607                 esac
2608                 ;;
2609         *)
2610                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2611                 ;;
2612         esac
2613         ;;
2614 yes)
2615         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2616
2617         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2618
2619         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2620                 && test -z "${cf_tst_cflags}" \
2621                 && cf_fix_cppflags=no
2622         ;;
2623 esac
2624 done
2625
2626 if test -n "$cf_new_cflags" ; then
2627
2628         CFLAGS="$CFLAGS $cf_new_cflags"
2629 fi
2630
2631 if test -n "$cf_new_cppflags" ; then
2632
2633         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2634 fi
2635
2636 if test -n "$cf_new_extra_cppflags" ; then
2637
2638         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2639 fi
2640
2641 else
2642         cat >>confdefs.h <<\EOF
2643 #define CC_HAS_PROTOS 1
2644 EOF
2645
2646 fi
2647 fi
2648
2649 if test "$cf_cv_ansi_cc" = "no"; then
2650         { { echo "$as_me:2650: error: Your compiler does not appear to recognize prototypes.
2651 You have the following choices:
2652         a. adjust your compiler options
2653         b. get an up-to-date compiler
2654         c. use a wrapper such as unproto" >&5
2655 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2656 You have the following choices:
2657         a. adjust your compiler options
2658         b. get an up-to-date compiler
2659         c. use a wrapper such as unproto" >&2;}
2660    { (exit 1); exit 1; }; }
2661 fi
2662
2663 cf_XOPEN_SOURCE=500
2664 cf_POSIX_C_SOURCE=199506L
2665 cf_xopen_source=
2666
2667 case $host_os in #(vi
2668 aix[4-7]*) #(vi
2669         cf_xopen_source="-D_ALL_SOURCE"
2670         ;;
2671 cygwin) #(vi
2672         cf_XOPEN_SOURCE=600
2673         ;;
2674 darwin[0-8].*) #(vi
2675         cf_xopen_source="-D_APPLE_C_SOURCE"
2676         ;;
2677 darwin*) #(vi
2678         cf_xopen_source="-D_DARWIN_C_SOURCE"
2679         cf_XOPEN_SOURCE=
2680         ;;
2681 freebsd*|dragonfly*) #(vi
2682         # 5.x headers associate
2683         #       _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2684         #       _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2685         cf_POSIX_C_SOURCE=200112L
2686         cf_XOPEN_SOURCE=600
2687         cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2688         ;;
2689 hpux11*) #(vi
2690         cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2691         ;;
2692 hpux*) #(vi
2693         cf_xopen_source="-D_HPUX_SOURCE"
2694         ;;
2695 irix[56].*) #(vi
2696         cf_xopen_source="-D_SGI_SOURCE"
2697         cf_XOPEN_SOURCE=
2698         ;;
2699 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2700
2701 echo "$as_me:2701: checking if we must define _GNU_SOURCE" >&5
2702 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2703 if test "${cf_cv_gnu_source+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706
2707 cat >conftest.$ac_ext <<_ACEOF
2708 #line 2708 "configure"
2709 #include "confdefs.h"
2710 #include <sys/types.h>
2711 int
2712 main ()
2713 {
2714
2715 #ifndef _XOPEN_SOURCE
2716 make an error
2717 #endif
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:2723: \"$ac_compile\"") >&5
2724   (eval $ac_compile) 2>&5
2725   ac_status=$?
2726   echo "$as_me:2726: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:2729: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:2732: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   cf_cv_gnu_source=no
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 cf_save="$CPPFLAGS"
2739          CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2740          cat >conftest.$ac_ext <<_ACEOF
2741 #line 2741 "configure"
2742 #include "confdefs.h"
2743 #include <sys/types.h>
2744 int
2745 main ()
2746 {
2747
2748 #ifdef _XOPEN_SOURCE
2749 make an error
2750 #endif
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:2756: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>&5
2758   ac_status=$?
2759   echo "$as_me:2759: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:2762: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:2765: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   cf_cv_gnu_source=no
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 cf_cv_gnu_source=yes
2772 fi
2773 rm -f conftest.$ac_objext conftest.$ac_ext
2774         CPPFLAGS="$cf_save"
2775
2776 fi
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778
2779 fi
2780 echo "$as_me:2780: result: $cf_cv_gnu_source" >&5
2781 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2782 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2783
2784         ;;
2785 mirbsd*) #(vi
2786         # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2787         cf_XOPEN_SOURCE=
2788
2789 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2790
2791 cf_save_CFLAGS="$CFLAGS"
2792 cf_save_CPPFLAGS="$CPPFLAGS"
2793
2794 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2795         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
2796                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
2797
2798 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2799         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
2800                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
2801
2802 echo "$as_me:2802: checking if we should define _POSIX_C_SOURCE" >&5
2803 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2804 if test "${cf_cv_posix_c_source+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807
2808 echo "${as_me:-configure}:2808: testing if the symbol is already defined go no further ..." 1>&5
2809
2810         cat >conftest.$ac_ext <<_ACEOF
2811 #line 2811 "configure"
2812 #include "confdefs.h"
2813 #include <sys/types.h>
2814 int
2815 main ()
2816 {
2817
2818 #ifndef _POSIX_C_SOURCE
2819 make an error
2820 #endif
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:2826: \"$ac_compile\"") >&5
2827   (eval $ac_compile) 2>&5
2828   ac_status=$?
2829   echo "$as_me:2829: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -s conftest.$ac_objext'
2832   { (eval echo "$as_me:2832: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:2835: \$? = $ac_status" >&5
2836   (exit $ac_status); }; }; then
2837   cf_cv_posix_c_source=no
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 cf_want_posix_source=no
2842          case .$cf_POSIX_C_SOURCE in #(vi
2843          .[12]??*) #(vi
2844                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2845                 ;;
2846          .2) #(vi
2847                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2848                 cf_want_posix_source=yes
2849                 ;;
2850          .*)
2851                 cf_want_posix_source=yes
2852                 ;;
2853          esac
2854          if test "$cf_want_posix_source" = yes ; then
2855                 cat >conftest.$ac_ext <<_ACEOF
2856 #line 2856 "configure"
2857 #include "confdefs.h"
2858 #include <sys/types.h>
2859 int
2860 main ()
2861 {
2862
2863 #ifdef _POSIX_SOURCE
2864 make an error
2865 #endif
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:2871: \"$ac_compile\"") >&5
2872   (eval $ac_compile) 2>&5
2873   ac_status=$?
2874   echo "$as_me:2874: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:2877: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:2880: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   :
2883 else
2884   echo "$as_me: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2887 fi
2888 rm -f conftest.$ac_objext conftest.$ac_ext
2889          fi
2890
2891 echo "${as_me:-configure}:2891: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2892
2893          CFLAGS="$cf_trim_CFLAGS"
2894          CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2895
2896 echo "${as_me:-configure}:2896: testing if the second compile does not leave our definition intact error ..." 1>&5
2897
2898          cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2901 #include <sys/types.h>
2902 int
2903 main ()
2904 {
2905
2906 #ifndef _POSIX_C_SOURCE
2907 make an error
2908 #endif
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:2914: \"$ac_compile\"") >&5
2915   (eval $ac_compile) 2>&5
2916   ac_status=$?
2917   echo "$as_me:2917: \$? = $ac_status" >&5
2918   (exit $ac_status); } &&
2919          { ac_try='test -s conftest.$ac_objext'
2920   { (eval echo "$as_me:2920: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:2923: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   :
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 cf_cv_posix_c_source=no
2930 fi
2931 rm -f conftest.$ac_objext conftest.$ac_ext
2932          CFLAGS="$cf_save_CFLAGS"
2933          CPPFLAGS="$cf_save_CPPFLAGS"
2934
2935 fi
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937
2938 fi
2939 echo "$as_me:2939: result: $cf_cv_posix_c_source" >&5
2940 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2941
2942 if test "$cf_cv_posix_c_source" != no ; then
2943         CFLAGS="$cf_trim_CFLAGS"
2944         CPPFLAGS="$cf_trim_CPPFLAGS"
2945
2946 cf_fix_cppflags=no
2947 cf_new_cflags=
2948 cf_new_cppflags=
2949 cf_new_extra_cppflags=
2950
2951 for cf_add_cflags in $cf_cv_posix_c_source
2952 do
2953 case $cf_fix_cppflags in
2954 no)
2955         case $cf_add_cflags in #(vi
2956         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2957                 case $cf_add_cflags in
2958                 -D*)
2959                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2960
2961                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2962                                 && test -z "${cf_tst_cflags}" \
2963                                 && cf_fix_cppflags=yes
2964
2965                         if test $cf_fix_cppflags = yes ; then
2966                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2967                                 continue
2968                         elif test "${cf_tst_cflags}" = "\"'" ; then
2969                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2970                                 continue
2971                         fi
2972                         ;;
2973                 esac
2974                 case "$CPPFLAGS" in
2975                 *$cf_add_cflags) #(vi
2976                         ;;
2977                 *) #(vi
2978                         case $cf_add_cflags in #(vi
2979                         -D*)
2980                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2981
2982 CPPFLAGS=`echo "$CPPFLAGS" | \
2983         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2984                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2985
2986                                 ;;
2987                         esac
2988                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2989                         ;;
2990                 esac
2991                 ;;
2992         *)
2993                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2994                 ;;
2995         esac
2996         ;;
2997 yes)
2998         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2999
3000         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3001
3002         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3003                 && test -z "${cf_tst_cflags}" \
3004                 && cf_fix_cppflags=no
3005         ;;
3006 esac
3007 done
3008
3009 if test -n "$cf_new_cflags" ; then
3010
3011         CFLAGS="$CFLAGS $cf_new_cflags"
3012 fi
3013
3014 if test -n "$cf_new_cppflags" ; then
3015
3016         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3017 fi
3018
3019 if test -n "$cf_new_extra_cppflags" ; then
3020
3021         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3022 fi
3023
3024 fi
3025
3026         ;;
3027 netbsd*) #(vi
3028         cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3029         ;;
3030 openbsd[4-9]*) #(vi
3031         # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3032         cf_xopen_source="-D_BSD_SOURCE"
3033         cf_XOPEN_SOURCE=600
3034         ;;
3035 openbsd*) #(vi
3036         # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3037         ;;
3038 osf[45]*) #(vi
3039         cf_xopen_source="-D_OSF_SOURCE"
3040         ;;
3041 nto-qnx*) #(vi
3042         cf_xopen_source="-D_QNX_SOURCE"
3043         ;;
3044 sco*) #(vi
3045         # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3046         ;;
3047 solaris2.*) #(vi
3048         cf_xopen_source="-D__EXTENSIONS__"
3049         ;;
3050 *)
3051
3052 echo "$as_me:3052: checking if we should define _XOPEN_SOURCE" >&5
3053 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3054 if test "${cf_cv_xopen_source+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057
3058         cat >conftest.$ac_ext <<_ACEOF
3059 #line 3059 "configure"
3060 #include "confdefs.h"
3061
3062 #include <stdlib.h>
3063 #include <string.h>
3064 #include <sys/types.h>
3065
3066 int
3067 main ()
3068 {
3069
3070 #ifndef _XOPEN_SOURCE
3071 make an error
3072 #endif
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (eval echo "$as_me:3078: \"$ac_compile\"") >&5
3079   (eval $ac_compile) 2>&5
3080   ac_status=$?
3081   echo "$as_me:3081: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -s conftest.$ac_objext'
3084   { (eval echo "$as_me:3084: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:3087: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   cf_cv_xopen_source=no
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 cf_save="$CPPFLAGS"
3094          CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3095          cat >conftest.$ac_ext <<_ACEOF
3096 #line 3096 "configure"
3097 #include "confdefs.h"
3098
3099 #include <stdlib.h>
3100 #include <string.h>
3101 #include <sys/types.h>
3102
3103 int
3104 main ()
3105 {
3106
3107 #ifdef _XOPEN_SOURCE
3108 make an error
3109 #endif
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (eval echo "$as_me:3115: \"$ac_compile\"") >&5
3116   (eval $ac_compile) 2>&5
3117   ac_status=$?
3118   echo "$as_me:3118: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (eval echo "$as_me:3121: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:3124: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   cf_cv_xopen_source=no
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3130 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3131 fi
3132 rm -f conftest.$ac_objext conftest.$ac_ext
3133         CPPFLAGS="$cf_save"
3134
3135 fi
3136 rm -f conftest.$ac_objext conftest.$ac_ext
3137
3138 fi
3139 echo "$as_me:3139: result: $cf_cv_xopen_source" >&5
3140 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3141
3142 if test "$cf_cv_xopen_source" != no ; then
3143
3144 CFLAGS=`echo "$CFLAGS" | \
3145         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3146                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3147
3148 CPPFLAGS=`echo "$CPPFLAGS" | \
3149         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3150                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3151
3152         cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3153
3154 cf_fix_cppflags=no
3155 cf_new_cflags=
3156 cf_new_cppflags=
3157 cf_new_extra_cppflags=
3158
3159 for cf_add_cflags in $cf_temp_xopen_source
3160 do
3161 case $cf_fix_cppflags in
3162 no)
3163         case $cf_add_cflags in #(vi
3164         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3165                 case $cf_add_cflags in
3166                 -D*)
3167                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3168
3169                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3170                                 && test -z "${cf_tst_cflags}" \
3171                                 && cf_fix_cppflags=yes
3172
3173                         if test $cf_fix_cppflags = yes ; then
3174                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3175                                 continue
3176                         elif test "${cf_tst_cflags}" = "\"'" ; then
3177                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3178                                 continue
3179                         fi
3180                         ;;
3181                 esac
3182                 case "$CPPFLAGS" in
3183                 *$cf_add_cflags) #(vi
3184                         ;;
3185                 *) #(vi
3186                         case $cf_add_cflags in #(vi
3187                         -D*)
3188                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3189
3190 CPPFLAGS=`echo "$CPPFLAGS" | \
3191         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3192                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3193
3194                                 ;;
3195                         esac
3196                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3197                         ;;
3198                 esac
3199                 ;;
3200         *)
3201                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3202                 ;;
3203         esac
3204         ;;
3205 yes)
3206         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3207
3208         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3209
3210         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3211                 && test -z "${cf_tst_cflags}" \
3212                 && cf_fix_cppflags=no
3213         ;;
3214 esac
3215 done
3216
3217 if test -n "$cf_new_cflags" ; then
3218
3219         CFLAGS="$CFLAGS $cf_new_cflags"
3220 fi
3221
3222 if test -n "$cf_new_cppflags" ; then
3223
3224         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3225 fi
3226
3227 if test -n "$cf_new_extra_cppflags" ; then
3228
3229         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3230 fi
3231
3232 fi
3233
3234 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3235
3236 cf_save_CFLAGS="$CFLAGS"
3237 cf_save_CPPFLAGS="$CPPFLAGS"
3238
3239 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3240         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
3241                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
3242
3243 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3244         sed     -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[         ]/ /g' \
3245                 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
3246
3247 echo "$as_me:3247: checking if we should define _POSIX_C_SOURCE" >&5
3248 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3249 if test "${cf_cv_posix_c_source+set}" = set; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252
3253 echo "${as_me:-configure}:3253: testing if the symbol is already defined go no further ..." 1>&5
3254
3255         cat >conftest.$ac_ext <<_ACEOF
3256 #line 3256 "configure"
3257 #include "confdefs.h"
3258 #include <sys/types.h>
3259 int
3260 main ()
3261 {
3262
3263 #ifndef _POSIX_C_SOURCE
3264 make an error
3265 #endif
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
3272   (eval $ac_compile) 2>&5
3273   ac_status=$?
3274   echo "$as_me:3274: \$? = $ac_status" >&5
3275   (exit $ac_status); } &&
3276          { ac_try='test -s conftest.$ac_objext'
3277   { (eval echo "$as_me:3277: \"$ac_try\"") >&5
3278   (eval $ac_try) 2>&5
3279   ac_status=$?
3280   echo "$as_me:3280: \$? = $ac_status" >&5
3281   (exit $ac_status); }; }; then
3282   cf_cv_posix_c_source=no
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 cf_want_posix_source=no
3287          case .$cf_POSIX_C_SOURCE in #(vi
3288          .[12]??*) #(vi
3289                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3290                 ;;
3291          .2) #(vi
3292                 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3293                 cf_want_posix_source=yes
3294                 ;;
3295          .*)
3296                 cf_want_posix_source=yes
3297                 ;;
3298          esac
3299          if test "$cf_want_posix_source" = yes ; then
3300                 cat >conftest.$ac_ext <<_ACEOF
3301 #line 3301 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3304 int
3305 main ()
3306 {
3307
3308 #ifdef _POSIX_SOURCE
3309 make an error
3310 #endif
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:3316: \"$ac_compile\"") >&5
3317   (eval $ac_compile) 2>&5
3318   ac_status=$?
3319   echo "$as_me:3319: \$? = $ac_status" >&5
3320   (exit $ac_status); } &&
3321          { ac_try='test -s conftest.$ac_objext'
3322   { (eval echo "$as_me:3322: \"$ac_try\"") >&5
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
3325   echo "$as_me:3325: \$? = $ac_status" >&5
3326   (exit $ac_status); }; }; then
3327   :
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3332 fi
3333 rm -f conftest.$ac_objext conftest.$ac_ext
3334          fi
3335
3336 echo "${as_me:-configure}:3336: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3337
3338          CFLAGS="$cf_trim_CFLAGS"
3339          CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3340
3341 echo "${as_me:-configure}:3341: testing if the second compile does not leave our definition intact error ..." 1>&5
3342
3343          cat >conftest.$ac_ext <<_ACEOF
3344 #line 3344 "configure"
3345 #include "confdefs.h"
3346 #include <sys/types.h>
3347 int
3348 main ()
3349 {
3350
3351 #ifndef _POSIX_C_SOURCE
3352 make an error
3353 #endif
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:3359: \"$ac_compile\"") >&5
3360   (eval $ac_compile) 2>&5
3361   ac_status=$?
3362   echo "$as_me:3362: \$? = $ac_status" >&5
3363   (exit $ac_status); } &&
3364          { ac_try='test -s conftest.$ac_objext'
3365   { (eval echo "$as_me:3365: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:3368: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   :
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 cf_cv_posix_c_source=no
3375 fi
3376 rm -f conftest.$ac_objext conftest.$ac_ext
3377          CFLAGS="$cf_save_CFLAGS"
3378          CPPFLAGS="$cf_save_CPPFLAGS"
3379
3380 fi
3381 rm -f conftest.$ac_objext conftest.$ac_ext
3382
3383 fi
3384 echo "$as_me:3384: result: $cf_cv_posix_c_source" >&5
3385 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3386
3387 if test "$cf_cv_posix_c_source" != no ; then
3388         CFLAGS="$cf_trim_CFLAGS"
3389         CPPFLAGS="$cf_trim_CPPFLAGS"
3390
3391 cf_fix_cppflags=no
3392 cf_new_cflags=
3393 cf_new_cppflags=
3394 cf_new_extra_cppflags=
3395
3396 for cf_add_cflags in $cf_cv_posix_c_source
3397 do
3398 case $cf_fix_cppflags in
3399 no)
3400         case $cf_add_cflags in #(vi
3401         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3402                 case $cf_add_cflags in
3403                 -D*)
3404                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3405
3406                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3407                                 && test -z "${cf_tst_cflags}" \
3408                                 && cf_fix_cppflags=yes
3409
3410                         if test $cf_fix_cppflags = yes ; then
3411                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3412                                 continue
3413                         elif test "${cf_tst_cflags}" = "\"'" ; then
3414                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3415                                 continue
3416                         fi
3417                         ;;
3418                 esac
3419                 case "$CPPFLAGS" in
3420                 *$cf_add_cflags) #(vi
3421                         ;;
3422                 *) #(vi
3423                         case $cf_add_cflags in #(vi
3424                         -D*)
3425                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3426
3427 CPPFLAGS=`echo "$CPPFLAGS" | \
3428         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3429                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3430
3431                                 ;;
3432                         esac
3433                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3434                         ;;
3435                 esac
3436                 ;;
3437         *)
3438                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3439                 ;;
3440         esac
3441         ;;
3442 yes)
3443         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3444
3445         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3446
3447         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3448                 && test -z "${cf_tst_cflags}" \
3449                 && cf_fix_cppflags=no
3450         ;;
3451 esac
3452 done
3453
3454 if test -n "$cf_new_cflags" ; then
3455
3456         CFLAGS="$CFLAGS $cf_new_cflags"
3457 fi
3458
3459 if test -n "$cf_new_cppflags" ; then
3460
3461         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3462 fi
3463
3464 if test -n "$cf_new_extra_cppflags" ; then
3465
3466         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3467 fi
3468
3469 fi
3470
3471         ;;
3472 esac
3473
3474 if test -n "$cf_xopen_source" ; then
3475
3476 cf_fix_cppflags=no
3477 cf_new_cflags=
3478 cf_new_cppflags=
3479 cf_new_extra_cppflags=
3480
3481 for cf_add_cflags in $cf_xopen_source
3482 do
3483 case $cf_fix_cppflags in
3484 no)
3485         case $cf_add_cflags in #(vi
3486         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3487                 case $cf_add_cflags in
3488                 -D*)
3489                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3490
3491                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3492                                 && test -z "${cf_tst_cflags}" \
3493                                 && cf_fix_cppflags=yes
3494
3495                         if test $cf_fix_cppflags = yes ; then
3496                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3497                                 continue
3498                         elif test "${cf_tst_cflags}" = "\"'" ; then
3499                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3500                                 continue
3501                         fi
3502                         ;;
3503                 esac
3504                 case "$CPPFLAGS" in
3505                 *$cf_add_cflags) #(vi
3506                         ;;
3507                 *) #(vi
3508                         case $cf_add_cflags in #(vi
3509                         -D*)
3510                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3511
3512 CPPFLAGS=`echo "$CPPFLAGS" | \
3513         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3514                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3515
3516                                 ;;
3517                         esac
3518                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3519                         ;;
3520                 esac
3521                 ;;
3522         *)
3523                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3524                 ;;
3525         esac
3526         ;;
3527 yes)
3528         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3529
3530         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3531
3532         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3533                 && test -z "${cf_tst_cflags}" \
3534                 && cf_fix_cppflags=no
3535         ;;
3536 esac
3537 done
3538
3539 if test -n "$cf_new_cflags" ; then
3540
3541         CFLAGS="$CFLAGS $cf_new_cflags"
3542 fi
3543
3544 if test -n "$cf_new_cppflags" ; then
3545
3546         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3547 fi
3548
3549 if test -n "$cf_new_extra_cppflags" ; then
3550
3551         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3552 fi
3553
3554 fi
3555
3556 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3557         echo "$as_me:3557: checking if _XOPEN_SOURCE really is set" >&5
3558 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3559         cat >conftest.$ac_ext <<_ACEOF
3560 #line 3560 "configure"
3561 #include "confdefs.h"
3562 #include <stdlib.h>
3563 int
3564 main ()
3565 {
3566
3567 #ifndef _XOPEN_SOURCE
3568 make an error
3569 #endif
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5
3576   (eval $ac_compile) 2>&5
3577   ac_status=$?
3578   echo "$as_me:3578: \$? = $ac_status" >&5
3579   (exit $ac_status); } &&
3580          { ac_try='test -s conftest.$ac_objext'
3581   { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3582   (eval $ac_try) 2>&5
3583   ac_status=$?
3584   echo "$as_me:3584: \$? = $ac_status" >&5
3585   (exit $ac_status); }; }; then
3586   cf_XOPEN_SOURCE_set=yes
3587 else
3588   echo "$as_me: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 cf_XOPEN_SOURCE_set=no
3591 fi
3592 rm -f conftest.$ac_objext conftest.$ac_ext
3593         echo "$as_me:3593: result: $cf_XOPEN_SOURCE_set" >&5
3594 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3595         if test $cf_XOPEN_SOURCE_set = yes
3596         then
3597                 cat >conftest.$ac_ext <<_ACEOF
3598 #line 3598 "configure"
3599 #include "confdefs.h"
3600 #include <stdlib.h>
3601 int
3602 main ()
3603 {
3604
3605 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3606 make an error
3607 #endif
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
3614   (eval $ac_compile) 2>&5
3615   ac_status=$?
3616   echo "$as_me:3616: \$? = $ac_status" >&5
3617   (exit $ac_status); } &&
3618          { ac_try='test -s conftest.$ac_objext'
3619   { (eval echo "$as_me:3619: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:3622: \$? = $ac_status" >&5
3623   (exit $ac_status); }; }; then
3624   cf_XOPEN_SOURCE_set_ok=yes
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 cf_XOPEN_SOURCE_set_ok=no
3629 fi
3630 rm -f conftest.$ac_objext conftest.$ac_ext
3631                 if test $cf_XOPEN_SOURCE_set_ok = no
3632                 then
3633                         { echo "$as_me:3633: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3634 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3635                 fi
3636         else
3637
3638 echo "$as_me:3638: checking if we should define _XOPEN_SOURCE" >&5
3639 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3640 if test "${cf_cv_xopen_source+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643
3644         cat >conftest.$ac_ext <<_ACEOF
3645 #line 3645 "configure"
3646 #include "confdefs.h"
3647
3648 #include <stdlib.h>
3649 #include <string.h>
3650 #include <sys/types.h>
3651
3652 int
3653 main ()
3654 {
3655
3656 #ifndef _XOPEN_SOURCE
3657 make an error
3658 #endif
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:3664: \"$ac_compile\"") >&5
3665   (eval $ac_compile) 2>&5
3666   ac_status=$?
3667   echo "$as_me:3667: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -s conftest.$ac_objext'
3670   { (eval echo "$as_me:3670: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:3673: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   cf_cv_xopen_source=no
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 cf_save="$CPPFLAGS"
3680          CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3681          cat >conftest.$ac_ext <<_ACEOF
3682 #line 3682 "configure"
3683 #include "confdefs.h"
3684
3685 #include <stdlib.h>
3686 #include <string.h>
3687 #include <sys/types.h>
3688
3689 int
3690 main ()
3691 {
3692
3693 #ifdef _XOPEN_SOURCE
3694 make an error
3695 #endif
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:3701: \"$ac_compile\"") >&5
3702   (eval $ac_compile) 2>&5
3703   ac_status=$?
3704   echo "$as_me:3704: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706          { ac_try='test -s conftest.$ac_objext'
3707   { (eval echo "$as_me:3707: \"$ac_try\"") >&5
3708   (eval $ac_try) 2>&5
3709   ac_status=$?
3710   echo "$as_me:3710: \$? = $ac_status" >&5
3711   (exit $ac_status); }; }; then
3712   cf_cv_xopen_source=no
3713 else
3714   echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3717 fi
3718 rm -f conftest.$ac_objext conftest.$ac_ext
3719         CPPFLAGS="$cf_save"
3720
3721 fi
3722 rm -f conftest.$ac_objext conftest.$ac_ext
3723
3724 fi
3725 echo "$as_me:3725: result: $cf_cv_xopen_source" >&5
3726 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3727
3728 if test "$cf_cv_xopen_source" != no ; then
3729
3730 CFLAGS=`echo "$CFLAGS" | \
3731         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3732                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3733
3734 CPPFLAGS=`echo "$CPPFLAGS" | \
3735         sed     -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?[         ]/ /g' \
3736                 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^       ]*\)\?$//g'`
3737
3738         cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3739
3740 cf_fix_cppflags=no
3741 cf_new_cflags=
3742 cf_new_cppflags=
3743 cf_new_extra_cppflags=
3744
3745 for cf_add_cflags in $cf_temp_xopen_source
3746 do
3747 case $cf_fix_cppflags in
3748 no)
3749         case $cf_add_cflags in #(vi
3750         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3751                 case $cf_add_cflags in
3752                 -D*)
3753                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3754
3755                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3756                                 && test -z "${cf_tst_cflags}" \
3757                                 && cf_fix_cppflags=yes
3758
3759                         if test $cf_fix_cppflags = yes ; then
3760                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3761                                 continue
3762                         elif test "${cf_tst_cflags}" = "\"'" ; then
3763                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3764                                 continue
3765                         fi
3766                         ;;
3767                 esac
3768                 case "$CPPFLAGS" in
3769                 *$cf_add_cflags) #(vi
3770                         ;;
3771                 *) #(vi
3772                         case $cf_add_cflags in #(vi
3773                         -D*)
3774                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3775
3776 CPPFLAGS=`echo "$CPPFLAGS" | \
3777         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
3778                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
3779
3780                                 ;;
3781                         esac
3782                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3783                         ;;
3784                 esac
3785                 ;;
3786         *)
3787                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3788                 ;;
3789         esac
3790         ;;
3791 yes)
3792         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3793
3794         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3795
3796         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3797                 && test -z "${cf_tst_cflags}" \
3798                 && cf_fix_cppflags=no
3799         ;;
3800 esac
3801 done
3802
3803 if test -n "$cf_new_cflags" ; then
3804
3805         CFLAGS="$CFLAGS $cf_new_cflags"
3806 fi
3807
3808 if test -n "$cf_new_cppflags" ; then
3809
3810         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3811 fi
3812
3813 if test -n "$cf_new_extra_cppflags" ; then
3814
3815         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3816 fi
3817
3818 fi
3819
3820         fi
3821 fi
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 ac_main_return=return
3829 echo "$as_me:3829: checking how to run the C preprocessor" >&5
3830 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3831 # On Suns, sometimes $CPP names a directory.
3832 if test -n "$CPP" && test -d "$CPP"; then
3833   CPP=
3834 fi
3835 if test -z "$CPP"; then
3836   if test "${ac_cv_prog_CPP+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839       # Double quotes because CPP needs to be expanded
3840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3841     do
3842       ac_preproc_ok=false
3843 for ac_c_preproc_warn_flag in '' yes
3844 do
3845   # Use a header file that comes with gcc, so configuring glibc
3846   # with a fresh cross-compiler works.
3847   # On the NeXT, cc -E runs the code through the compiler's parser,
3848   # not just through cpp. "Syntax error" is here to catch this case.
3849   cat >conftest.$ac_ext <<_ACEOF
3850 #line 3850 "configure"
3851 #include "confdefs.h"
3852 #include <assert.h>
3853                      Syntax error
3854 _ACEOF
3855 if { (eval echo "$as_me:3855: \"$ac_cpp conftest.$ac_ext\"") >&5
3856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857   ac_status=$?
3858   egrep -v '^ *\+' conftest.er1 >conftest.err
3859   rm -f conftest.er1
3860   cat conftest.err >&5
3861   echo "$as_me:3861: \$? = $ac_status" >&5
3862   (exit $ac_status); } >/dev/null; then
3863   if test -s conftest.err; then
3864     ac_cpp_err=$ac_c_preproc_warn_flag
3865   else
3866     ac_cpp_err=
3867   fi
3868 else
3869   ac_cpp_err=yes
3870 fi
3871 if test -z "$ac_cpp_err"; then
3872   :
3873 else
3874   echo "$as_me: failed program was:" >&5
3875   cat conftest.$ac_ext >&5
3876   # Broken: fails on valid input.
3877 continue
3878 fi
3879 rm -f conftest.err conftest.$ac_ext
3880
3881   # OK, works on sane cases.  Now check whether non-existent headers
3882   # can be detected and how.
3883   cat >conftest.$ac_ext <<_ACEOF
3884 #line 3884 "configure"
3885 #include "confdefs.h"
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if { (eval echo "$as_me:3888: \"$ac_cpp conftest.$ac_ext\"") >&5
3889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3890   ac_status=$?
3891   egrep -v '^ *\+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:3894: \$? = $ac_status" >&5
3895   (exit $ac_status); } >/dev/null; then
3896   if test -s conftest.err; then
3897     ac_cpp_err=$ac_c_preproc_warn_flag
3898   else
3899     ac_cpp_err=
3900   fi
3901 else
3902   ac_cpp_err=yes
3903 fi
3904 if test -z "$ac_cpp_err"; then
3905   # Broken: success on invalid input.
3906 continue
3907 else
3908   echo "$as_me: failed program was:" >&5
3909   cat conftest.$ac_ext >&5
3910   # Passes both tests.
3911 ac_preproc_ok=:
3912 break
3913 fi
3914 rm -f conftest.err conftest.$ac_ext
3915
3916 done
3917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3918 rm -f conftest.err conftest.$ac_ext
3919 if $ac_preproc_ok; then
3920   break
3921 fi
3922
3923     done
3924     ac_cv_prog_CPP=$CPP
3925
3926 fi
3927   CPP=$ac_cv_prog_CPP
3928 else
3929   ac_cv_prog_CPP=$CPP
3930 fi
3931 echo "$as_me:3931: result: $CPP" >&5
3932 echo "${ECHO_T}$CPP" >&6
3933 ac_preproc_ok=false
3934 for ac_c_preproc_warn_flag in '' yes
3935 do
3936   # Use a header file that comes with gcc, so configuring glibc
3937   # with a fresh cross-compiler works.
3938   # On the NeXT, cc -E runs the code through the compiler's parser,
3939   # not just through cpp. "Syntax error" is here to catch this case.
3940   cat >conftest.$ac_ext <<_ACEOF
3941 #line 3941 "configure"
3942 #include "confdefs.h"
3943 #include <assert.h>
3944                      Syntax error
3945 _ACEOF
3946 if { (eval echo "$as_me:3946: \"$ac_cpp conftest.$ac_ext\"") >&5
3947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948   ac_status=$?
3949   egrep -v '^ *\+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:3952: \$? = $ac_status" >&5
3953   (exit $ac_status); } >/dev/null; then
3954   if test -s conftest.err; then
3955     ac_cpp_err=$ac_c_preproc_warn_flag
3956   else
3957     ac_cpp_err=
3958   fi
3959 else
3960   ac_cpp_err=yes
3961 fi
3962 if test -z "$ac_cpp_err"; then
3963   :
3964 else
3965   echo "$as_me: failed program was:" >&5
3966   cat conftest.$ac_ext >&5
3967   # Broken: fails on valid input.
3968 continue
3969 fi
3970 rm -f conftest.err conftest.$ac_ext
3971
3972   # OK, works on sane cases.  Now check whether non-existent headers
3973   # can be detected and how.
3974   cat >conftest.$ac_ext <<_ACEOF
3975 #line 3975 "configure"
3976 #include "confdefs.h"
3977 #include <ac_nonexistent.h>
3978 _ACEOF
3979 if { (eval echo "$as_me:3979: \"$ac_cpp conftest.$ac_ext\"") >&5
3980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981   ac_status=$?
3982   egrep -v '^ *\+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:3985: \$? = $ac_status" >&5
3986   (exit $ac_status); } >/dev/null; then
3987   if test -s conftest.err; then
3988     ac_cpp_err=$ac_c_preproc_warn_flag
3989   else
3990     ac_cpp_err=
3991   fi
3992 else
3993   ac_cpp_err=yes
3994 fi
3995 if test -z "$ac_cpp_err"; then
3996   # Broken: success on invalid input.
3997 continue
3998 else
3999   echo "$as_me: failed program was:" >&5
4000   cat conftest.$ac_ext >&5
4001   # Passes both tests.
4002 ac_preproc_ok=:
4003 break
4004 fi
4005 rm -f conftest.err conftest.$ac_ext
4006
4007 done
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.err conftest.$ac_ext
4010 if $ac_preproc_ok; then
4011   :
4012 else
4013   { { echo "$as_me:4013: error: C preprocessor \"$CPP\" fails sanity check" >&5
4014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4015    { (exit 1); exit 1; }; }
4016 fi
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 ac_main_return=return
4024
4025 for ac_header in fcntl.h
4026 do
4027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4028 echo "$as_me:4028: checking for $ac_header" >&5
4029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   cat >conftest.$ac_ext <<_ACEOF
4034 #line 4034 "configure"
4035 #include "confdefs.h"
4036 #include <$ac_header>
4037 _ACEOF
4038 if { (eval echo "$as_me:4038: \"$ac_cpp conftest.$ac_ext\"") >&5
4039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4040   ac_status=$?
4041   egrep -v '^ *\+' conftest.er1 >conftest.err
4042   rm -f conftest.er1
4043   cat conftest.err >&5
4044   echo "$as_me:4044: \$? = $ac_status" >&5
4045   (exit $ac_status); } >/dev/null; then
4046   if test -s conftest.err; then
4047     ac_cpp_err=$ac_c_preproc_warn_flag
4048   else
4049     ac_cpp_err=
4050   fi
4051 else
4052   ac_cpp_err=yes
4053 fi
4054 if test -z "$ac_cpp_err"; then
4055   eval "$as_ac_Header=yes"
4056 else
4057   echo "$as_me: failed program was:" >&5
4058   cat conftest.$ac_ext >&5
4059   eval "$as_ac_Header=no"
4060 fi
4061 rm -f conftest.err conftest.$ac_ext
4062 fi
4063 echo "$as_me:4063: result: `eval echo '${'$as_ac_Header'}'`" >&5
4064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4066   cat >>confdefs.h <<EOF
4067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4068 EOF
4069
4070 fi
4071 done
4072
4073 for ac_func in atexit
4074 do
4075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4076 echo "$as_me:4076: checking for $ac_func" >&5
4077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_var+set}\" = set"; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   cat >conftest.$ac_ext <<_ACEOF
4082 #line 4082 "configure"
4083 #include "confdefs.h"
4084 /* System header to define __stub macros and hopefully few prototypes,
4085     which can conflict with char $ac_func (); below.  */
4086 #include <assert.h>
4087 /* Override any gcc2 internal prototype to avoid an error.  */
4088 #ifdef __cplusplus
4089 extern "C"
4090 #endif
4091 /* We use char because int might match the return type of a gcc2
4092    builtin and then its argument prototype would still apply.  */
4093 char $ac_func ();
4094 char (*f) ();
4095
4096 int
4097 main ()
4098 {
4099 /* The GNU C library defines this for functions which it implements
4100     to always fail with ENOSYS.  Some functions are actually named
4101     something starting with __ and the normal name is an alias.  */
4102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4103 choke me
4104 #else
4105 f = $ac_func;
4106 #endif
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (eval echo "$as_me:4113: \"$ac_link\"") >&5
4114   (eval $ac_link) 2>&5
4115   ac_status=$?
4116   echo "$as_me:4116: \$? = $ac_status" >&5
4117   (exit $ac_status); } &&
4118          { ac_try='test -s conftest$ac_exeext'
4119   { (eval echo "$as_me:4119: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:4122: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   eval "$as_ac_var=yes"
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 eval "$as_ac_var=no"
4129 fi
4130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4131 fi
4132 echo "$as_me:4132: result: `eval echo '${'$as_ac_var'}'`" >&5
4133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4134 if test `eval echo '${'$as_ac_var'}'` = yes; then
4135   cat >>confdefs.h <<EOF
4136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4137 EOF
4138
4139 fi
4140 done
4141
4142 echo "$as_me:4142: checking for working mkstemp" >&5
4143 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
4144 if test "${cf_cv_func_mkstemp+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147
4148 rm -rf conftest*
4149 if test "$cross_compiling" = yes; then
4150   echo "$as_me:4150: checking for mkstemp" >&5
4151 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
4152 if test "${ac_cv_func_mkstemp+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   cat >conftest.$ac_ext <<_ACEOF
4156 #line 4156 "configure"
4157 #include "confdefs.h"
4158 /* System header to define __stub macros and hopefully few prototypes,
4159     which can conflict with char mkstemp (); below.  */
4160 #include <assert.h>
4161 /* Override any gcc2 internal prototype to avoid an error.  */
4162 #ifdef __cplusplus
4163 extern "C"
4164 #endif
4165 /* We use char because int might match the return type of a gcc2
4166    builtin and then its argument prototype would still apply.  */
4167 char mkstemp ();
4168 char (*f) ();
4169
4170 int
4171 main ()
4172 {
4173 /* The GNU C library defines this for functions which it implements
4174     to always fail with ENOSYS.  Some functions are actually named
4175     something starting with __ and the normal name is an alias.  */
4176 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
4177 choke me
4178 #else
4179 f = mkstemp;
4180 #endif
4181
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:4187: \"$ac_link\"") >&5
4188   (eval $ac_link) 2>&5
4189   ac_status=$?
4190   echo "$as_me:4190: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -s conftest$ac_exeext'
4193   { (eval echo "$as_me:4193: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:4196: \$? = $ac_status" >&5
4197   (exit $ac_status); }; }; then
4198   ac_cv_func_mkstemp=yes
4199 else
4200   echo "$as_me: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 ac_cv_func_mkstemp=no
4203 fi
4204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4205 fi
4206 echo "$as_me:4206: result: $ac_cv_func_mkstemp" >&5
4207 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
4208
4209 else
4210   cat >conftest.$ac_ext <<_ACEOF
4211 #line 4211 "configure"
4212 #include "confdefs.h"
4213
4214 #include <sys/types.h>
4215 #include <stdlib.h>
4216 #include <stdio.h>
4217 #include <string.h>
4218 #include <sys/stat.h>
4219 int main()
4220 {
4221         char *tmpl = "conftestXXXXXX";
4222         char name[2][80];
4223         int n;
4224         int result = 0;
4225         int fd;
4226         struct stat sb;
4227
4228         umask(077);
4229         for (n = 0; n < 2; ++n) {
4230                 strcpy(name[n], tmpl);
4231                 if ((fd = mkstemp(name[n])) >= 0) {
4232                         if (!strcmp(name[n], tmpl)
4233                          || stat(name[n], &sb) != 0
4234                          || (sb.st_mode & S_IFMT) != S_IFREG
4235                          || (sb.st_mode & 077) != 0) {
4236                                 result = 1;
4237                         }
4238                         close(fd);
4239                 }
4240         }
4241         if (result == 0
4242          && !strcmp(name[0], name[1]))
4243                 result = 1;
4244         ${cf_cv_main_return:-return}(result);
4245 }
4246
4247 _ACEOF
4248 rm -f conftest$ac_exeext
4249 if { (eval echo "$as_me:4249: \"$ac_link\"") >&5
4250   (eval $ac_link) 2>&5
4251   ac_status=$?
4252   echo "$as_me:4252: \$? = $ac_status" >&5
4253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254   { (eval echo "$as_me:4254: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:4257: \$? = $ac_status" >&5
4258   (exit $ac_status); }; }; then
4259   cf_cv_func_mkstemp=yes
4260
4261 else
4262   echo "$as_me: program exited with status $ac_status" >&5
4263 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 cf_cv_func_mkstemp=no
4266
4267 fi
4268 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4269 fi
4270
4271 fi
4272 echo "$as_me:4272: result: $cf_cv_func_mkstemp" >&5
4273 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
4274 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
4275         cat >>confdefs.h <<\EOF
4276 #define HAVE_MKSTEMP 1
4277 EOF
4278
4279 fi
4280
4281 GCC_VERSION=none
4282 if test "$GCC" = yes ; then
4283         echo "$as_me:4283: checking version of $CC" >&5
4284 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
4285         GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
4286         test -z "$GCC_VERSION" && GCC_VERSION=unknown
4287         echo "$as_me:4287: result: $GCC_VERSION" >&5
4288 echo "${ECHO_T}$GCC_VERSION" >&6
4289 fi
4290
4291 if ( test "$GCC" = yes || test "$GXX" = yes )
4292 then
4293 echo "$as_me:4293: checking if you want to check for gcc warnings" >&5
4294 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4295
4296 # Check whether --with-warnings or --without-warnings was given.
4297 if test "${with_warnings+set}" = set; then
4298   withval="$with_warnings"
4299   cf_opt_with_warnings=$withval
4300 else
4301   cf_opt_with_warnings=no
4302 fi;
4303 echo "$as_me:4303: result: $cf_opt_with_warnings" >&5
4304 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4305 if test "$cf_opt_with_warnings" != no ; then
4306
4307 if test "$GCC" = yes
4308 then
4309 cat > conftest.i <<EOF
4310 #ifndef GCC_PRINTF
4311 #define GCC_PRINTF 0
4312 #endif
4313 #ifndef GCC_SCANF
4314 #define GCC_SCANF 0
4315 #endif
4316 #ifndef GCC_NORETURN
4317 #define GCC_NORETURN /* nothing */
4318 #endif
4319 #ifndef GCC_UNUSED
4320 #define GCC_UNUSED /* nothing */
4321 #endif
4322 EOF
4323 if test "$GCC" = yes
4324 then
4325         { echo "$as_me:4325: checking for $CC __attribute__ directives..." >&5
4326 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4328 "${as_me:-configure}"
4329 #include "confdefs.h"
4330 #include "conftest.h"
4331 #include "conftest.i"
4332 #if     GCC_PRINTF
4333 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4334 #else
4335 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4336 #endif
4337 #if     GCC_SCANF
4338 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
4339 #else
4340 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
4341 #endif
4342 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4343 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4344 extern void foo(void) GCC_NORETURN;
4345 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4346 EOF
4347         cf_printf_attribute=no
4348         cf_scanf_attribute=no
4349         for cf_attribute in scanf printf unused noreturn
4350         do
4351
4352 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4353
4354                 cf_directive="__attribute__(($cf_attribute))"
4355                 echo "checking for $CC $cf_directive" 1>&5
4356
4357                 case $cf_attribute in #(vi
4358                 printf) #(vi
4359                         cf_printf_attribute=yes
4360                         cat >conftest.h <<EOF
4361 #define GCC_$cf_ATTRIBUTE 1
4362 EOF
4363                         ;;
4364                 scanf) #(vi
4365                         cf_scanf_attribute=yes
4366                         cat >conftest.h <<EOF
4367 #define GCC_$cf_ATTRIBUTE 1
4368 EOF
4369                         ;;
4370                 *) #(vi
4371                         cat >conftest.h <<EOF
4372 #define GCC_$cf_ATTRIBUTE $cf_directive
4373 EOF
4374                         ;;
4375                 esac
4376
4377                 if { (eval echo "$as_me:4377: \"$ac_compile\"") >&5
4378   (eval $ac_compile) 2>&5
4379   ac_status=$?
4380   echo "$as_me:4380: \$? = $ac_status" >&5
4381   (exit $ac_status); }; then
4382                         test -n "$verbose" && echo "$as_me:4382: result: ... $cf_attribute" >&5
4383 echo "${ECHO_T}... $cf_attribute" >&6
4384                         cat conftest.h >>confdefs.h
4385                         case $cf_attribute in #(vi
4386                         printf) #(vi
4387                                 if test "$cf_printf_attribute" = no ; then
4388                                         cat >>confdefs.h <<EOF
4389 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
4390 EOF
4391                                 else
4392                                         cat >>confdefs.h <<EOF
4393 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4394 EOF
4395                                 fi
4396                                 ;;
4397                         scanf) #(vi
4398                                 if test "$cf_scanf_attribute" = no ; then
4399                                         cat >>confdefs.h <<EOF
4400 #define GCC_SCANFLIKE(fmt,var) /* nothing */
4401 EOF
4402                                 else
4403                                         cat >>confdefs.h <<EOF
4404 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
4405 EOF
4406                                 fi
4407                                 ;;
4408                         esac
4409                 fi
4410         done
4411 else
4412         fgrep define conftest.i >>confdefs.h
4413 fi
4414 rm -rf conftest*
4415 fi
4416
4417 INTEL_COMPILER=no
4418
4419 if test "$GCC" = yes ; then
4420         case $host_os in
4421         linux*|gnu*)
4422                 echo "$as_me:4422: checking if this is really Intel C compiler" >&5
4423 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4424                 cf_save_CFLAGS="$CFLAGS"
4425                 CFLAGS="$CFLAGS -no-gcc"
4426                 cat >conftest.$ac_ext <<_ACEOF
4427 #line 4427 "configure"
4428 #include "confdefs.h"
4429
4430 int
4431 main ()
4432 {
4433
4434 #ifdef __INTEL_COMPILER
4435 #else
4436 make an error
4437 #endif
4438
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (eval echo "$as_me:4444: \"$ac_compile\"") >&5
4445   (eval $ac_compile) 2>&5
4446   ac_status=$?
4447   echo "$as_me:4447: \$? = $ac_status" >&5
4448   (exit $ac_status); } &&
4449          { ac_try='test -s conftest.$ac_objext'
4450   { (eval echo "$as_me:4450: \"$ac_try\"") >&5
4451   (eval $ac_try) 2>&5
4452   ac_status=$?
4453   echo "$as_me:4453: \$? = $ac_status" >&5
4454   (exit $ac_status); }; }; then
4455   INTEL_COMPILER=yes
4456 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4457
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 fi
4462 rm -f conftest.$ac_objext conftest.$ac_ext
4463                 CFLAGS="$cf_save_CFLAGS"
4464                 echo "$as_me:4464: result: $INTEL_COMPILER" >&5
4465 echo "${ECHO_T}$INTEL_COMPILER" >&6
4466                 ;;
4467         esac
4468 fi
4469
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4471 "${as_me:-configure}"
4472 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4473 EOF
4474
4475 if test "$INTEL_COMPILER" = yes
4476 then
4477 # The "-wdXXX" options suppress warnings:
4478 # remark #1419: external declaration in primary source file
4479 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4480 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4481 # remark #193: zero used for undefined preprocessing identifier
4482 # remark #593: variable "curs_sb_left_arrow" was set but never used
4483 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4484 # remark #869: parameter "tw" was never referenced
4485 # remark #981: operands are evaluated in unspecified order
4486 # warning #279: controlling expression is constant
4487
4488         { echo "$as_me:4488: checking for $CC warning options..." >&5
4489 echo "$as_me: checking for $CC warning options..." >&6;}
4490         cf_save_CFLAGS="$CFLAGS"
4491         EXTRA_CFLAGS="-Wall"
4492         for cf_opt in \
4493                 wd1419 \
4494                 wd1683 \
4495                 wd1684 \
4496                 wd193 \
4497                 wd593 \
4498                 wd279 \
4499                 wd810 \
4500                 wd869 \
4501                 wd981
4502         do
4503                 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4504                 if { (eval echo "$as_me:4504: \"$ac_compile\"") >&5
4505   (eval $ac_compile) 2>&5
4506   ac_status=$?
4507   echo "$as_me:4507: \$? = $ac_status" >&5
4508   (exit $ac_status); }; then
4509                         test -n "$verbose" && echo "$as_me:4509: result: ... -$cf_opt" >&5
4510 echo "${ECHO_T}... -$cf_opt" >&6
4511                         EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4512                 fi
4513         done
4514         CFLAGS="$cf_save_CFLAGS"
4515
4516 elif test "$GCC" = yes
4517 then
4518         { echo "$as_me:4518: checking for $CC warning options..." >&5
4519 echo "$as_me: checking for $CC warning options..." >&6;}
4520         cf_save_CFLAGS="$CFLAGS"
4521         EXTRA_CFLAGS=
4522         cf_warn_CONST=""
4523         test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4524         for cf_opt in W Wall \
4525                 Wbad-function-cast \
4526                 Wcast-align \
4527                 Wcast-qual \
4528                 Winline \
4529                 Wmissing-declarations \
4530                 Wmissing-prototypes \
4531                 Wnested-externs \
4532                 Wpointer-arith \
4533                 Wshadow \
4534                 Wstrict-prototypes \
4535                 Wundef $cf_warn_CONST Wwrite-strings
4536         do
4537                 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4538                 if { (eval echo "$as_me:4538: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>&5
4540   ac_status=$?
4541   echo "$as_me:4541: \$? = $ac_status" >&5
4542   (exit $ac_status); }; then
4543                         test -n "$verbose" && echo "$as_me:4543: result: ... -$cf_opt" >&5
4544 echo "${ECHO_T}... -$cf_opt" >&6
4545                         case $cf_opt in #(vi
4546                         Wcast-qual) #(vi
4547                                 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4548                                 ;;
4549                         Winline) #(vi
4550                                 case $GCC_VERSION in
4551                                 [34].*)
4552                                         test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
4553
4554 echo "${as_me:-configure}:4554: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4555
4556                                         continue;;
4557                                 esac
4558                                 ;;
4559                         esac
4560                         EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4561                 fi
4562         done
4563         CFLAGS="$cf_save_CFLAGS"
4564 fi
4565 rm -rf conftest*
4566
4567 fi
4568 fi
4569
4570 echo "$as_me:4570: checking if you want to see long compiling messages" >&5
4571 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4572
4573 # Check whether --enable-echo or --disable-echo was given.
4574 if test "${enable_echo+set}" = set; then
4575   enableval="$enable_echo"
4576   test "$enableval" != no && enableval=yes
4577   if test "$enableval" != "yes" ; then
4578
4579     ECHO_LT='--silent'
4580     ECHO_LD='@echo linking $@;'
4581     RULE_CC='@echo compiling $<'
4582     SHOW_CC='@echo compiling $@'
4583     ECHO_CC='@'
4584
4585   else
4586
4587     ECHO_LT=''
4588     ECHO_LD=''
4589     RULE_CC=''
4590     SHOW_CC=''
4591     ECHO_CC=''
4592
4593   fi
4594 else
4595   enableval=yes
4596
4597     ECHO_LT=''
4598     ECHO_LD=''
4599     RULE_CC=''
4600     SHOW_CC=''
4601     ECHO_CC=''
4602
4603 fi;
4604 echo "$as_me:4604: result: $enableval" >&5
4605 echo "${ECHO_T}$enableval" >&6
4606
4607 case $cf_cv_system_name in
4608 os2*)
4609     CFLAGS="$CFLAGS -Zmt"
4610     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
4611     CXXFLAGS="$CXXFLAGS -Zmt"
4612     # autoconf's macro sets -Zexe and suffix both, which conflict:w
4613     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
4614     ac_cv_exeext=.exe
4615     ;;
4616 esac
4617
4618 PROG_EXT="$EXEEXT"
4619
4620 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
4621 #define PROG_EXT "$PROG_EXT"
4622 EOF
4623
4624 echo "$as_me:4624: checking if you want to use dmalloc for testing" >&5
4625 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4626
4627 # Check whether --with-dmalloc or --without-dmalloc was given.
4628 if test "${with_dmalloc+set}" = set; then
4629   withval="$with_dmalloc"
4630   cat >>confdefs.h <<\EOF
4631 #define USE_DMALLOC 1
4632 EOF
4633
4634         : ${with_cflags:=-g}
4635         : ${with_no_leaks:=yes}
4636          with_dmalloc=yes
4637 else
4638   with_dmalloc=
4639 fi;
4640 echo "$as_me:4640: result: ${with_dmalloc:-no}" >&5
4641 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4642
4643 case .$with_cflags in #(vi
4644 .*-g*)
4645         case .$CFLAGS in #(vi
4646         .*-g*) #(vi
4647                 ;;
4648         *)
4649
4650 cf_fix_cppflags=no
4651 cf_new_cflags=
4652 cf_new_cppflags=
4653 cf_new_extra_cppflags=
4654
4655 for cf_add_cflags in -g
4656 do
4657 case $cf_fix_cppflags in
4658 no)
4659         case $cf_add_cflags in #(vi
4660         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4661                 case $cf_add_cflags in
4662                 -D*)
4663                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4664
4665                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4666                                 && test -z "${cf_tst_cflags}" \
4667                                 && cf_fix_cppflags=yes
4668
4669                         if test $cf_fix_cppflags = yes ; then
4670                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4671                                 continue
4672                         elif test "${cf_tst_cflags}" = "\"'" ; then
4673                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4674                                 continue
4675                         fi
4676                         ;;
4677                 esac
4678                 case "$CPPFLAGS" in
4679                 *$cf_add_cflags) #(vi
4680                         ;;
4681                 *) #(vi
4682                         case $cf_add_cflags in #(vi
4683                         -D*)
4684                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4685
4686 CPPFLAGS=`echo "$CPPFLAGS" | \
4687         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
4688                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
4689
4690                                 ;;
4691                         esac
4692                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4693                         ;;
4694                 esac
4695                 ;;
4696         *)
4697                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4698                 ;;
4699         esac
4700         ;;
4701 yes)
4702         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4703
4704         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4705
4706         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4707                 && test -z "${cf_tst_cflags}" \
4708                 && cf_fix_cppflags=no
4709         ;;
4710 esac
4711 done
4712
4713 if test -n "$cf_new_cflags" ; then
4714
4715         CFLAGS="$CFLAGS $cf_new_cflags"
4716 fi
4717
4718 if test -n "$cf_new_cppflags" ; then
4719
4720         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4721 fi
4722
4723 if test -n "$cf_new_extra_cppflags" ; then
4724
4725         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4726 fi
4727
4728                 ;;
4729         esac
4730         ;;
4731 esac
4732
4733 if test "$with_dmalloc" = yes ; then
4734         echo "$as_me:4734: checking for dmalloc.h" >&5
4735 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4736 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   cat >conftest.$ac_ext <<_ACEOF
4740 #line 4740 "configure"
4741 #include "confdefs.h"
4742 #include <dmalloc.h>
4743 _ACEOF
4744 if { (eval echo "$as_me:4744: \"$ac_cpp conftest.$ac_ext\"") >&5
4745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4746   ac_status=$?
4747   egrep -v '^ *\+' conftest.er1 >conftest.err
4748   rm -f conftest.er1
4749   cat conftest.err >&5
4750   echo "$as_me:4750: \$? = $ac_status" >&5
4751   (exit $ac_status); } >/dev/null; then
4752   if test -s conftest.err; then
4753     ac_cpp_err=$ac_c_preproc_warn_flag
4754   else
4755     ac_cpp_err=
4756   fi
4757 else
4758   ac_cpp_err=yes
4759 fi
4760 if test -z "$ac_cpp_err"; then
4761   ac_cv_header_dmalloc_h=yes
4762 else
4763   echo "$as_me: failed program was:" >&5
4764   cat conftest.$ac_ext >&5
4765   ac_cv_header_dmalloc_h=no
4766 fi
4767 rm -f conftest.err conftest.$ac_ext
4768 fi
4769 echo "$as_me:4769: result: $ac_cv_header_dmalloc_h" >&5
4770 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4771 if test $ac_cv_header_dmalloc_h = yes; then
4772
4773 echo "$as_me:4773: checking for dmalloc_debug in -ldmalloc" >&5
4774 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4775 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   ac_check_lib_save_LIBS=$LIBS
4779 LIBS="-ldmalloc  $LIBS"
4780 cat >conftest.$ac_ext <<_ACEOF
4781 #line 4781 "configure"
4782 #include "confdefs.h"
4783
4784 /* Override any gcc2 internal prototype to avoid an error.  */
4785 #ifdef __cplusplus
4786 extern "C"
4787 #endif
4788 /* We use char because int might match the return type of a gcc2
4789    builtin and then its argument prototype would still apply.  */
4790 char dmalloc_debug ();
4791 int
4792 main ()
4793 {
4794 dmalloc_debug ();
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:4800: \"$ac_link\"") >&5
4801   (eval $ac_link) 2>&5
4802   ac_status=$?
4803   echo "$as_me:4803: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -s conftest$ac_exeext'
4806   { (eval echo "$as_me:4806: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:4809: \$? = $ac_status" >&5
4810   (exit $ac_status); }; }; then
4811   ac_cv_lib_dmalloc_dmalloc_debug=yes
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 cat conftest.$ac_ext >&5
4815 ac_cv_lib_dmalloc_dmalloc_debug=no
4816 fi
4817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4818 LIBS=$ac_check_lib_save_LIBS
4819 fi
4820 echo "$as_me:4820: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4821 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4822 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4823   cat >>confdefs.h <<EOF
4824 #define HAVE_LIBDMALLOC 1
4825 EOF
4826
4827   LIBS="-ldmalloc $LIBS"
4828
4829 fi
4830
4831 fi
4832
4833 fi
4834
4835 echo "$as_me:4835: checking if you want to use dbmalloc for testing" >&5
4836 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4837
4838 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4839 if test "${with_dbmalloc+set}" = set; then
4840   withval="$with_dbmalloc"
4841   cat >>confdefs.h <<\EOF
4842 #define USE_DBMALLOC 1
4843 EOF
4844
4845         : ${with_cflags:=-g}
4846         : ${with_no_leaks:=yes}
4847          with_dbmalloc=yes
4848 else
4849   with_dbmalloc=
4850 fi;
4851 echo "$as_me:4851: result: ${with_dbmalloc:-no}" >&5
4852 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4853
4854 case .$with_cflags in #(vi
4855 .*-g*)
4856         case .$CFLAGS in #(vi
4857         .*-g*) #(vi
4858                 ;;
4859         *)
4860
4861 cf_fix_cppflags=no
4862 cf_new_cflags=
4863 cf_new_cppflags=
4864 cf_new_extra_cppflags=
4865
4866 for cf_add_cflags in -g
4867 do
4868 case $cf_fix_cppflags in
4869 no)
4870         case $cf_add_cflags in #(vi
4871         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4872                 case $cf_add_cflags in
4873                 -D*)
4874                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4875
4876                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4877                                 && test -z "${cf_tst_cflags}" \
4878                                 && cf_fix_cppflags=yes
4879
4880                         if test $cf_fix_cppflags = yes ; then
4881                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4882                                 continue
4883                         elif test "${cf_tst_cflags}" = "\"'" ; then
4884                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4885                                 continue
4886                         fi
4887                         ;;
4888                 esac
4889                 case "$CPPFLAGS" in
4890                 *$cf_add_cflags) #(vi
4891                         ;;
4892                 *) #(vi
4893                         case $cf_add_cflags in #(vi
4894                         -D*)
4895                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4896
4897 CPPFLAGS=`echo "$CPPFLAGS" | \
4898         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
4899                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
4900
4901                                 ;;
4902                         esac
4903                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4904                         ;;
4905                 esac
4906                 ;;
4907         *)
4908                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4909                 ;;
4910         esac
4911         ;;
4912 yes)
4913         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4914
4915         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4916
4917         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4918                 && test -z "${cf_tst_cflags}" \
4919                 && cf_fix_cppflags=no
4920         ;;
4921 esac
4922 done
4923
4924 if test -n "$cf_new_cflags" ; then
4925
4926         CFLAGS="$CFLAGS $cf_new_cflags"
4927 fi
4928
4929 if test -n "$cf_new_cppflags" ; then
4930
4931         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4932 fi
4933
4934 if test -n "$cf_new_extra_cppflags" ; then
4935
4936         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4937 fi
4938
4939                 ;;
4940         esac
4941         ;;
4942 esac
4943
4944 if test "$with_dbmalloc" = yes ; then
4945         echo "$as_me:4945: checking for dbmalloc.h" >&5
4946 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4947 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   cat >conftest.$ac_ext <<_ACEOF
4951 #line 4951 "configure"
4952 #include "confdefs.h"
4953 #include <dbmalloc.h>
4954 _ACEOF
4955 if { (eval echo "$as_me:4955: \"$ac_cpp conftest.$ac_ext\"") >&5
4956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4957   ac_status=$?
4958   egrep -v '^ *\+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   echo "$as_me:4961: \$? = $ac_status" >&5
4962   (exit $ac_status); } >/dev/null; then
4963   if test -s conftest.err; then
4964     ac_cpp_err=$ac_c_preproc_warn_flag
4965   else
4966     ac_cpp_err=
4967   fi
4968 else
4969   ac_cpp_err=yes
4970 fi
4971 if test -z "$ac_cpp_err"; then
4972   ac_cv_header_dbmalloc_h=yes
4973 else
4974   echo "$as_me: failed program was:" >&5
4975   cat conftest.$ac_ext >&5
4976   ac_cv_header_dbmalloc_h=no
4977 fi
4978 rm -f conftest.err conftest.$ac_ext
4979 fi
4980 echo "$as_me:4980: result: $ac_cv_header_dbmalloc_h" >&5
4981 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4982 if test $ac_cv_header_dbmalloc_h = yes; then
4983
4984 echo "$as_me:4984: checking for debug_malloc in -ldbmalloc" >&5
4985 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4986 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   ac_check_lib_save_LIBS=$LIBS
4990 LIBS="-ldbmalloc  $LIBS"
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #line 4992 "configure"
4993 #include "confdefs.h"
4994
4995 /* Override any gcc2 internal prototype to avoid an error.  */
4996 #ifdef __cplusplus
4997 extern "C"
4998 #endif
4999 /* We use char because int might match the return type of a gcc2
5000    builtin and then its argument prototype would still apply.  */
5001 char debug_malloc ();
5002 int
5003 main ()
5004 {
5005 debug_malloc ();
5006   ;
5007   return 0;
5008 }
5009 _ACEOF
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (eval echo "$as_me:5011: \"$ac_link\"") >&5
5012   (eval $ac_link) 2>&5
5013   ac_status=$?
5014   echo "$as_me:5014: \$? = $ac_status" >&5
5015   (exit $ac_status); } &&
5016          { ac_try='test -s conftest$ac_exeext'
5017   { (eval echo "$as_me:5017: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:5020: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   ac_cv_lib_dbmalloc_debug_malloc=yes
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 ac_cv_lib_dbmalloc_debug_malloc=no
5027 fi
5028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS
5030 fi
5031 echo "$as_me:5031: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
5032 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
5033 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
5034   cat >>confdefs.h <<EOF
5035 #define HAVE_LIBDBMALLOC 1
5036 EOF
5037
5038   LIBS="-ldbmalloc $LIBS"
5039
5040 fi
5041
5042 fi
5043
5044 fi
5045
5046 echo "$as_me:5046: checking if you want to use valgrind for testing" >&5
5047 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
5048
5049 # Check whether --with-valgrind or --without-valgrind was given.
5050 if test "${with_valgrind+set}" = set; then
5051   withval="$with_valgrind"
5052   cat >>confdefs.h <<\EOF
5053 #define USE_VALGRIND 1
5054 EOF
5055
5056         : ${with_cflags:=-g}
5057         : ${with_no_leaks:=yes}
5058          with_valgrind=yes
5059 else
5060   with_valgrind=
5061 fi;
5062 echo "$as_me:5062: result: ${with_valgrind:-no}" >&5
5063 echo "${ECHO_T}${with_valgrind:-no}" >&6
5064
5065 case .$with_cflags in #(vi
5066 .*-g*)
5067         case .$CFLAGS in #(vi
5068         .*-g*) #(vi
5069                 ;;
5070         *)
5071
5072 cf_fix_cppflags=no
5073 cf_new_cflags=
5074 cf_new_cppflags=
5075 cf_new_extra_cppflags=
5076
5077 for cf_add_cflags in -g
5078 do
5079 case $cf_fix_cppflags in
5080 no)
5081         case $cf_add_cflags in #(vi
5082         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
5083                 case $cf_add_cflags in
5084                 -D*)
5085                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5086
5087                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
5088                                 && test -z "${cf_tst_cflags}" \
5089                                 && cf_fix_cppflags=yes
5090
5091                         if test $cf_fix_cppflags = yes ; then
5092                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5093                                 continue
5094                         elif test "${cf_tst_cflags}" = "\"'" ; then
5095                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5096                                 continue
5097                         fi
5098                         ;;
5099                 esac
5100                 case "$CPPFLAGS" in
5101                 *$cf_add_cflags) #(vi
5102                         ;;
5103                 *) #(vi
5104                         case $cf_add_cflags in #(vi
5105                         -D*)
5106                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5107
5108 CPPFLAGS=`echo "$CPPFLAGS" | \
5109         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
5110                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
5111
5112                                 ;;
5113                         esac
5114                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
5115                         ;;
5116                 esac
5117                 ;;
5118         *)
5119                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
5120                 ;;
5121         esac
5122         ;;
5123 yes)
5124         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5125
5126         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5127
5128         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
5129                 && test -z "${cf_tst_cflags}" \
5130                 && cf_fix_cppflags=no
5131         ;;
5132 esac
5133 done
5134
5135 if test -n "$cf_new_cflags" ; then
5136
5137         CFLAGS="$CFLAGS $cf_new_cflags"
5138 fi
5139
5140 if test -n "$cf_new_cppflags" ; then
5141
5142         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
5143 fi
5144
5145 if test -n "$cf_new_extra_cppflags" ; then
5146
5147         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
5148 fi
5149
5150                 ;;
5151         esac
5152         ;;
5153 esac
5154
5155 echo "$as_me:5155: checking if you want to perform memory-leak testing" >&5
5156 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
5157
5158 # Check whether --enable-leaks or --disable-leaks was given.
5159 if test "${enable_leaks+set}" = set; then
5160   enableval="$enable_leaks"
5161   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
5162 else
5163   : ${with_no_leaks:=no}
5164 fi;
5165 echo "$as_me:5165: result: $with_no_leaks" >&5
5166 echo "${ECHO_T}$with_no_leaks" >&6
5167
5168 if test "$with_no_leaks" = yes ; then
5169         cat >>confdefs.h <<\EOF
5170 #define NO_LEAKS 1
5171 EOF
5172
5173         cat >>confdefs.h <<\EOF
5174 #define YY_NO_LEAKS 1
5175 EOF
5176
5177 fi
5178
5179 ###     output makefile
5180 ac_config_files="$ac_config_files makefile"
5181 ac_config_commands="$ac_config_commands default"
5182 cat >confcache <<\_ACEOF
5183 # This file is a shell script that caches the results of configure
5184 # tests run on this system so they can be shared between configure
5185 # scripts and configure runs, see configure's option --config-cache.
5186 # It is not useful on other systems.  If it contains results you don't
5187 # want to keep, you may remove or edit it.
5188 #
5189 # config.status only pays attention to the cache file if you give it
5190 # the --recheck option to rerun configure.
5191 #
5192 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5194 # following values.
5195
5196 _ACEOF
5197
5198 # The following way of writing the cache mishandles newlines in values,
5199 # but we know of no workaround that is simple, portable, and efficient.
5200 # So, don't put newlines in cache variables' values.
5201 # Ultrix sh set writes to stderr and can't be redirected directly,
5202 # and sets the high bit in the cache file unless we assign to the vars.
5203 {
5204   (set) 2>&1 |
5205     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5206     *ac_space=\ *)
5207       # `set' does not quote correctly, so add quotes (double-quote
5208       # substitution turns \\\\ into \\, and sed turns \\ into \).
5209       sed -n \
5210         "s/'/'\\\\''/g;
5211           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5212       ;;
5213     *)
5214       # `set' quotes correctly as required by POSIX, so do not add quotes.
5215       sed -n \
5216         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5217       ;;
5218     esac;
5219 } |
5220   sed '
5221      t clear
5222      : clear
5223      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5224      t end
5225      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5226      : end' >>confcache
5227 if cmp -s $cache_file confcache; then :; else
5228   if test -w $cache_file; then
5229     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5230     cat confcache >$cache_file
5231   else
5232     echo "not updating unwritable cache $cache_file"
5233   fi
5234 fi
5235 rm -f confcache
5236
5237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5238 # Let make expand exec_prefix.
5239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5240
5241 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5242 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5243 # trailing colons and then remove the whole line if VPATH becomes empty
5244 # (actually we leave an empty line to preserve line numbers).
5245 if test "x$srcdir" = x.; then
5246   ac_vpsub='/^[         ]*VPATH[        ]*=/{
5247 s/:*\$(srcdir):*/:/;
5248 s/:*\${srcdir}:*/:/;
5249 s/:*@srcdir@:*/:/;
5250 s/^\([^=]*=[    ]*\):*/\1/;
5251 s/:*$//;
5252 s/^[^=]*=[      ]*$//;
5253 }'
5254 fi
5255
5256 DEFS=-DHAVE_CONFIG_H
5257
5258 : ${CONFIG_STATUS=./config.status}
5259 ac_clean_files_save=$ac_clean_files
5260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5261 { echo "$as_me:5261: creating $CONFIG_STATUS" >&5
5262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5263 cat >$CONFIG_STATUS <<_ACEOF
5264 #! $SHELL
5265 # Generated automatically by configure.
5266 # Run this file to recreate the current configuration.
5267 # Compiler output produced by configure, useful for debugging
5268 # configure, is in config.log if it exists.
5269
5270 debug=false
5271 SHELL=\${CONFIG_SHELL-$SHELL}
5272 ac_cs_invocation="\$0 \$@"
5273
5274 _ACEOF
5275
5276 cat >>$CONFIG_STATUS <<\_ACEOF
5277 # Be Bourne compatible
5278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5279   emulate sh
5280   NULLCMD=:
5281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5282   set -o posix
5283 fi
5284
5285 # Name of the executable.
5286 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5287
5288 if expr a : '\(a\)' >/dev/null 2>&1; then
5289   as_expr=expr
5290 else
5291   as_expr=false
5292 fi
5293
5294 rm -f conf$$ conf$$.exe conf$$.file
5295 echo >conf$$.file
5296 if ln -s conf$$.file conf$$ 2>/dev/null; then
5297   # We could just check for DJGPP; but this test a) works b) is more generic
5298   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5299   if test -f conf$$.exe; then
5300     # Don't use ln at all; we don't have any links
5301     as_ln_s='cp -p'
5302   else
5303     as_ln_s='ln -s'
5304   fi
5305 elif ln conf$$.file conf$$ 2>/dev/null; then
5306   as_ln_s=ln
5307 else
5308   as_ln_s='cp -p'
5309 fi
5310 rm -f conf$$ conf$$.exe conf$$.file
5311
5312 as_executable_p="test -f"
5313
5314 # Support unset when possible.
5315 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5316   as_unset=unset
5317 else
5318   as_unset=false
5319 fi
5320
5321 # NLS nuisances.
5322 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5323 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5324 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5325 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5326 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5327 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5328 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5329 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5330
5331 # IFS
5332 # We need space, tab and new line, in precisely that order.
5333 as_nl='
5334 '
5335 IFS="   $as_nl"
5336
5337 # CDPATH.
5338 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5339
5340 exec 6>&1
5341
5342 _ACEOF
5343
5344 # Files that config.status was made for.
5345 if test -n "$ac_config_files"; then
5346   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5347 fi
5348
5349 if test -n "$ac_config_headers"; then
5350   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5351 fi
5352
5353 if test -n "$ac_config_links"; then
5354   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5355 fi
5356
5357 if test -n "$ac_config_commands"; then
5358   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5359 fi
5360
5361 cat >>$CONFIG_STATUS <<\EOF
5362
5363 ac_cs_usage="\
5364 \`$as_me' instantiates files from templates according to the
5365 current configuration.
5366
5367 Usage: $0 [OPTIONS] [FILE]...
5368
5369   -h, --help       print this help, then exit
5370   -V, --version    print version number, then exit
5371   -d, --debug      don't remove temporary files
5372       --recheck    update $as_me by reconfiguring in the same conditions
5373   --file=FILE[:TEMPLATE]
5374                    instantiate the configuration file FILE
5375   --header=FILE[:TEMPLATE]
5376                    instantiate the configuration header FILE
5377
5378 Configuration files:
5379 $config_files
5380
5381 Configuration headers:
5382 $config_headers
5383
5384 Configuration commands:
5385 $config_commands
5386
5387 Report bugs to <dickey@invisible-island.net>."
5388 EOF
5389
5390 cat >>$CONFIG_STATUS <<EOF
5391 ac_cs_version="\\
5392 config.status
5393 configured by $0, generated by GNU Autoconf 2.52.20101002,
5394   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5395
5396 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5397 Free Software Foundation, Inc.
5398 This config.status script is free software; the Free Software Foundation
5399 gives unlimited permission to copy, distribute and modify it."
5400 srcdir=$srcdir
5401 INSTALL="$INSTALL"
5402 EOF
5403
5404 cat >>$CONFIG_STATUS <<\EOF
5405 # If no file are specified by the user, then we need to provide default
5406 # value.  By we need to know if files were specified by the user.
5407 ac_need_defaults=:
5408 while test $# != 0
5409 do
5410   case $1 in
5411   --*=*)
5412     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5413     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5414     shift
5415     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5416     shift
5417     ;;
5418   -*);;
5419   *) # This is not an option, so the user has probably given explicit
5420      # arguments.
5421      ac_need_defaults=false;;
5422   esac
5423
5424   case $1 in
5425   # Handling of the options.
5426 EOF
5427 cat >>$CONFIG_STATUS <<EOF
5428   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5429     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5430     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5431 EOF
5432 cat >>$CONFIG_STATUS <<\EOF
5433   --version | --vers* | -V )
5434     echo "$ac_cs_version"; exit 0 ;;
5435   --he | --h)
5436     # Conflict between --help and --header
5437     { { echo "$as_me:5437: error: ambiguous option: $1
5438 Try \`$0 --help' for more information." >&5
5439 echo "$as_me: error: ambiguous option: $1
5440 Try \`$0 --help' for more information." >&2;}
5441    { (exit 1); exit 1; }; };;
5442   --help | --hel | -h )
5443     echo "$ac_cs_usage"; exit 0 ;;
5444   --debug | --d* | -d )
5445     debug=: ;;
5446   --file | --fil | --fi | --f )
5447     shift
5448     CONFIG_FILES="$CONFIG_FILES $1"
5449     ac_need_defaults=false;;
5450   --header | --heade | --head | --hea )
5451     shift
5452     CONFIG_HEADERS="$CONFIG_HEADERS $1"
5453     ac_need_defaults=false;;
5454
5455   # This is an error.
5456   -*) { { echo "$as_me:5456: error: unrecognized option: $1
5457 Try \`$0 --help' for more information." >&5
5458 echo "$as_me: error: unrecognized option: $1
5459 Try \`$0 --help' for more information." >&2;}
5460    { (exit 1); exit 1; }; } ;;
5461
5462   *) ac_config_targets="$ac_config_targets $1" ;;
5463
5464   esac
5465   shift
5466 done
5467
5468 exec 5>>config.log
5469 cat >&5 << _ACEOF
5470
5471 ## ----------------------- ##
5472 ## Running config.status.  ##
5473 ## ----------------------- ##
5474
5475 This file was extended by $as_me 2.52.20101002, executed with
5476   CONFIG_FILES    = $CONFIG_FILES
5477   CONFIG_HEADERS  = $CONFIG_HEADERS
5478   CONFIG_LINKS    = $CONFIG_LINKS
5479   CONFIG_COMMANDS = $CONFIG_COMMANDS
5480   > $ac_cs_invocation
5481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5482
5483 _ACEOF
5484 EOF
5485
5486 cat >>$CONFIG_STATUS <<\EOF
5487 for ac_config_target in $ac_config_targets
5488 do
5489   case "$ac_config_target" in
5490   # Handling of arguments.
5491   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5492   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5493   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5494   *) { { echo "$as_me:5494: error: invalid argument: $ac_config_target" >&5
5495 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5496    { (exit 1); exit 1; }; };;
5497   esac
5498 done
5499
5500 # If the user did not use the arguments to specify the items to instantiate,
5501 # then the envvar interface is used.  Set only those that are not.
5502 # We use the long form for the default assignment because of an extremely
5503 # bizarre bug on SunOS 4.1.3.
5504 if $ac_need_defaults; then
5505   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5506   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5507   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5508 fi
5509
5510 # Create a temporary directory, and hook for its removal unless debugging.
5511 $debug ||
5512 {
5513   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5514   trap '{ (exit 1); exit 1; }' 1 2 13 15
5515 }
5516
5517 # Create a (secure) tmp directory for tmp files.
5518 : ${TMPDIR=/tmp}
5519 {
5520   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5521   test -n "$tmp" && test -d "$tmp"
5522 }  ||
5523 {
5524   tmp=$TMPDIR/cs$$-$RANDOM
5525   (umask 077 && mkdir $tmp)
5526 } ||
5527 {
5528    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5529    { (exit 1); exit 1; }
5530 }
5531
5532 EOF
5533
5534 cat >>$CONFIG_STATUS <<EOF
5535
5536 #
5537 # CONFIG_FILES section.
5538 #
5539
5540 # No need to generate the scripts if there are no CONFIG_FILES.
5541 # This happens for instance when ./config.status config.h
5542 if test -n "\$CONFIG_FILES"; then
5543   # Protect against being on the right side of a sed subst in config.status.
5544   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5545    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5546 s,@SHELL@,$SHELL,;t t
5547 s,@exec_prefix@,$exec_prefix,;t t
5548 s,@prefix@,$prefix,;t t
5549 s,@program_transform_name@,$program_transform_name,;t t
5550 s,@bindir@,$bindir,;t t
5551 s,@sbindir@,$sbindir,;t t
5552 s,@libexecdir@,$libexecdir,;t t
5553 s,@datadir@,$datadir,;t t
5554 s,@sysconfdir@,$sysconfdir,;t t
5555 s,@sharedstatedir@,$sharedstatedir,;t t
5556 s,@localstatedir@,$localstatedir,;t t
5557 s,@libdir@,$libdir,;t t
5558 s,@includedir@,$includedir,;t t
5559 s,@oldincludedir@,$oldincludedir,;t t
5560 s,@infodir@,$infodir,;t t
5561 s,@mandir@,$mandir,;t t
5562 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5563 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5564 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5565 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5566 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5567 s,@build_alias@,$build_alias,;t t
5568 s,@host_alias@,$host_alias,;t t
5569 s,@target_alias@,$target_alias,;t t
5570 s,@ECHO_C@,$ECHO_C,;t t
5571 s,@ECHO_N@,$ECHO_N,;t t
5572 s,@ECHO_T@,$ECHO_T,;t t
5573 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5574 s,@DEFS@,$DEFS,;t t
5575 s,@LIBS@,$LIBS,;t t
5576 s,@build@,$build,;t t
5577 s,@build_cpu@,$build_cpu,;t t
5578 s,@build_vendor@,$build_vendor,;t t
5579 s,@build_os@,$build_os,;t t
5580 s,@host@,$host,;t t
5581 s,@host_cpu@,$host_cpu,;t t
5582 s,@host_vendor@,$host_vendor,;t t
5583 s,@host_os@,$host_os,;t t
5584 s,@target@,$target,;t t
5585 s,@target_cpu@,$target_cpu,;t t
5586 s,@target_vendor@,$target_vendor,;t t
5587 s,@target_os@,$target_os,;t t
5588 s,@CC@,$CC,;t t
5589 s,@CFLAGS@,$CFLAGS,;t t
5590 s,@LDFLAGS@,$LDFLAGS,;t t
5591 s,@CPPFLAGS@,$CPPFLAGS,;t t
5592 s,@ac_ct_CC@,$ac_ct_CC,;t t
5593 s,@EXEEXT@,$EXEEXT,;t t
5594 s,@OBJEXT@,$OBJEXT,;t t
5595 s,@SET_MAKE@,$SET_MAKE,;t t
5596 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5597 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5598 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5599 s,@CTAGS@,$CTAGS,;t t
5600 s,@ETAGS@,$ETAGS,;t t
5601 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5602 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5603 s,@LINT@,$LINT,;t t
5604 s,@LINT_OPTS@,$LINT_OPTS,;t t
5605 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5606 s,@CPP@,$CPP,;t t
5607 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5608 s,@ECHO_LT@,$ECHO_LT,;t t
5609 s,@ECHO_LD@,$ECHO_LD,;t t
5610 s,@RULE_CC@,$RULE_CC,;t t
5611 s,@SHOW_CC@,$SHOW_CC,;t t
5612 s,@ECHO_CC@,$ECHO_CC,;t t
5613 s,@PROG_EXT@,$PROG_EXT,;t t
5614 CEOF
5615
5616 EOF
5617
5618   cat >>$CONFIG_STATUS <<\EOF
5619   # Split the substitutions into bite-sized pieces for seds with
5620   # small command number limits, like on Digital OSF/1 and HP-UX.
5621   ac_max_sed_lines=48
5622   ac_sed_frag=1 # Number of current file.
5623   ac_beg=1 # First line for current file.
5624   ac_end=$ac_max_sed_lines # Line after last line for current file.
5625   ac_more_lines=:
5626   ac_sed_cmds=
5627   while $ac_more_lines; do
5628     if test $ac_beg -gt 1; then
5629       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5630     else
5631       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5632     fi
5633     if test ! -s $tmp/subs.frag; then
5634       ac_more_lines=false
5635     else
5636       # The purpose of the label and of the branching condition is to
5637       # speed up the sed processing (if there are no `@' at all, there
5638       # is no need to browse any of the substitutions).
5639       # These are the two extra sed commands mentioned above.
5640       (echo ':t
5641   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5642       if test -z "$ac_sed_cmds"; then
5643         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5644       else
5645         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5646       fi
5647       ac_sed_frag=`expr $ac_sed_frag + 1`
5648       ac_beg=$ac_end
5649       ac_end=`expr $ac_end + $ac_max_sed_lines`
5650     fi
5651   done
5652   if test -z "$ac_sed_cmds"; then
5653     ac_sed_cmds=cat
5654   fi
5655 fi # test -n "$CONFIG_FILES"
5656
5657 EOF
5658 cat >>$CONFIG_STATUS <<\EOF
5659 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5660   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5661   case $ac_file in
5662   - | *:- | *:-:* ) # input from stdin
5663         cat >$tmp/stdin
5664         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5666   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5668   * )   ac_file_in=$ac_file.in ;;
5669   esac
5670
5671   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5672   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5673          X"$ac_file" : 'X\(//\)[^/]' \| \
5674          X"$ac_file" : 'X\(//\)$' \| \
5675          X"$ac_file" : 'X\(/\)' \| \
5676          .     : '\(.\)' 2>/dev/null ||
5677 echo X"$ac_file" |
5678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5680           /^X\(\/\/\)$/{ s//\1/; q; }
5681           /^X\(\/\).*/{ s//\1/; q; }
5682           s/.*/./; q'`
5683   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5684     { case "$ac_dir" in
5685   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5686   *)                      as_incr_dir=.;;
5687 esac
5688 as_dummy="$ac_dir"
5689 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5690   case $as_mkdir_dir in
5691     # Skip DOS drivespec
5692     ?:) as_incr_dir=$as_mkdir_dir ;;
5693     *)
5694       as_incr_dir=$as_incr_dir/$as_mkdir_dir
5695       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5696     ;;
5697   esac
5698 done; }
5699
5700     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5701     # A "../" for each directory in $ac_dir_suffix.
5702     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5703   else
5704     ac_dir_suffix= ac_dots=
5705   fi
5706
5707   case $srcdir in
5708   .)  ac_srcdir=.
5709       if test -z "$ac_dots"; then
5710          ac_top_srcdir=.
5711       else
5712          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5713       fi ;;
5714   [\\/]* | ?:[\\/]* )
5715       ac_srcdir=$srcdir$ac_dir_suffix;
5716       ac_top_srcdir=$srcdir ;;
5717   *) # Relative path.
5718     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5719     ac_top_srcdir=$ac_dots$srcdir ;;
5720   esac
5721
5722   case $INSTALL in
5723   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5724   *) ac_INSTALL=$ac_dots$INSTALL ;;
5725   esac
5726
5727   if test x"$ac_file" != x-; then
5728     { echo "$as_me:5728: creating $ac_file" >&5
5729 echo "$as_me: creating $ac_file" >&6;}
5730     rm -f "$ac_file"
5731   fi
5732   # Let's still pretend it is `configure' which instantiates (i.e., don't
5733   # use $as_me), people would be surprised to read:
5734   #    /* config.h.  Generated automatically by config.status.  */
5735   configure_input="Generated automatically from `echo $ac_file_in |
5736                                                  sed 's,.*/,,'` by configure."
5737
5738   # First look for the input files in the build tree, otherwise in the
5739   # src tree.
5740   ac_file_inputs=`IFS=:
5741     for f in $ac_file_in; do
5742       case $f in
5743       -) echo $tmp/stdin ;;
5744       [\\/$]*)
5745          # Absolute (can't be DOS-style, as IFS=:)
5746          test -f "$f" || { { echo "$as_me:5746: error: cannot find input file: $f" >&5
5747 echo "$as_me: error: cannot find input file: $f" >&2;}
5748    { (exit 1); exit 1; }; }
5749          echo $f;;
5750       *) # Relative
5751          if test -f "$f"; then
5752            # Build tree
5753            echo $f
5754          elif test -f "$srcdir/$f"; then
5755            # Source tree
5756            echo $srcdir/$f
5757          else
5758            # /dev/null tree
5759            { { echo "$as_me:5759: error: cannot find input file: $f" >&5
5760 echo "$as_me: error: cannot find input file: $f" >&2;}
5761    { (exit 1); exit 1; }; }
5762          fi;;
5763       esac
5764     done` || { (exit 1); exit 1; }
5765 EOF
5766 cat >>$CONFIG_STATUS <<EOF
5767   sed "$ac_vpsub
5768 $extrasub
5769 EOF
5770 cat >>$CONFIG_STATUS <<\EOF
5771 :t
5772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5773 s,@configure_input@,$configure_input,;t t
5774 s,@srcdir@,$ac_srcdir,;t t
5775 s,@top_srcdir@,$ac_top_srcdir,;t t
5776 s,@INSTALL@,$ac_INSTALL,;t t
5777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5778   rm -f $tmp/stdin
5779   if test x"$ac_file" != x-; then
5780     mv $tmp/out $ac_file
5781   else
5782     cat $tmp/out
5783     rm -f $tmp/out
5784   fi
5785
5786 done
5787 EOF
5788 cat >>$CONFIG_STATUS <<\EOF
5789
5790 #
5791 # CONFIG_HEADER section.
5792 #
5793
5794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5796 #
5797 # ac_d sets the value in "#define NAME VALUE" lines.
5798 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5799 ac_dB='[        ].*$,\1#\2'
5800 ac_dC=' '
5801 ac_dD=',;t'
5802 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5803 ac_iA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5804 ac_iB='\([      ]\),\1#\2define\3'
5805 ac_iC=' '
5806 ac_iD='\4,;t'
5807 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5808 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5809 ac_uB='$,\1#\2define\3'
5810 ac_uC=' '
5811 ac_uD=',;t'
5812
5813 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5814   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5815   case $ac_file in
5816   - | *:- | *:-:* ) # input from stdin
5817         cat >$tmp/stdin
5818         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5819         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5820   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5821         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5822   * )   ac_file_in=$ac_file.in ;;
5823   esac
5824
5825   test x"$ac_file" != x- && { echo "$as_me:5825: creating $ac_file" >&5
5826 echo "$as_me: creating $ac_file" >&6;}
5827
5828   # First look for the input files in the build tree, otherwise in the
5829   # src tree.
5830   ac_file_inputs=`IFS=:
5831     for f in $ac_file_in; do
5832       case $f in
5833       -) echo $tmp/stdin ;;
5834       [\\/$]*)
5835          # Absolute (can't be DOS-style, as IFS=:)
5836          test -f "$f" || { { echo "$as_me:5836: error: cannot find input file: $f" >&5
5837 echo "$as_me: error: cannot find input file: $f" >&2;}
5838    { (exit 1); exit 1; }; }
5839          echo $f;;
5840       *) # Relative
5841          if test -f "$f"; then
5842            # Build tree
5843            echo $f
5844          elif test -f "$srcdir/$f"; then
5845            # Source tree
5846            echo $srcdir/$f
5847          else
5848            # /dev/null tree
5849            { { echo "$as_me:5849: error: cannot find input file: $f" >&5
5850 echo "$as_me: error: cannot find input file: $f" >&2;}
5851    { (exit 1); exit 1; }; }
5852          fi;;
5853       esac
5854     done` || { (exit 1); exit 1; }
5855   # Remove the trailing spaces.
5856   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5857
5858 EOF
5859
5860 # Transform confdefs.h into a list of #define's.  We won't use it as a sed
5861 # script, but as data to insert where we see @DEFS@.  We expect AC_SAVE_DEFS to
5862 # be either 'cat' or 'sort'.
5863 cat confdefs.h | uniq >conftest.vals
5864
5865 # Break up conftest.vals because some shells have a limit on
5866 # the size of here documents, and old seds have small limits too.
5867
5868 rm -f conftest.tail
5869 echo '  rm -f conftest.frag' >> $CONFIG_STATUS
5870 while grep . conftest.vals >/dev/null
5871 do
5872   # Write chunks of a limited-size here document to conftest.frag.
5873   echo '  cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
5874   sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
5875   echo 'CEOF' >> $CONFIG_STATUS
5876   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5877   rm -f conftest.vals
5878   mv conftest.tail conftest.vals
5879 done
5880 rm -f conftest.vals
5881
5882 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
5883 # marker @DEFS@.
5884 echo '  cat >> conftest.edit <<CEOF
5885 /@DEFS@/r conftest.frag
5886 /@DEFS@/d
5887 CEOF
5888 sed -f conftest.edit $tmp/in > $tmp/out
5889 rm -f $tmp/in
5890 mv $tmp/out $tmp/in
5891 rm -f conftest.edit conftest.frag
5892 ' >> $CONFIG_STATUS
5893
5894 cat >>$CONFIG_STATUS <<\EOF
5895   # Let's still pretend it is `configure' which instantiates (i.e., don't
5896   # use $as_me), people would be surprised to read:
5897   #    /* config.h.  Generated automatically by config.status.  */
5898   if test x"$ac_file" = x-; then
5899     echo "/* Generated automatically by configure.  */" >$tmp/config.h
5900   else
5901     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
5902   fi
5903   cat $tmp/in >>$tmp/config.h
5904   rm -f $tmp/in
5905   if test x"$ac_file" != x-; then
5906     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5907       { echo "$as_me:5907: $ac_file is unchanged" >&5
5908 echo "$as_me: $ac_file is unchanged" >&6;}
5909     else
5910       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5911          X"$ac_file" : 'X\(//\)[^/]' \| \
5912          X"$ac_file" : 'X\(//\)$' \| \
5913          X"$ac_file" : 'X\(/\)' \| \
5914          .     : '\(.\)' 2>/dev/null ||
5915 echo X"$ac_file" |
5916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5917           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5918           /^X\(\/\/\)$/{ s//\1/; q; }
5919           /^X\(\/\).*/{ s//\1/; q; }
5920           s/.*/./; q'`
5921       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5922         { case "$ac_dir" in
5923   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5924   *)                      as_incr_dir=.;;
5925 esac
5926 as_dummy="$ac_dir"
5927 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5928   case $as_mkdir_dir in
5929     # Skip DOS drivespec
5930     ?:) as_incr_dir=$as_mkdir_dir ;;
5931     *)
5932       as_incr_dir=$as_incr_dir/$as_mkdir_dir
5933       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5934     ;;
5935   esac
5936 done; }
5937
5938       fi
5939       rm -f $ac_file
5940       mv $tmp/config.h $ac_file
5941     fi
5942   else
5943     cat $tmp/config.h
5944     rm -f $tmp/config.h
5945   fi
5946 done
5947 EOF
5948
5949 cat >>$CONFIG_STATUS <<\EOF
5950
5951 { (exit 0); exit 0; }
5952 EOF
5953 chmod +x $CONFIG_STATUS
5954 ac_clean_files=$ac_clean_files_save
5955
5956 # configure is writing to config.log, and then calls config.status.
5957 # config.status does its own redirection, appending to config.log.
5958 # Unfortunately, on DOS this fails, as config.log is still kept open
5959 # by configure, so config.status won't be able to write to it; its
5960 # output is simply discarded.  So we exec the FD to /dev/null,
5961 # effectively closing config.log, so it can be properly (re)opened and
5962 # appended to by config.status.  When coming back to configure, we
5963 # need to make the FD available again.
5964 if test "$no_create" != yes; then
5965   ac_cs_success=:
5966   exec 5>/dev/null
5967   $SHELL $CONFIG_STATUS || ac_cs_success=false
5968   exec 5>>config.log
5969   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5970   # would make configure fail if this is the last instruction.
5971   $ac_cs_success || { (exit 1); exit 1; }
5972 fi
5973