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