]> git.draconx.ca Git - gob-dx.git/blob - configure
Release 2.0.13
[gob-dx.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/treefuncs.h"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT NOINSTGOB_TRUE NOINSTGOB_FALSE SUBDIRS INSTGOB NOINSTGOB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT RM MV TAR PKG_CONFIG ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS YFLAGS LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319   # If the previous option needs an argument, assign it.
320   if test -n "$ac_prev"; then
321     eval "$ac_prev=\$ac_option"
322     ac_prev=
323     continue
324   fi
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
341
342   -cache-file | --cache-file | --cache-fil | --cache-fi \
343   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344     ac_prev=cache_file ;;
345   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363    { (exit 1); exit 1; }; }
364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365     eval "enable_$ac_feature=no" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372    { (exit 1); exit 1; }; }
373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374     case $ac_option in
375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
379
380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382   | --exec | --exe | --ex)
383     ac_prev=exec_prefix ;;
384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386   | --exec=* | --exe=* | --ex=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
393   -help | --help | --hel | --he | -h)
394     ac_init_help=long ;;
395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396     ac_init_help=recursive ;;
397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398     ac_init_help=short ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
404
405   -includedir | --includedir | --includedi | --included | --include \
406   | --includ | --inclu | --incl | --inc)
407     ac_prev=includedir ;;
408   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409   | --includ=* | --inclu=* | --incl=* | --inc=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
421
422   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423   | --libexe | --libex | --libe)
424     ac_prev=libexecdir ;;
425   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426   | --libexe=* | --libex=* | --libe=*)
427     libexecdir=$ac_optarg ;;
428
429   -localstatedir | --localstatedir | --localstatedi | --localstated \
430   | --localstate | --localstat | --localsta | --localst \
431   | --locals | --local | --loca | --loc | --lo)
432     ac_prev=localstatedir ;;
433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
442
443   -nfp | --nfp | --nf)
444     # Obsolete; use --without-fp.
445     with_fp=no ;;
446
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c | -n)
449     no_create=yes ;;
450
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453     no_recursion=yes ;;
454
455   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457   | --oldin | --oldi | --old | --ol | --o)
458     ac_prev=oldincludedir ;;
459   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
468
469   -program-prefix | --program-prefix | --program-prefi | --program-pref \
470   | --program-pre | --program-pr | --program-p)
471     ac_prev=program_prefix ;;
472   -program-prefix=* | --program-prefix=* | --program-prefi=* \
473   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474     program_prefix=$ac_optarg ;;
475
476   -program-suffix | --program-suffix | --program-suffi | --program-suff \
477   | --program-suf | --program-su | --program-s)
478     ac_prev=program_suffix ;;
479   -program-suffix=* | --program-suffix=* | --program-suffi=* \
480   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481     program_suffix=$ac_optarg ;;
482
483   -program-transform-name | --program-transform-name \
484   | --program-transform-nam | --program-transform-na \
485   | --program-transform-n | --program-transform- \
486   | --program-transform | --program-transfor \
487   | --program-transfo | --program-transf \
488   | --program-trans | --program-tran \
489   | --progr-tra | --program-tr | --program-t)
490     ac_prev=program_transform_name ;;
491   -program-transform-name=* | --program-transform-name=* \
492   | --program-transform-nam=* | --program-transform-na=* \
493   | --program-transform-n=* | --program-transform-=* \
494   | --program-transform=* | --program-transfor=* \
495   | --program-transfo=* | --program-transf=* \
496   | --program-trans=* | --program-tran=* \
497   | --progr-tra=* | --program-tr=* | --program-t=*)
498     program_transform_name=$ac_optarg ;;
499
500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501   | -silent | --silent | --silen | --sile | --sil)
502     silent=yes ;;
503
504   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505     ac_prev=sbindir ;;
506   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507   | --sbi=* | --sb=*)
508     sbindir=$ac_optarg ;;
509
510   -sharedstatedir | --sharedstatedir | --sharedstatedi \
511   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512   | --sharedst | --shareds | --shared | --share | --shar \
513   | --sha | --sh)
514     ac_prev=sharedstatedir ;;
515   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518   | --sha=* | --sh=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
530
531   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532   | --syscon | --sysco | --sysc | --sys | --sy)
533     ac_prev=sysconfdir ;;
534   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid package name: $ac_package" >&2
554    { (exit 1); exit 1; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid package name: $ac_package" >&2
567    { (exit 1); exit 1; }; }
568     ac_package=`echo $ac_package | sed 's/-/_/g'`
569     eval "with_$ac_package=no" ;;
570
571   --x)
572     # Obsolete; use --with-x.
573     with_x=yes ;;
574
575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576   | --x-incl | --x-inc | --x-in | --x-i)
577     ac_prev=x_includes ;;
578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580     x_includes=$ac_optarg ;;
581
582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584     ac_prev=x_libraries ;;
585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
594   *=*)
595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599    { (exit 1); exit 1; }; }
600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601     eval "$ac_envvar='$ac_optarg'"
602     export $ac_envvar ;;
603
604   *)
605     # FIXME: should be removed in autoconf 3.0.
606     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617   { echo "$as_me: error: missing argument to $ac_option" >&2
618    { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624   eval ac_val=$`echo $ac_var`
625   case $ac_val in
626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628    { (exit 1); exit 1; }; };;
629   esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
636   eval ac_val=$`echo $ac_var`
637   case $ac_val in
638     [\\/$]* | ?:[\\/]* ) ;;
639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640    { (exit 1); exit 1; }; };;
641   esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653   if test "x$build_alias" = x; then
654     cross_compiling=maybe
655     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656     If a cross compiler is detected then cross compile mode will be used." >&2
657   elif test "x$build_alias" != "x$host_alias"; then
658     cross_compiling=yes
659   fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
672   ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674          X"$0" : 'X\(//\)[^/]' \| \
675          X"$0" : 'X\(//\)$' \| \
676          X"$0" : 'X\(/\)' \| \
677          .     : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681           /^X\(\/\/\)$/{ s//\1/; q; }
682           /^X\(\/\).*/{ s//\1/; q; }
683           s/.*/./; q'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702    { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CPP_set=${CPP+set}
733 ac_env_CPP_value=$CPP
734 ac_cv_env_CPP_set=${CPP+set}
735 ac_cv_env_CPP_value=$CPP
736 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
737 ac_env_PKG_CONFIG_value=$PKG_CONFIG
738 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
739 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
740 ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
741 ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
742 ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
743 ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
744 ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
745 ac_env_GLIB_LIBS_value=$GLIB_LIBS
746 ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
747 ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
748
749 #
750 # Report the --help message.
751 #
752 if test "$ac_init_help" = "long"; then
753   # Omit some internal or obsolete options to make the list less imposing.
754   # This message is too long to be a string in the A/UX 3.1 sh.
755   cat <<_ACEOF
756 \`configure' configures this package to adapt to many kinds of systems.
757
758 Usage: $0 [OPTION]... [VAR=VALUE]...
759
760 To assign environment variables (e.g., CC, CFLAGS...), specify them as
761 VAR=VALUE.  See below for descriptions of some of the useful variables.
762
763 Defaults for the options are specified in brackets.
764
765 Configuration:
766   -h, --help              display this help and exit
767       --help=short        display options specific to this package
768       --help=recursive    display the short help of all the included packages
769   -V, --version           display version information and exit
770   -q, --quiet, --silent   do not print \`checking...' messages
771       --cache-file=FILE   cache test results in FILE [disabled]
772   -C, --config-cache      alias for \`--cache-file=config.cache'
773   -n, --no-create         do not create output files
774       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
775
776 _ACEOF
777
778   cat <<_ACEOF
779 Installation directories:
780   --prefix=PREFIX         install architecture-independent files in PREFIX
781                           [$ac_default_prefix]
782   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
783                           [PREFIX]
784
785 By default, \`make install' will install all the files in
786 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
787 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
788 for instance \`--prefix=\$HOME'.
789
790 For better control, use the options below.
791
792 Fine tuning of the installation directories:
793   --bindir=DIR           user executables [EPREFIX/bin]
794   --sbindir=DIR          system admin executables [EPREFIX/sbin]
795   --libexecdir=DIR       program executables [EPREFIX/libexec]
796   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
797   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
798   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
799   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
800   --libdir=DIR           object code libraries [EPREFIX/lib]
801   --includedir=DIR       C header files [PREFIX/include]
802   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
803   --infodir=DIR          info documentation [PREFIX/info]
804   --mandir=DIR           man documentation [PREFIX/man]
805 _ACEOF
806
807   cat <<\_ACEOF
808
809 Program names:
810   --program-prefix=PREFIX            prepend PREFIX to installed program names
811   --program-suffix=SUFFIX            append SUFFIX to installed program names
812   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
813 _ACEOF
814 fi
815
816 if test -n "$ac_init_help"; then
817
818   cat <<\_ACEOF
819
820 Optional Features:
821   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
822   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
823   --enable-maintainer-mode enable make rules and dependencies not useful
824                           (and sometimes confusing) to the casual installer
825
826 Some influential environment variables:
827   CC          C compiler command
828   CFLAGS      C compiler flags
829   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
830               nonstandard directory <lib dir>
831   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
832               headers in a nonstandard directory <include dir>
833   CPP         C preprocessor
834   PKG_CONFIG  path to pkg-config utility
835   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
836   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
837
838 Use these variables to override the choices made by `configure' or to help
839 it to find libraries and programs with nonstandard names/locations.
840
841 _ACEOF
842 fi
843
844 if test "$ac_init_help" = "recursive"; then
845   # If there are subdirs, report their specific --help.
846   ac_popdir=`pwd`
847   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
848     test -d $ac_dir || continue
849     ac_builddir=.
850
851 if test "$ac_dir" != .; then
852   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
853   # A "../" for each directory in $ac_dir_suffix.
854   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
855 else
856   ac_dir_suffix= ac_top_builddir=
857 fi
858
859 case $srcdir in
860   .)  # No --srcdir option.  We are building in place.
861     ac_srcdir=.
862     if test -z "$ac_top_builddir"; then
863        ac_top_srcdir=.
864     else
865        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
866     fi ;;
867   [\\/]* | ?:[\\/]* )  # Absolute path.
868     ac_srcdir=$srcdir$ac_dir_suffix;
869     ac_top_srcdir=$srcdir ;;
870   *) # Relative path.
871     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
872     ac_top_srcdir=$ac_top_builddir$srcdir ;;
873 esac
874
875 # Do not use `cd foo && pwd` to compute absolute paths, because
876 # the directories may not exist.
877 case `pwd` in
878 .) ac_abs_builddir="$ac_dir";;
879 *)
880   case "$ac_dir" in
881   .) ac_abs_builddir=`pwd`;;
882   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
883   *) ac_abs_builddir=`pwd`/"$ac_dir";;
884   esac;;
885 esac
886 case $ac_abs_builddir in
887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
888 *)
889   case ${ac_top_builddir}. in
890   .) ac_abs_top_builddir=$ac_abs_builddir;;
891   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
892   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
893   esac;;
894 esac
895 case $ac_abs_builddir in
896 .) ac_abs_srcdir=$ac_srcdir;;
897 *)
898   case $ac_srcdir in
899   .) ac_abs_srcdir=$ac_abs_builddir;;
900   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
901   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
902   esac;;
903 esac
904 case $ac_abs_builddir in
905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
906 *)
907   case $ac_top_srcdir in
908   .) ac_abs_top_srcdir=$ac_abs_builddir;;
909   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
910   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
911   esac;;
912 esac
913
914     cd $ac_dir
915     # Check for guested configure; otherwise get Cygnus style configure.
916     if test -f $ac_srcdir/configure.gnu; then
917       echo
918       $SHELL $ac_srcdir/configure.gnu  --help=recursive
919     elif test -f $ac_srcdir/configure; then
920       echo
921       $SHELL $ac_srcdir/configure  --help=recursive
922     elif test -f $ac_srcdir/configure.ac ||
923            test -f $ac_srcdir/configure.in; then
924       echo
925       $ac_configure --help
926     else
927       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928     fi
929     cd "$ac_popdir"
930   done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935   cat <<\_ACEOF
936
937 Copyright (C) 2003 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
940 _ACEOF
941   exit 0
942 fi
943 exec 5>config.log
944 cat >&5 <<_ACEOF
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
947
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.59.  Invocation command line was
950
951   $ $0 $@
952
953 _ACEOF
954 {
955 cat <<_ASUNAME
956 ## --------- ##
957 ## Platform. ##
958 ## --------- ##
959
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
968
969 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
970 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
973 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
974 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
975 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
976
977 _ASUNAME
978
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 for as_dir in $PATH
981 do
982   IFS=$as_save_IFS
983   test -z "$as_dir" && as_dir=.
984   echo "PATH: $as_dir"
985 done
986
987 } >&5
988
989 cat >&5 <<_ACEOF
990
991
992 ## ----------- ##
993 ## Core tests. ##
994 ## ----------- ##
995
996 _ACEOF
997
998
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_configure_args=
1005 ac_configure_args0=
1006 ac_configure_args1=
1007 ac_sep=
1008 ac_must_keep_next=false
1009 for ac_pass in 1 2
1010 do
1011   for ac_arg
1012   do
1013     case $ac_arg in
1014     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016     | -silent | --silent | --silen | --sile | --sil)
1017       continue ;;
1018     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020     esac
1021     case $ac_pass in
1022     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1023     2)
1024       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025       if test $ac_must_keep_next = true; then
1026         ac_must_keep_next=false # Got value, back to normal.
1027       else
1028         case $ac_arg in
1029           *=* | --config-cache | -C | -disable-* | --disable-* \
1030           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032           | -with-* | --with-* | -without-* | --without-* | --x)
1033             case "$ac_configure_args0 " in
1034               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035             esac
1036             ;;
1037           -* ) ac_must_keep_next=true ;;
1038         esac
1039       fi
1040       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041       # Get rid of the leading space.
1042       ac_sep=" "
1043       ;;
1044     esac
1045   done
1046 done
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1049
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log.  We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056   # Save into config.log some information that might help in debugging.
1057   {
1058     echo
1059
1060     cat <<\_ASBOX
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1064 _ASBOX
1065     echo
1066     # The following way of writing the cache mishandles newlines in values,
1067 {
1068   (set) 2>&1 |
1069     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070     *ac_space=\ *)
1071       sed -n \
1072         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074       ;;
1075     *)
1076       sed -n \
1077         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078       ;;
1079     esac;
1080 }
1081     echo
1082
1083     cat <<\_ASBOX
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1087 _ASBOX
1088     echo
1089     for ac_var in $ac_subst_vars
1090     do
1091       eval ac_val=$`echo $ac_var`
1092       echo "$ac_var='"'"'$ac_val'"'"'"
1093     done | sort
1094     echo
1095
1096     if test -n "$ac_subst_files"; then
1097       cat <<\_ASBOX
1098 ## ------------- ##
1099 ## Output files. ##
1100 ## ------------- ##
1101 _ASBOX
1102       echo
1103       for ac_var in $ac_subst_files
1104       do
1105         eval ac_val=$`echo $ac_var`
1106         echo "$ac_var='"'"'$ac_val'"'"'"
1107       done | sort
1108       echo
1109     fi
1110
1111     if test -s confdefs.h; then
1112       cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117       echo
1118       sed "/^$/d" confdefs.h | sort
1119       echo
1120     fi
1121     test "$ac_signal" != 0 &&
1122       echo "$as_me: caught signal $ac_signal"
1123     echo "$as_me: exit $exit_status"
1124   } >&5
1125   rm -f core *.core &&
1126   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127     exit $exit_status
1128      ' 0
1129 for ac_signal in 1 2 13 15; do
1130   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1133
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1138
1139 # Predefined preprocessor variables.
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1144
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1164
1165
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169   if test "x$prefix" != xNONE; then
1170     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171   else
1172     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173   fi
1174 fi
1175 for ac_site_file in $CONFIG_SITE; do
1176   if test -r "$ac_site_file"; then
1177     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179     sed 's/^/| /' "$ac_site_file" >&5
1180     . "$ac_site_file"
1181   fi
1182 done
1183
1184 if test -r "$cache_file"; then
1185   # Some versions of bash will fail to source /dev/null (special
1186   # files actually), so we avoid doing that.
1187   if test -f "$cache_file"; then
1188     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190     case $cache_file in
1191       [\\/]* | ?:[\\/]* ) . $cache_file;;
1192       *)                      . ./$cache_file;;
1193     esac
1194   fi
1195 else
1196   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198   >$cache_file
1199 fi
1200
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207   eval ac_new_set=\$ac_env_${ac_var}_set
1208   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209   eval ac_new_val="\$ac_env_${ac_var}_value"
1210   case $ac_old_set,$ac_new_set in
1211     set,)
1212       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214       ac_cache_corrupted=: ;;
1215     ,set)
1216       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218       ac_cache_corrupted=: ;;
1219     ,);;
1220     *)
1221       if test "x$ac_old_val" != "x$ac_new_val"; then
1222         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1225 echo "$as_me:   former value:  $ac_old_val" >&2;}
1226         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1227 echo "$as_me:   current value: $ac_new_val" >&2;}
1228         ac_cache_corrupted=:
1229       fi;;
1230   esac
1231   # Pass precious variables to config.status.
1232   if test "$ac_new_set" = set; then
1233     case $ac_new_val in
1234     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236     *) ac_arg=$ac_var=$ac_new_val ;;
1237     esac
1238     case " $ac_configure_args " in
1239       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1240       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241     esac
1242   fi
1243 done
1244 if $ac_cache_corrupted; then
1245   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249    { (exit 1); exit 1; }; }
1250 fi
1251
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277           ac_config_headers="$ac_config_headers config.h"
1278
1279           ac_config_commands="$ac_config_commands default-1"
1280
1281 am__api_version="1.4"
1282 ac_aux_dir=
1283 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1284   if test -f $ac_dir/install-sh; then
1285     ac_aux_dir=$ac_dir
1286     ac_install_sh="$ac_aux_dir/install-sh -c"
1287     break
1288   elif test -f $ac_dir/install.sh; then
1289     ac_aux_dir=$ac_dir
1290     ac_install_sh="$ac_aux_dir/install.sh -c"
1291     break
1292   elif test -f $ac_dir/shtool; then
1293     ac_aux_dir=$ac_dir
1294     ac_install_sh="$ac_aux_dir/shtool install -c"
1295     break
1296   fi
1297 done
1298 if test -z "$ac_aux_dir"; then
1299   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1300 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1304 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1305 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1306
1307 # Find a good install program.  We prefer a C program (faster),
1308 # so one script is as good as another.  But avoid the broken or
1309 # incompatible versions:
1310 # SysV /etc/install, /usr/sbin/install
1311 # SunOS /usr/etc/install
1312 # IRIX /sbin/install
1313 # AIX /bin/install
1314 # AmigaOS /C/install, which installs bootblocks on floppy discs
1315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1318 # OS/2's system install, which has a completely different semantic
1319 # ./install, which can be erroneously created by make from ./install.sh.
1320 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1322 if test -z "$INSTALL"; then
1323 if test "${ac_cv_path_install+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329   IFS=$as_save_IFS
1330   test -z "$as_dir" && as_dir=.
1331   # Account for people who put trailing slashes in PATH elements.
1332 case $as_dir/ in
1333   ./ | .// | /cC/* | \
1334   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1335   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1336   /usr/ucb/* ) ;;
1337   *)
1338     # OSF1 and SCO ODT 3.0 have their own names for install.
1339     # Don't use installbsd from OSF since it installs stuff as root
1340     # by default.
1341     for ac_prog in ginstall scoinst install; do
1342       for ac_exec_ext in '' $ac_executable_extensions; do
1343         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1344           if test $ac_prog = install &&
1345             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1346             # AIX install.  It has an incompatible calling convention.
1347             :
1348           elif test $ac_prog = install &&
1349             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1350             # program-specific install script used by HP pwplus--don't use.
1351             :
1352           else
1353             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1354             break 3
1355           fi
1356         fi
1357       done
1358     done
1359     ;;
1360 esac
1361 done
1362
1363
1364 fi
1365   if test "${ac_cv_path_install+set}" = set; then
1366     INSTALL=$ac_cv_path_install
1367   else
1368     # As a last resort, use the slow shell script.  We don't cache a
1369     # path for INSTALL within a source directory, because that will
1370     # break other packages using the cache if that directory is
1371     # removed, or if the path is relative.
1372     INSTALL=$ac_install_sh
1373   fi
1374 fi
1375 echo "$as_me:$LINENO: result: $INSTALL" >&5
1376 echo "${ECHO_T}$INSTALL" >&6
1377
1378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1379 # It thinks the first close brace ends the variable substitution.
1380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1381
1382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1383
1384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1385
1386 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1387 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1388 # Just in case
1389 sleep 1
1390 echo timestamp > conftestfile
1391 # Do `set' in a subshell so we don't clobber the current shell's
1392 # arguments.  Must try -L first in case configure is actually a
1393 # symlink; some systems play weird games with the mod time of symlinks
1394 # (eg FreeBSD returns the mod time of the symlink's containing
1395 # directory).
1396 if (
1397    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1398    if test "$*" = "X"; then
1399       # -L didn't work.
1400       set X `ls -t $srcdir/configure conftestfile`
1401    fi
1402    if test "$*" != "X $srcdir/configure conftestfile" \
1403       && test "$*" != "X conftestfile $srcdir/configure"; then
1404
1405       # If neither matched, then we have a broken ls.  This can happen
1406       # if, for instance, CONFIG_SHELL is bash and it inherits a
1407       # broken ls alias from the environment.  This has actually
1408       # happened.  Such a system could not be considered "sane".
1409       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1410 alias in your environment" >&5
1411 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1412 alias in your environment" >&2;}
1413    { (exit 1); exit 1; }; }
1414    fi
1415
1416    test "$2" = conftestfile
1417    )
1418 then
1419    # Ok.
1420    :
1421 else
1422    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1423 Check your system clock" >&5
1424 echo "$as_me: error: newly created file is older than distributed files!
1425 Check your system clock" >&2;}
1426    { (exit 1); exit 1; }; }
1427 fi
1428 rm -f conftest*
1429 echo "$as_me:$LINENO: result: yes" >&5
1430 echo "${ECHO_T}yes" >&6
1431 test "$program_prefix" != NONE &&
1432   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1433 # Use a double $ so make ignores it.
1434 test "$program_suffix" != NONE &&
1435   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1436 # Double any \ or $.  echo might interpret backslashes.
1437 # By default was `s,x,x', remove it if useless.
1438 cat <<\_ACEOF >conftest.sed
1439 s/[\\$]/&&/g;s/;s,x,x,$//
1440 _ACEOF
1441 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1442 rm conftest.sed
1443
1444 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1445 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1446 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1447 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1448   echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450   cat >conftest.make <<\_ACEOF
1451 all:
1452         @echo 'ac_maketemp="$(MAKE)"'
1453 _ACEOF
1454 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1455 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1456 if test -n "$ac_maketemp"; then
1457   eval ac_cv_prog_make_${ac_make}_set=yes
1458 else
1459   eval ac_cv_prog_make_${ac_make}_set=no
1460 fi
1461 rm -f conftest.make
1462 fi
1463 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1464   echo "$as_me:$LINENO: result: yes" >&5
1465 echo "${ECHO_T}yes" >&6
1466   SET_MAKE=
1467 else
1468   echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470   SET_MAKE="MAKE=${MAKE-make}"
1471 fi
1472
1473
1474 PACKAGE=gob2
1475
1476 VERSION=2.0.13
1477
1478 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1479   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1480 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484 cat >>confdefs.h <<_ACEOF
1485 #define PACKAGE "$PACKAGE"
1486 _ACEOF
1487
1488
1489 cat >>confdefs.h <<_ACEOF
1490 #define VERSION "$VERSION"
1491 _ACEOF
1492
1493
1494
1495 missing_dir=`cd $ac_aux_dir && pwd`
1496 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1497 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1498 # Run test in a subshell; some versions of sh will print an error if
1499 # an executable is not found, even if stderr is redirected.
1500 # Redirect stdin to placate older versions of autoconf.  Sigh.
1501 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1502    ACLOCAL=aclocal-${am__api_version}
1503    echo "$as_me:$LINENO: result: found" >&5
1504 echo "${ECHO_T}found" >&6
1505 else
1506    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1507    echo "$as_me:$LINENO: result: missing" >&5
1508 echo "${ECHO_T}missing" >&6
1509 fi
1510
1511 echo "$as_me:$LINENO: checking for working autoconf" >&5
1512 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1513 # Run test in a subshell; some versions of sh will print an error if
1514 # an executable is not found, even if stderr is redirected.
1515 # Redirect stdin to placate older versions of autoconf.  Sigh.
1516 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1517    AUTOCONF=autoconf
1518    echo "$as_me:$LINENO: result: found" >&5
1519 echo "${ECHO_T}found" >&6
1520 else
1521    AUTOCONF="$missing_dir/missing autoconf"
1522    echo "$as_me:$LINENO: result: missing" >&5
1523 echo "${ECHO_T}missing" >&6
1524 fi
1525
1526 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1527 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1528 # Run test in a subshell; some versions of sh will print an error if
1529 # an executable is not found, even if stderr is redirected.
1530 # Redirect stdin to placate older versions of autoconf.  Sigh.
1531 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1532    AUTOMAKE=automake-${am__api_version}
1533    echo "$as_me:$LINENO: result: found" >&5
1534 echo "${ECHO_T}found" >&6
1535 else
1536    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1537    echo "$as_me:$LINENO: result: missing" >&5
1538 echo "${ECHO_T}missing" >&6
1539 fi
1540
1541 echo "$as_me:$LINENO: checking for working autoheader" >&5
1542 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1543 # Run test in a subshell; some versions of sh will print an error if
1544 # an executable is not found, even if stderr is redirected.
1545 # Redirect stdin to placate older versions of autoconf.  Sigh.
1546 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1547    AUTOHEADER=autoheader
1548    echo "$as_me:$LINENO: result: found" >&5
1549 echo "${ECHO_T}found" >&6
1550 else
1551    AUTOHEADER="$missing_dir/missing autoheader"
1552    echo "$as_me:$LINENO: result: missing" >&5
1553 echo "${ECHO_T}missing" >&6
1554 fi
1555
1556 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1557 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1558 # Run test in a subshell; some versions of sh will print an error if
1559 # an executable is not found, even if stderr is redirected.
1560 # Redirect stdin to placate older versions of autoconf.  Sigh.
1561 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1562    MAKEINFO=makeinfo
1563    echo "$as_me:$LINENO: result: found" >&5
1564 echo "${ECHO_T}found" >&6
1565 else
1566    MAKEINFO="$missing_dir/missing makeinfo"
1567    echo "$as_me:$LINENO: result: missing" >&5
1568 echo "${ECHO_T}missing" >&6
1569 fi
1570
1571
1572 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1573 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1574     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1575 if test "${enable_maintainer_mode+set}" = set; then
1576   enableval="$enable_maintainer_mode"
1577   USE_MAINTAINER_MODE=$enableval
1578 else
1579   USE_MAINTAINER_MODE=no
1580 fi;
1581   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1582 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1583
1584
1585 if test $USE_MAINTAINER_MODE = yes; then
1586   MAINTAINER_MODE_TRUE=
1587   MAINTAINER_MODE_FALSE='#'
1588 else
1589   MAINTAINER_MODE_TRUE='#'
1590   MAINTAINER_MODE_FALSE=
1591 fi
1592   MAINT=$MAINTAINER_MODE_TRUE
1593
1594
1595
1596 GLIB_REQUIRED=2.0.0
1597
1598
1599
1600
1601 if test -f ../NOINST_GOB; then
1602   NOINSTGOB_TRUE=
1603   NOINSTGOB_FALSE='#'
1604 else
1605   NOINSTGOB_TRUE='#'
1606   NOINSTGOB_FALSE=
1607 fi
1608
1609 if test -f ../NOINST_GOB ; then
1610   echo "$as_me:$LINENO: result: *** NOT Going to install GOB ***" >&5
1611 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1612   SUBDIRS="src examples"
1613   INSTGOB=""
1614   NOINSTGOB="gob2"
1615 else
1616   SUBDIRS="src examples doc"
1617   INSTGOB="gob2"
1618   NOINSTGOB=""
1619 fi
1620
1621
1622
1623
1624 ac_ext=c
1625 ac_cpp='$CPP $CPPFLAGS'
1626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1629 if test -n "$ac_tool_prefix"; then
1630   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$CC"; then
1638   ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643   IFS=$as_save_IFS
1644   test -z "$as_dir" && as_dir=.
1645   for ac_exec_ext in '' $ac_executable_extensions; do
1646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649     break 2
1650   fi
1651 done
1652 done
1653
1654 fi
1655 fi
1656 CC=$ac_cv_prog_CC
1657 if test -n "$CC"; then
1658   echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1660 else
1661   echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 fi
1664
1665 fi
1666 if test -z "$ac_cv_prog_CC"; then
1667   ac_ct_CC=$CC
1668   # Extract the first word of "gcc", so it can be a program name with args.
1669 set dummy gcc; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   if test -n "$ac_ct_CC"; then
1676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1677 else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   for ac_exec_ext in '' $ac_executable_extensions; do
1684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685     ac_cv_prog_ac_ct_CC="gcc"
1686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687     break 2
1688   fi
1689 done
1690 done
1691
1692 fi
1693 fi
1694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1695 if test -n "$ac_ct_CC"; then
1696   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1697 echo "${ECHO_T}$ac_ct_CC" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703   CC=$ac_ct_CC
1704 else
1705   CC="$ac_cv_prog_CC"
1706 fi
1707
1708 if test -z "$CC"; then
1709   if test -n "$ac_tool_prefix"; then
1710   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}cc; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   if test -n "$CC"; then
1718   ac_cv_prog_CC="$CC" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723   IFS=$as_save_IFS
1724   test -z "$as_dir" && as_dir=.
1725   for ac_exec_ext in '' $ac_executable_extensions; do
1726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727     ac_cv_prog_CC="${ac_tool_prefix}cc"
1728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729     break 2
1730   fi
1731 done
1732 done
1733
1734 fi
1735 fi
1736 CC=$ac_cv_prog_CC
1737 if test -n "$CC"; then
1738   echo "$as_me:$LINENO: result: $CC" >&5
1739 echo "${ECHO_T}$CC" >&6
1740 else
1741   echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745 fi
1746 if test -z "$ac_cv_prog_CC"; then
1747   ac_ct_CC=$CC
1748   # Extract the first word of "cc", so it can be a program name with args.
1749 set dummy cc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   if test -n "$ac_ct_CC"; then
1756   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765     ac_cv_prog_ac_ct_CC="cc"
1766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767     break 2
1768   fi
1769 done
1770 done
1771
1772 fi
1773 fi
1774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1775 if test -n "$ac_ct_CC"; then
1776   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1777 echo "${ECHO_T}$ac_ct_CC" >&6
1778 else
1779   echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 fi
1782
1783   CC=$ac_ct_CC
1784 else
1785   CC="$ac_cv_prog_CC"
1786 fi
1787
1788 fi
1789 if test -z "$CC"; then
1790   # Extract the first word of "cc", so it can be a program name with args.
1791 set dummy cc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   if test -n "$CC"; then
1798   ac_cv_prog_CC="$CC" # Let the user override the test.
1799 else
1800   ac_prog_rejected=no
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804   IFS=$as_save_IFS
1805   test -z "$as_dir" && as_dir=.
1806   for ac_exec_ext in '' $ac_executable_extensions; do
1807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1809        ac_prog_rejected=yes
1810        continue
1811      fi
1812     ac_cv_prog_CC="cc"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 if test $ac_prog_rejected = yes; then
1820   # We found a bogon in the path, so make sure we never use it.
1821   set dummy $ac_cv_prog_CC
1822   shift
1823   if test $# != 0; then
1824     # We chose a different compiler from the bogus one.
1825     # However, it has the same basename, so the bogon will be chosen
1826     # first if we set CC to just the basename; use the full file name.
1827     shift
1828     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1829   fi
1830 fi
1831 fi
1832 fi
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835   echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842 fi
1843 if test -z "$CC"; then
1844   if test -n "$ac_tool_prefix"; then
1845   for ac_prog in cl
1846   do
1847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$CC"; then
1855   ac_cv_prog_CC="$CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860   IFS=$as_save_IFS
1861   test -z "$as_dir" && as_dir=.
1862   for ac_exec_ext in '' $ac_executable_extensions; do
1863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866     break 2
1867   fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 CC=$ac_cv_prog_CC
1874 if test -n "$CC"; then
1875   echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1877 else
1878   echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882     test -n "$CC" && break
1883   done
1884 fi
1885 if test -z "$CC"; then
1886   ac_ct_CC=$CC
1887   for ac_prog in cl
1888 do
1889   # Extract the first word of "$ac_prog", so it can be a program name with args.
1890 set dummy $ac_prog; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$ac_ct_CC"; then
1897   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_ac_ct_CC="$ac_prog"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913 fi
1914 fi
1915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1916 if test -n "$ac_ct_CC"; then
1917   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1918 echo "${ECHO_T}$ac_ct_CC" >&6
1919 else
1920   echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 fi
1923
1924   test -n "$ac_ct_CC" && break
1925 done
1926
1927   CC=$ac_ct_CC
1928 fi
1929
1930 fi
1931
1932
1933 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: no acceptable C compiler found in \$PATH
1936 See \`config.log' for more details." >&2;}
1937    { (exit 1); exit 1; }; }
1938
1939 # Provide some information about the compiler.
1940 echo "$as_me:$LINENO:" \
1941      "checking for C compiler version" >&5
1942 ac_compiler=`set X $ac_compile; echo $2`
1943 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1944   (eval $ac_compiler --version </dev/null >&5) 2>&5
1945   ac_status=$?
1946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947   (exit $ac_status); }
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1949   (eval $ac_compiler -v </dev/null >&5) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1954   (eval $ac_compiler -V </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958
1959 cat >conftest.$ac_ext <<_ACEOF
1960 /* confdefs.h.  */
1961 _ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h.  */
1965
1966 int
1967 main ()
1968 {
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 ac_clean_files_save=$ac_clean_files
1975 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1976 # Try to create an executable without -o first, disregard a.out.
1977 # It will help us diagnose broken compilers, and finding out an intuition
1978 # of exeext.
1979 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1980 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1983   (eval $ac_link_default) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }; then
1987   # Find the output, starting from the most likely.  This scheme is
1988 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1989 # resort.
1990
1991 # Be careful to initialize this variable, since it used to be cached.
1992 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1993 ac_cv_exeext=
1994 # b.out is created by i960 compilers.
1995 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1996 do
1997   test -f "$ac_file" || continue
1998   case $ac_file in
1999     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2000         ;;
2001     conftest.$ac_ext )
2002         # This is the source file.
2003         ;;
2004     [ab].out )
2005         # We found the default executable, but exeext='' is most
2006         # certainly right.
2007         break;;
2008     *.* )
2009         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2010         # FIXME: I believe we export ac_cv_exeext for Libtool,
2011         # but it would be cool to find out if it's true.  Does anybody
2012         # maintain Libtool? --akim.
2013         export ac_cv_exeext
2014         break;;
2015     * )
2016         break;;
2017   esac
2018 done
2019 else
2020   echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: C compiler cannot create executables
2026 See \`config.log' for more details." >&2;}
2027    { (exit 77); exit 77; }; }
2028 fi
2029
2030 ac_exeext=$ac_cv_exeext
2031 echo "$as_me:$LINENO: result: $ac_file" >&5
2032 echo "${ECHO_T}$ac_file" >&6
2033
2034 # Check the compiler produces executables we can run.  If not, either
2035 # the compiler is broken, or we cross compile.
2036 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2037 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2038 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2039 # If not cross compiling, check that we can run a simple program.
2040 if test "$cross_compiling" != yes; then
2041   if { ac_try='./$ac_file'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; }; then
2047     cross_compiling=no
2048   else
2049     if test "$cross_compiling" = maybe; then
2050         cross_compiling=yes
2051     else
2052         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2053 If you meant to cross compile, use \`--host'.
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'.
2057 See \`config.log' for more details." >&2;}
2058    { (exit 1); exit 1; }; }
2059     fi
2060   fi
2061 fi
2062 echo "$as_me:$LINENO: result: yes" >&5
2063 echo "${ECHO_T}yes" >&6
2064
2065 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2066 ac_clean_files=$ac_clean_files_save
2067 # Check the compiler produces executables we can run.  If not, either
2068 # the compiler is broken, or we cross compile.
2069 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2071 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2072 echo "${ECHO_T}$cross_compiling" >&6
2073
2074 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2077   (eval $ac_link) 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); }; then
2081   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2082 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2083 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 # `rm'.
2085 for ac_file in conftest.exe conftest conftest.*; do
2086   test -f "$ac_file" || continue
2087   case $ac_file in
2088     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2089     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090           export ac_cv_exeext
2091           break;;
2092     * ) break;;
2093   esac
2094 done
2095 else
2096   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2099 See \`config.log' for more details." >&2;}
2100    { (exit 1); exit 1; }; }
2101 fi
2102
2103 rm -f conftest$ac_cv_exeext
2104 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2105 echo "${ECHO_T}$ac_cv_exeext" >&6
2106
2107 rm -f conftest.$ac_ext
2108 EXEEXT=$ac_cv_exeext
2109 ac_exeext=$EXEEXT
2110 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2112 if test "${ac_cv_objext+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   cat >conftest.$ac_ext <<_ACEOF
2116 /* confdefs.h.  */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h.  */
2121
2122 int
2123 main ()
2124 {
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 rm -f conftest.o conftest.obj
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132   (eval $ac_compile) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; then
2136   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2139     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2140        break;;
2141   esac
2142 done
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2150 See \`config.log' for more details." >&2;}
2151    { (exit 1); exit 1; }; }
2152 fi
2153
2154 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2155 fi
2156 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2157 echo "${ECHO_T}$ac_cv_objext" >&6
2158 OBJEXT=$ac_cv_objext
2159 ac_objext=$OBJEXT
2160 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175 #ifndef __GNUC__
2176        choke me
2177 #endif
2178
2179   ;
2180   return 0;
2181 }
2182 _ACEOF
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185   (eval $ac_compile) 2>conftest.er1
2186   ac_status=$?
2187   grep -v '^ *+' conftest.er1 >conftest.err
2188   rm -f conftest.er1
2189   cat conftest.err >&5
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); } &&
2192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194   (eval $ac_try) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }; } &&
2198          { ac_try='test -s conftest.$ac_objext'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; }; then
2204   ac_compiler_gnu=yes
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 ac_compiler_gnu=no
2210 fi
2211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2213
2214 fi
2215 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2216 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2217 GCC=`test $ac_compiler_gnu = yes && echo yes`
2218 ac_test_CFLAGS=${CFLAGS+set}
2219 ac_save_CFLAGS=$CFLAGS
2220 CFLAGS="-g"
2221 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2222 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2223 if test "${ac_cv_prog_cc_g+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   cat >conftest.$ac_ext <<_ACEOF
2227 /* confdefs.h.  */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h.  */
2232
2233 int
2234 main ()
2235 {
2236
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243   (eval $ac_compile) 2>conftest.er1
2244   ac_status=$?
2245   grep -v '^ *+' conftest.er1 >conftest.err
2246   rm -f conftest.er1
2247   cat conftest.err >&5
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); } &&
2250          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252   (eval $ac_try) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; } &&
2256          { ac_try='test -s conftest.$ac_objext'
2257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258   (eval $ac_try) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; }; then
2262   ac_cv_prog_cc_g=yes
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 ac_cv_prog_cc_g=no
2268 fi
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2272 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2273 if test "$ac_test_CFLAGS" = set; then
2274   CFLAGS=$ac_save_CFLAGS
2275 elif test $ac_cv_prog_cc_g = yes; then
2276   if test "$GCC" = yes; then
2277     CFLAGS="-g -O2"
2278   else
2279     CFLAGS="-g"
2280   fi
2281 else
2282   if test "$GCC" = yes; then
2283     CFLAGS="-O2"
2284   else
2285     CFLAGS=
2286   fi
2287 fi
2288 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2289 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2290 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   ac_cv_prog_cc_stdc=no
2294 ac_save_CC=$CC
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301 #include <stdarg.h>
2302 #include <stdio.h>
2303 #include <sys/types.h>
2304 #include <sys/stat.h>
2305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2306 struct buf { int x; };
2307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2308 static char *e (p, i)
2309      char **p;
2310      int i;
2311 {
2312   return p[i];
2313 }
2314 static char *f (char * (*g) (char **, int), char **p, ...)
2315 {
2316   char *s;
2317   va_list v;
2318   va_start (v,p);
2319   s = g (p, va_arg (v,int));
2320   va_end (v);
2321   return s;
2322 }
2323
2324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2325    function prototypes and stuff, but not '\xHH' hex character constants.
2326    These don't provoke an error unfortunately, instead are silently treated
2327    as 'x'.  The following induces an error, until -std1 is added to get
2328    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2329    array size at least.  It's necessary to write '\x00'==0 to get something
2330    that's true only with -std1.  */
2331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2332
2333 int test (int i, double x);
2334 struct s1 {int (*f) (int a);};
2335 struct s2 {int (*f) (double a);};
2336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2337 int argc;
2338 char **argv;
2339 int
2340 main ()
2341 {
2342 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 # Don't try gcc -ansi; that turns off useful extensions and
2348 # breaks some systems' header files.
2349 # AIX                   -qlanglvl=ansi
2350 # Ultrix and OSF/1      -std1
2351 # HP-UX 10.20 and later -Ae
2352 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2353 # SVR4                  -Xc -D__EXTENSIONS__
2354 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2355 do
2356   CC="$ac_save_CC $ac_arg"
2357   rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; } &&
2372          { ac_try='test -s conftest.$ac_objext'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; }; then
2378   ac_cv_prog_cc_stdc=$ac_arg
2379 break
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 fi
2385 rm -f conftest.err conftest.$ac_objext
2386 done
2387 rm -f conftest.$ac_ext conftest.$ac_objext
2388 CC=$ac_save_CC
2389
2390 fi
2391
2392 case "x$ac_cv_prog_cc_stdc" in
2393   x|xno)
2394     echo "$as_me:$LINENO: result: none needed" >&5
2395 echo "${ECHO_T}none needed" >&6 ;;
2396   *)
2397     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2398 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2399     CC="$CC $ac_cv_prog_cc_stdc" ;;
2400 esac
2401
2402 # Some people use a C++ compiler to compile C.  Since we use `exit',
2403 # in C++ we need to declare it.  In case someone uses the same compiler
2404 # for both compiling C and C++ we need to have the C++ compiler decide
2405 # the declaration of exit, since it's the most demanding environment.
2406 cat >conftest.$ac_ext <<_ACEOF
2407 #ifndef __cplusplus
2408   choke me
2409 #endif
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413   (eval $ac_compile) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; } &&
2426          { ac_try='test -s conftest.$ac_objext'
2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428   (eval $ac_try) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; }; then
2432   for ac_declaration in \
2433    '' \
2434    'extern "C" void std::exit (int) throw (); using std::exit;' \
2435    'extern "C" void std::exit (int); using std::exit;' \
2436    'extern "C" void exit (int) throw ();' \
2437    'extern "C" void exit (int);' \
2438    'void exit (int);'
2439 do
2440   cat >conftest.$ac_ext <<_ACEOF
2441 /* confdefs.h.  */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h.  */
2446 $ac_declaration
2447 #include <stdlib.h>
2448 int
2449 main ()
2450 {
2451 exit (42);
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458   (eval $ac_compile) 2>conftest.er1
2459   ac_status=$?
2460   grep -v '^ *+' conftest.er1 >conftest.err
2461   rm -f conftest.er1
2462   cat conftest.err >&5
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); } &&
2465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467   (eval $ac_try) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   :
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 continue
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485   cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491 $ac_declaration
2492 int
2493 main ()
2494 {
2495 exit (42);
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } &&
2509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; } &&
2515          { ac_try='test -s conftest.$ac_objext'
2516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517   (eval $ac_try) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   break
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 fi
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 done
2529 rm -f conftest*
2530 if test -n "$ac_declaration"; then
2531   echo '#ifdef __cplusplus' >>confdefs.h
2532   echo $ac_declaration      >>confdefs.h
2533   echo '#endif'             >>confdefs.h
2534 fi
2535
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 fi
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_ext=c
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
2549
2550         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2551 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2552 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   ac_check_lib_save_LIBS=$LIBS
2556 LIBS="-lcposix  $LIBS"
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 /* Override any gcc2 internal prototype to avoid an error.  */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 /* We use char because int might match the return type of a gcc2
2569    builtin and then its argument prototype would still apply.  */
2570 char strerror ();
2571 int
2572 main ()
2573 {
2574 strerror ();
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581   (eval $ac_link) 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; } &&
2594          { ac_try='test -s conftest$ac_exeext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   ac_cv_lib_cposix_strerror=yes
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 ac_cv_lib_cposix_strerror=no
2606 fi
2607 rm -f conftest.err conftest.$ac_objext \
2608       conftest$ac_exeext conftest.$ac_ext
2609 LIBS=$ac_check_lib_save_LIBS
2610 fi
2611 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2612 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2613 if test $ac_cv_lib_cposix_strerror = yes; then
2614   LIBS="$LIBS -lcposix"
2615 fi
2616
2617
2618
2619 ac_ext=c
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 if test -n "$ac_tool_prefix"; then
2625   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2627 echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   if test -n "$CC"; then
2633   ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640   for ac_exec_ext in '' $ac_executable_extensions; do
2641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647 done
2648
2649 fi
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653   echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6
2655 else
2656   echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2658 fi
2659
2660 fi
2661 if test -z "$ac_cv_prog_CC"; then
2662   ac_ct_CC=$CC
2663   # Extract the first word of "gcc", so it can be a program name with args.
2664 set dummy gcc; ac_word=$2
2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   if test -n "$ac_ct_CC"; then
2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678   for ac_exec_ext in '' $ac_executable_extensions; do
2679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680     ac_cv_prog_ac_ct_CC="gcc"
2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685 done
2686
2687 fi
2688 fi
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692 echo "${ECHO_T}$ac_ct_CC" >&6
2693 else
2694   echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6
2696 fi
2697
2698   CC=$ac_ct_CC
2699 else
2700   CC="$ac_cv_prog_CC"
2701 fi
2702
2703 if test -z "$CC"; then
2704   if test -n "$ac_tool_prefix"; then
2705   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}cc; ac_word=$2
2707 echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   if test -n "$CC"; then
2713   ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720   for ac_exec_ext in '' $ac_executable_extensions; do
2721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722     ac_cv_prog_CC="${ac_tool_prefix}cc"
2723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727 done
2728
2729 fi
2730 fi
2731 CC=$ac_cv_prog_CC
2732 if test -n "$CC"; then
2733   echo "$as_me:$LINENO: result: $CC" >&5
2734 echo "${ECHO_T}$CC" >&6
2735 else
2736   echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738 fi
2739
2740 fi
2741 if test -z "$ac_cv_prog_CC"; then
2742   ac_ct_CC=$CC
2743   # Extract the first word of "cc", so it can be a program name with args.
2744 set dummy cc; ac_word=$2
2745 echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   if test -n "$ac_ct_CC"; then
2751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756   IFS=$as_save_IFS
2757   test -z "$as_dir" && as_dir=.
2758   for ac_exec_ext in '' $ac_executable_extensions; do
2759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760     ac_cv_prog_ac_ct_CC="cc"
2761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762     break 2
2763   fi
2764 done
2765 done
2766
2767 fi
2768 fi
2769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770 if test -n "$ac_ct_CC"; then
2771   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772 echo "${ECHO_T}$ac_ct_CC" >&6
2773 else
2774   echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2776 fi
2777
2778   CC=$ac_ct_CC
2779 else
2780   CC="$ac_cv_prog_CC"
2781 fi
2782
2783 fi
2784 if test -z "$CC"; then
2785   # Extract the first word of "cc", so it can be a program name with args.
2786 set dummy cc; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CC"; then
2793   ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795   ac_prog_rejected=no
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2804        ac_prog_rejected=yes
2805        continue
2806      fi
2807     ac_cv_prog_CC="cc"
2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813
2814 if test $ac_prog_rejected = yes; then
2815   # We found a bogon in the path, so make sure we never use it.
2816   set dummy $ac_cv_prog_CC
2817   shift
2818   if test $# != 0; then
2819     # We chose a different compiler from the bogus one.
2820     # However, it has the same basename, so the bogon will be chosen
2821     # first if we set CC to just the basename; use the full file name.
2822     shift
2823     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2824   fi
2825 fi
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830   echo "$as_me:$LINENO: result: $CC" >&5
2831 echo "${ECHO_T}$CC" >&6
2832 else
2833   echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835 fi
2836
2837 fi
2838 if test -z "$CC"; then
2839   if test -n "$ac_tool_prefix"; then
2840   for ac_prog in cl
2841   do
2842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_CC+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   if test -n "$CC"; then
2850   ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857   for ac_exec_ext in '' $ac_executable_extensions; do
2858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870   echo "$as_me:$LINENO: result: $CC" >&5
2871 echo "${ECHO_T}$CC" >&6
2872 else
2873   echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877     test -n "$CC" && break
2878   done
2879 fi
2880 if test -z "$CC"; then
2881   ac_ct_CC=$CC
2882   for ac_prog in cl
2883 do
2884   # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   if test -n "$ac_ct_CC"; then
2892   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899   for ac_exec_ext in '' $ac_executable_extensions; do
2900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901     ac_cv_prog_ac_ct_CC="$ac_prog"
2902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906 done
2907
2908 fi
2909 fi
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913 echo "${ECHO_T}$ac_ct_CC" >&6
2914 else
2915   echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2917 fi
2918
2919   test -n "$ac_ct_CC" && break
2920 done
2921
2922   CC=$ac_ct_CC
2923 fi
2924
2925 fi
2926
2927
2928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: no acceptable C compiler found in \$PATH
2931 See \`config.log' for more details." >&2;}
2932    { (exit 1); exit 1; }; }
2933
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO:" \
2936      "checking for C compiler version" >&5
2937 ac_compiler=`set X $ac_compile; echo $2`
2938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2939   (eval $ac_compiler --version </dev/null >&5) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }
2943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2944   (eval $ac_compiler -v </dev/null >&5) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }
2948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2949   (eval $ac_compiler -V </dev/null >&5) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }
2953
2954 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2955 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2956 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965
2966 int
2967 main ()
2968 {
2969 #ifndef __GNUC__
2970        choke me
2971 #endif
2972
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979   (eval $ac_compile) 2>conftest.er1
2980   ac_status=$?
2981   grep -v '^ *+' conftest.er1 >conftest.err
2982   rm -f conftest.er1
2983   cat conftest.err >&5
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } &&
2986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988   (eval $ac_try) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; } &&
2992          { ac_try='test -s conftest.$ac_objext'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   ac_compiler_gnu=yes
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 ac_compiler_gnu=no
3004 fi
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3007
3008 fi
3009 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3011 GCC=`test $ac_compiler_gnu = yes && echo yes`
3012 ac_test_CFLAGS=${CFLAGS+set}
3013 ac_save_CFLAGS=$CFLAGS
3014 CFLAGS="-g"
3015 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3017 if test "${ac_cv_prog_cc_g+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037   (eval $ac_compile) 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } &&
3044          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; } &&
3050          { ac_try='test -s conftest.$ac_objext'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   ac_cv_prog_cc_g=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 ac_cv_prog_cc_g=no
3062 fi
3063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 fi
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3066 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3067 if test "$ac_test_CFLAGS" = set; then
3068   CFLAGS=$ac_save_CFLAGS
3069 elif test $ac_cv_prog_cc_g = yes; then
3070   if test "$GCC" = yes; then
3071     CFLAGS="-g -O2"
3072   else
3073     CFLAGS="-g"
3074   fi
3075 else
3076   if test "$GCC" = yes; then
3077     CFLAGS="-O2"
3078   else
3079     CFLAGS=
3080   fi
3081 fi
3082 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3083 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3084 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   ac_cv_prog_cc_stdc=no
3088 ac_save_CC=$CC
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095 #include <stdarg.h>
3096 #include <stdio.h>
3097 #include <sys/types.h>
3098 #include <sys/stat.h>
3099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3100 struct buf { int x; };
3101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3102 static char *e (p, i)
3103      char **p;
3104      int i;
3105 {
3106   return p[i];
3107 }
3108 static char *f (char * (*g) (char **, int), char **p, ...)
3109 {
3110   char *s;
3111   va_list v;
3112   va_start (v,p);
3113   s = g (p, va_arg (v,int));
3114   va_end (v);
3115   return s;
3116 }
3117
3118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3119    function prototypes and stuff, but not '\xHH' hex character constants.
3120    These don't provoke an error unfortunately, instead are silently treated
3121    as 'x'.  The following induces an error, until -std1 is added to get
3122    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3123    array size at least.  It's necessary to write '\x00'==0 to get something
3124    that's true only with -std1.  */
3125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3126
3127 int test (int i, double x);
3128 struct s1 {int (*f) (int a);};
3129 struct s2 {int (*f) (double a);};
3130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3131 int argc;
3132 char **argv;
3133 int
3134 main ()
3135 {
3136 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 # Don't try gcc -ansi; that turns off useful extensions and
3142 # breaks some systems' header files.
3143 # AIX                   -qlanglvl=ansi
3144 # Ultrix and OSF/1      -std1
3145 # HP-UX 10.20 and later -Ae
3146 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3147 # SVR4                  -Xc -D__EXTENSIONS__
3148 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3149 do
3150   CC="$ac_save_CC $ac_arg"
3151   rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153   (eval $ac_compile) 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } &&
3160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162   (eval $ac_try) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; } &&
3166          { ac_try='test -s conftest.$ac_objext'
3167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168   (eval $ac_try) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   ac_cv_prog_cc_stdc=$ac_arg
3173 break
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 fi
3179 rm -f conftest.err conftest.$ac_objext
3180 done
3181 rm -f conftest.$ac_ext conftest.$ac_objext
3182 CC=$ac_save_CC
3183
3184 fi
3185
3186 case "x$ac_cv_prog_cc_stdc" in
3187   x|xno)
3188     echo "$as_me:$LINENO: result: none needed" >&5
3189 echo "${ECHO_T}none needed" >&6 ;;
3190   *)
3191     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3192 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3193     CC="$CC $ac_cv_prog_cc_stdc" ;;
3194 esac
3195
3196 # Some people use a C++ compiler to compile C.  Since we use `exit',
3197 # in C++ we need to declare it.  In case someone uses the same compiler
3198 # for both compiling C and C++ we need to have the C++ compiler decide
3199 # the declaration of exit, since it's the most demanding environment.
3200 cat >conftest.$ac_ext <<_ACEOF
3201 #ifndef __cplusplus
3202   choke me
3203 #endif
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207   (eval $ac_compile) 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } &&
3214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; } &&
3220          { ac_try='test -s conftest.$ac_objext'
3221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222   (eval $ac_try) 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   for ac_declaration in \
3227    '' \
3228    'extern "C" void std::exit (int) throw (); using std::exit;' \
3229    'extern "C" void std::exit (int); using std::exit;' \
3230    'extern "C" void exit (int) throw ();' \
3231    'extern "C" void exit (int);' \
3232    'void exit (int);'
3233 do
3234   cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 $ac_declaration
3241 #include <stdlib.h>
3242 int
3243 main ()
3244 {
3245 exit (42);
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252   (eval $ac_compile) 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } &&
3259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261   (eval $ac_try) 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; } &&
3265          { ac_try='test -s conftest.$ac_objext'
3266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267   (eval $ac_try) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; }; then
3271   :
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 continue
3277 fi
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 $ac_declaration
3286 int
3287 main ()
3288 {
3289 exit (42);
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3296   (eval $ac_compile) 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } &&
3303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   break
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 fi
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 done
3323 rm -f conftest*
3324 if test -n "$ac_declaration"; then
3325   echo '#ifdef __cplusplus' >>confdefs.h
3326   echo $ac_declaration      >>confdefs.h
3327   echo '#endif'             >>confdefs.h
3328 fi
3329
3330 else
3331   echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 fi
3335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3349 # On Suns, sometimes $CPP names a directory.
3350 if test -n "$CPP" && test -d "$CPP"; then
3351   CPP=
3352 fi
3353 if test -z "$CPP"; then
3354   if test "${ac_cv_prog_CPP+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357       # Double quotes because CPP needs to be expanded
3358     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3359     do
3360       ac_preproc_ok=false
3361 for ac_c_preproc_warn_flag in '' yes
3362 do
3363   # Use a header file that comes with gcc, so configuring glibc
3364   # with a fresh cross-compiler works.
3365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366   # <limits.h> exists even on freestanding compilers.
3367   # On the NeXT, cc -E runs the code through the compiler's parser,
3368   # not just through cpp. "Syntax error" is here to catch this case.
3369   cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #ifdef __STDC__
3376 # include <limits.h>
3377 #else
3378 # include <assert.h>
3379 #endif
3380                      Syntax error
3381 _ACEOF
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null; then
3390   if test -s conftest.err; then
3391     ac_cpp_err=$ac_c_preproc_warn_flag
3392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393   else
3394     ac_cpp_err=
3395   fi
3396 else
3397   ac_cpp_err=yes
3398 fi
3399 if test -z "$ac_cpp_err"; then
3400   :
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405   # Broken: fails on valid input.
3406 continue
3407 fi
3408 rm -f conftest.err conftest.$ac_ext
3409
3410   # OK, works on sane cases.  Now check whether non-existent headers
3411   # can be detected and how.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <ac_nonexistent.h>
3419 _ACEOF
3420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null; then
3428   if test -s conftest.err; then
3429     ac_cpp_err=$ac_c_preproc_warn_flag
3430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431   else
3432     ac_cpp_err=
3433   fi
3434 else
3435   ac_cpp_err=yes
3436 fi
3437 if test -z "$ac_cpp_err"; then
3438   # Broken: success on invalid input.
3439 continue
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448 rm -f conftest.err conftest.$ac_ext
3449
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3454   break
3455 fi
3456
3457     done
3458     ac_cv_prog_CPP=$CPP
3459
3460 fi
3461   CPP=$ac_cv_prog_CPP
3462 else
3463   ac_cv_prog_CPP=$CPP
3464 fi
3465 echo "$as_me:$LINENO: result: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3469 do
3470   # Use a header file that comes with gcc, so configuring glibc
3471   # with a fresh cross-compiler works.
3472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473   # <limits.h> exists even on freestanding compilers.
3474   # On the NeXT, cc -E runs the code through the compiler's parser,
3475   # not just through cpp. "Syntax error" is here to catch this case.
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487                      Syntax error
3488 _ACEOF
3489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } >/dev/null; then
3497   if test -s conftest.err; then
3498     ac_cpp_err=$ac_c_preproc_warn_flag
3499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500   else
3501     ac_cpp_err=
3502   fi
3503 else
3504   ac_cpp_err=yes
3505 fi
3506 if test -z "$ac_cpp_err"; then
3507   :
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512   # Broken: fails on valid input.
3513 continue
3514 fi
3515 rm -f conftest.err conftest.$ac_ext
3516
3517   # OK, works on sane cases.  Now check whether non-existent headers
3518   # can be detected and how.
3519   cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525 #include <ac_nonexistent.h>
3526 _ACEOF
3527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } >/dev/null; then
3535   if test -s conftest.err; then
3536     ac_cpp_err=$ac_c_preproc_warn_flag
3537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3538   else
3539     ac_cpp_err=
3540   fi
3541 else
3542   ac_cpp_err=yes
3543 fi
3544 if test -z "$ac_cpp_err"; then
3545   # Broken: success on invalid input.
3546 continue
3547 else
3548   echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551   # Passes both tests.
3552 ac_preproc_ok=:
3553 break
3554 fi
3555 rm -f conftest.err conftest.$ac_ext
3556
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3561   :
3562 else
3563   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&5
3565 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&2;}
3567    { (exit 1); exit 1; }; }
3568 fi
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576
3577 echo "$as_me:$LINENO: checking for egrep" >&5
3578 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3579 if test "${ac_cv_prog_egrep+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3583     then ac_cv_prog_egrep='grep -E'
3584     else ac_cv_prog_egrep='egrep'
3585     fi
3586 fi
3587 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3588 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3589  EGREP=$ac_cv_prog_egrep
3590
3591
3592 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3593 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3594 if test "${ac_cv_header_stdc+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603 #include <stdlib.h>
3604 #include <stdarg.h>
3605 #include <string.h>
3606 #include <float.h>
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } &&
3625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   ac_cv_header_stdc=yes
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 ac_cv_header_stdc=no
3643 fi
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645
3646 if test $ac_cv_header_stdc = yes; then
3647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3648   cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 #include <string.h>
3655
3656 _ACEOF
3657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658   $EGREP "memchr" >/dev/null 2>&1; then
3659   :
3660 else
3661   ac_cv_header_stdc=no
3662 fi
3663 rm -f conftest*
3664
3665 fi
3666
3667 if test $ac_cv_header_stdc = yes; then
3668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3669   cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #include <stdlib.h>
3676
3677 _ACEOF
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679   $EGREP "free" >/dev/null 2>&1; then
3680   :
3681 else
3682   ac_cv_header_stdc=no
3683 fi
3684 rm -f conftest*
3685
3686 fi
3687
3688 if test $ac_cv_header_stdc = yes; then
3689   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3690   if test "$cross_compiling" = yes; then
3691   :
3692 else
3693   cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 #include <ctype.h>
3700 #if ((' ' & 0x0FF) == 0x020)
3701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3703 #else
3704 # define ISLOWER(c) \
3705                    (('a' <= (c) && (c) <= 'i') \
3706                      || ('j' <= (c) && (c) <= 'r') \
3707                      || ('s' <= (c) && (c) <= 'z'))
3708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3709 #endif
3710
3711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3712 int
3713 main ()
3714 {
3715   int i;
3716   for (i = 0; i < 256; i++)
3717     if (XOR (islower (i), ISLOWER (i))
3718         || toupper (i) != TOUPPER (i))
3719       exit(2);
3720   exit (0);
3721 }
3722 _ACEOF
3723 rm -f conftest$ac_exeext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725   (eval $ac_link) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   :
3735 else
3736   echo "$as_me: program exited with status $ac_status" >&5
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 ( exit $ac_status )
3741 ac_cv_header_stdc=no
3742 fi
3743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 fi
3746 fi
3747 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3748 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3749 if test $ac_cv_header_stdc = yes; then
3750
3751 cat >>confdefs.h <<\_ACEOF
3752 #define STDC_HEADERS 1
3753 _ACEOF
3754
3755 fi
3756
3757 for ac_prog in 'bison -y' byacc
3758 do
3759   # Extract the first word of "$ac_prog", so it can be a program name with args.
3760 set dummy $ac_prog; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_YACC+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   if test -n "$YACC"; then
3767   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_prog_YACC="$ac_prog"
3777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781 done
3782
3783 fi
3784 fi
3785 YACC=$ac_cv_prog_YACC
3786 if test -n "$YACC"; then
3787   echo "$as_me:$LINENO: result: $YACC" >&5
3788 echo "${ECHO_T}$YACC" >&6
3789 else
3790   echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3792 fi
3793
3794   test -n "$YACC" && break
3795 done
3796 test -n "$YACC" || YACC="yacc"
3797
3798 missing_dir=`cd $ac_aux_dir && pwd`
3799 for ac_prog in flex lex
3800 do
3801   # Extract the first word of "$ac_prog", so it can be a program name with args.
3802 set dummy $ac_prog; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_prog_LEX+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   if test -n "$LEX"; then
3809   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   test -z "$as_dir" && as_dir=.
3816   for ac_exec_ext in '' $ac_executable_extensions; do
3817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818     ac_cv_prog_LEX="$ac_prog"
3819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820     break 2
3821   fi
3822 done
3823 done
3824
3825 fi
3826 fi
3827 LEX=$ac_cv_prog_LEX
3828 if test -n "$LEX"; then
3829   echo "$as_me:$LINENO: result: $LEX" >&5
3830 echo "${ECHO_T}$LEX" >&6
3831 else
3832   echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3834 fi
3835
3836   test -n "$LEX" && break
3837 done
3838 test -n "$LEX" || LEX="$missing_dir/missing flex"
3839
3840 for ac_prog in flex lex
3841 do
3842   # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_LEX+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -n "$LEX"; then
3850   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   for ac_exec_ext in '' $ac_executable_extensions; do
3858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859     ac_cv_prog_LEX="$ac_prog"
3860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864 done
3865
3866 fi
3867 fi
3868 LEX=$ac_cv_prog_LEX
3869 if test -n "$LEX"; then
3870   echo "$as_me:$LINENO: result: $LEX" >&5
3871 echo "${ECHO_T}$LEX" >&6
3872 else
3873   echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 fi
3876
3877   test -n "$LEX" && break
3878 done
3879 test -n "$LEX" || LEX=":"
3880
3881 if test -z "$LEXLIB"
3882 then
3883   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3884 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3885 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   ac_check_lib_save_LIBS=$LIBS
3889 LIBS="-lfl  $LIBS"
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896
3897 /* Override any gcc2 internal prototype to avoid an error.  */
3898 #ifdef __cplusplus
3899 extern "C"
3900 #endif
3901 /* We use char because int might match the return type of a gcc2
3902    builtin and then its argument prototype would still apply.  */
3903 char yywrap ();
3904 int
3905 main ()
3906 {
3907 yywrap ();
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914   (eval $ac_link) 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } &&
3921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923   (eval $ac_try) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); }; } &&
3927          { ac_try='test -s conftest$ac_exeext'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; }; then
3933   ac_cv_lib_fl_yywrap=yes
3934 else
3935   echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938 ac_cv_lib_fl_yywrap=no
3939 fi
3940 rm -f conftest.err conftest.$ac_objext \
3941       conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3943 fi
3944 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3945 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3946 if test $ac_cv_lib_fl_yywrap = yes; then
3947   LEXLIB="-lfl"
3948 else
3949   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3950 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3951 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   ac_check_lib_save_LIBS=$LIBS
3955 LIBS="-ll  $LIBS"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962
3963 /* Override any gcc2 internal prototype to avoid an error.  */
3964 #ifdef __cplusplus
3965 extern "C"
3966 #endif
3967 /* We use char because int might match the return type of a gcc2
3968    builtin and then its argument prototype would still apply.  */
3969 char yywrap ();
3970 int
3971 main ()
3972 {
3973 yywrap ();
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980   (eval $ac_link) 2>conftest.er1
3981   ac_status=$?
3982   grep -v '^ *+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; } &&
3993          { ac_try='test -s conftest$ac_exeext'
3994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995   (eval $ac_try) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); }; }; then
3999   ac_cv_lib_l_yywrap=yes
4000 else
4001   echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ac_cv_lib_l_yywrap=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext \
4007       conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4009 fi
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4011 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4012 if test $ac_cv_lib_l_yywrap = yes; then
4013   LEXLIB="-ll"
4014 fi
4015
4016 fi
4017
4018 fi
4019
4020 if test "x$LEX" != "x:"; then
4021   echo "$as_me:$LINENO: checking lex output file root" >&5
4022 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4023 if test "${ac_cv_prog_lex_root+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   # The minimal lex program is just a single line: %%.  But some broken lexes
4027 # (Solaris, I think it was) want two %% lines, so accommodate them.
4028 cat >conftest.l <<_ACEOF
4029 %%
4030 %%
4031 _ACEOF
4032 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4033   (eval $LEX conftest.l) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }
4037 if test -f lex.yy.c; then
4038   ac_cv_prog_lex_root=lex.yy
4039 elif test -f lexyy.c; then
4040   ac_cv_prog_lex_root=lexyy
4041 else
4042   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4043 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4044    { (exit 1); exit 1; }; }
4045 fi
4046 fi
4047 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4048 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4049 rm -f conftest.l
4050 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4051
4052 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4053 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4054 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   # POSIX says lex can declare yytext either as a pointer or an array; the
4058 # default is implementation-dependent. Figure out which it is, since
4059 # not all implementations provide the %pointer and %array declarations.
4060 ac_cv_prog_lex_yytext_pointer=no
4061 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4062 ac_save_LIBS=$LIBS
4063 LIBS="$LIBS $LEXLIB"
4064 cat >conftest.$ac_ext <<_ACEOF
4065 `cat $LEX_OUTPUT_ROOT.c`
4066 _ACEOF
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069   (eval $ac_link) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest$ac_exeext'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   ac_cv_prog_lex_yytext_pointer=yes
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 fi
4094 rm -f conftest.err conftest.$ac_objext \
4095       conftest$ac_exeext conftest.$ac_ext
4096 LIBS=$ac_save_LIBS
4097 rm -f "${LEX_OUTPUT_ROOT}.c"
4098
4099 fi
4100 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4101 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4102 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4103
4104 cat >>confdefs.h <<\_ACEOF
4105 #define YYTEXT_POINTER 1
4106 _ACEOF
4107
4108 fi
4109
4110 fi
4111
4112 # Find a good install program.  We prefer a C program (faster),
4113 # so one script is as good as another.  But avoid the broken or
4114 # incompatible versions:
4115 # SysV /etc/install, /usr/sbin/install
4116 # SunOS /usr/etc/install
4117 # IRIX /sbin/install
4118 # AIX /bin/install
4119 # AmigaOS /C/install, which installs bootblocks on floppy discs
4120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4123 # OS/2's system install, which has a completely different semantic
4124 # ./install, which can be erroneously created by make from ./install.sh.
4125 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4126 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4127 if test -z "$INSTALL"; then
4128 if test "${ac_cv_path_install+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   # Account for people who put trailing slashes in PATH elements.
4137 case $as_dir/ in
4138   ./ | .// | /cC/* | \
4139   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4140   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4141   /usr/ucb/* ) ;;
4142   *)
4143     # OSF1 and SCO ODT 3.0 have their own names for install.
4144     # Don't use installbsd from OSF since it installs stuff as root
4145     # by default.
4146     for ac_prog in ginstall scoinst install; do
4147       for ac_exec_ext in '' $ac_executable_extensions; do
4148         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4149           if test $ac_prog = install &&
4150             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4151             # AIX install.  It has an incompatible calling convention.
4152             :
4153           elif test $ac_prog = install &&
4154             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4155             # program-specific install script used by HP pwplus--don't use.
4156             :
4157           else
4158             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4159             break 3
4160           fi
4161         fi
4162       done
4163     done
4164     ;;
4165 esac
4166 done
4167
4168
4169 fi
4170   if test "${ac_cv_path_install+set}" = set; then
4171     INSTALL=$ac_cv_path_install
4172   else
4173     # As a last resort, use the slow shell script.  We don't cache a
4174     # path for INSTALL within a source directory, because that will
4175     # break other packages using the cache if that directory is
4176     # removed, or if the path is relative.
4177     INSTALL=$ac_install_sh
4178   fi
4179 fi
4180 echo "$as_me:$LINENO: result: $INSTALL" >&5
4181 echo "${ECHO_T}$INSTALL" >&6
4182
4183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4184 # It thinks the first close brace ends the variable substitution.
4185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4186
4187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4188
4189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4198 # On Suns, sometimes $CPP names a directory.
4199 if test -n "$CPP" && test -d "$CPP"; then
4200   CPP=
4201 fi
4202 if test -z "$CPP"; then
4203   if test "${ac_cv_prog_CPP+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206       # Double quotes because CPP needs to be expanded
4207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208     do
4209       ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4211 do
4212   # Use a header file that comes with gcc, so configuring glibc
4213   # with a fresh cross-compiler works.
4214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215   # <limits.h> exists even on freestanding compilers.
4216   # On the NeXT, cc -E runs the code through the compiler's parser,
4217   # not just through cpp. "Syntax error" is here to catch this case.
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 #ifdef __STDC__
4225 # include <limits.h>
4226 #else
4227 # include <assert.h>
4228 #endif
4229                      Syntax error
4230 _ACEOF
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null; then
4239   if test -s conftest.err; then
4240     ac_cpp_err=$ac_c_preproc_warn_flag
4241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4242   else
4243     ac_cpp_err=
4244   fi
4245 else
4246   ac_cpp_err=yes
4247 fi
4248 if test -z "$ac_cpp_err"; then
4249   :
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254   # Broken: fails on valid input.
4255 continue
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258
4259   # OK, works on sane cases.  Now check whether non-existent headers
4260   # can be detected and how.
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 #include <ac_nonexistent.h>
4268 _ACEOF
4269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } >/dev/null; then
4277   if test -s conftest.err; then
4278     ac_cpp_err=$ac_c_preproc_warn_flag
4279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4280   else
4281     ac_cpp_err=
4282   fi
4283 else
4284   ac_cpp_err=yes
4285 fi
4286 if test -z "$ac_cpp_err"; then
4287   # Broken: success on invalid input.
4288 continue
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293   # Passes both tests.
4294 ac_preproc_ok=:
4295 break
4296 fi
4297 rm -f conftest.err conftest.$ac_ext
4298
4299 done
4300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4301 rm -f conftest.err conftest.$ac_ext
4302 if $ac_preproc_ok; then
4303   break
4304 fi
4305
4306     done
4307     ac_cv_prog_CPP=$CPP
4308
4309 fi
4310   CPP=$ac_cv_prog_CPP
4311 else
4312   ac_cv_prog_CPP=$CPP
4313 fi
4314 echo "$as_me:$LINENO: result: $CPP" >&5
4315 echo "${ECHO_T}$CPP" >&6
4316 ac_preproc_ok=false
4317 for ac_c_preproc_warn_flag in '' yes
4318 do
4319   # Use a header file that comes with gcc, so configuring glibc
4320   # with a fresh cross-compiler works.
4321   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322   # <limits.h> exists even on freestanding compilers.
4323   # On the NeXT, cc -E runs the code through the compiler's parser,
4324   # not just through cpp. "Syntax error" is here to catch this case.
4325   cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #ifdef __STDC__
4332 # include <limits.h>
4333 #else
4334 # include <assert.h>
4335 #endif
4336                      Syntax error
4337 _ACEOF
4338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } >/dev/null; then
4346   if test -s conftest.err; then
4347     ac_cpp_err=$ac_c_preproc_warn_flag
4348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4349   else
4350     ac_cpp_err=
4351   fi
4352 else
4353   ac_cpp_err=yes
4354 fi
4355 if test -z "$ac_cpp_err"; then
4356   :
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361   # Broken: fails on valid input.
4362 continue
4363 fi
4364 rm -f conftest.err conftest.$ac_ext
4365
4366   # OK, works on sane cases.  Now check whether non-existent headers
4367   # can be detected and how.
4368   cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 #include <ac_nonexistent.h>
4375 _ACEOF
4376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } >/dev/null; then
4384   if test -s conftest.err; then
4385     ac_cpp_err=$ac_c_preproc_warn_flag
4386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4387   else
4388     ac_cpp_err=
4389   fi
4390 else
4391   ac_cpp_err=yes
4392 fi
4393 if test -z "$ac_cpp_err"; then
4394   # Broken: success on invalid input.
4395 continue
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400   # Passes both tests.
4401 ac_preproc_ok=:
4402 break
4403 fi
4404 rm -f conftest.err conftest.$ac_ext
4405
4406 done
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then
4410   :
4411 else
4412   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4413 See \`config.log' for more details." >&5
4414 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4415 See \`config.log' for more details." >&2;}
4416    { (exit 1); exit 1; }; }
4417 fi
4418
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425 # Extract the first word of "rm", so it can be a program name with args.
4426 set dummy rm; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_path_RM+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   case $RM in
4433   [\\/]* | ?:[\\/]*)
4434   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4435   ;;
4436   *)
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450
4451   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4452   ;;
4453 esac
4454 fi
4455 RM=$ac_cv_path_RM
4456
4457 if test -n "$RM"; then
4458   echo "$as_me:$LINENO: result: $RM" >&5
4459 echo "${ECHO_T}$RM" >&6
4460 else
4461   echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4463 fi
4464
4465 # Extract the first word of "mv", so it can be a program name with args.
4466 set dummy mv; ac_word=$2
4467 echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_path_MV+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   case $MV in
4473   [\\/]* | ?:[\\/]*)
4474   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4475   ;;
4476   *)
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490
4491   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4492   ;;
4493 esac
4494 fi
4495 MV=$ac_cv_path_MV
4496
4497 if test -n "$MV"; then
4498   echo "$as_me:$LINENO: result: $MV" >&5
4499 echo "${ECHO_T}$MV" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
4505 # Extract the first word of "tar", so it can be a program name with args.
4506 set dummy tar; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_path_TAR+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   case $TAR in
4513   [\\/]* | ?:[\\/]*)
4514   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4515   ;;
4516   *)
4517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522   for ac_exec_ext in '' $ac_executable_extensions; do
4523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529 done
4530
4531   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4532   ;;
4533 esac
4534 fi
4535 TAR=$ac_cv_path_TAR
4536
4537 if test -n "$TAR"; then
4538   echo "$as_me:$LINENO: result: $TAR" >&5
4539 echo "${ECHO_T}$TAR" >&6
4540 else
4541   echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4543 fi
4544
4545
4546
4547 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4548         if test -n "$ac_tool_prefix"; then
4549   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   case $PKG_CONFIG in
4557   [\\/]* | ?:[\\/]*)
4558   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4559   ;;
4560   *)
4561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574
4575   ;;
4576 esac
4577 fi
4578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4579
4580 if test -n "$PKG_CONFIG"; then
4581   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4582 echo "${ECHO_T}$PKG_CONFIG" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588 fi
4589 if test -z "$ac_cv_path_PKG_CONFIG"; then
4590   ac_pt_PKG_CONFIG=$PKG_CONFIG
4591   # Extract the first word of "pkg-config", so it can be a program name with args.
4592 set dummy pkg-config; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   case $ac_pt_PKG_CONFIG in
4599   [\\/]* | ?:[\\/]*)
4600   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4601   ;;
4602   *)
4603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616
4617   ;;
4618 esac
4619 fi
4620 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4621
4622 if test -n "$ac_pt_PKG_CONFIG"; then
4623   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4624 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   PKG_CONFIG=$ac_pt_PKG_CONFIG
4631 else
4632   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4633 fi
4634
4635 fi
4636 if test -n "$PKG_CONFIG"; then
4637         _pkg_min_version=0.9.0
4638         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4639 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4640         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4641                 echo "$as_me:$LINENO: result: yes" >&5
4642 echo "${ECHO_T}yes" >&6
4643         else
4644                 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646                 PKG_CONFIG=""
4647         fi
4648
4649 fi
4650
4651 pkg_failed=no
4652 echo "$as_me:$LINENO: checking for GLIB" >&5
4653 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
4654
4655 if test -n "$PKG_CONFIG"; then
4656         if test -n "$PKG_CONFIG" && \
4657     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\"") >&5
4658   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; then
4662   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
4663 else
4664   pkg_failed=yes
4665 fi
4666 else
4667         pkg_failed=untried
4668 fi
4669 if test -n "$PKG_CONFIG"; then
4670         if test -n "$PKG_CONFIG" && \
4671     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\"") >&5
4672   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; then
4676   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
4677 else
4678   pkg_failed=yes
4679 fi
4680 else
4681         pkg_failed=untried
4682 fi
4683
4684 if test $pkg_failed = yes; then
4685         GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
4686         # Put the nasty error message in config.log where it belongs
4687         echo "$GLIB_PKG_ERRORS" 1>&5
4688
4689         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met.
4690 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4691 installed software in a non-standard prefix.
4692
4693 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
4694 to avoid the need to call pkg-config.  See the pkg-config man page for
4695 more details." >&5
4696 echo "$as_me: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met.
4697 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4698 installed software in a non-standard prefix.
4699
4700 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
4701 to avoid the need to call pkg-config.  See the pkg-config man page for
4702 more details." >&2;}
4703    { (exit 1); exit 1; }; }
4704 elif test $pkg_failed = untried; then
4705         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
4706 is in your PATH or set the PKG_CONFIG environment variable to the full
4707 path to pkg-config.
4708
4709 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
4710 to avoid the need to call pkg-config.  See the pkg-config man page for
4711 more details.
4712
4713 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
4716 is in your PATH or set the PKG_CONFIG environment variable to the full
4717 path to pkg-config.
4718
4719 Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
4720 to avoid the need to call pkg-config.  See the pkg-config man page for
4721 more details.
4722
4723 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4724 See \`config.log' for more details." >&2;}
4725    { (exit 1); exit 1; }; }
4726 else
4727         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
4728         GLIB_LIBS=$pkg_cv_GLIB_LIBS
4729         echo "$as_me:$LINENO: result: yes" >&5
4730 echo "${ECHO_T}yes" >&6
4731         :
4732 fi
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743                                                             ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
4744 cat >confcache <<\_ACEOF
4745 # This file is a shell script that caches the results of configure
4746 # tests run on this system so they can be shared between configure
4747 # scripts and configure runs, see configure's option --config-cache.
4748 # It is not useful on other systems.  If it contains results you don't
4749 # want to keep, you may remove or edit it.
4750 #
4751 # config.status only pays attention to the cache file if you give it
4752 # the --recheck option to rerun configure.
4753 #
4754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4756 # following values.
4757
4758 _ACEOF
4759
4760 # The following way of writing the cache mishandles newlines in values,
4761 # but we know of no workaround that is simple, portable, and efficient.
4762 # So, don't put newlines in cache variables' values.
4763 # Ultrix sh set writes to stderr and can't be redirected directly,
4764 # and sets the high bit in the cache file unless we assign to the vars.
4765 {
4766   (set) 2>&1 |
4767     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4768     *ac_space=\ *)
4769       # `set' does not quote correctly, so add quotes (double-quote
4770       # substitution turns \\\\ into \\, and sed turns \\ into \).
4771       sed -n \
4772         "s/'/'\\\\''/g;
4773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4774       ;;
4775     *)
4776       # `set' quotes correctly as required by POSIX, so do not add quotes.
4777       sed -n \
4778         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4779       ;;
4780     esac;
4781 } |
4782   sed '
4783      t clear
4784      : clear
4785      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4786      t end
4787      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4788      : end' >>confcache
4789 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4790   if test -w $cache_file; then
4791     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4792     cat confcache >$cache_file
4793   else
4794     echo "not updating unwritable cache $cache_file"
4795   fi
4796 fi
4797 rm -f confcache
4798
4799 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4800 # Let make expand exec_prefix.
4801 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4802
4803 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4804 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4805 # trailing colons and then remove the whole line if VPATH becomes empty
4806 # (actually we leave an empty line to preserve line numbers).
4807 if test "x$srcdir" = x.; then
4808   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4809 s/:*\$(srcdir):*/:/;
4810 s/:*\${srcdir}:*/:/;
4811 s/:*@srcdir@:*/:/;
4812 s/^\([^=]*=[     ]*\):*/\1/;
4813 s/:*$//;
4814 s/^[^=]*=[       ]*$//;
4815 }'
4816 fi
4817
4818 DEFS=-DHAVE_CONFIG_H
4819
4820 ac_libobjs=
4821 ac_ltlibobjs=
4822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4823   # 1. Remove the extension, and $U if already installed.
4824   ac_i=`echo "$ac_i" |
4825          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4826   # 2. Add them.
4827   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4828   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4829 done
4830 LIBOBJS=$ac_libobjs
4831
4832 LTLIBOBJS=$ac_ltlibobjs
4833
4834
4835
4836 : ${CONFIG_STATUS=./config.status}
4837 ac_clean_files_save=$ac_clean_files
4838 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4839 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4840 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4841 cat >$CONFIG_STATUS <<_ACEOF
4842 #! $SHELL
4843 # Generated by $as_me.
4844 # Run this file to recreate the current configuration.
4845 # Compiler output produced by configure, useful for debugging
4846 # configure, is in config.log if it exists.
4847
4848 debug=false
4849 ac_cs_recheck=false
4850 ac_cs_silent=false
4851 SHELL=\${CONFIG_SHELL-$SHELL}
4852 _ACEOF
4853
4854 cat >>$CONFIG_STATUS <<\_ACEOF
4855 ## --------------------- ##
4856 ## M4sh Initialization.  ##
4857 ## --------------------- ##
4858
4859 # Be Bourne compatible
4860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4861   emulate sh
4862   NULLCMD=:
4863   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4864   # is contrary to our usage.  Disable this feature.
4865   alias -g '${1+"$@"}'='"$@"'
4866 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4867   set -o posix
4868 fi
4869 DUALCASE=1; export DUALCASE # for MKS sh
4870
4871 # Support unset when possible.
4872 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4873   as_unset=unset
4874 else
4875   as_unset=false
4876 fi
4877
4878
4879 # Work around bugs in pre-3.0 UWIN ksh.
4880 $as_unset ENV MAIL MAILPATH
4881 PS1='$ '
4882 PS2='> '
4883 PS4='+ '
4884
4885 # NLS nuisances.
4886 for as_var in \
4887   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4888   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4889   LC_TELEPHONE LC_TIME
4890 do
4891   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4892     eval $as_var=C; export $as_var
4893   else
4894     $as_unset $as_var
4895   fi
4896 done
4897
4898 # Required to use basename.
4899 if expr a : '\(a\)' >/dev/null 2>&1; then
4900   as_expr=expr
4901 else
4902   as_expr=false
4903 fi
4904
4905 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4906   as_basename=basename
4907 else
4908   as_basename=false
4909 fi
4910
4911
4912 # Name of the executable.
4913 as_me=`$as_basename "$0" ||
4914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4915          X"$0" : 'X\(//\)$' \| \
4916          X"$0" : 'X\(/\)$' \| \
4917          .     : '\(.\)' 2>/dev/null ||
4918 echo X/"$0" |
4919     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4920           /^X\/\(\/\/\)$/{ s//\1/; q; }
4921           /^X\/\(\/\).*/{ s//\1/; q; }
4922           s/.*/./; q'`
4923
4924
4925 # PATH needs CR, and LINENO needs CR and PATH.
4926 # Avoid depending upon Character Ranges.
4927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4930 as_cr_digits='0123456789'
4931 as_cr_alnum=$as_cr_Letters$as_cr_digits
4932
4933 # The user is always right.
4934 if test "${PATH_SEPARATOR+set}" != set; then
4935   echo "#! /bin/sh" >conf$$.sh
4936   echo  "exit 0"   >>conf$$.sh
4937   chmod +x conf$$.sh
4938   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4939     PATH_SEPARATOR=';'
4940   else
4941     PATH_SEPARATOR=:
4942   fi
4943   rm -f conf$$.sh
4944 fi
4945
4946
4947   as_lineno_1=$LINENO
4948   as_lineno_2=$LINENO
4949   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4950   test "x$as_lineno_1" != "x$as_lineno_2" &&
4951   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4952   # Find who we are.  Look in the path if we contain no path at all
4953   # relative or not.
4954   case $0 in
4955     *[\\/]* ) as_myself=$0 ;;
4956     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4962 done
4963
4964        ;;
4965   esac
4966   # We did not find ourselves, most probably we were run as `sh COMMAND'
4967   # in which case we are not to be found in the path.
4968   if test "x$as_myself" = x; then
4969     as_myself=$0
4970   fi
4971   if test ! -f "$as_myself"; then
4972     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4973 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4974    { (exit 1); exit 1; }; }
4975   fi
4976   case $CONFIG_SHELL in
4977   '')
4978     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for as_base in sh bash ksh sh5; do
4984          case $as_dir in
4985          /*)
4986            if ("$as_dir/$as_base" -c '
4987   as_lineno_1=$LINENO
4988   as_lineno_2=$LINENO
4989   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4990   test "x$as_lineno_1" != "x$as_lineno_2" &&
4991   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4992              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4993              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4994              CONFIG_SHELL=$as_dir/$as_base
4995              export CONFIG_SHELL
4996              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4997            fi;;
4998          esac
4999        done
5000 done
5001 ;;
5002   esac
5003
5004   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5005   # uniformly replaced by the line number.  The first 'sed' inserts a
5006   # line-number line before each line; the second 'sed' does the real
5007   # work.  The second script uses 'N' to pair each line-number line
5008   # with the numbered line, and appends trailing '-' during
5009   # substitution so that $LINENO is not a special case at line end.
5010   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5011   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5012   sed '=' <$as_myself |
5013     sed '
5014       N
5015       s,$,-,
5016       : loop
5017       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5018       t loop
5019       s,-$,,
5020       s,^['$as_cr_digits']*\n,,
5021     ' >$as_me.lineno &&
5022   chmod +x $as_me.lineno ||
5023     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5024 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5025    { (exit 1); exit 1; }; }
5026
5027   # Don't try to exec as it changes $[0], causing all sort of problems
5028   # (the dirname of $[0] is not the place where we might find the
5029   # original and so on.  Autoconf is especially sensible to this).
5030   . ./$as_me.lineno
5031   # Exit status is that of the last command.
5032   exit
5033 }
5034
5035
5036 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5037   *c*,-n*) ECHO_N= ECHO_C='
5038 ' ECHO_T='      ' ;;
5039   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5040   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5041 esac
5042
5043 if expr a : '\(a\)' >/dev/null 2>&1; then
5044   as_expr=expr
5045 else
5046   as_expr=false
5047 fi
5048
5049 rm -f conf$$ conf$$.exe conf$$.file
5050 echo >conf$$.file
5051 if ln -s conf$$.file conf$$ 2>/dev/null; then
5052   # We could just check for DJGPP; but this test a) works b) is more generic
5053   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5054   if test -f conf$$.exe; then
5055     # Don't use ln at all; we don't have any links
5056     as_ln_s='cp -p'
5057   else
5058     as_ln_s='ln -s'
5059   fi
5060 elif ln conf$$.file conf$$ 2>/dev/null; then
5061   as_ln_s=ln
5062 else
5063   as_ln_s='cp -p'
5064 fi
5065 rm -f conf$$ conf$$.exe conf$$.file
5066
5067 if mkdir -p . 2>/dev/null; then
5068   as_mkdir_p=:
5069 else
5070   test -d ./-p && rmdir ./-p
5071   as_mkdir_p=false
5072 fi
5073
5074 as_executable_p="test -f"
5075
5076 # Sed expression to map a string onto a valid CPP name.
5077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5078
5079 # Sed expression to map a string onto a valid variable name.
5080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5081
5082
5083 # IFS
5084 # We need space, tab and new line, in precisely that order.
5085 as_nl='
5086 '
5087 IFS="   $as_nl"
5088
5089 # CDPATH.
5090 $as_unset CDPATH
5091
5092 exec 6>&1
5093
5094 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5095 # report actual input values of CONFIG_FILES etc. instead of their
5096 # values after options handling.  Logging --version etc. is OK.
5097 exec 5>>config.log
5098 {
5099   echo
5100   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5101 ## Running $as_me. ##
5102 _ASBOX
5103 } >&5
5104 cat >&5 <<_CSEOF
5105
5106 This file was extended by $as_me, which was
5107 generated by GNU Autoconf 2.59.  Invocation command line was
5108
5109   CONFIG_FILES    = $CONFIG_FILES
5110   CONFIG_HEADERS  = $CONFIG_HEADERS
5111   CONFIG_LINKS    = $CONFIG_LINKS
5112   CONFIG_COMMANDS = $CONFIG_COMMANDS
5113   $ $0 $@
5114
5115 _CSEOF
5116 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5117 echo >&5
5118 _ACEOF
5119
5120 # Files that config.status was made for.
5121 if test -n "$ac_config_files"; then
5122   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5123 fi
5124
5125 if test -n "$ac_config_headers"; then
5126   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5127 fi
5128
5129 if test -n "$ac_config_links"; then
5130   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5131 fi
5132
5133 if test -n "$ac_config_commands"; then
5134   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5135 fi
5136
5137 cat >>$CONFIG_STATUS <<\_ACEOF
5138
5139 ac_cs_usage="\
5140 \`$as_me' instantiates files from templates according to the
5141 current configuration.
5142
5143 Usage: $0 [OPTIONS] [FILE]...
5144
5145   -h, --help       print this help, then exit
5146   -V, --version    print version number, then exit
5147   -q, --quiet      do not print progress messages
5148   -d, --debug      don't remove temporary files
5149       --recheck    update $as_me by reconfiguring in the same conditions
5150   --file=FILE[:TEMPLATE]
5151                    instantiate the configuration file FILE
5152   --header=FILE[:TEMPLATE]
5153                    instantiate the configuration header FILE
5154
5155 Configuration files:
5156 $config_files
5157
5158 Configuration headers:
5159 $config_headers
5160
5161 Configuration commands:
5162 $config_commands
5163
5164 Report bugs to <bug-autoconf@gnu.org>."
5165 _ACEOF
5166
5167 cat >>$CONFIG_STATUS <<_ACEOF
5168 ac_cs_version="\\
5169 config.status
5170 configured by $0, generated by GNU Autoconf 2.59,
5171   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5172
5173 Copyright (C) 2003 Free Software Foundation, Inc.
5174 This config.status script is free software; the Free Software Foundation
5175 gives unlimited permission to copy, distribute and modify it."
5176 srcdir=$srcdir
5177 INSTALL="$INSTALL"
5178 _ACEOF
5179
5180 cat >>$CONFIG_STATUS <<\_ACEOF
5181 # If no file are specified by the user, then we need to provide default
5182 # value.  By we need to know if files were specified by the user.
5183 ac_need_defaults=:
5184 while test $# != 0
5185 do
5186   case $1 in
5187   --*=*)
5188     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5189     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5190     ac_shift=:
5191     ;;
5192   -*)
5193     ac_option=$1
5194     ac_optarg=$2
5195     ac_shift=shift
5196     ;;
5197   *) # This is not an option, so the user has probably given explicit
5198      # arguments.
5199      ac_option=$1
5200      ac_need_defaults=false;;
5201   esac
5202
5203   case $ac_option in
5204   # Handling of the options.
5205 _ACEOF
5206 cat >>$CONFIG_STATUS <<\_ACEOF
5207   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5208     ac_cs_recheck=: ;;
5209   --version | --vers* | -V )
5210     echo "$ac_cs_version"; exit 0 ;;
5211   --he | --h)
5212     # Conflict between --help and --header
5213     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5214 Try \`$0 --help' for more information." >&5
5215 echo "$as_me: error: ambiguous option: $1
5216 Try \`$0 --help' for more information." >&2;}
5217    { (exit 1); exit 1; }; };;
5218   --help | --hel | -h )
5219     echo "$ac_cs_usage"; exit 0 ;;
5220   --debug | --d* | -d )
5221     debug=: ;;
5222   --file | --fil | --fi | --f )
5223     $ac_shift
5224     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5225     ac_need_defaults=false;;
5226   --header | --heade | --head | --hea )
5227     $ac_shift
5228     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5229     ac_need_defaults=false;;
5230   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5231   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5232     ac_cs_silent=: ;;
5233
5234   # This is an error.
5235   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5236 Try \`$0 --help' for more information." >&5
5237 echo "$as_me: error: unrecognized option: $1
5238 Try \`$0 --help' for more information." >&2;}
5239    { (exit 1); exit 1; }; } ;;
5240
5241   *) ac_config_targets="$ac_config_targets $1" ;;
5242
5243   esac
5244   shift
5245 done
5246
5247 ac_configure_extra_args=
5248
5249 if $ac_cs_silent; then
5250   exec 6>/dev/null
5251   ac_configure_extra_args="$ac_configure_extra_args --silent"
5252 fi
5253
5254 _ACEOF
5255 cat >>$CONFIG_STATUS <<_ACEOF
5256 if \$ac_cs_recheck; then
5257   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5258   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5259 fi
5260
5261 _ACEOF
5262
5263 cat >>$CONFIG_STATUS <<_ACEOF
5264 #
5265 # INIT-COMMANDS section.
5266 #
5267
5268
5269
5270 _ACEOF
5271
5272
5273
5274 cat >>$CONFIG_STATUS <<\_ACEOF
5275 for ac_config_target in $ac_config_targets
5276 do
5277   case "$ac_config_target" in
5278   # Handling of arguments.
5279   "gob2.spec" ) CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
5280   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5281   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5282   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5283   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
5284   "doc/gob2.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
5285   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5286   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5287   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5288 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5289    { (exit 1); exit 1; }; };;
5290   esac
5291 done
5292
5293 # If the user did not use the arguments to specify the items to instantiate,
5294 # then the envvar interface is used.  Set only those that are not.
5295 # We use the long form for the default assignment because of an extremely
5296 # bizarre bug on SunOS 4.1.3.
5297 if $ac_need_defaults; then
5298   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5299   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5300   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5301 fi
5302
5303 # Have a temporary directory for convenience.  Make it in the build tree
5304 # simply because there is no reason to put it here, and in addition,
5305 # creating and moving files from /tmp can sometimes cause problems.
5306 # Create a temporary directory, and hook for its removal unless debugging.
5307 $debug ||
5308 {
5309   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5310   trap '{ (exit 1); exit 1; }' 1 2 13 15
5311 }
5312
5313 # Create a (secure) tmp directory for tmp files.
5314
5315 {
5316   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5317   test -n "$tmp" && test -d "$tmp"
5318 }  ||
5319 {
5320   tmp=./confstat$$-$RANDOM
5321   (umask 077 && mkdir $tmp)
5322 } ||
5323 {
5324    echo "$me: cannot create a temporary directory in ." >&2
5325    { (exit 1); exit 1; }
5326 }
5327
5328 _ACEOF
5329
5330 cat >>$CONFIG_STATUS <<_ACEOF
5331
5332 #
5333 # CONFIG_FILES section.
5334 #
5335
5336 # No need to generate the scripts if there are no CONFIG_FILES.
5337 # This happens for instance when ./config.status config.h
5338 if test -n "\$CONFIG_FILES"; then
5339   # Protect against being on the right side of a sed subst in config.status.
5340   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5341    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5342 s,@SHELL@,$SHELL,;t t
5343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5349 s,@exec_prefix@,$exec_prefix,;t t
5350 s,@prefix@,$prefix,;t t
5351 s,@program_transform_name@,$program_transform_name,;t t
5352 s,@bindir@,$bindir,;t t
5353 s,@sbindir@,$sbindir,;t t
5354 s,@libexecdir@,$libexecdir,;t t
5355 s,@datadir@,$datadir,;t t
5356 s,@sysconfdir@,$sysconfdir,;t t
5357 s,@sharedstatedir@,$sharedstatedir,;t t
5358 s,@localstatedir@,$localstatedir,;t t
5359 s,@libdir@,$libdir,;t t
5360 s,@includedir@,$includedir,;t t
5361 s,@oldincludedir@,$oldincludedir,;t t
5362 s,@infodir@,$infodir,;t t
5363 s,@mandir@,$mandir,;t t
5364 s,@build_alias@,$build_alias,;t t
5365 s,@host_alias@,$host_alias,;t t
5366 s,@target_alias@,$target_alias,;t t
5367 s,@DEFS@,$DEFS,;t t
5368 s,@ECHO_C@,$ECHO_C,;t t
5369 s,@ECHO_N@,$ECHO_N,;t t
5370 s,@ECHO_T@,$ECHO_T,;t t
5371 s,@LIBS@,$LIBS,;t t
5372 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5373 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5374 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5375 s,@PACKAGE@,$PACKAGE,;t t
5376 s,@VERSION@,$VERSION,;t t
5377 s,@ACLOCAL@,$ACLOCAL,;t t
5378 s,@AUTOCONF@,$AUTOCONF,;t t
5379 s,@AUTOMAKE@,$AUTOMAKE,;t t
5380 s,@AUTOHEADER@,$AUTOHEADER,;t t
5381 s,@MAKEINFO@,$MAKEINFO,;t t
5382 s,@SET_MAKE@,$SET_MAKE,;t t
5383 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5384 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5385 s,@MAINT@,$MAINT,;t t
5386 s,@NOINSTGOB_TRUE@,$NOINSTGOB_TRUE,;t t
5387 s,@NOINSTGOB_FALSE@,$NOINSTGOB_FALSE,;t t
5388 s,@SUBDIRS@,$SUBDIRS,;t t
5389 s,@INSTGOB@,$INSTGOB,;t t
5390 s,@NOINSTGOB@,$NOINSTGOB,;t t
5391 s,@CC@,$CC,;t t
5392 s,@CFLAGS@,$CFLAGS,;t t
5393 s,@LDFLAGS@,$LDFLAGS,;t t
5394 s,@CPPFLAGS@,$CPPFLAGS,;t t
5395 s,@ac_ct_CC@,$ac_ct_CC,;t t
5396 s,@EXEEXT@,$EXEEXT,;t t
5397 s,@OBJEXT@,$OBJEXT,;t t
5398 s,@CPP@,$CPP,;t t
5399 s,@EGREP@,$EGREP,;t t
5400 s,@YACC@,$YACC,;t t
5401 s,@LEX@,$LEX,;t t
5402 s,@LEXLIB@,$LEXLIB,;t t
5403 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
5404 s,@RM@,$RM,;t t
5405 s,@MV@,$MV,;t t
5406 s,@TAR@,$TAR,;t t
5407 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
5408 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
5409 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
5410 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
5411 s,@YFLAGS@,$YFLAGS,;t t
5412 s,@LIBOBJS@,$LIBOBJS,;t t
5413 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5414 CEOF
5415
5416 _ACEOF
5417
5418   cat >>$CONFIG_STATUS <<\_ACEOF
5419   # Split the substitutions into bite-sized pieces for seds with
5420   # small command number limits, like on Digital OSF/1 and HP-UX.
5421   ac_max_sed_lines=48
5422   ac_sed_frag=1 # Number of current file.
5423   ac_beg=1 # First line for current file.
5424   ac_end=$ac_max_sed_lines # Line after last line for current file.
5425   ac_more_lines=:
5426   ac_sed_cmds=
5427   while $ac_more_lines; do
5428     if test $ac_beg -gt 1; then
5429       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5430     else
5431       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5432     fi
5433     if test ! -s $tmp/subs.frag; then
5434       ac_more_lines=false
5435     else
5436       # The purpose of the label and of the branching condition is to
5437       # speed up the sed processing (if there are no `@' at all, there
5438       # is no need to browse any of the substitutions).
5439       # These are the two extra sed commands mentioned above.
5440       (echo ':t
5441   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5442       if test -z "$ac_sed_cmds"; then
5443         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5444       else
5445         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5446       fi
5447       ac_sed_frag=`expr $ac_sed_frag + 1`
5448       ac_beg=$ac_end
5449       ac_end=`expr $ac_end + $ac_max_sed_lines`
5450     fi
5451   done
5452   if test -z "$ac_sed_cmds"; then
5453     ac_sed_cmds=cat
5454   fi
5455 fi # test -n "$CONFIG_FILES"
5456
5457 _ACEOF
5458 cat >>$CONFIG_STATUS <<\_ACEOF
5459 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5460   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5461   case $ac_file in
5462   - | *:- | *:-:* ) # input from stdin
5463         cat >$tmp/stdin
5464         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5465         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5466   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5467         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5468   * )   ac_file_in=$ac_file.in ;;
5469   esac
5470
5471   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5472   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5474          X"$ac_file" : 'X\(//\)[^/]' \| \
5475          X"$ac_file" : 'X\(//\)$' \| \
5476          X"$ac_file" : 'X\(/\)' \| \
5477          .     : '\(.\)' 2>/dev/null ||
5478 echo X"$ac_file" |
5479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5480           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5481           /^X\(\/\/\)$/{ s//\1/; q; }
5482           /^X\(\/\).*/{ s//\1/; q; }
5483           s/.*/./; q'`
5484   { if $as_mkdir_p; then
5485     mkdir -p "$ac_dir"
5486   else
5487     as_dir="$ac_dir"
5488     as_dirs=
5489     while test ! -d "$as_dir"; do
5490       as_dirs="$as_dir $as_dirs"
5491       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5493          X"$as_dir" : 'X\(//\)[^/]' \| \
5494          X"$as_dir" : 'X\(//\)$' \| \
5495          X"$as_dir" : 'X\(/\)' \| \
5496          .     : '\(.\)' 2>/dev/null ||
5497 echo X"$as_dir" |
5498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5499           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5500           /^X\(\/\/\)$/{ s//\1/; q; }
5501           /^X\(\/\).*/{ s//\1/; q; }
5502           s/.*/./; q'`
5503     done
5504     test ! -n "$as_dirs" || mkdir $as_dirs
5505   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5506 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5507    { (exit 1); exit 1; }; }; }
5508
5509   ac_builddir=.
5510
5511 if test "$ac_dir" != .; then
5512   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5513   # A "../" for each directory in $ac_dir_suffix.
5514   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5515 else
5516   ac_dir_suffix= ac_top_builddir=
5517 fi
5518
5519 case $srcdir in
5520   .)  # No --srcdir option.  We are building in place.
5521     ac_srcdir=.
5522     if test -z "$ac_top_builddir"; then
5523        ac_top_srcdir=.
5524     else
5525        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5526     fi ;;
5527   [\\/]* | ?:[\\/]* )  # Absolute path.
5528     ac_srcdir=$srcdir$ac_dir_suffix;
5529     ac_top_srcdir=$srcdir ;;
5530   *) # Relative path.
5531     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5532     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5533 esac
5534
5535 # Do not use `cd foo && pwd` to compute absolute paths, because
5536 # the directories may not exist.
5537 case `pwd` in
5538 .) ac_abs_builddir="$ac_dir";;
5539 *)
5540   case "$ac_dir" in
5541   .) ac_abs_builddir=`pwd`;;
5542   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5543   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5544   esac;;
5545 esac
5546 case $ac_abs_builddir in
5547 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5548 *)
5549   case ${ac_top_builddir}. in
5550   .) ac_abs_top_builddir=$ac_abs_builddir;;
5551   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5552   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5553   esac;;
5554 esac
5555 case $ac_abs_builddir in
5556 .) ac_abs_srcdir=$ac_srcdir;;
5557 *)
5558   case $ac_srcdir in
5559   .) ac_abs_srcdir=$ac_abs_builddir;;
5560   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5561   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5562   esac;;
5563 esac
5564 case $ac_abs_builddir in
5565 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5566 *)
5567   case $ac_top_srcdir in
5568   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5569   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5570   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5571   esac;;
5572 esac
5573
5574
5575   case $INSTALL in
5576   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5577   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5578   esac
5579
5580   # Let's still pretend it is `configure' which instantiates (i.e., don't
5581   # use $as_me), people would be surprised to read:
5582   #    /* config.h.  Generated by config.status.  */
5583   if test x"$ac_file" = x-; then
5584     configure_input=
5585   else
5586     configure_input="$ac_file.  "
5587   fi
5588   configure_input=$configure_input"Generated from `echo $ac_file_in |
5589                                      sed 's,.*/,,'` by configure."
5590
5591   # First look for the input files in the build tree, otherwise in the
5592   # src tree.
5593   ac_file_inputs=`IFS=:
5594     for f in $ac_file_in; do
5595       case $f in
5596       -) echo $tmp/stdin ;;
5597       [\\/$]*)
5598          # Absolute (can't be DOS-style, as IFS=:)
5599          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5600 echo "$as_me: error: cannot find input file: $f" >&2;}
5601    { (exit 1); exit 1; }; }
5602          echo "$f";;
5603       *) # Relative
5604          if test -f "$f"; then
5605            # Build tree
5606            echo "$f"
5607          elif test -f "$srcdir/$f"; then
5608            # Source tree
5609            echo "$srcdir/$f"
5610          else
5611            # /dev/null tree
5612            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5613 echo "$as_me: error: cannot find input file: $f" >&2;}
5614    { (exit 1); exit 1; }; }
5615          fi;;
5616       esac
5617     done` || { (exit 1); exit 1; }
5618
5619   if test x"$ac_file" != x-; then
5620     { echo "$as_me:$LINENO: creating $ac_file" >&5
5621 echo "$as_me: creating $ac_file" >&6;}
5622     rm -f "$ac_file"
5623   fi
5624 _ACEOF
5625 cat >>$CONFIG_STATUS <<_ACEOF
5626   sed "$ac_vpsub
5627 $extrasub
5628 _ACEOF
5629 cat >>$CONFIG_STATUS <<\_ACEOF
5630 :t
5631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5632 s,@configure_input@,$configure_input,;t t
5633 s,@srcdir@,$ac_srcdir,;t t
5634 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5635 s,@top_srcdir@,$ac_top_srcdir,;t t
5636 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5637 s,@builddir@,$ac_builddir,;t t
5638 s,@abs_builddir@,$ac_abs_builddir,;t t
5639 s,@top_builddir@,$ac_top_builddir,;t t
5640 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5641 s,@INSTALL@,$ac_INSTALL,;t t
5642 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5643   rm -f $tmp/stdin
5644   if test x"$ac_file" != x-; then
5645     mv $tmp/out $ac_file
5646   else
5647     cat $tmp/out
5648     rm -f $tmp/out
5649   fi
5650
5651 done
5652 _ACEOF
5653 cat >>$CONFIG_STATUS <<\_ACEOF
5654
5655 #
5656 # CONFIG_HEADER section.
5657 #
5658
5659 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5660 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5661 #
5662 # ac_d sets the value in "#define NAME VALUE" lines.
5663 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5664 ac_dB='[         ].*$,\1#\2'
5665 ac_dC=' '
5666 ac_dD=',;t'
5667 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5668 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5669 ac_uB='$,\1#\2define\3'
5670 ac_uC=' '
5671 ac_uD=',;t'
5672
5673 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5674   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5675   case $ac_file in
5676   - | *:- | *:-:* ) # input from stdin
5677         cat >$tmp/stdin
5678         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5679         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5680   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5681         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5682   * )   ac_file_in=$ac_file.in ;;
5683   esac
5684
5685   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5686 echo "$as_me: creating $ac_file" >&6;}
5687
5688   # First look for the input files in the build tree, otherwise in the
5689   # src tree.
5690   ac_file_inputs=`IFS=:
5691     for f in $ac_file_in; do
5692       case $f in
5693       -) echo $tmp/stdin ;;
5694       [\\/$]*)
5695          # Absolute (can't be DOS-style, as IFS=:)
5696          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5697 echo "$as_me: error: cannot find input file: $f" >&2;}
5698    { (exit 1); exit 1; }; }
5699          # Do quote $f, to prevent DOS paths from being IFS'd.
5700          echo "$f";;
5701       *) # Relative
5702          if test -f "$f"; then
5703            # Build tree
5704            echo "$f"
5705          elif test -f "$srcdir/$f"; then
5706            # Source tree
5707            echo "$srcdir/$f"
5708          else
5709            # /dev/null tree
5710            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5711 echo "$as_me: error: cannot find input file: $f" >&2;}
5712    { (exit 1); exit 1; }; }
5713          fi;;
5714       esac
5715     done` || { (exit 1); exit 1; }
5716   # Remove the trailing spaces.
5717   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5718
5719 _ACEOF
5720
5721 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5722 # `conftest.undefs', that substitutes the proper values into
5723 # config.h.in to produce config.h.  The first handles `#define'
5724 # templates, and the second `#undef' templates.
5725 # And first: Protect against being on the right side of a sed subst in
5726 # config.status.  Protect against being in an unquoted here document
5727 # in config.status.
5728 rm -f conftest.defines conftest.undefs
5729 # Using a here document instead of a string reduces the quoting nightmare.
5730 # Putting comments in sed scripts is not portable.
5731 #
5732 # `end' is used to avoid that the second main sed command (meant for
5733 # 0-ary CPP macros) applies to n-ary macro definitions.
5734 # See the Autoconf documentation for `clear'.
5735 cat >confdef2sed.sed <<\_ACEOF
5736 s/[\\&,]/\\&/g
5737 s,[\\$`],\\&,g
5738 t clear
5739 : clear
5740 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5741 t end
5742 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5743 : end
5744 _ACEOF
5745 # If some macros were called several times there might be several times
5746 # the same #defines, which is useless.  Nevertheless, we may not want to
5747 # sort them, since we want the *last* AC-DEFINE to be honored.
5748 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5749 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5750 rm -f confdef2sed.sed
5751
5752 # This sed command replaces #undef with comments.  This is necessary, for
5753 # example, in the case of _POSIX_SOURCE, which is predefined and required
5754 # on some systems where configure will not decide to define it.
5755 cat >>conftest.undefs <<\_ACEOF
5756 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5757 _ACEOF
5758
5759 # Break up conftest.defines because some shells have a limit on the size
5760 # of here documents, and old seds have small limits too (100 cmds).
5761 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5762 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5763 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5764 echo '  :' >>$CONFIG_STATUS
5765 rm -f conftest.tail
5766 while grep . conftest.defines >/dev/null
5767 do
5768   # Write a limited-size here document to $tmp/defines.sed.
5769   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5770   # Speed up: don't consider the non `#define' lines.
5771   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5772   # Work around the forget-to-reset-the-flag bug.
5773   echo 't clr' >>$CONFIG_STATUS
5774   echo ': clr' >>$CONFIG_STATUS
5775   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5776   echo 'CEOF
5777   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5778   rm -f $tmp/in
5779   mv $tmp/out $tmp/in
5780 ' >>$CONFIG_STATUS
5781   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5782   rm -f conftest.defines
5783   mv conftest.tail conftest.defines
5784 done
5785 rm -f conftest.defines
5786 echo '  fi # grep' >>$CONFIG_STATUS
5787 echo >>$CONFIG_STATUS
5788
5789 # Break up conftest.undefs because some shells have a limit on the size
5790 # of here documents, and old seds have small limits too (100 cmds).
5791 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5792 rm -f conftest.tail
5793 while grep . conftest.undefs >/dev/null
5794 do
5795   # Write a limited-size here document to $tmp/undefs.sed.
5796   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5797   # Speed up: don't consider the non `#undef'
5798   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5799   # Work around the forget-to-reset-the-flag bug.
5800   echo 't clr' >>$CONFIG_STATUS
5801   echo ': clr' >>$CONFIG_STATUS
5802   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5803   echo 'CEOF
5804   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5805   rm -f $tmp/in
5806   mv $tmp/out $tmp/in
5807 ' >>$CONFIG_STATUS
5808   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5809   rm -f conftest.undefs
5810   mv conftest.tail conftest.undefs
5811 done
5812 rm -f conftest.undefs
5813
5814 cat >>$CONFIG_STATUS <<\_ACEOF
5815   # Let's still pretend it is `configure' which instantiates (i.e., don't
5816   # use $as_me), people would be surprised to read:
5817   #    /* config.h.  Generated by config.status.  */
5818   if test x"$ac_file" = x-; then
5819     echo "/* Generated by configure.  */" >$tmp/config.h
5820   else
5821     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5822   fi
5823   cat $tmp/in >>$tmp/config.h
5824   rm -f $tmp/in
5825   if test x"$ac_file" != x-; then
5826     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5827       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5828 echo "$as_me: $ac_file is unchanged" >&6;}
5829     else
5830       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5832          X"$ac_file" : 'X\(//\)[^/]' \| \
5833          X"$ac_file" : 'X\(//\)$' \| \
5834          X"$ac_file" : 'X\(/\)' \| \
5835          .     : '\(.\)' 2>/dev/null ||
5836 echo X"$ac_file" |
5837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5839           /^X\(\/\/\)$/{ s//\1/; q; }
5840           /^X\(\/\).*/{ s//\1/; q; }
5841           s/.*/./; q'`
5842       { if $as_mkdir_p; then
5843     mkdir -p "$ac_dir"
5844   else
5845     as_dir="$ac_dir"
5846     as_dirs=
5847     while test ! -d "$as_dir"; do
5848       as_dirs="$as_dir $as_dirs"
5849       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5851          X"$as_dir" : 'X\(//\)[^/]' \| \
5852          X"$as_dir" : 'X\(//\)$' \| \
5853          X"$as_dir" : 'X\(/\)' \| \
5854          .     : '\(.\)' 2>/dev/null ||
5855 echo X"$as_dir" |
5856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5858           /^X\(\/\/\)$/{ s//\1/; q; }
5859           /^X\(\/\).*/{ s//\1/; q; }
5860           s/.*/./; q'`
5861     done
5862     test ! -n "$as_dirs" || mkdir $as_dirs
5863   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5864 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5865    { (exit 1); exit 1; }; }; }
5866
5867       rm -f $ac_file
5868       mv $tmp/config.h $ac_file
5869     fi
5870   else
5871     cat $tmp/config.h
5872     rm -f $tmp/config.h
5873   fi
5874 done
5875 _ACEOF
5876 cat >>$CONFIG_STATUS <<\_ACEOF
5877
5878 #
5879 # CONFIG_COMMANDS section.
5880 #
5881 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5882   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5883   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5884   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5885 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5886          X"$ac_dest" : 'X\(//\)[^/]' \| \
5887          X"$ac_dest" : 'X\(//\)$' \| \
5888          X"$ac_dest" : 'X\(/\)' \| \
5889          .     : '\(.\)' 2>/dev/null ||
5890 echo X"$ac_dest" |
5891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5893           /^X\(\/\/\)$/{ s//\1/; q; }
5894           /^X\(\/\).*/{ s//\1/; q; }
5895           s/.*/./; q'`
5896   { if $as_mkdir_p; then
5897     mkdir -p "$ac_dir"
5898   else
5899     as_dir="$ac_dir"
5900     as_dirs=
5901     while test ! -d "$as_dir"; do
5902       as_dirs="$as_dir $as_dirs"
5903       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5905          X"$as_dir" : 'X\(//\)[^/]' \| \
5906          X"$as_dir" : 'X\(//\)$' \| \
5907          X"$as_dir" : 'X\(/\)' \| \
5908          .     : '\(.\)' 2>/dev/null ||
5909 echo X"$as_dir" |
5910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5911           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5912           /^X\(\/\/\)$/{ s//\1/; q; }
5913           /^X\(\/\).*/{ s//\1/; q; }
5914           s/.*/./; q'`
5915     done
5916     test ! -n "$as_dirs" || mkdir $as_dirs
5917   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5919    { (exit 1); exit 1; }; }; }
5920
5921   ac_builddir=.
5922
5923 if test "$ac_dir" != .; then
5924   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5925   # A "../" for each directory in $ac_dir_suffix.
5926   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5927 else
5928   ac_dir_suffix= ac_top_builddir=
5929 fi
5930
5931 case $srcdir in
5932   .)  # No --srcdir option.  We are building in place.
5933     ac_srcdir=.
5934     if test -z "$ac_top_builddir"; then
5935        ac_top_srcdir=.
5936     else
5937        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5938     fi ;;
5939   [\\/]* | ?:[\\/]* )  # Absolute path.
5940     ac_srcdir=$srcdir$ac_dir_suffix;
5941     ac_top_srcdir=$srcdir ;;
5942   *) # Relative path.
5943     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5944     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5945 esac
5946
5947 # Do not use `cd foo && pwd` to compute absolute paths, because
5948 # the directories may not exist.
5949 case `pwd` in
5950 .) ac_abs_builddir="$ac_dir";;
5951 *)
5952   case "$ac_dir" in
5953   .) ac_abs_builddir=`pwd`;;
5954   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5955   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5956   esac;;
5957 esac
5958 case $ac_abs_builddir in
5959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5960 *)
5961   case ${ac_top_builddir}. in
5962   .) ac_abs_top_builddir=$ac_abs_builddir;;
5963   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5964   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5965   esac;;
5966 esac
5967 case $ac_abs_builddir in
5968 .) ac_abs_srcdir=$ac_srcdir;;
5969 *)
5970   case $ac_srcdir in
5971   .) ac_abs_srcdir=$ac_abs_builddir;;
5972   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5973   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5974   esac;;
5975 esac
5976 case $ac_abs_builddir in
5977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5978 *)
5979   case $ac_top_srcdir in
5980   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5981   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5982   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5983   esac;;
5984 esac
5985
5986
5987   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5988 echo "$as_me: executing $ac_dest commands" >&6;}
5989   case $ac_dest in
5990     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5991   esac
5992 done
5993 _ACEOF
5994
5995 cat >>$CONFIG_STATUS <<\_ACEOF
5996
5997 { (exit 0); exit 0; }
5998 _ACEOF
5999 chmod +x $CONFIG_STATUS
6000 ac_clean_files=$ac_clean_files_save
6001
6002
6003 # configure is writing to config.log, and then calls config.status.
6004 # config.status does its own redirection, appending to config.log.
6005 # Unfortunately, on DOS this fails, as config.log is still kept open
6006 # by configure, so config.status won't be able to write to it; its
6007 # output is simply discarded.  So we exec the FD to /dev/null,
6008 # effectively closing config.log, so it can be properly (re)opened and
6009 # appended to by config.status.  When coming back to configure, we
6010 # need to make the FD available again.
6011 if test "$no_create" != yes; then
6012   ac_cs_success=:
6013   ac_config_status_args=
6014   test "$silent" = yes &&
6015     ac_config_status_args="$ac_config_status_args --quiet"
6016   exec 5>/dev/null
6017   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6018   exec 5>>config.log
6019   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6020   # would make configure fail if this is the last instruction.
6021   $ac_cs_success || { (exit 1); exit 1; }
6022 fi
6023