]> git.draconx.ca Git - gob-dx.git/blob - configure
Release 1.99.1
[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   --disable-glibtest       Do not try to compile and run a test GLIB program
636   --enable-maintainer-mode enable make rules and dependencies not useful
637                           (and sometimes confusing) to the casual installer
638
639 Some influential environment variables:
640   CC          C compiler command
641   CFLAGS      C compiler flags
642   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
643               nonstandard directory <lib dir>
644   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
645               headers in a nonstandard directory <include dir>
646   CPP         C preprocessor
647
648 Use these variables to override the choices made by `configure' or to help
649 it to find libraries and programs with nonstandard names/locations.
650
651 EOF
652 fi
653
654 if test "$ac_init_help" = "recursive"; then
655   # If there are subdirs, report their specific --help.
656   ac_popdir=`pwd`
657   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
658     cd $ac_subdir
659     # A "../" for each directory in /$ac_subdir.
660     ac_dots=`echo $ac_subdir |
661              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
662
663     case $srcdir in
664     .) # No --srcdir option.  We are building in place.
665       ac_sub_srcdir=$srcdir ;;
666     [\\/]* | ?:[\\/]* ) # Absolute path.
667       ac_sub_srcdir=$srcdir/$ac_subdir ;;
668     *) # Relative path.
669       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
670     esac
671
672     # Check for guested configure; otherwise get Cygnus style configure.
673     if test -f $ac_sub_srcdir/configure.gnu; then
674       echo
675       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
676     elif test -f $ac_sub_srcdir/configure; then
677       echo
678       $SHELL $ac_sub_srcdir/configure  --help=recursive
679     elif test -f $ac_sub_srcdir/configure.ac ||
680            test -f $ac_sub_srcdir/configure.in; then
681       echo
682       $ac_configure --help
683     else
684       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
685     fi
686     cd $ac_popdir
687   done
688 fi
689
690 test -n "$ac_init_help" && exit 0
691 if $ac_init_version; then
692   cat <<\EOF
693
694 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
695 Free Software Foundation, Inc.
696 This configure script is free software; the Free Software Foundation
697 gives unlimited permission to copy, distribute and modify it.
698 EOF
699   exit 0
700 fi
701 exec 5>config.log
702 cat >&5 <<EOF
703 This file contains any messages produced by compilers while
704 running configure, to aid debugging if configure makes a mistake.
705
706 It was created by $as_me, which was
707 generated by GNU Autoconf 2.52.  Invocation command line was
708
709   $ $0 $@
710
711 EOF
712 {
713 cat <<_ASUNAME
714 ## ---------- ##
715 ## Platform.  ##
716 ## ---------- ##
717
718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
723
724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
725 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
726
727 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
728 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
730 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
731 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
732 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
733 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
734
735 PATH = $PATH
736
737 _ASUNAME
738 } >&5
739
740 cat >&5 <<EOF
741 ## ------------ ##
742 ## Core tests.  ##
743 ## ------------ ##
744
745 EOF
746
747 # Keep a trace of the command line.
748 # Strip out --no-create and --no-recursion so they do not pile up.
749 # Also quote any args containing shell meta-characters.
750 ac_configure_args=
751 ac_sep=
752 for ac_arg
753 do
754   case $ac_arg in
755   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
756   | --no-cr | --no-c) ;;
757   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
758   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
759   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
760     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
761     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
762     ac_sep=" " ;;
763   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
764      ac_sep=" " ;;
765   esac
766   # Get rid of the leading space.
767 done
768
769 # When interrupted or exit'd, cleanup temporary files, and complete
770 # config.log.  We remove comments because anyway the quotes in there
771 # would cause problems or look ugly.
772 trap 'exit_status=$?
773   # Save into config.log some information that might help in debugging.
774   echo >&5
775   echo "## ----------------- ##" >&5
776   echo "## Cache variables.  ##" >&5
777   echo "## ----------------- ##" >&5
778   echo >&5
779   # The following way of writing the cache mishandles newlines in values,
780 {
781   (set) 2>&1 |
782     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
783     *ac_space=\ *)
784       sed -n \
785         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
787       ;;
788     *)
789       sed -n \
790         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
791       ;;
792     esac;
793 } >&5
794   sed "/^$/d" confdefs.h >conftest.log
795   if test -s conftest.log; then
796     echo >&5
797     echo "## ------------ ##" >&5
798     echo "## confdefs.h.  ##" >&5
799     echo "## ------------ ##" >&5
800     echo >&5
801     cat conftest.log >&5
802   fi
803   (echo; echo) >&5
804   test "$ac_signal" != 0 &&
805     echo "$as_me: caught signal $ac_signal" >&5
806   echo "$as_me: exit $exit_status" >&5
807   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
808     exit $exit_status
809      ' 0
810 for ac_signal in 1 2 13 15; do
811   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
812 done
813 ac_signal=0
814
815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
816 rm -rf conftest* confdefs.h
817 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
818 echo >confdefs.h
819
820 # Let the site file select an alternate cache file if it wants to.
821 # Prefer explicitly selected file to automatically selected ones.
822 if test -z "$CONFIG_SITE"; then
823   if test "x$prefix" != xNONE; then
824     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
825   else
826     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
827   fi
828 fi
829 for ac_site_file in $CONFIG_SITE; do
830   if test -r "$ac_site_file"; then
831     { echo "$as_me:831: loading site script $ac_site_file" >&5
832 echo "$as_me: loading site script $ac_site_file" >&6;}
833     cat "$ac_site_file" >&5
834     . "$ac_site_file"
835   fi
836 done
837
838 if test -r "$cache_file"; then
839   # Some versions of bash will fail to source /dev/null (special
840   # files actually), so we avoid doing that.
841   if test -f "$cache_file"; then
842     { echo "$as_me:842: loading cache $cache_file" >&5
843 echo "$as_me: loading cache $cache_file" >&6;}
844     case $cache_file in
845       [\\/]* | ?:[\\/]* ) . $cache_file;;
846       *)                      . ./$cache_file;;
847     esac
848   fi
849 else
850   { echo "$as_me:850: creating cache $cache_file" >&5
851 echo "$as_me: creating cache $cache_file" >&6;}
852   >$cache_file
853 fi
854
855 # Check that the precious variables saved in the cache have kept the same
856 # value.
857 ac_cache_corrupted=false
858 for ac_var in `(set) 2>&1 |
859                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
860   eval ac_old_set=\$ac_cv_env_${ac_var}_set
861   eval ac_new_set=\$ac_env_${ac_var}_set
862   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
863   eval ac_new_val="\$ac_env_${ac_var}_value"
864   case $ac_old_set,$ac_new_set in
865     set,)
866       { echo "$as_me:866: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
868       ac_cache_corrupted=: ;;
869     ,set)
870       { echo "$as_me:870: error: \`$ac_var' was not set in the previous run" >&5
871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
872       ac_cache_corrupted=: ;;
873     ,);;
874     *)
875       if test "x$ac_old_val" != "x$ac_new_val"; then
876         { echo "$as_me:876: error: \`$ac_var' has changed since the previous run:" >&5
877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
878         { echo "$as_me:878:   former value:  $ac_old_val" >&5
879 echo "$as_me:   former value:  $ac_old_val" >&2;}
880         { echo "$as_me:880:   current value: $ac_new_val" >&5
881 echo "$as_me:   current value: $ac_new_val" >&2;}
882         ac_cache_corrupted=:
883       fi;;
884   esac
885   # Pass precious variables to config.status.  It doesn't matter if
886   # we pass some twice (in addition to the command line arguments).
887   if test "$ac_new_set" = set; then
888     case $ac_new_val in
889     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
890       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
891       ac_configure_args="$ac_configure_args '$ac_arg'"
892       ;;
893     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
894        ;;
895     esac
896   fi
897 done
898 if $ac_cache_corrupted; then
899   { echo "$as_me:899: error: changes in the environment can compromise the build" >&5
900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
901   { { echo "$as_me:901: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
903    { (exit 1); exit 1; }; }
904 fi
905
906 ac_ext=c
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
911
912 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
913   *c*,-n*) ECHO_N= ECHO_C='
914 ' ECHO_T='      ' ;;
915   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
916   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
917 esac
918 echo "#! $SHELL" >conftest.sh
919 echo  "exit 0"   >>conftest.sh
920 chmod +x conftest.sh
921 if { (echo "$as_me:921: PATH=\".;.\"; conftest.sh") >&5
922   (PATH=".;."; conftest.sh) 2>&5
923   ac_status=$?
924   echo "$as_me:924: \$? = $ac_status" >&5
925   (exit $ac_status); }; then
926   ac_path_separator=';'
927 else
928   ac_path_separator=:
929 fi
930 PATH_SEPARATOR="$ac_path_separator"
931 rm -f conftest.sh
932
933 ac_config_headers="$ac_config_headers config.h"
934
935 ac_config_commands="$ac_config_commands default-1"
936
937 ac_aux_dir=
938 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
939   if test -f $ac_dir/install-sh; then
940     ac_aux_dir=$ac_dir
941     ac_install_sh="$ac_aux_dir/install-sh -c"
942     break
943   elif test -f $ac_dir/install.sh; then
944     ac_aux_dir=$ac_dir
945     ac_install_sh="$ac_aux_dir/install.sh -c"
946     break
947   elif test -f $ac_dir/shtool; then
948     ac_aux_dir=$ac_dir
949     ac_install_sh="$ac_aux_dir/shtool install -c"
950     break
951   fi
952 done
953 if test -z "$ac_aux_dir"; then
954   { { echo "$as_me:954: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
955 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
956    { (exit 1); exit 1; }; }
957 fi
958 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
959 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
960 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
961
962 # Find a good install program.  We prefer a C program (faster),
963 # so one script is as good as another.  But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
967 # IRIX /sbin/install
968 # AIX /bin/install
969 # AmigaOS /C/install, which installs bootblocks on floppy discs
970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
973 # ./install, which can be erroneously created by make from ./install.sh.
974 echo "$as_me:974: checking for a BSD compatible install" >&5
975 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
976 if test -z "$INSTALL"; then
977 if test "${ac_cv_path_install+set}" = set; then
978   echo $ECHO_N "(cached) $ECHO_C" >&6
979 else
980     ac_save_IFS=$IFS; IFS=$ac_path_separator
981   for ac_dir in $PATH; do
982     IFS=$ac_save_IFS
983     # Account for people who put trailing slashes in PATH elements.
984     case $ac_dir/ in
985     / | ./ | .// | /cC/* \
986     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
987     | /usr/ucb/* ) ;;
988     *)
989       # OSF1 and SCO ODT 3.0 have their own names for install.
990       # Don't use installbsd from OSF since it installs stuff as root
991       # by default.
992       for ac_prog in ginstall scoinst install; do
993         if $as_executable_p "$ac_dir/$ac_prog"; then
994           if test $ac_prog = install &&
995             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
996             # AIX install.  It has an incompatible calling convention.
997             :
998           elif test $ac_prog = install &&
999             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1000             # program-specific install script used by HP pwplus--don't use.
1001             :
1002           else
1003             ac_cv_path_install="$ac_dir/$ac_prog -c"
1004             break 2
1005           fi
1006         fi
1007       done
1008       ;;
1009     esac
1010   done
1011
1012 fi
1013   if test "${ac_cv_path_install+set}" = set; then
1014     INSTALL=$ac_cv_path_install
1015   else
1016     # As a last resort, use the slow shell script.  We don't cache a
1017     # path for INSTALL within a source directory, because that will
1018     # break other packages using the cache if that directory is
1019     # removed, or if the path is relative.
1020     INSTALL=$ac_install_sh
1021   fi
1022 fi
1023 echo "$as_me:1023: result: $INSTALL" >&5
1024 echo "${ECHO_T}$INSTALL" >&6
1025
1026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1027 # It thinks the first close brace ends the variable substitution.
1028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1029
1030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1031
1032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1033
1034 echo "$as_me:1034: checking whether build environment is sane" >&5
1035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1036 # Just in case
1037 sleep 1
1038 echo timestamp > conftestfile
1039 # Do `set' in a subshell so we don't clobber the current shell's
1040 # arguments.  Must try -L first in case configure is actually a
1041 # symlink; some systems play weird games with the mod time of symlinks
1042 # (eg FreeBSD returns the mod time of the symlink's containing
1043 # directory).
1044 if (
1045    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1046    if test "$*" = "X"; then
1047       # -L didn't work.
1048       set X `ls -t $srcdir/configure conftestfile`
1049    fi
1050    if test "$*" != "X $srcdir/configure conftestfile" \
1051       && test "$*" != "X conftestfile $srcdir/configure"; then
1052
1053       # If neither matched, then we have a broken ls.  This can happen
1054       # if, for instance, CONFIG_SHELL is bash and it inherits a
1055       # broken ls alias from the environment.  This has actually
1056       # happened.  Such a system could not be considered "sane".
1057       { { echo "$as_me:1057: error: ls -t appears to fail.  Make sure there is not a broken
1058 alias in your environment" >&5
1059 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1060 alias in your environment" >&2;}
1061    { (exit 1); exit 1; }; }
1062    fi
1063
1064    test "$2" = conftestfile
1065    )
1066 then
1067    # Ok.
1068    :
1069 else
1070    { { echo "$as_me:1070: error: newly created file is older than distributed files!
1071 Check your system clock" >&5
1072 echo "$as_me: error: newly created file is older than distributed files!
1073 Check your system clock" >&2;}
1074    { (exit 1); exit 1; }; }
1075 fi
1076 rm -f conftest*
1077 echo "$as_me:1077: result: yes" >&5
1078 echo "${ECHO_T}yes" >&6
1079 test "$program_prefix" != NONE &&
1080   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1081 # Use a double $ so make ignores it.
1082 test "$program_suffix" != NONE &&
1083   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1084 # Double any \ or $.  echo might interpret backslashes.
1085 # By default was `s,x,x', remove it if useless.
1086 cat <<\_ACEOF >conftest.sed
1087 s/[\\$]/&&/g;s/;s,x,x,$//
1088 _ACEOF
1089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1090 rm conftest.sed
1091
1092 echo "$as_me:1092: checking whether ${MAKE-make} sets \${MAKE}" >&5
1093 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1095 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1096   echo $ECHO_N "(cached) $ECHO_C" >&6
1097 else
1098   cat >conftest.make <<\EOF
1099 all:
1100         @echo 'ac_maketemp="${MAKE}"'
1101 EOF
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105   eval ac_cv_prog_make_${ac_make}_set=yes
1106 else
1107   eval ac_cv_prog_make_${ac_make}_set=no
1108 fi
1109 rm -f conftest.make
1110 fi
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112   echo "$as_me:1112: result: yes" >&5
1113 echo "${ECHO_T}yes" >&6
1114   SET_MAKE=
1115 else
1116   echo "$as_me:1116: result: no" >&5
1117 echo "${ECHO_T}no" >&6
1118   SET_MAKE="MAKE=${MAKE-make}"
1119 fi
1120
1121 PACKAGE=gob2
1122
1123 VERSION=1.99.1
1124
1125 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1126   { { echo "$as_me:1126: error: source directory already configured; run \"make distclean\" there first" >&5
1127 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1128    { (exit 1); exit 1; }; }
1129 fi
1130
1131 cat >>confdefs.h <<EOF
1132 #define PACKAGE "$PACKAGE"
1133 EOF
1134
1135 cat >>confdefs.h <<EOF
1136 #define VERSION "$VERSION"
1137 EOF
1138
1139 missing_dir=`cd $ac_aux_dir && pwd`
1140 echo "$as_me:1140: checking for working aclocal" >&5
1141 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1142 # Run test in a subshell; some versions of sh will print an error if
1143 # an executable is not found, even if stderr is redirected.
1144 # Redirect stdin to placate older versions of autoconf.  Sigh.
1145 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1146    ACLOCAL=aclocal
1147    echo "$as_me:1147: result: found" >&5
1148 echo "${ECHO_T}found" >&6
1149 else
1150    ACLOCAL="$missing_dir/missing aclocal"
1151    echo "$as_me:1151: result: missing" >&5
1152 echo "${ECHO_T}missing" >&6
1153 fi
1154
1155 echo "$as_me:1155: checking for working autoconf" >&5
1156 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1157 # Run test in a subshell; some versions of sh will print an error if
1158 # an executable is not found, even if stderr is redirected.
1159 # Redirect stdin to placate older versions of autoconf.  Sigh.
1160 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1161    AUTOCONF=autoconf
1162    echo "$as_me:1162: result: found" >&5
1163 echo "${ECHO_T}found" >&6
1164 else
1165    AUTOCONF="$missing_dir/missing autoconf"
1166    echo "$as_me:1166: result: missing" >&5
1167 echo "${ECHO_T}missing" >&6
1168 fi
1169
1170 echo "$as_me:1170: checking for working automake" >&5
1171 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1172 # Run test in a subshell; some versions of sh will print an error if
1173 # an executable is not found, even if stderr is redirected.
1174 # Redirect stdin to placate older versions of autoconf.  Sigh.
1175 if (automake --version) < /dev/null > /dev/null 2>&1; then
1176    AUTOMAKE=automake
1177    echo "$as_me:1177: result: found" >&5
1178 echo "${ECHO_T}found" >&6
1179 else
1180    AUTOMAKE="$missing_dir/missing automake"
1181    echo "$as_me:1181: result: missing" >&5
1182 echo "${ECHO_T}missing" >&6
1183 fi
1184
1185 echo "$as_me:1185: checking for working autoheader" >&5
1186 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1187 # Run test in a subshell; some versions of sh will print an error if
1188 # an executable is not found, even if stderr is redirected.
1189 # Redirect stdin to placate older versions of autoconf.  Sigh.
1190 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1191    AUTOHEADER=autoheader
1192    echo "$as_me:1192: result: found" >&5
1193 echo "${ECHO_T}found" >&6
1194 else
1195    AUTOHEADER="$missing_dir/missing autoheader"
1196    echo "$as_me:1196: result: missing" >&5
1197 echo "${ECHO_T}missing" >&6
1198 fi
1199
1200 echo "$as_me:1200: checking for working makeinfo" >&5
1201 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1202 # Run test in a subshell; some versions of sh will print an error if
1203 # an executable is not found, even if stderr is redirected.
1204 # Redirect stdin to placate older versions of autoconf.  Sigh.
1205 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1206    MAKEINFO=makeinfo
1207    echo "$as_me:1207: result: found" >&5
1208 echo "${ECHO_T}found" >&6
1209 else
1210    MAKEINFO="$missing_dir/missing makeinfo"
1211    echo "$as_me:1211: result: missing" >&5
1212 echo "${ECHO_T}missing" >&6
1213 fi
1214
1215 if test -f ../NOINST_GOB ; then
1216   DOINSTGOB=
1217   NOINSTGOB=gob2
1218   echo "$as_me:1218: result: *** NOT Going to install GOB ***" >&5
1219 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1220   SUBDIRS="src examples"
1221
1222 else
1223   DOINSTGOB=gob2
1224   NOINSTGOB=
1225   SUBDIRS="src examples doc"
1226
1227 fi
1228
1229 ac_ext=c
1230 ac_cpp='$CPP $CPPFLAGS'
1231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1234 if test -n "$ac_tool_prefix"; then
1235   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1237 echo "$as_me:1237: checking for $ac_word" >&5
1238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1239 if test "${ac_cv_prog_CC+set}" = set; then
1240   echo $ECHO_N "(cached) $ECHO_C" >&6
1241 else
1242   if test -n "$CC"; then
1243   ac_cv_prog_CC="$CC" # Let the user override the test.
1244 else
1245   ac_save_IFS=$IFS; IFS=$ac_path_separator
1246 ac_dummy="$PATH"
1247 for ac_dir in $ac_dummy; do
1248   IFS=$ac_save_IFS
1249   test -z "$ac_dir" && ac_dir=.
1250   $as_executable_p "$ac_dir/$ac_word" || continue
1251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1253 break
1254 done
1255
1256 fi
1257 fi
1258 CC=$ac_cv_prog_CC
1259 if test -n "$CC"; then
1260   echo "$as_me:1260: result: $CC" >&5
1261 echo "${ECHO_T}$CC" >&6
1262 else
1263   echo "$as_me:1263: result: no" >&5
1264 echo "${ECHO_T}no" >&6
1265 fi
1266
1267 fi
1268 if test -z "$ac_cv_prog_CC"; then
1269   ac_ct_CC=$CC
1270   # Extract the first word of "gcc", so it can be a program name with args.
1271 set dummy gcc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1275   echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277   if test -n "$ac_ct_CC"; then
1278   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1279 else
1280   ac_save_IFS=$IFS; IFS=$ac_path_separator
1281 ac_dummy="$PATH"
1282 for ac_dir in $ac_dummy; do
1283   IFS=$ac_save_IFS
1284   test -z "$ac_dir" && ac_dir=.
1285   $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_ac_ct_CC="gcc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1288 break
1289 done
1290
1291 fi
1292 fi
1293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1294 if test -n "$ac_ct_CC"; then
1295   echo "$as_me:1295: result: $ac_ct_CC" >&5
1296 echo "${ECHO_T}$ac_ct_CC" >&6
1297 else
1298   echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1300 fi
1301
1302   CC=$ac_ct_CC
1303 else
1304   CC="$ac_cv_prog_CC"
1305 fi
1306
1307 if test -z "$CC"; then
1308   if test -n "$ac_tool_prefix"; then
1309   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}cc; ac_word=$2
1311 echo "$as_me:1311: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314   echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316   if test -n "$CC"; then
1317   ac_cv_prog_CC="$CC" # Let the user override the test.
1318 else
1319   ac_save_IFS=$IFS; IFS=$ac_path_separator
1320 ac_dummy="$PATH"
1321 for ac_dir in $ac_dummy; do
1322   IFS=$ac_save_IFS
1323   test -z "$ac_dir" && ac_dir=.
1324   $as_executable_p "$ac_dir/$ac_word" || continue
1325 ac_cv_prog_CC="${ac_tool_prefix}cc"
1326 echo "$as_me:1326: found $ac_dir/$ac_word" >&5
1327 break
1328 done
1329
1330 fi
1331 fi
1332 CC=$ac_cv_prog_CC
1333 if test -n "$CC"; then
1334   echo "$as_me:1334: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1336 else
1337   echo "$as_me:1337: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1339 fi
1340
1341 fi
1342 if test -z "$ac_cv_prog_CC"; then
1343   ac_ct_CC=$CC
1344   # Extract the first word of "cc", so it can be a program name with args.
1345 set dummy cc; ac_word=$2
1346 echo "$as_me:1346: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1349   echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351   if test -n "$ac_ct_CC"; then
1352   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1353 else
1354   ac_save_IFS=$IFS; IFS=$ac_path_separator
1355 ac_dummy="$PATH"
1356 for ac_dir in $ac_dummy; do
1357   IFS=$ac_save_IFS
1358   test -z "$ac_dir" && ac_dir=.
1359   $as_executable_p "$ac_dir/$ac_word" || continue
1360 ac_cv_prog_ac_ct_CC="cc"
1361 echo "$as_me:1361: found $ac_dir/$ac_word" >&5
1362 break
1363 done
1364
1365 fi
1366 fi
1367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1368 if test -n "$ac_ct_CC"; then
1369   echo "$as_me:1369: result: $ac_ct_CC" >&5
1370 echo "${ECHO_T}$ac_ct_CC" >&6
1371 else
1372   echo "$as_me:1372: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1374 fi
1375
1376   CC=$ac_ct_CC
1377 else
1378   CC="$ac_cv_prog_CC"
1379 fi
1380
1381 fi
1382 if test -z "$CC"; then
1383   # Extract the first word of "cc", so it can be a program name with args.
1384 set dummy cc; ac_word=$2
1385 echo "$as_me:1385: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388   echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390   if test -n "$CC"; then
1391   ac_cv_prog_CC="$CC" # Let the user override the test.
1392 else
1393   ac_prog_rejected=no
1394   ac_save_IFS=$IFS; IFS=$ac_path_separator
1395 ac_dummy="$PATH"
1396 for ac_dir in $ac_dummy; do
1397   IFS=$ac_save_IFS
1398   test -z "$ac_dir" && ac_dir=.
1399   $as_executable_p "$ac_dir/$ac_word" || continue
1400 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1401   ac_prog_rejected=yes
1402   continue
1403 fi
1404 ac_cv_prog_CC="cc"
1405 echo "$as_me:1405: found $ac_dir/$ac_word" >&5
1406 break
1407 done
1408
1409 if test $ac_prog_rejected = yes; then
1410   # We found a bogon in the path, so make sure we never use it.
1411   set dummy $ac_cv_prog_CC
1412   shift
1413   if test $# != 0; then
1414     # We chose a different compiler from the bogus one.
1415     # However, it has the same basename, so the bogon will be chosen
1416     # first if we set CC to just the basename; use the full file name.
1417     shift
1418     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1419     shift
1420     ac_cv_prog_CC="$@"
1421   fi
1422 fi
1423 fi
1424 fi
1425 CC=$ac_cv_prog_CC
1426 if test -n "$CC"; then
1427   echo "$as_me:1427: result: $CC" >&5
1428 echo "${ECHO_T}$CC" >&6
1429 else
1430   echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432 fi
1433
1434 fi
1435 if test -z "$CC"; then
1436   if test -n "$ac_tool_prefix"; then
1437   for ac_prog in cl
1438   do
1439     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$CC"; then
1447   ac_cv_prog_CC="$CC" # Let the user override the test.
1448 else
1449   ac_save_IFS=$IFS; IFS=$ac_path_separator
1450 ac_dummy="$PATH"
1451 for ac_dir in $ac_dummy; do
1452   IFS=$ac_save_IFS
1453   test -z "$ac_dir" && ac_dir=.
1454   $as_executable_p "$ac_dir/$ac_word" || continue
1455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1456 echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1457 break
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464   echo "$as_me:1464: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467   echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471     test -n "$CC" && break
1472   done
1473 fi
1474 if test -z "$CC"; then
1475   ac_ct_CC=$CC
1476   for ac_prog in cl
1477 do
1478   # Extract the first word of "$ac_prog", so it can be a program name with args.
1479 set dummy $ac_prog; ac_word=$2
1480 echo "$as_me:1480: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$ac_ct_CC"; then
1486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488   ac_save_IFS=$IFS; IFS=$ac_path_separator
1489 ac_dummy="$PATH"
1490 for ac_dir in $ac_dummy; do
1491   IFS=$ac_save_IFS
1492   test -z "$ac_dir" && ac_dir=.
1493   $as_executable_p "$ac_dir/$ac_word" || continue
1494 ac_cv_prog_ac_ct_CC="$ac_prog"
1495 echo "$as_me:1495: found $ac_dir/$ac_word" >&5
1496 break
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503   echo "$as_me:1503: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506   echo "$as_me:1506: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510   test -n "$ac_ct_CC" && break
1511 done
1512
1513   CC=$ac_ct_CC
1514 fi
1515
1516 fi
1517
1518 test -z "$CC" && { { echo "$as_me:1518: error: no acceptable cc found in \$PATH" >&5
1519 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1520    { (exit 1); exit 1; }; }
1521
1522 # Provide some information about the compiler.
1523 echo "$as_me:1523:" \
1524      "checking for C compiler version" >&5
1525 ac_compiler=`set X $ac_compile; echo $2`
1526 { (eval echo "$as_me:1526: \"$ac_compiler --version </dev/null >&5\"") >&5
1527   (eval $ac_compiler --version </dev/null >&5) 2>&5
1528   ac_status=$?
1529   echo "$as_me:1529: \$? = $ac_status" >&5
1530   (exit $ac_status); }
1531 { (eval echo "$as_me:1531: \"$ac_compiler -v </dev/null >&5\"") >&5
1532   (eval $ac_compiler -v </dev/null >&5) 2>&5
1533   ac_status=$?
1534   echo "$as_me:1534: \$? = $ac_status" >&5
1535   (exit $ac_status); }
1536 { (eval echo "$as_me:1536: \"$ac_compiler -V </dev/null >&5\"") >&5
1537   (eval $ac_compiler -V </dev/null >&5) 2>&5
1538   ac_status=$?
1539   echo "$as_me:1539: \$? = $ac_status" >&5
1540   (exit $ac_status); }
1541
1542 cat >conftest.$ac_ext <<_ACEOF
1543 #line 1543 "configure"
1544 #include "confdefs.h"
1545
1546 int
1547 main ()
1548 {
1549
1550   ;
1551   return 0;
1552 }
1553 _ACEOF
1554 ac_clean_files_save=$ac_clean_files
1555 ac_clean_files="$ac_clean_files a.out a.exe"
1556 # Try to create an executable without -o first, disregard a.out.
1557 # It will help us diagnose broken compilers, and finding out an intuition
1558 # of exeext.
1559 echo "$as_me:1559: checking for C compiler default output" >&5
1560 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1561 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1562 if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5
1563   (eval $ac_link_default) 2>&5
1564   ac_status=$?
1565   echo "$as_me:1565: \$? = $ac_status" >&5
1566   (exit $ac_status); }; then
1567   # Find the output, starting from the most likely.  This scheme is
1568 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1569 # resort.
1570 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1571                 ls a.out conftest 2>/dev/null;
1572                 ls a.* conftest.* 2>/dev/null`; do
1573   case $ac_file in
1574     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1575     a.out ) # We found the default executable, but exeext='' is most
1576             # certainly right.
1577             break;;
1578     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1579           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1580           export ac_cv_exeext
1581           break;;
1582     * ) break;;
1583   esac
1584 done
1585 else
1586   echo "$as_me: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 { { echo "$as_me:1588: error: C compiler cannot create executables" >&5
1589 echo "$as_me: error: C compiler cannot create executables" >&2;}
1590    { (exit 77); exit 77; }; }
1591 fi
1592
1593 ac_exeext=$ac_cv_exeext
1594 echo "$as_me:1594: result: $ac_file" >&5
1595 echo "${ECHO_T}$ac_file" >&6
1596
1597 # Check the compiler produces executables we can run.  If not, either
1598 # the compiler is broken, or we cross compile.
1599 echo "$as_me:1599: checking whether the C compiler works" >&5
1600 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1601 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1602 # If not cross compiling, check that we can run a simple program.
1603 if test "$cross_compiling" != yes; then
1604   if { ac_try='./$ac_file'
1605   { (eval echo "$as_me:1605: \"$ac_try\"") >&5
1606   (eval $ac_try) 2>&5
1607   ac_status=$?
1608   echo "$as_me:1608: \$? = $ac_status" >&5
1609   (exit $ac_status); }; }; then
1610     cross_compiling=no
1611   else
1612     if test "$cross_compiling" = maybe; then
1613         cross_compiling=yes
1614     else
1615         { { echo "$as_me:1615: error: cannot run C compiled programs.
1616 If you meant to cross compile, use \`--host'." >&5
1617 echo "$as_me: error: cannot run C compiled programs.
1618 If you meant to cross compile, use \`--host'." >&2;}
1619    { (exit 1); exit 1; }; }
1620     fi
1621   fi
1622 fi
1623 echo "$as_me:1623: result: yes" >&5
1624 echo "${ECHO_T}yes" >&6
1625
1626 rm -f a.out a.exe conftest$ac_cv_exeext
1627 ac_clean_files=$ac_clean_files_save
1628 # Check the compiler produces executables we can run.  If not, either
1629 # the compiler is broken, or we cross compile.
1630 echo "$as_me:1630: checking whether we are cross compiling" >&5
1631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1632 echo "$as_me:1632: result: $cross_compiling" >&5
1633 echo "${ECHO_T}$cross_compiling" >&6
1634
1635 echo "$as_me:1635: checking for executable suffix" >&5
1636 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1637 if { (eval echo "$as_me:1637: \"$ac_link\"") >&5
1638   (eval $ac_link) 2>&5
1639   ac_status=$?
1640   echo "$as_me:1640: \$? = $ac_status" >&5
1641   (exit $ac_status); }; then
1642   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1643 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1644 # work properly (i.e., refer to `conftest.exe'), while it won't with
1645 # `rm'.
1646 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1647   case $ac_file in
1648     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1649     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1650           export ac_cv_exeext
1651           break;;
1652     * ) break;;
1653   esac
1654 done
1655 else
1656   { { echo "$as_me:1656: error: cannot compute EXEEXT: cannot compile and link" >&5
1657 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1658    { (exit 1); exit 1; }; }
1659 fi
1660
1661 rm -f conftest$ac_cv_exeext
1662 echo "$as_me:1662: result: $ac_cv_exeext" >&5
1663 echo "${ECHO_T}$ac_cv_exeext" >&6
1664
1665 rm -f conftest.$ac_ext
1666 EXEEXT=$ac_cv_exeext
1667 ac_exeext=$EXEEXT
1668 echo "$as_me:1668: checking for object suffix" >&5
1669 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1670 if test "${ac_cv_objext+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   cat >conftest.$ac_ext <<_ACEOF
1674 #line 1674 "configure"
1675 #include "confdefs.h"
1676
1677 int
1678 main ()
1679 {
1680
1681   ;
1682   return 0;
1683 }
1684 _ACEOF
1685 rm -f conftest.o conftest.obj
1686 if { (eval echo "$as_me:1686: \"$ac_compile\"") >&5
1687   (eval $ac_compile) 2>&5
1688   ac_status=$?
1689   echo "$as_me:1689: \$? = $ac_status" >&5
1690   (exit $ac_status); }; then
1691   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1692   case $ac_file in
1693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1694     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1695        break;;
1696   esac
1697 done
1698 else
1699   echo "$as_me: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1701 { { echo "$as_me:1701: error: cannot compute OBJEXT: cannot compile" >&5
1702 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1703    { (exit 1); exit 1; }; }
1704 fi
1705
1706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1707 fi
1708 echo "$as_me:1708: result: $ac_cv_objext" >&5
1709 echo "${ECHO_T}$ac_cv_objext" >&6
1710 OBJEXT=$ac_cv_objext
1711 ac_objext=$OBJEXT
1712 echo "$as_me:1712: checking whether we are using the GNU C compiler" >&5
1713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   cat >conftest.$ac_ext <<_ACEOF
1718 #line 1718 "configure"
1719 #include "confdefs.h"
1720
1721 int
1722 main ()
1723 {
1724 #ifndef __GNUC__
1725        choke me
1726 #endif
1727
1728   ;
1729   return 0;
1730 }
1731 _ACEOF
1732 rm -f conftest.$ac_objext
1733 if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5
1734   (eval $ac_compile) 2>&5
1735   ac_status=$?
1736   echo "$as_me:1736: \$? = $ac_status" >&5
1737   (exit $ac_status); } &&
1738          { ac_try='test -s conftest.$ac_objext'
1739   { (eval echo "$as_me:1739: \"$ac_try\"") >&5
1740   (eval $ac_try) 2>&5
1741   ac_status=$?
1742   echo "$as_me:1742: \$? = $ac_status" >&5
1743   (exit $ac_status); }; }; then
1744   ac_compiler_gnu=yes
1745 else
1746   echo "$as_me: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 ac_compiler_gnu=no
1749 fi
1750 rm -f conftest.$ac_objext conftest.$ac_ext
1751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1752
1753 fi
1754 echo "$as_me:1754: result: $ac_cv_c_compiler_gnu" >&5
1755 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1756 GCC=`test $ac_compiler_gnu = yes && echo yes`
1757 ac_test_CFLAGS=${CFLAGS+set}
1758 ac_save_CFLAGS=$CFLAGS
1759 CFLAGS="-g"
1760 echo "$as_me:1760: checking whether $CC accepts -g" >&5
1761 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1762 if test "${ac_cv_prog_cc_g+set}" = set; then
1763   echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765   cat >conftest.$ac_ext <<_ACEOF
1766 #line 1766 "configure"
1767 #include "confdefs.h"
1768
1769 int
1770 main ()
1771 {
1772
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779   (eval $ac_compile) 2>&5
1780   ac_status=$?
1781   echo "$as_me:1781: \$? = $ac_status" >&5
1782   (exit $ac_status); } &&
1783          { ac_try='test -s conftest.$ac_objext'
1784   { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1785   (eval $ac_try) 2>&5
1786   ac_status=$?
1787   echo "$as_me:1787: \$? = $ac_status" >&5
1788   (exit $ac_status); }; }; then
1789   ac_cv_prog_cc_g=yes
1790 else
1791   echo "$as_me: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 ac_cv_prog_cc_g=no
1794 fi
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 echo "$as_me:1797: result: $ac_cv_prog_cc_g" >&5
1798 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1799 if test "$ac_test_CFLAGS" = set; then
1800   CFLAGS=$ac_save_CFLAGS
1801 elif test $ac_cv_prog_cc_g = yes; then
1802   if test "$GCC" = yes; then
1803     CFLAGS="-g -O2"
1804   else
1805     CFLAGS="-g"
1806   fi
1807 else
1808   if test "$GCC" = yes; then
1809     CFLAGS="-O2"
1810   else
1811     CFLAGS=
1812   fi
1813 fi
1814 # Some people use a C++ compiler to compile C.  Since we use `exit',
1815 # in C++ we need to declare it.  In case someone uses the same compiler
1816 # for both compiling C and C++ we need to have the C++ compiler decide
1817 # the declaration of exit, since it's the most demanding environment.
1818 cat >conftest.$ac_ext <<_ACEOF
1819 #ifndef __cplusplus
1820   choke me
1821 #endif
1822 _ACEOF
1823 rm -f conftest.$ac_objext
1824 if { (eval echo "$as_me:1824: \"$ac_compile\"") >&5
1825   (eval $ac_compile) 2>&5
1826   ac_status=$?
1827   echo "$as_me:1827: \$? = $ac_status" >&5
1828   (exit $ac_status); } &&
1829          { ac_try='test -s conftest.$ac_objext'
1830   { (eval echo "$as_me:1830: \"$ac_try\"") >&5
1831   (eval $ac_try) 2>&5
1832   ac_status=$?
1833   echo "$as_me:1833: \$? = $ac_status" >&5
1834   (exit $ac_status); }; }; then
1835   for ac_declaration in \
1836    ''\
1837    '#include <stdlib.h>' \
1838    'extern "C" void std::exit (int) throw (); using std::exit;' \
1839    'extern "C" void std::exit (int); using std::exit;' \
1840    'extern "C" void exit (int) throw ();' \
1841    'extern "C" void exit (int);' \
1842    'void exit (int);'
1843 do
1844   cat >conftest.$ac_ext <<_ACEOF
1845 #line 1845 "configure"
1846 #include "confdefs.h"
1847 #include <stdlib.h>
1848 $ac_declaration
1849 int
1850 main ()
1851 {
1852 exit (42);
1853   ;
1854   return 0;
1855 }
1856 _ACEOF
1857 rm -f conftest.$ac_objext
1858 if { (eval echo "$as_me:1858: \"$ac_compile\"") >&5
1859   (eval $ac_compile) 2>&5
1860   ac_status=$?
1861   echo "$as_me:1861: \$? = $ac_status" >&5
1862   (exit $ac_status); } &&
1863          { ac_try='test -s conftest.$ac_objext'
1864   { (eval echo "$as_me:1864: \"$ac_try\"") >&5
1865   (eval $ac_try) 2>&5
1866   ac_status=$?
1867   echo "$as_me:1867: \$? = $ac_status" >&5
1868   (exit $ac_status); }; }; then
1869   :
1870 else
1871   echo "$as_me: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 continue
1874 fi
1875 rm -f conftest.$ac_objext conftest.$ac_ext
1876   cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879 $ac_declaration
1880 int
1881 main ()
1882 {
1883 exit (42);
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
1890   (eval $ac_compile) 2>&5
1891   ac_status=$?
1892   echo "$as_me:1892: \$? = $ac_status" >&5
1893   (exit $ac_status); } &&
1894          { ac_try='test -s conftest.$ac_objext'
1895   { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1896   (eval $ac_try) 2>&5
1897   ac_status=$?
1898   echo "$as_me:1898: \$? = $ac_status" >&5
1899   (exit $ac_status); }; }; then
1900   break
1901 else
1902   echo "$as_me: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1904 fi
1905 rm -f conftest.$ac_objext conftest.$ac_ext
1906 done
1907 rm -f conftest*
1908 if test -n "$ac_declaration"; then
1909   echo '#ifdef __cplusplus' >>confdefs.h
1910   echo $ac_declaration      >>confdefs.h
1911   echo '#endif'             >>confdefs.h
1912 fi
1913
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 fi
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1919 ac_ext=c
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 echo "$as_me:1930: checking how to run the C preprocessor" >&5
1931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1932 # On Suns, sometimes $CPP names a directory.
1933 if test -n "$CPP" && test -d "$CPP"; then
1934   CPP=
1935 fi
1936 if test -z "$CPP"; then
1937   if test "${ac_cv_prog_CPP+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940       # Double quotes because CPP needs to be expanded
1941     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1942     do
1943       ac_preproc_ok=false
1944 for ac_c_preproc_warn_flag in '' yes
1945 do
1946   # Use a header file that comes with gcc, so configuring glibc
1947   # with a fresh cross-compiler works.
1948   # On the NeXT, cc -E runs the code through the compiler's parser,
1949   # not just through cpp. "Syntax error" is here to catch this case.
1950   cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1953 #include <assert.h>
1954                      Syntax error
1955 _ACEOF
1956 if { (eval echo "$as_me:1956: \"$ac_cpp conftest.$ac_ext\"") >&5
1957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1958   ac_status=$?
1959   egrep -v '^ *\+' conftest.er1 >conftest.err
1960   rm -f conftest.er1
1961   cat conftest.err >&5
1962   echo "$as_me:1962: \$? = $ac_status" >&5
1963   (exit $ac_status); } >/dev/null; then
1964   if test -s conftest.err; then
1965     ac_cpp_err=$ac_c_preproc_warn_flag
1966   else
1967     ac_cpp_err=
1968   fi
1969 else
1970   ac_cpp_err=yes
1971 fi
1972 if test -z "$ac_cpp_err"; then
1973   :
1974 else
1975   echo "$as_me: failed program was:" >&5
1976   cat conftest.$ac_ext >&5
1977   # Broken: fails on valid input.
1978 continue
1979 fi
1980 rm -f conftest.err conftest.$ac_ext
1981
1982   # OK, works on sane cases.  Now check whether non-existent headers
1983   # can be detected and how.
1984   cat >conftest.$ac_ext <<_ACEOF
1985 #line 1985 "configure"
1986 #include "confdefs.h"
1987 #include <ac_nonexistent.h>
1988 _ACEOF
1989 if { (eval echo "$as_me:1989: \"$ac_cpp conftest.$ac_ext\"") >&5
1990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1991   ac_status=$?
1992   egrep -v '^ *\+' conftest.er1 >conftest.err
1993   rm -f conftest.er1
1994   cat conftest.err >&5
1995   echo "$as_me:1995: \$? = $ac_status" >&5
1996   (exit $ac_status); } >/dev/null; then
1997   if test -s conftest.err; then
1998     ac_cpp_err=$ac_c_preproc_warn_flag
1999   else
2000     ac_cpp_err=
2001   fi
2002 else
2003   ac_cpp_err=yes
2004 fi
2005 if test -z "$ac_cpp_err"; then
2006   # Broken: success on invalid input.
2007 continue
2008 else
2009   echo "$as_me: failed program was:" >&5
2010   cat conftest.$ac_ext >&5
2011   # Passes both tests.
2012 ac_preproc_ok=:
2013 break
2014 fi
2015 rm -f conftest.err conftest.$ac_ext
2016
2017 done
2018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2019 rm -f conftest.err conftest.$ac_ext
2020 if $ac_preproc_ok; then
2021   break
2022 fi
2023
2024     done
2025     ac_cv_prog_CPP=$CPP
2026
2027 fi
2028   CPP=$ac_cv_prog_CPP
2029 else
2030   ac_cv_prog_CPP=$CPP
2031 fi
2032 echo "$as_me:2032: result: $CPP" >&5
2033 echo "${ECHO_T}$CPP" >&6
2034 ac_preproc_ok=false
2035 for ac_c_preproc_warn_flag in '' yes
2036 do
2037   # Use a header file that comes with gcc, so configuring glibc
2038   # with a fresh cross-compiler works.
2039   # On the NeXT, cc -E runs the code through the compiler's parser,
2040   # not just through cpp. "Syntax error" is here to catch this case.
2041   cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2044 #include <assert.h>
2045                      Syntax error
2046 _ACEOF
2047 if { (eval echo "$as_me:2047: \"$ac_cpp conftest.$ac_ext\"") >&5
2048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2049   ac_status=$?
2050   egrep -v '^ *\+' conftest.er1 >conftest.err
2051   rm -f conftest.er1
2052   cat conftest.err >&5
2053   echo "$as_me:2053: \$? = $ac_status" >&5
2054   (exit $ac_status); } >/dev/null; then
2055   if test -s conftest.err; then
2056     ac_cpp_err=$ac_c_preproc_warn_flag
2057   else
2058     ac_cpp_err=
2059   fi
2060 else
2061   ac_cpp_err=yes
2062 fi
2063 if test -z "$ac_cpp_err"; then
2064   :
2065 else
2066   echo "$as_me: failed program was:" >&5
2067   cat conftest.$ac_ext >&5
2068   # Broken: fails on valid input.
2069 continue
2070 fi
2071 rm -f conftest.err conftest.$ac_ext
2072
2073   # OK, works on sane cases.  Now check whether non-existent headers
2074   # can be detected and how.
2075   cat >conftest.$ac_ext <<_ACEOF
2076 #line 2076 "configure"
2077 #include "confdefs.h"
2078 #include <ac_nonexistent.h>
2079 _ACEOF
2080 if { (eval echo "$as_me:2080: \"$ac_cpp conftest.$ac_ext\"") >&5
2081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2082   ac_status=$?
2083   egrep -v '^ *\+' conftest.er1 >conftest.err
2084   rm -f conftest.er1
2085   cat conftest.err >&5
2086   echo "$as_me:2086: \$? = $ac_status" >&5
2087   (exit $ac_status); } >/dev/null; then
2088   if test -s conftest.err; then
2089     ac_cpp_err=$ac_c_preproc_warn_flag
2090   else
2091     ac_cpp_err=
2092   fi
2093 else
2094   ac_cpp_err=yes
2095 fi
2096 if test -z "$ac_cpp_err"; then
2097   # Broken: success on invalid input.
2098 continue
2099 else
2100   echo "$as_me: failed program was:" >&5
2101   cat conftest.$ac_ext >&5
2102   # Passes both tests.
2103 ac_preproc_ok=:
2104 break
2105 fi
2106 rm -f conftest.err conftest.$ac_ext
2107
2108 done
2109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2110 rm -f conftest.err conftest.$ac_ext
2111 if $ac_preproc_ok; then
2112   :
2113 else
2114   { { echo "$as_me:2114: error: C preprocessor \"$CPP\" fails sanity check" >&5
2115 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2116    { (exit 1); exit 1; }; }
2117 fi
2118
2119 ac_ext=c
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124
2125 echo "$as_me:2125: checking for ANSI C header files" >&5
2126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2127 if test "${ac_cv_header_stdc+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   cat >conftest.$ac_ext <<_ACEOF
2131 #line 2131 "configure"
2132 #include "confdefs.h"
2133 #include <stdlib.h>
2134 #include <stdarg.h>
2135 #include <string.h>
2136 #include <float.h>
2137
2138 _ACEOF
2139 if { (eval echo "$as_me:2139: \"$ac_cpp conftest.$ac_ext\"") >&5
2140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2141   ac_status=$?
2142   egrep -v '^ *\+' conftest.er1 >conftest.err
2143   rm -f conftest.er1
2144   cat conftest.err >&5
2145   echo "$as_me:2145: \$? = $ac_status" >&5
2146   (exit $ac_status); } >/dev/null; then
2147   if test -s conftest.err; then
2148     ac_cpp_err=$ac_c_preproc_warn_flag
2149   else
2150     ac_cpp_err=
2151   fi
2152 else
2153   ac_cpp_err=yes
2154 fi
2155 if test -z "$ac_cpp_err"; then
2156   ac_cv_header_stdc=yes
2157 else
2158   echo "$as_me: failed program was:" >&5
2159   cat conftest.$ac_ext >&5
2160   ac_cv_header_stdc=no
2161 fi
2162 rm -f conftest.err conftest.$ac_ext
2163
2164 if test $ac_cv_header_stdc = yes; then
2165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2166   cat >conftest.$ac_ext <<_ACEOF
2167 #line 2167 "configure"
2168 #include "confdefs.h"
2169 #include <string.h>
2170
2171 _ACEOF
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173   egrep "memchr" >/dev/null 2>&1; then
2174   :
2175 else
2176   ac_cv_header_stdc=no
2177 fi
2178 rm -f conftest*
2179
2180 fi
2181
2182 if test $ac_cv_header_stdc = yes; then
2183   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2184   cat >conftest.$ac_ext <<_ACEOF
2185 #line 2185 "configure"
2186 #include "confdefs.h"
2187 #include <stdlib.h>
2188
2189 _ACEOF
2190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2191   egrep "free" >/dev/null 2>&1; then
2192   :
2193 else
2194   ac_cv_header_stdc=no
2195 fi
2196 rm -f conftest*
2197
2198 fi
2199
2200 if test $ac_cv_header_stdc = yes; then
2201   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2202   if test "$cross_compiling" = yes; then
2203   :
2204 else
2205   cat >conftest.$ac_ext <<_ACEOF
2206 #line 2206 "configure"
2207 #include "confdefs.h"
2208 #include <ctype.h>
2209 #if ((' ' & 0x0FF) == 0x020)
2210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2212 #else
2213 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2214                      || ('j' <= (c) && (c) <= 'r') \
2215                      || ('s' <= (c) && (c) <= 'z'))
2216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2217 #endif
2218
2219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2220 int
2221 main ()
2222 {
2223   int i;
2224   for (i = 0; i < 256; i++)
2225     if (XOR (islower (i), ISLOWER (i))
2226         || toupper (i) != TOUPPER (i))
2227       exit(2);
2228   exit (0);
2229 }
2230 _ACEOF
2231 rm -f conftest$ac_exeext
2232 if { (eval echo "$as_me:2232: \"$ac_link\"") >&5
2233   (eval $ac_link) 2>&5
2234   ac_status=$?
2235   echo "$as_me:2235: \$? = $ac_status" >&5
2236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2237   { (eval echo "$as_me:2237: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:2240: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   :
2243 else
2244   echo "$as_me: program exited with status $ac_status" >&5
2245 echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 ac_cv_header_stdc=no
2248 fi
2249 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 fi
2252 fi
2253 echo "$as_me:2253: result: $ac_cv_header_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2255 if test $ac_cv_header_stdc = yes; then
2256
2257 cat >>confdefs.h <<\EOF
2258 #define STDC_HEADERS 1
2259 EOF
2260
2261 fi
2262
2263 for ac_prog in 'bison -y' byacc
2264 do
2265   # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:2267: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_YACC+set}" = set; then
2270   echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272   if test -n "$YACC"; then
2273   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2274 else
2275   ac_save_IFS=$IFS; IFS=$ac_path_separator
2276 ac_dummy="$PATH"
2277 for ac_dir in $ac_dummy; do
2278   IFS=$ac_save_IFS
2279   test -z "$ac_dir" && ac_dir=.
2280   $as_executable_p "$ac_dir/$ac_word" || continue
2281 ac_cv_prog_YACC="$ac_prog"
2282 echo "$as_me:2282: found $ac_dir/$ac_word" >&5
2283 break
2284 done
2285
2286 fi
2287 fi
2288 YACC=$ac_cv_prog_YACC
2289 if test -n "$YACC"; then
2290   echo "$as_me:2290: result: $YACC" >&5
2291 echo "${ECHO_T}$YACC" >&6
2292 else
2293   echo "$as_me:2293: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297   test -n "$YACC" && break
2298 done
2299 test -n "$YACC" || YACC="yacc"
2300
2301 missing_dir=`cd $ac_aux_dir && pwd`
2302 for ac_prog in flex lex
2303 do
2304   # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 echo "$as_me:2306: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_LEX+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$LEX"; then
2312   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2313 else
2314   ac_save_IFS=$IFS; IFS=$ac_path_separator
2315 ac_dummy="$PATH"
2316 for ac_dir in $ac_dummy; do
2317   IFS=$ac_save_IFS
2318   test -z "$ac_dir" && ac_dir=.
2319   $as_executable_p "$ac_dir/$ac_word" || continue
2320 ac_cv_prog_LEX="$ac_prog"
2321 echo "$as_me:2321: found $ac_dir/$ac_word" >&5
2322 break
2323 done
2324
2325 fi
2326 fi
2327 LEX=$ac_cv_prog_LEX
2328 if test -n "$LEX"; then
2329   echo "$as_me:2329: result: $LEX" >&5
2330 echo "${ECHO_T}$LEX" >&6
2331 else
2332   echo "$as_me:2332: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2334 fi
2335
2336   test -n "$LEX" && break
2337 done
2338 test -n "$LEX" || LEX=""$missing_dir/missing flex""
2339
2340 for ac_prog in flex lex
2341 do
2342   # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 echo "$as_me:2344: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2346 if test "${ac_cv_prog_LEX+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$LEX"; then
2350   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2351 else
2352   ac_save_IFS=$IFS; IFS=$ac_path_separator
2353 ac_dummy="$PATH"
2354 for ac_dir in $ac_dummy; do
2355   IFS=$ac_save_IFS
2356   test -z "$ac_dir" && ac_dir=.
2357   $as_executable_p "$ac_dir/$ac_word" || continue
2358 ac_cv_prog_LEX="$ac_prog"
2359 echo "$as_me:2359: found $ac_dir/$ac_word" >&5
2360 break
2361 done
2362
2363 fi
2364 fi
2365 LEX=$ac_cv_prog_LEX
2366 if test -n "$LEX"; then
2367   echo "$as_me:2367: result: $LEX" >&5
2368 echo "${ECHO_T}$LEX" >&6
2369 else
2370   echo "$as_me:2370: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2372 fi
2373
2374   test -n "$LEX" && break
2375 done
2376 test -n "$LEX" || LEX=":"
2377
2378 if test -z "$LEXLIB"
2379 then
2380   echo "$as_me:2380: checking for yywrap in -lfl" >&5
2381 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2382 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   ac_check_lib_save_LIBS=$LIBS
2386 LIBS="-lfl  $LIBS"
2387 cat >conftest.$ac_ext <<_ACEOF
2388 #line 2388 "configure"
2389 #include "confdefs.h"
2390
2391 /* Override any gcc2 internal prototype to avoid an error.  */
2392 #ifdef __cplusplus
2393 extern "C"
2394 #endif
2395 /* We use char because int might match the return type of a gcc2
2396    builtin and then its argument prototype would still apply.  */
2397 char yywrap ();
2398 int
2399 main ()
2400 {
2401 yywrap ();
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { (eval echo "$as_me:2407: \"$ac_link\"") >&5
2408   (eval $ac_link) 2>&5
2409   ac_status=$?
2410   echo "$as_me:2410: \$? = $ac_status" >&5
2411   (exit $ac_status); } &&
2412          { ac_try='test -s conftest$ac_exeext'
2413   { (eval echo "$as_me:2413: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:2416: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   ac_cv_lib_fl_yywrap=yes
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 ac_cv_lib_fl_yywrap=no
2423 fi
2424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2425 LIBS=$ac_check_lib_save_LIBS
2426 fi
2427 echo "$as_me:2427: result: $ac_cv_lib_fl_yywrap" >&5
2428 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2429 if test $ac_cv_lib_fl_yywrap = yes; then
2430   LEXLIB="-lfl"
2431 else
2432   echo "$as_me:2432: checking for yywrap in -ll" >&5
2433 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2434 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   ac_check_lib_save_LIBS=$LIBS
2438 LIBS="-ll  $LIBS"
2439 cat >conftest.$ac_ext <<_ACEOF
2440 #line 2440 "configure"
2441 #include "confdefs.h"
2442
2443 /* Override any gcc2 internal prototype to avoid an error.  */
2444 #ifdef __cplusplus
2445 extern "C"
2446 #endif
2447 /* We use char because int might match the return type of a gcc2
2448    builtin and then its argument prototype would still apply.  */
2449 char yywrap ();
2450 int
2451 main ()
2452 {
2453 yywrap ();
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:2459: \"$ac_link\"") >&5
2460   (eval $ac_link) 2>&5
2461   ac_status=$?
2462   echo "$as_me:2462: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -s conftest$ac_exeext'
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   ac_cv_lib_l_yywrap=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 ac_cv_lib_l_yywrap=no
2475 fi
2476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2477 LIBS=$ac_check_lib_save_LIBS
2478 fi
2479 echo "$as_me:2479: result: $ac_cv_lib_l_yywrap" >&5
2480 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2481 if test $ac_cv_lib_l_yywrap = yes; then
2482   LEXLIB="-ll"
2483 fi
2484
2485 fi
2486
2487 fi
2488
2489 if test "x$LEX" != "x:"; then
2490   echo "$as_me:2490: checking lex output file root" >&5
2491 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2492 if test "${ac_cv_prog_lex_root+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   # The minimal lex program is just a single line: %%.  But some broken lexes
2496 # (Solaris, I think it was) want two %% lines, so accommodate them.
2497 echo '%%
2498 %%' | $LEX
2499 if test -f lex.yy.c; then
2500   ac_cv_prog_lex_root=lex.yy
2501 elif test -f lexyy.c; then
2502   ac_cv_prog_lex_root=lexyy
2503 else
2504   { { echo "$as_me:2504: error: cannot find output from $LEX; giving up" >&5
2505 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2506    { (exit 1); exit 1; }; }
2507 fi
2508 fi
2509 echo "$as_me:2509: result: $ac_cv_prog_lex_root" >&5
2510 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2511 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2512
2513 echo "$as_me:2513: checking whether yytext is a pointer" >&5
2514 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2515 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   # POSIX says lex can declare yytext either as a pointer or an array; the
2519 # default is implementation-dependent. Figure out which it is, since
2520 # not all implementations provide the %pointer and %array declarations.
2521 ac_cv_prog_lex_yytext_pointer=no
2522 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2523 ac_save_LIBS=$LIBS
2524 LIBS="$LIBS $LEXLIB"
2525 cat >conftest.$ac_ext <<_ACEOF
2526 `cat $LEX_OUTPUT_ROOT.c`
2527 _ACEOF
2528 rm -f conftest.$ac_objext conftest$ac_exeext
2529 if { (eval echo "$as_me:2529: \"$ac_link\"") >&5
2530   (eval $ac_link) 2>&5
2531   ac_status=$?
2532   echo "$as_me:2532: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -s conftest$ac_exeext'
2535   { (eval echo "$as_me:2535: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:2538: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   ac_cv_prog_lex_yytext_pointer=yes
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2544 fi
2545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2546 LIBS=$ac_save_LIBS
2547 rm -f "${LEX_OUTPUT_ROOT}.c"
2548
2549 fi
2550 echo "$as_me:2550: result: $ac_cv_prog_lex_yytext_pointer" >&5
2551 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2552 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2553
2554 cat >>confdefs.h <<\EOF
2555 #define YYTEXT_POINTER 1
2556 EOF
2557
2558 fi
2559
2560 fi
2561
2562 # Find a good install program.  We prefer a C program (faster),
2563 # so one script is as good as another.  But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2568 # AIX /bin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # ./install, which can be erroneously created by make from ./install.sh.
2574 echo "$as_me:2574: checking for a BSD compatible install" >&5
2575 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2576 if test -z "$INSTALL"; then
2577 if test "${ac_cv_path_install+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580     ac_save_IFS=$IFS; IFS=$ac_path_separator
2581   for ac_dir in $PATH; do
2582     IFS=$ac_save_IFS
2583     # Account for people who put trailing slashes in PATH elements.
2584     case $ac_dir/ in
2585     / | ./ | .// | /cC/* \
2586     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2587     | /usr/ucb/* ) ;;
2588     *)
2589       # OSF1 and SCO ODT 3.0 have their own names for install.
2590       # Don't use installbsd from OSF since it installs stuff as root
2591       # by default.
2592       for ac_prog in ginstall scoinst install; do
2593         if $as_executable_p "$ac_dir/$ac_prog"; then
2594           if test $ac_prog = install &&
2595             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2596             # AIX install.  It has an incompatible calling convention.
2597             :
2598           elif test $ac_prog = install &&
2599             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2600             # program-specific install script used by HP pwplus--don't use.
2601             :
2602           else
2603             ac_cv_path_install="$ac_dir/$ac_prog -c"
2604             break 2
2605           fi
2606         fi
2607       done
2608       ;;
2609     esac
2610   done
2611
2612 fi
2613   if test "${ac_cv_path_install+set}" = set; then
2614     INSTALL=$ac_cv_path_install
2615   else
2616     # As a last resort, use the slow shell script.  We don't cache a
2617     # path for INSTALL within a source directory, because that will
2618     # break other packages using the cache if that directory is
2619     # removed, or if the path is relative.
2620     INSTALL=$ac_install_sh
2621   fi
2622 fi
2623 echo "$as_me:2623: result: $INSTALL" >&5
2624 echo "${ECHO_T}$INSTALL" >&6
2625
2626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2627 # It thinks the first close brace ends the variable substitution.
2628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2629
2630 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2631
2632 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2633
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 echo "$as_me:2639: checking how to run the C preprocessor" >&5
2640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2641 # On Suns, sometimes $CPP names a directory.
2642 if test -n "$CPP" && test -d "$CPP"; then
2643   CPP=
2644 fi
2645 if test -z "$CPP"; then
2646   if test "${ac_cv_prog_CPP+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649       # Double quotes because CPP needs to be expanded
2650     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2651     do
2652       ac_preproc_ok=false
2653 for ac_c_preproc_warn_flag in '' yes
2654 do
2655   # Use a header file that comes with gcc, so configuring glibc
2656   # with a fresh cross-compiler works.
2657   # On the NeXT, cc -E runs the code through the compiler's parser,
2658   # not just through cpp. "Syntax error" is here to catch this case.
2659   cat >conftest.$ac_ext <<_ACEOF
2660 #line 2660 "configure"
2661 #include "confdefs.h"
2662 #include <assert.h>
2663                      Syntax error
2664 _ACEOF
2665 if { (eval echo "$as_me:2665: \"$ac_cpp conftest.$ac_ext\"") >&5
2666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2667   ac_status=$?
2668   egrep -v '^ *\+' conftest.er1 >conftest.err
2669   rm -f conftest.er1
2670   cat conftest.err >&5
2671   echo "$as_me:2671: \$? = $ac_status" >&5
2672   (exit $ac_status); } >/dev/null; then
2673   if test -s conftest.err; then
2674     ac_cpp_err=$ac_c_preproc_warn_flag
2675   else
2676     ac_cpp_err=
2677   fi
2678 else
2679   ac_cpp_err=yes
2680 fi
2681 if test -z "$ac_cpp_err"; then
2682   :
2683 else
2684   echo "$as_me: failed program was:" >&5
2685   cat conftest.$ac_ext >&5
2686   # Broken: fails on valid input.
2687 continue
2688 fi
2689 rm -f conftest.err conftest.$ac_ext
2690
2691   # OK, works on sane cases.  Now check whether non-existent headers
2692   # can be detected and how.
2693   cat >conftest.$ac_ext <<_ACEOF
2694 #line 2694 "configure"
2695 #include "confdefs.h"
2696 #include <ac_nonexistent.h>
2697 _ACEOF
2698 if { (eval echo "$as_me:2698: \"$ac_cpp conftest.$ac_ext\"") >&5
2699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2700   ac_status=$?
2701   egrep -v '^ *\+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:2704: \$? = $ac_status" >&5
2705   (exit $ac_status); } >/dev/null; then
2706   if test -s conftest.err; then
2707     ac_cpp_err=$ac_c_preproc_warn_flag
2708   else
2709     ac_cpp_err=
2710   fi
2711 else
2712   ac_cpp_err=yes
2713 fi
2714 if test -z "$ac_cpp_err"; then
2715   # Broken: success on invalid input.
2716 continue
2717 else
2718   echo "$as_me: failed program was:" >&5
2719   cat conftest.$ac_ext >&5
2720   # Passes both tests.
2721 ac_preproc_ok=:
2722 break
2723 fi
2724 rm -f conftest.err conftest.$ac_ext
2725
2726 done
2727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2728 rm -f conftest.err conftest.$ac_ext
2729 if $ac_preproc_ok; then
2730   break
2731 fi
2732
2733     done
2734     ac_cv_prog_CPP=$CPP
2735
2736 fi
2737   CPP=$ac_cv_prog_CPP
2738 else
2739   ac_cv_prog_CPP=$CPP
2740 fi
2741 echo "$as_me:2741: result: $CPP" >&5
2742 echo "${ECHO_T}$CPP" >&6
2743 ac_preproc_ok=false
2744 for ac_c_preproc_warn_flag in '' yes
2745 do
2746   # Use a header file that comes with gcc, so configuring glibc
2747   # with a fresh cross-compiler works.
2748   # On the NeXT, cc -E runs the code through the compiler's parser,
2749   # not just through cpp. "Syntax error" is here to catch this case.
2750   cat >conftest.$ac_ext <<_ACEOF
2751 #line 2751 "configure"
2752 #include "confdefs.h"
2753 #include <assert.h>
2754                      Syntax error
2755 _ACEOF
2756 if { (eval echo "$as_me:2756: \"$ac_cpp conftest.$ac_ext\"") >&5
2757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2758   ac_status=$?
2759   egrep -v '^ *\+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:2762: \$? = $ac_status" >&5
2763   (exit $ac_status); } >/dev/null; then
2764   if test -s conftest.err; then
2765     ac_cpp_err=$ac_c_preproc_warn_flag
2766   else
2767     ac_cpp_err=
2768   fi
2769 else
2770   ac_cpp_err=yes
2771 fi
2772 if test -z "$ac_cpp_err"; then
2773   :
2774 else
2775   echo "$as_me: failed program was:" >&5
2776   cat conftest.$ac_ext >&5
2777   # Broken: fails on valid input.
2778 continue
2779 fi
2780 rm -f conftest.err conftest.$ac_ext
2781
2782   # OK, works on sane cases.  Now check whether non-existent headers
2783   # can be detected and how.
2784   cat >conftest.$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2787 #include <ac_nonexistent.h>
2788 _ACEOF
2789 if { (eval echo "$as_me:2789: \"$ac_cpp conftest.$ac_ext\"") >&5
2790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791   ac_status=$?
2792   egrep -v '^ *\+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:2795: \$? = $ac_status" >&5
2796   (exit $ac_status); } >/dev/null; then
2797   if test -s conftest.err; then
2798     ac_cpp_err=$ac_c_preproc_warn_flag
2799   else
2800     ac_cpp_err=
2801   fi
2802 else
2803   ac_cpp_err=yes
2804 fi
2805 if test -z "$ac_cpp_err"; then
2806   # Broken: success on invalid input.
2807 continue
2808 else
2809   echo "$as_me: failed program was:" >&5
2810   cat conftest.$ac_ext >&5
2811   # Passes both tests.
2812 ac_preproc_ok=:
2813 break
2814 fi
2815 rm -f conftest.err conftest.$ac_ext
2816
2817 done
2818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2819 rm -f conftest.err conftest.$ac_ext
2820 if $ac_preproc_ok; then
2821   :
2822 else
2823   { { echo "$as_me:2823: error: C preprocessor \"$CPP\" fails sanity check" >&5
2824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2825    { (exit 1); exit 1; }; }
2826 fi
2827
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833
2834 # Extract the first word of "rm", so it can be a program name with args.
2835 set dummy rm; ac_word=$2
2836 echo "$as_me:2836: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_path_RM+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   case $RM in
2842   [\\/]* | ?:[\\/]*)
2843   ac_cv_path_RM="$RM" # Let the user override the test with a path.
2844   ;;
2845   *)
2846   ac_save_IFS=$IFS; IFS=$ac_path_separator
2847 ac_dummy="$PATH"
2848 for ac_dir in $ac_dummy; do
2849   IFS=$ac_save_IFS
2850   test -z "$ac_dir" && ac_dir=.
2851   if $as_executable_p "$ac_dir/$ac_word"; then
2852    ac_cv_path_RM="$ac_dir/$ac_word"
2853    echo "$as_me:2853: found $ac_dir/$ac_word" >&5
2854    break
2855 fi
2856 done
2857
2858   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2859   ;;
2860 esac
2861 fi
2862 RM=$ac_cv_path_RM
2863
2864 if test -n "$RM"; then
2865   echo "$as_me:2865: result: $RM" >&5
2866 echo "${ECHO_T}$RM" >&6
2867 else
2868   echo "$as_me:2868: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872 # Extract the first word of "mv", so it can be a program name with args.
2873 set dummy mv; ac_word=$2
2874 echo "$as_me:2874: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_path_MV+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   case $MV in
2880   [\\/]* | ?:[\\/]*)
2881   ac_cv_path_MV="$MV" # Let the user override the test with a path.
2882   ;;
2883   *)
2884   ac_save_IFS=$IFS; IFS=$ac_path_separator
2885 ac_dummy="$PATH"
2886 for ac_dir in $ac_dummy; do
2887   IFS=$ac_save_IFS
2888   test -z "$ac_dir" && ac_dir=.
2889   if $as_executable_p "$ac_dir/$ac_word"; then
2890    ac_cv_path_MV="$ac_dir/$ac_word"
2891    echo "$as_me:2891: found $ac_dir/$ac_word" >&5
2892    break
2893 fi
2894 done
2895
2896   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
2897   ;;
2898 esac
2899 fi
2900 MV=$ac_cv_path_MV
2901
2902 if test -n "$MV"; then
2903   echo "$as_me:2903: result: $MV" >&5
2904 echo "${ECHO_T}$MV" >&6
2905 else
2906   echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910 # Extract the first word of "tar", so it can be a program name with args.
2911 set dummy tar; ac_word=$2
2912 echo "$as_me:2912: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_path_TAR+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   case $TAR in
2918   [\\/]* | ?:[\\/]*)
2919   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2920   ;;
2921   *)
2922   ac_save_IFS=$IFS; IFS=$ac_path_separator
2923 ac_dummy="$PATH"
2924 for ac_dir in $ac_dummy; do
2925   IFS=$ac_save_IFS
2926   test -z "$ac_dir" && ac_dir=.
2927   if $as_executable_p "$ac_dir/$ac_word"; then
2928    ac_cv_path_TAR="$ac_dir/$ac_word"
2929    echo "$as_me:2929: found $ac_dir/$ac_word" >&5
2930    break
2931 fi
2932 done
2933
2934   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
2935   ;;
2936 esac
2937 fi
2938 TAR=$ac_cv_path_TAR
2939
2940 if test -n "$TAR"; then
2941   echo "$as_me:2941: result: $TAR" >&5
2942 echo "${ECHO_T}$TAR" >&6
2943 else
2944   echo "$as_me:2944: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2946 fi
2947
2948 # Check whether --enable-glibtest or --disable-glibtest was given.
2949 if test "${enable_glibtest+set}" = set; then
2950   enableval="$enable_glibtest"
2951
2952 else
2953   enable_glibtest=yes
2954 fi;
2955
2956   pkg_config_args=glib-2.0
2957   for module in .
2958   do
2959       case "$module" in
2960          gmodule)
2961              pkg_config_args="$pkg_config_args gmodule-2.0"
2962          ;;
2963          gobject)
2964              pkg_config_args="$pkg_config_args gobject-2.0"
2965          ;;
2966          gthread)
2967              pkg_config_args="$pkg_config_args gthread-2.0"
2968          ;;
2969       esac
2970   done
2971
2972   # Extract the first word of "pkg-config", so it can be a program name with args.
2973 set dummy pkg-config; ac_word=$2
2974 echo "$as_me:2974: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   case $PKG_CONFIG in
2980   [\\/]* | ?:[\\/]*)
2981   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2982   ;;
2983   *)
2984   ac_save_IFS=$IFS; IFS=$ac_path_separator
2985 ac_dummy="$PATH"
2986 for ac_dir in $ac_dummy; do
2987   IFS=$ac_save_IFS
2988   test -z "$ac_dir" && ac_dir=.
2989   if $as_executable_p "$ac_dir/$ac_word"; then
2990    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2991    echo "$as_me:2991: found $ac_dir/$ac_word" >&5
2992    break
2993 fi
2994 done
2995
2996   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2997   ;;
2998 esac
2999 fi
3000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3001
3002 if test -n "$PKG_CONFIG"; then
3003   echo "$as_me:3003: result: $PKG_CONFIG" >&5
3004 echo "${ECHO_T}$PKG_CONFIG" >&6
3005 else
3006   echo "$as_me:3006: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008 fi
3009
3010   no_glib=""
3011
3012   if test x$PKG_CONFIG != xno ; then
3013     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
3014       :
3015     else
3016       echo *** pkg-config too old; version 0.7 or better required.
3017       no_glib=yes
3018       PKG_CONFIG=no
3019     fi
3020   fi
3021
3022   ## don't try to run the test against uninstalled libtool libs
3023   if $PKG_CONFIG --uninstalled $pkg_config_args; then
3024         echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
3025         enable_glibtest=no
3026   fi
3027
3028   min_glib_version=1.3.3
3029   echo "$as_me:3029: checking for GLIB - version >= $min_glib_version" >&5
3030 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
3031
3032   if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
3033         :
3034   else
3035         no_glib = yes
3036   fi
3037
3038   if test x"$no_glib" = x ; then
3039     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
3040     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
3041     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
3042
3043     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
3044     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
3045     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
3046            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3047     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
3048            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3049     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
3050            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3051     if test "x$enable_glibtest" = "xyes" ; then
3052       ac_save_CFLAGS="$CFLAGS"
3053       ac_save_LIBS="$LIBS"
3054       CFLAGS="$CFLAGS $GLIB_CFLAGS"
3055       LIBS="$GLIB_LIBS $LIBS"
3056       rm -f conf.glibtest
3057       if test "$cross_compiling" = yes; then
3058   echo $ac_n "cross compiling; assumed OK... $ac_c"
3059 else
3060   cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063
3064 #include <glib.h>
3065 #include <stdio.h>
3066 #include <stdlib.h>
3067
3068 int
3069 main ()
3070 {
3071   int major, minor, micro;
3072   char *tmp_version;
3073
3074   system ("touch conf.glibtest");
3075
3076   /* HP/UX 9 (%@#!) writes to sscanf strings */
3077   tmp_version = g_strdup("$min_glib_version");
3078   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3079      printf("%s, bad version string\n", "$min_glib_version");
3080      exit(1);
3081    }
3082
3083   if ((glib_major_version != $glib_config_major_version) ||
3084       (glib_minor_version != $glib_config_minor_version) ||
3085       (glib_micro_version != $glib_config_micro_version))
3086     {
3087       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
3088              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
3089              glib_major_version, glib_minor_version, glib_micro_version);
3090       printf ("*** was found! If pkg-config was correct, then it is best\n");
3091       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
3092       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3093       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3094       printf("*** required on your system.\n");
3095       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
3096       printf("*** to point to the correct configuration files\n");
3097     }
3098   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
3099            (glib_minor_version != GLIB_MINOR_VERSION) ||
3100            (glib_micro_version != GLIB_MICRO_VERSION))
3101     {
3102       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
3103              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
3104       printf("*** library (version %d.%d.%d)\n",
3105              glib_major_version, glib_minor_version, glib_micro_version);
3106     }
3107   else
3108     {
3109       if ((glib_major_version > major) ||
3110         ((glib_major_version == major) && (glib_minor_version > minor)) ||
3111         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
3112       {
3113         return 0;
3114        }
3115      else
3116       {
3117         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
3118                glib_major_version, glib_minor_version, glib_micro_version);
3119         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
3120                major, minor, micro);
3121         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
3122         printf("***\n");
3123         printf("*** If you have already installed a sufficiently new version, this error\n");
3124         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
3125         printf("*** being found. The easiest way to fix this is to remove the old version\n");
3126         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
3127         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
3128         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3129         printf("*** so that the correct libraries are found at run-time))\n");
3130       }
3131     }
3132   return 1;
3133 }
3134
3135 _ACEOF
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:3137: \"$ac_link\"") >&5
3138   (eval $ac_link) 2>&5
3139   ac_status=$?
3140   echo "$as_me:3140: \$? = $ac_status" >&5
3141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142   { (eval echo "$as_me:3142: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:3145: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   :
3148 else
3149   echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 no_glib=yes
3153 fi
3154 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3155 fi
3156        CFLAGS="$ac_save_CFLAGS"
3157        LIBS="$ac_save_LIBS"
3158      fi
3159   fi
3160   if test "x$no_glib" = x ; then
3161      echo "$as_me:3161: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
3162 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
3163      :
3164   else
3165      echo "$as_me:3165: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167      if test "$PKG_CONFIG" = "no" ; then
3168        echo "*** A new enough version of pkg-config was not found."
3169        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
3170      else
3171        if test -f conf.glibtest ; then
3172         :
3173        else
3174           echo "*** Could not run GLIB test program, checking why..."
3175           CFLAGS="$CFLAGS $GLIB_CFLAGS"
3176           LIBS="$LIBS $GLIB_LIBS"
3177           cat >conftest.$ac_ext <<_ACEOF
3178 #line 3178 "configure"
3179 #include "confdefs.h"
3180
3181 #include <glib.h>
3182 #include <stdio.h>
3183
3184 int
3185 main ()
3186 {
3187  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext conftest$ac_exeext
3193 if { (eval echo "$as_me:3193: \"$ac_link\"") >&5
3194   (eval $ac_link) 2>&5
3195   ac_status=$?
3196   echo "$as_me:3196: \$? = $ac_status" >&5
3197   (exit $ac_status); } &&
3198          { ac_try='test -s conftest$ac_exeext'
3199   { (eval echo "$as_me:3199: \"$ac_try\"") >&5
3200   (eval $ac_try) 2>&5
3201   ac_status=$?
3202   echo "$as_me:3202: \$? = $ac_status" >&5
3203   (exit $ac_status); }; }; then
3204    echo "*** The test program compiled, but did not run. This usually means"
3205           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
3206           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
3207           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3208           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3209           echo "*** is required on your system"
3210           echo "***"
3211           echo "*** If you have an old version installed, it is best to remove it, although"
3212           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216  echo "*** The test program failed to compile or link. See the file config.log for the"
3217           echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
3218           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
3219           echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
3220 fi
3221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3222           CFLAGS="$ac_save_CFLAGS"
3223           LIBS="$ac_save_LIBS"
3224        fi
3225      fi
3226      GLIB_CFLAGS=""
3227      GLIB_LIBS=""
3228      GLIB_GENMARSHAL=""
3229      GOBJECT_QUERY=""
3230      GLIB_MKENUMS=""
3231      :
3232   fi
3233
3234   rm -f conf.glibtest
3235
3236 echo "$as_me:3236: checking whether to enable maintainer-specific portions of Makefiles" >&5
3237 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3238     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3239 if test "${enable_maintainer_mode+set}" = set; then
3240   enableval="$enable_maintainer_mode"
3241   USE_MAINTAINER_MODE=$enableval
3242 else
3243   USE_MAINTAINER_MODE=no
3244 fi;
3245   echo "$as_me:3245: result: $USE_MAINTAINER_MODE" >&5
3246 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3247
3248 if test $USE_MAINTAINER_MODE = yes; then
3249   MAINTAINER_MODE_TRUE=
3250   MAINTAINER_MODE_FALSE='#'
3251 else
3252   MAINTAINER_MODE_TRUE='#'
3253   MAINTAINER_MODE_FALSE=
3254 fi
3255   MAINT=$MAINTAINER_MODE_TRUE
3256
3257 ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
3258 cat >confcache <<\_ACEOF
3259 # This file is a shell script that caches the results of configure
3260 # tests run on this system so they can be shared between configure
3261 # scripts and configure runs, see configure's option --config-cache.
3262 # It is not useful on other systems.  If it contains results you don't
3263 # want to keep, you may remove or edit it.
3264 #
3265 # config.status only pays attention to the cache file if you give it
3266 # the --recheck option to rerun configure.
3267 #
3268 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3270 # following values.
3271
3272 _ACEOF
3273
3274 # The following way of writing the cache mishandles newlines in values,
3275 # but we know of no workaround that is simple, portable, and efficient.
3276 # So, don't put newlines in cache variables' values.
3277 # Ultrix sh set writes to stderr and can't be redirected directly,
3278 # and sets the high bit in the cache file unless we assign to the vars.
3279 {
3280   (set) 2>&1 |
3281     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3282     *ac_space=\ *)
3283       # `set' does not quote correctly, so add quotes (double-quote
3284       # substitution turns \\\\ into \\, and sed turns \\ into \).
3285       sed -n \
3286         "s/'/'\\\\''/g;
3287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3288       ;;
3289     *)
3290       # `set' quotes correctly as required by POSIX, so do not add quotes.
3291       sed -n \
3292         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3293       ;;
3294     esac;
3295 } |
3296   sed '
3297      t clear
3298      : clear
3299      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3300      t end
3301      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3302      : end' >>confcache
3303 if cmp -s $cache_file confcache; then :; else
3304   if test -w $cache_file; then
3305     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3306     cat confcache >$cache_file
3307   else
3308     echo "not updating unwritable cache $cache_file"
3309   fi
3310 fi
3311 rm -f confcache
3312
3313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3314 # Let make expand exec_prefix.
3315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3316
3317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3319 # trailing colons and then remove the whole line if VPATH becomes empty
3320 # (actually we leave an empty line to preserve line numbers).
3321 if test "x$srcdir" = x.; then
3322   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3323 s/:*\$(srcdir):*/:/;
3324 s/:*\${srcdir}:*/:/;
3325 s/:*@srcdir@:*/:/;
3326 s/^\([^=]*=[    ]*\):*/\1/;
3327 s/:*$//;
3328 s/^[^=]*=[      ]*$//;
3329 }'
3330 fi
3331
3332 DEFS=-DHAVE_CONFIG_H
3333
3334 : ${CONFIG_STATUS=./config.status}
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3337 { echo "$as_me:3337: creating $CONFIG_STATUS" >&5
3338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3339 cat >$CONFIG_STATUS <<_ACEOF
3340 #! $SHELL
3341 # Generated automatically by configure.
3342 # Run this file to recreate the current configuration.
3343 # Compiler output produced by configure, useful for debugging
3344 # configure, is in config.log if it exists.
3345
3346 debug=false
3347 SHELL=\${CONFIG_SHELL-$SHELL}
3348 ac_cs_invocation="\$0 \$@"
3349
3350 _ACEOF
3351
3352 cat >>$CONFIG_STATUS <<\_ACEOF
3353 # Be Bourne compatible
3354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3355   emulate sh
3356   NULLCMD=:
3357 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3358   set -o posix
3359 fi
3360
3361 # Name of the executable.
3362 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3363
3364 if expr a : '\(a\)' >/dev/null 2>&1; then
3365   as_expr=expr
3366 else
3367   as_expr=false
3368 fi
3369
3370 rm -f conf$$ conf$$.exe conf$$.file
3371 echo >conf$$.file
3372 if ln -s conf$$.file conf$$ 2>/dev/null; then
3373   # We could just check for DJGPP; but this test a) works b) is more generic
3374   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3375   if test -f conf$$.exe; then
3376     # Don't use ln at all; we don't have any links
3377     as_ln_s='cp -p'
3378   else
3379     as_ln_s='ln -s'
3380   fi
3381 elif ln conf$$.file conf$$ 2>/dev/null; then
3382   as_ln_s=ln
3383 else
3384   as_ln_s='cp -p'
3385 fi
3386 rm -f conf$$ conf$$.exe conf$$.file
3387
3388 as_executable_p="test -f"
3389
3390 # Support unset when possible.
3391 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3392   as_unset=unset
3393 else
3394   as_unset=false
3395 fi
3396
3397 # NLS nuisances.
3398 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3399 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3400 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3401 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3402 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3403 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3404 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3405 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3406
3407 # IFS
3408 # We need space, tab and new line, in precisely that order.
3409 as_nl='
3410 '
3411 IFS="   $as_nl"
3412
3413 # CDPATH.
3414 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3415
3416 exec 6>&1
3417
3418 _ACEOF
3419
3420 # Files that config.status was made for.
3421 if test -n "$ac_config_files"; then
3422   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3423 fi
3424
3425 if test -n "$ac_config_headers"; then
3426   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3427 fi
3428
3429 if test -n "$ac_config_links"; then
3430   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3431 fi
3432
3433 if test -n "$ac_config_commands"; then
3434   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3435 fi
3436
3437 cat >>$CONFIG_STATUS <<\EOF
3438
3439 ac_cs_usage="\
3440 \`$as_me' instantiates files from templates according to the
3441 current configuration.
3442
3443 Usage: $0 [OPTIONS] [FILE]...
3444
3445   -h, --help       print this help, then exit
3446   -V, --version    print version number, then exit
3447   -d, --debug      don't remove temporary files
3448       --recheck    update $as_me by reconfiguring in the same conditions
3449   --file=FILE[:TEMPLATE]
3450                    instantiate the configuration file FILE
3451   --header=FILE[:TEMPLATE]
3452                    instantiate the configuration header FILE
3453
3454 Configuration files:
3455 $config_files
3456
3457 Configuration headers:
3458 $config_headers
3459
3460 Configuration commands:
3461 $config_commands
3462
3463 Report bugs to <bug-autoconf@gnu.org>."
3464 EOF
3465
3466 cat >>$CONFIG_STATUS <<EOF
3467 ac_cs_version="\\
3468 config.status
3469 configured by $0, generated by GNU Autoconf 2.52,
3470   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3471
3472 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3473 Free Software Foundation, Inc.
3474 This config.status script is free software; the Free Software Foundation
3475 gives unlimited permission to copy, distribute and modify it."
3476 srcdir=$srcdir
3477 INSTALL="$INSTALL"
3478 EOF
3479
3480 cat >>$CONFIG_STATUS <<\EOF
3481 # If no file are specified by the user, then we need to provide default
3482 # value.  By we need to know if files were specified by the user.
3483 ac_need_defaults=:
3484 while test $# != 0
3485 do
3486   case $1 in
3487   --*=*)
3488     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3489     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3490     shift
3491     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3492     shift
3493     ;;
3494   -*);;
3495   *) # This is not an option, so the user has probably given explicit
3496      # arguments.
3497      ac_need_defaults=false;;
3498   esac
3499
3500   case $1 in
3501   # Handling of the options.
3502 EOF
3503 cat >>$CONFIG_STATUS <<EOF
3504   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3505     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3506     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3507 EOF
3508 cat >>$CONFIG_STATUS <<\EOF
3509   --version | --vers* | -V )
3510     echo "$ac_cs_version"; exit 0 ;;
3511   --he | --h)
3512     # Conflict between --help and --header
3513     { { echo "$as_me:3513: error: ambiguous option: $1
3514 Try \`$0 --help' for more information." >&5
3515 echo "$as_me: error: ambiguous option: $1
3516 Try \`$0 --help' for more information." >&2;}
3517    { (exit 1); exit 1; }; };;
3518   --help | --hel | -h )
3519     echo "$ac_cs_usage"; exit 0 ;;
3520   --debug | --d* | -d )
3521     debug=: ;;
3522   --file | --fil | --fi | --f )
3523     shift
3524     CONFIG_FILES="$CONFIG_FILES $1"
3525     ac_need_defaults=false;;
3526   --header | --heade | --head | --hea )
3527     shift
3528     CONFIG_HEADERS="$CONFIG_HEADERS $1"
3529     ac_need_defaults=false;;
3530
3531   # This is an error.
3532   -*) { { echo "$as_me:3532: error: unrecognized option: $1
3533 Try \`$0 --help' for more information." >&5
3534 echo "$as_me: error: unrecognized option: $1
3535 Try \`$0 --help' for more information." >&2;}
3536    { (exit 1); exit 1; }; } ;;
3537
3538   *) ac_config_targets="$ac_config_targets $1" ;;
3539
3540   esac
3541   shift
3542 done
3543
3544 exec 5>>config.log
3545 cat >&5 << _ACEOF
3546
3547 ## ----------------------- ##
3548 ## Running config.status.  ##
3549 ## ----------------------- ##
3550
3551 This file was extended by $as_me 2.52, executed with
3552   CONFIG_FILES    = $CONFIG_FILES
3553   CONFIG_HEADERS  = $CONFIG_HEADERS
3554   CONFIG_LINKS    = $CONFIG_LINKS
3555   CONFIG_COMMANDS = $CONFIG_COMMANDS
3556   > $ac_cs_invocation
3557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3558
3559 _ACEOF
3560 EOF
3561
3562 cat >>$CONFIG_STATUS <<EOF
3563 #
3564 # INIT-COMMANDS section.
3565 #
3566
3567 EOF
3568
3569 cat >>$CONFIG_STATUS <<\EOF
3570 for ac_config_target in $ac_config_targets
3571 do
3572   case "$ac_config_target" in
3573   # Handling of arguments.
3574   "gob2.spec" ) CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
3575   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3576   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3577   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3578   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3579   "doc/gob2.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
3580   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3581   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3582   *) { { echo "$as_me:3582: error: invalid argument: $ac_config_target" >&5
3583 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3584    { (exit 1); exit 1; }; };;
3585   esac
3586 done
3587
3588 # If the user did not use the arguments to specify the items to instantiate,
3589 # then the envvar interface is used.  Set only those that are not.
3590 # We use the long form for the default assignment because of an extremely
3591 # bizarre bug on SunOS 4.1.3.
3592 if $ac_need_defaults; then
3593   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3594   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3595   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3596 fi
3597
3598 # Create a temporary directory, and hook for its removal unless debugging.
3599 $debug ||
3600 {
3601   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3602   trap '{ (exit 1); exit 1; }' 1 2 13 15
3603 }
3604
3605 # Create a (secure) tmp directory for tmp files.
3606 : ${TMPDIR=/tmp}
3607 {
3608   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3609   test -n "$tmp" && test -d "$tmp"
3610 }  ||
3611 {
3612   tmp=$TMPDIR/cs$$-$RANDOM
3613   (umask 077 && mkdir $tmp)
3614 } ||
3615 {
3616    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3617    { (exit 1); exit 1; }
3618 }
3619
3620 EOF
3621
3622 cat >>$CONFIG_STATUS <<EOF
3623
3624 #
3625 # CONFIG_FILES section.
3626 #
3627
3628 # No need to generate the scripts if there are no CONFIG_FILES.
3629 # This happens for instance when ./config.status config.h
3630 if test -n "\$CONFIG_FILES"; then
3631   # Protect against being on the right side of a sed subst in config.status.
3632   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3633    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3634 s,@SHELL@,$SHELL,;t t
3635 s,@exec_prefix@,$exec_prefix,;t t
3636 s,@prefix@,$prefix,;t t
3637 s,@program_transform_name@,$program_transform_name,;t t
3638 s,@bindir@,$bindir,;t t
3639 s,@sbindir@,$sbindir,;t t
3640 s,@libexecdir@,$libexecdir,;t t
3641 s,@datadir@,$datadir,;t t
3642 s,@sysconfdir@,$sysconfdir,;t t
3643 s,@sharedstatedir@,$sharedstatedir,;t t
3644 s,@localstatedir@,$localstatedir,;t t
3645 s,@libdir@,$libdir,;t t
3646 s,@includedir@,$includedir,;t t
3647 s,@oldincludedir@,$oldincludedir,;t t
3648 s,@infodir@,$infodir,;t t
3649 s,@mandir@,$mandir,;t t
3650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3655 s,@build_alias@,$build_alias,;t t
3656 s,@host_alias@,$host_alias,;t t
3657 s,@target_alias@,$target_alias,;t t
3658 s,@ECHO_C@,$ECHO_C,;t t
3659 s,@ECHO_N@,$ECHO_N,;t t
3660 s,@ECHO_T@,$ECHO_T,;t t
3661 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3662 s,@DEFS@,$DEFS,;t t
3663 s,@LIBS@,$LIBS,;t t
3664 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3665 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3666 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3667 s,@PACKAGE@,$PACKAGE,;t t
3668 s,@VERSION@,$VERSION,;t t
3669 s,@ACLOCAL@,$ACLOCAL,;t t
3670 s,@AUTOCONF@,$AUTOCONF,;t t
3671 s,@AUTOMAKE@,$AUTOMAKE,;t t
3672 s,@AUTOHEADER@,$AUTOHEADER,;t t
3673 s,@MAKEINFO@,$MAKEINFO,;t t
3674 s,@SET_MAKE@,$SET_MAKE,;t t
3675 s,@SUBDIRS@,$SUBDIRS,;t t
3676 s,@DOINSTGOB@,$DOINSTGOB,;t t
3677 s,@NOINSTGOB@,$NOINSTGOB,;t t
3678 s,@CC@,$CC,;t t
3679 s,@CFLAGS@,$CFLAGS,;t t
3680 s,@LDFLAGS@,$LDFLAGS,;t t
3681 s,@CPPFLAGS@,$CPPFLAGS,;t t
3682 s,@ac_ct_CC@,$ac_ct_CC,;t t
3683 s,@EXEEXT@,$EXEEXT,;t t
3684 s,@OBJEXT@,$OBJEXT,;t t
3685 s,@CPP@,$CPP,;t t
3686 s,@YACC@,$YACC,;t t
3687 s,@LEX@,$LEX,;t t
3688 s,@LEXLIB@,$LEXLIB,;t t
3689 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
3690 s,@RM@,$RM,;t t
3691 s,@MV@,$MV,;t t
3692 s,@TAR@,$TAR,;t t
3693 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
3694 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
3695 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
3696 s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
3697 s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
3698 s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
3699 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3700 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3701 s,@MAINT@,$MAINT,;t t
3702 CEOF
3703
3704 EOF
3705
3706   cat >>$CONFIG_STATUS <<\EOF
3707   # Split the substitutions into bite-sized pieces for seds with
3708   # small command number limits, like on Digital OSF/1 and HP-UX.
3709   ac_max_sed_lines=48
3710   ac_sed_frag=1 # Number of current file.
3711   ac_beg=1 # First line for current file.
3712   ac_end=$ac_max_sed_lines # Line after last line for current file.
3713   ac_more_lines=:
3714   ac_sed_cmds=
3715   while $ac_more_lines; do
3716     if test $ac_beg -gt 1; then
3717       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3718     else
3719       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3720     fi
3721     if test ! -s $tmp/subs.frag; then
3722       ac_more_lines=false
3723     else
3724       # The purpose of the label and of the branching condition is to
3725       # speed up the sed processing (if there are no `@' at all, there
3726       # is no need to browse any of the substitutions).
3727       # These are the two extra sed commands mentioned above.
3728       (echo ':t
3729   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3730       if test -z "$ac_sed_cmds"; then
3731         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3732       else
3733         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3734       fi
3735       ac_sed_frag=`expr $ac_sed_frag + 1`
3736       ac_beg=$ac_end
3737       ac_end=`expr $ac_end + $ac_max_sed_lines`
3738     fi
3739   done
3740   if test -z "$ac_sed_cmds"; then
3741     ac_sed_cmds=cat
3742   fi
3743 fi # test -n "$CONFIG_FILES"
3744
3745 EOF
3746 cat >>$CONFIG_STATUS <<\EOF
3747 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3748   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3749   case $ac_file in
3750   - | *:- | *:-:* ) # input from stdin
3751         cat >$tmp/stdin
3752         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3753         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3754   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3755         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3756   * )   ac_file_in=$ac_file.in ;;
3757   esac
3758
3759   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3760   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3761          X"$ac_file" : 'X\(//\)[^/]' \| \
3762          X"$ac_file" : 'X\(//\)$' \| \
3763          X"$ac_file" : 'X\(/\)' \| \
3764          .     : '\(.\)' 2>/dev/null ||
3765 echo X"$ac_file" |
3766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3767           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3768           /^X\(\/\/\)$/{ s//\1/; q; }
3769           /^X\(\/\).*/{ s//\1/; q; }
3770           s/.*/./; q'`
3771   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3772     { case "$ac_dir" in
3773   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3774   *)                      as_incr_dir=.;;
3775 esac
3776 as_dummy="$ac_dir"
3777 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3778   case $as_mkdir_dir in
3779     # Skip DOS drivespec
3780     ?:) as_incr_dir=$as_mkdir_dir ;;
3781     *)
3782       as_incr_dir=$as_incr_dir/$as_mkdir_dir
3783       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3784     ;;
3785   esac
3786 done; }
3787
3788     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3789     # A "../" for each directory in $ac_dir_suffix.
3790     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3791   else
3792     ac_dir_suffix= ac_dots=
3793   fi
3794
3795   case $srcdir in
3796   .)  ac_srcdir=.
3797       if test -z "$ac_dots"; then
3798          ac_top_srcdir=.
3799       else
3800          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3801       fi ;;
3802   [\\/]* | ?:[\\/]* )
3803       ac_srcdir=$srcdir$ac_dir_suffix;
3804       ac_top_srcdir=$srcdir ;;
3805   *) # Relative path.
3806     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3807     ac_top_srcdir=$ac_dots$srcdir ;;
3808   esac
3809
3810   case $INSTALL in
3811   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3812   *) ac_INSTALL=$ac_dots$INSTALL ;;
3813   esac
3814
3815   if test x"$ac_file" != x-; then
3816     { echo "$as_me:3816: creating $ac_file" >&5
3817 echo "$as_me: creating $ac_file" >&6;}
3818     rm -f "$ac_file"
3819   fi
3820   # Let's still pretend it is `configure' which instantiates (i.e., don't
3821   # use $as_me), people would be surprised to read:
3822   #    /* config.h.  Generated automatically by config.status.  */
3823   configure_input="Generated automatically from `echo $ac_file_in |
3824                                                  sed 's,.*/,,'` by configure."
3825
3826   # First look for the input files in the build tree, otherwise in the
3827   # src tree.
3828   ac_file_inputs=`IFS=:
3829     for f in $ac_file_in; do
3830       case $f in
3831       -) echo $tmp/stdin ;;
3832       [\\/$]*)
3833          # Absolute (can't be DOS-style, as IFS=:)
3834          test -f "$f" || { { echo "$as_me:3834: error: cannot find input file: $f" >&5
3835 echo "$as_me: error: cannot find input file: $f" >&2;}
3836    { (exit 1); exit 1; }; }
3837          echo $f;;
3838       *) # Relative
3839          if test -f "$f"; then
3840            # Build tree
3841            echo $f
3842          elif test -f "$srcdir/$f"; then
3843            # Source tree
3844            echo $srcdir/$f
3845          else
3846            # /dev/null tree
3847            { { echo "$as_me:3847: error: cannot find input file: $f" >&5
3848 echo "$as_me: error: cannot find input file: $f" >&2;}
3849    { (exit 1); exit 1; }; }
3850          fi;;
3851       esac
3852     done` || { (exit 1); exit 1; }
3853 EOF
3854 cat >>$CONFIG_STATUS <<EOF
3855   sed "$ac_vpsub
3856 $extrasub
3857 EOF
3858 cat >>$CONFIG_STATUS <<\EOF
3859 :t
3860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3861 s,@configure_input@,$configure_input,;t t
3862 s,@srcdir@,$ac_srcdir,;t t
3863 s,@top_srcdir@,$ac_top_srcdir,;t t
3864 s,@INSTALL@,$ac_INSTALL,;t t
3865 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3866   rm -f $tmp/stdin
3867   if test x"$ac_file" != x-; then
3868     mv $tmp/out $ac_file
3869   else
3870     cat $tmp/out
3871     rm -f $tmp/out
3872   fi
3873
3874 done
3875 EOF
3876 cat >>$CONFIG_STATUS <<\EOF
3877
3878 #
3879 # CONFIG_HEADER section.
3880 #
3881
3882 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3883 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3884 #
3885 # ac_d sets the value in "#define NAME VALUE" lines.
3886 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3887 ac_dB='[        ].*$,\1#\2'
3888 ac_dC=' '
3889 ac_dD=',;t'
3890 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3891 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3892 ac_uB='$,\1#\2define\3'
3893 ac_uC=' '
3894 ac_uD=',;t'
3895
3896 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3897   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3898   case $ac_file in
3899   - | *:- | *:-:* ) # input from stdin
3900         cat >$tmp/stdin
3901         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3902         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3903   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3905   * )   ac_file_in=$ac_file.in ;;
3906   esac
3907
3908   test x"$ac_file" != x- && { echo "$as_me:3908: creating $ac_file" >&5
3909 echo "$as_me: creating $ac_file" >&6;}
3910
3911   # First look for the input files in the build tree, otherwise in the
3912   # src tree.
3913   ac_file_inputs=`IFS=:
3914     for f in $ac_file_in; do
3915       case $f in
3916       -) echo $tmp/stdin ;;
3917       [\\/$]*)
3918          # Absolute (can't be DOS-style, as IFS=:)
3919          test -f "$f" || { { echo "$as_me:3919: error: cannot find input file: $f" >&5
3920 echo "$as_me: error: cannot find input file: $f" >&2;}
3921    { (exit 1); exit 1; }; }
3922          echo $f;;
3923       *) # Relative
3924          if test -f "$f"; then
3925            # Build tree
3926            echo $f
3927          elif test -f "$srcdir/$f"; then
3928            # Source tree
3929            echo $srcdir/$f
3930          else
3931            # /dev/null tree
3932            { { echo "$as_me:3932: error: cannot find input file: $f" >&5
3933 echo "$as_me: error: cannot find input file: $f" >&2;}
3934    { (exit 1); exit 1; }; }
3935          fi;;
3936       esac
3937     done` || { (exit 1); exit 1; }
3938   # Remove the trailing spaces.
3939   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
3940
3941 EOF
3942
3943 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3944 # `conftest.undefs', that substitutes the proper values into
3945 # config.h.in to produce config.h.  The first handles `#define'
3946 # templates, and the second `#undef' templates.
3947 # And first: Protect against being on the right side of a sed subst in
3948 # config.status.  Protect against being in an unquoted here document
3949 # in config.status.
3950 rm -f conftest.defines conftest.undefs
3951 # Using a here document instead of a string reduces the quoting nightmare.
3952 # Putting comments in sed scripts is not portable.
3953 #
3954 # `end' is used to avoid that the second main sed command (meant for
3955 # 0-ary CPP macros) applies to n-ary macro definitions.
3956 # See the Autoconf documentation for `clear'.
3957 cat >confdef2sed.sed <<\EOF
3958 s/[\\&,]/\\&/g
3959 s,[\\$`],\\&,g
3960 t clear
3961 : clear
3962 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3963 t end
3964 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3965 : end
3966 EOF
3967 # If some macros were called several times there might be several times
3968 # the same #defines, which is useless.  Nevertheless, we may not want to
3969 # sort them, since we want the *last* AC-DEFINE to be honored.
3970 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3971 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3972 rm -f confdef2sed.sed
3973
3974 # This sed command replaces #undef with comments.  This is necessary, for
3975 # example, in the case of _POSIX_SOURCE, which is predefined and required
3976 # on some systems where configure will not decide to define it.
3977 cat >>conftest.undefs <<\EOF
3978 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3979 EOF
3980
3981 # Break up conftest.defines because some shells have a limit on the size
3982 # of here documents, and old seds have small limits too (100 cmds).
3983 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3984 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3985 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3986 echo '  :' >>$CONFIG_STATUS
3987 rm -f conftest.tail
3988 while grep . conftest.defines >/dev/null
3989 do
3990   # Write a limited-size here document to $tmp/defines.sed.
3991   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3992   # Speed up: don't consider the non `#define' lines.
3993   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
3994   # Work around the forget-to-reset-the-flag bug.
3995   echo 't clr' >>$CONFIG_STATUS
3996   echo ': clr' >>$CONFIG_STATUS
3997   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3998   echo 'CEOF
3999   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4000   rm -f $tmp/in
4001   mv $tmp/out $tmp/in
4002 ' >>$CONFIG_STATUS
4003   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4004   rm -f conftest.defines
4005   mv conftest.tail conftest.defines
4006 done
4007 rm -f conftest.defines
4008 echo '  fi # egrep' >>$CONFIG_STATUS
4009 echo >>$CONFIG_STATUS
4010
4011 # Break up conftest.undefs because some shells have a limit on the size
4012 # of here documents, and old seds have small limits too (100 cmds).
4013 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4014 rm -f conftest.tail
4015 while grep . conftest.undefs >/dev/null
4016 do
4017   # Write a limited-size here document to $tmp/undefs.sed.
4018   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4019   # Speed up: don't consider the non `#undef'
4020   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4021   # Work around the forget-to-reset-the-flag bug.
4022   echo 't clr' >>$CONFIG_STATUS
4023   echo ': clr' >>$CONFIG_STATUS
4024   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4025   echo 'CEOF
4026   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4027   rm -f $tmp/in
4028   mv $tmp/out $tmp/in
4029 ' >>$CONFIG_STATUS
4030   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4031   rm -f conftest.undefs
4032   mv conftest.tail conftest.undefs
4033 done
4034 rm -f conftest.undefs
4035
4036 cat >>$CONFIG_STATUS <<\EOF
4037   # Let's still pretend it is `configure' which instantiates (i.e., don't
4038   # use $as_me), people would be surprised to read:
4039   #    /* config.h.  Generated automatically by config.status.  */
4040   if test x"$ac_file" = x-; then
4041     echo "/* Generated automatically by configure.  */" >$tmp/config.h
4042   else
4043     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4044   fi
4045   cat $tmp/in >>$tmp/config.h
4046   rm -f $tmp/in
4047   if test x"$ac_file" != x-; then
4048     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4049       { echo "$as_me:4049: $ac_file is unchanged" >&5
4050 echo "$as_me: $ac_file is unchanged" >&6;}
4051     else
4052       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4053          X"$ac_file" : 'X\(//\)[^/]' \| \
4054          X"$ac_file" : 'X\(//\)$' \| \
4055          X"$ac_file" : 'X\(/\)' \| \
4056          .     : '\(.\)' 2>/dev/null ||
4057 echo X"$ac_file" |
4058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4060           /^X\(\/\/\)$/{ s//\1/; q; }
4061           /^X\(\/\).*/{ s//\1/; q; }
4062           s/.*/./; q'`
4063       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4064         { case "$ac_dir" in
4065   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4066   *)                      as_incr_dir=.;;
4067 esac
4068 as_dummy="$ac_dir"
4069 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4070   case $as_mkdir_dir in
4071     # Skip DOS drivespec
4072     ?:) as_incr_dir=$as_mkdir_dir ;;
4073     *)
4074       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4075       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4076     ;;
4077   esac
4078 done; }
4079
4080       fi
4081       rm -f $ac_file
4082       mv $tmp/config.h $ac_file
4083     fi
4084   else
4085     cat $tmp/config.h
4086     rm -f $tmp/config.h
4087   fi
4088 done
4089 EOF
4090 cat >>$CONFIG_STATUS <<\EOF
4091
4092 #
4093 # CONFIG_COMMANDS section.
4094 #
4095 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4096   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4097   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4098
4099   case $ac_dest in
4100     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
4101   esac
4102 done
4103 EOF
4104
4105 cat >>$CONFIG_STATUS <<\EOF
4106
4107 { (exit 0); exit 0; }
4108 EOF
4109 chmod +x $CONFIG_STATUS
4110 ac_clean_files=$ac_clean_files_save
4111
4112 # configure is writing to config.log, and then calls config.status.
4113 # config.status does its own redirection, appending to config.log.
4114 # Unfortunately, on DOS this fails, as config.log is still kept open
4115 # by configure, so config.status won't be able to write to it; its
4116 # output is simply discarded.  So we exec the FD to /dev/null,
4117 # effectively closing config.log, so it can be properly (re)opened and
4118 # appended to by config.status.  When coming back to configure, we
4119 # need to make the FD available again.
4120 if test "$no_create" != yes; then
4121   ac_cs_success=:
4122   exec 5>/dev/null
4123   $SHELL $CONFIG_STATUS || ac_cs_success=false
4124   exec 5>>config.log
4125   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4126   # would make configure fail if this is the last instruction.
4127   $ac_cs_success || { (exit 1); exit 1; }
4128 fi
4129