ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.7
Committed: Wed Jan 25 11:46:28 2006 UTC (19 years, 3 months ago) by gcodispo
Branch: MAIN
Changes since 1.6: +167 -127 lines
Log Message:
Improved autoconf: checks done by custom macros

File Contents

# User Rev Content
1 gcodispo 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gcodispo 1.5 # Generated by GNU Autoconf 2.57 for boss `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`.
4 gcodispo 1.1 #
5     # Report bugs to <hn-cms-bossDevel@cern.ch>.
6     #
7     # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8     # Free Software Foundation, Inc.
9     # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11     ## --------------------- ##
12     ## M4sh Initialization. ##
13     ## --------------------- ##
14    
15     # Be Bourne compatible
16     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17     emulate sh
18     NULLCMD=:
19     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20     # is contrary to our usage. Disable this feature.
21     alias -g '${1+"$@"}'='"$@"'
22     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23     set -o posix
24     fi
25    
26     # Support unset when possible.
27     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28     as_unset=unset
29     else
30     as_unset=false
31     fi
32    
33    
34     # Work around bugs in pre-3.0 UWIN ksh.
35     $as_unset ENV MAIL MAILPATH
36     PS1='$ '
37     PS2='> '
38     PS4='+ '
39    
40     # NLS nuisances.
41     for as_var in \
42     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44     LC_TELEPHONE LC_TIME
45     do
46     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48     else
49     $as_unset $as_var
50     fi
51     done
52    
53     # Required to use basename.
54     if expr a : '\(a\)' >/dev/null 2>&1; then
55     as_expr=expr
56     else
57     as_expr=false
58     fi
59    
60     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61     as_basename=basename
62     else
63     as_basename=false
64     fi
65    
66    
67     # Name of the executable.
68     as_me=`$as_basename "$0" ||
69     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70     X"$0" : 'X\(//\)$' \| \
71     X"$0" : 'X\(/\)$' \| \
72     . : '\(.\)' 2>/dev/null ||
73     echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75     /^X\/\(\/\/\)$/{ s//\1/; q; }
76     /^X\/\(\/\).*/{ s//\1/; q; }
77     s/.*/./; q'`
78    
79    
80     # PATH needs CR, and LINENO needs CR and PATH.
81     # Avoid depending upon Character Ranges.
82     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85     as_cr_digits='0123456789'
86     as_cr_alnum=$as_cr_Letters$as_cr_digits
87    
88     # The user is always right.
89     if test "${PATH_SEPARATOR+set}" != set; then
90     echo "#! /bin/sh" >conf$$.sh
91     echo "exit 0" >>conf$$.sh
92     chmod +x conf$$.sh
93     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95     else
96     PATH_SEPARATOR=:
97     fi
98     rm -f conf$$.sh
99     fi
100    
101    
102     as_lineno_1=$LINENO
103     as_lineno_2=$LINENO
104     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105     test "x$as_lineno_1" != "x$as_lineno_2" &&
106     test "x$as_lineno_3" = "x$as_lineno_2" || {
107     # Find who we are. Look in the path if we contain no path at all
108     # relative or not.
109     case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112     for as_dir in $PATH
113     do
114     IFS=$as_save_IFS
115     test -z "$as_dir" && as_dir=.
116     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117     done
118    
119     ;;
120     esac
121     # We did not find ourselves, most probably we were run as `sh COMMAND'
122     # in which case we are not to be found in the path.
123     if test "x$as_myself" = x; then
124     as_myself=$0
125     fi
126     if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128     { (exit 1); exit 1; }; }
129     fi
130     case $CONFIG_SHELL in
131     '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134     do
135     IFS=$as_save_IFS
136     test -z "$as_dir" && as_dir=.
137     for as_base in sh bash ksh sh5; do
138     case $as_dir in
139     /*)
140     if ("$as_dir/$as_base" -c '
141     as_lineno_1=$LINENO
142     as_lineno_2=$LINENO
143     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144     test "x$as_lineno_1" != "x$as_lineno_2" &&
145     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148     CONFIG_SHELL=$as_dir/$as_base
149     export CONFIG_SHELL
150     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151     fi;;
152     esac
153     done
154     done
155     ;;
156     esac
157    
158     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159     # uniformly replaced by the line number. The first 'sed' inserts a
160     # line-number line before each line; the second 'sed' does the real
161     # work. The second script uses 'N' to pair each line-number line
162     # with the numbered line, and appends trailing '-' during
163     # substitution so that $LINENO is not a special case at line end.
164     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166     sed '=' <$as_myself |
167     sed '
168     N
169     s,$,-,
170     : loop
171     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172     t loop
173     s,-$,,
174     s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176     chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178     { (exit 1); exit 1; }; }
179    
180     # Don't try to exec as it changes $[0], causing all sort of problems
181     # (the dirname of $[0] is not the place where we might find the
182     # original and so on. Autoconf is especially sensible to this).
183     . ./$as_me.lineno
184     # Exit status is that of the last command.
185     exit
186     }
187    
188    
189     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190     *c*,-n*) ECHO_N= ECHO_C='
191     ' ECHO_T=' ' ;;
192     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194     esac
195    
196     if expr a : '\(a\)' >/dev/null 2>&1; then
197     as_expr=expr
198     else
199     as_expr=false
200     fi
201    
202     rm -f conf$$ conf$$.exe conf$$.file
203     echo >conf$$.file
204     if ln -s conf$$.file conf$$ 2>/dev/null; then
205     # We could just check for DJGPP; but this test a) works b) is more generic
206     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207     if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210     else
211     as_ln_s='ln -s'
212     fi
213     elif ln conf$$.file conf$$ 2>/dev/null; then
214     as_ln_s=ln
215     else
216     as_ln_s='cp -p'
217     fi
218     rm -f conf$$ conf$$.exe conf$$.file
219    
220     if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222     else
223     as_mkdir_p=false
224     fi
225    
226     as_executable_p="test -f"
227    
228     # Sed expression to map a string onto a valid CPP name.
229     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230    
231     # Sed expression to map a string onto a valid variable name.
232     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233    
234    
235     # IFS
236     # We need space, tab and new line, in precisely that order.
237     as_nl='
238     '
239     IFS=" $as_nl"
240    
241     # CDPATH.
242     $as_unset CDPATH
243    
244    
245     # Name of the host.
246     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247     # so uname gets run too.
248     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249    
250     exec 6>&1
251    
252     #
253     # Initializations.
254     #
255     ac_default_prefix=/usr/local
256     ac_config_libobj_dir=.
257     cross_compiling=no
258     subdirs=
259     MFLAGS=
260     MAKEFLAGS=
261     SHELL=${CONFIG_SHELL-/bin/sh}
262    
263     # Maximum number of lines to put in a shell here document.
264     # This variable seems obsolete. It should probably be removed, and
265     # only ac_max_sed_lines should be used.
266     : ${ac_max_here_lines=38}
267    
268     # Identity of this package.
269     PACKAGE_NAME='boss'
270     PACKAGE_TARNAME='boss'
271 gcodispo 1.5 PACKAGE_VERSION='`tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`'
272     PACKAGE_STRING='boss `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`'
273 gcodispo 1.1 PACKAGE_BUGREPORT='hn-cms-bossDevel@cern.ch'
274    
275     ac_unique_file="config.h.in"
276     # Factoring default headers for most tests.
277     ac_includes_default="\
278     #include <stdio.h>
279     #if HAVE_SYS_TYPES_H
280     # include <sys/types.h>
281     #endif
282     #if HAVE_SYS_STAT_H
283     # include <sys/stat.h>
284     #endif
285     #if STDC_HEADERS
286     # include <stdlib.h>
287     # include <stddef.h>
288     #else
289     # if HAVE_STDLIB_H
290     # include <stdlib.h>
291     # endif
292     #endif
293     #if HAVE_STRING_H
294     # if !STDC_HEADERS && HAVE_MEMORY_H
295     # include <memory.h>
296     # endif
297     # include <string.h>
298     #endif
299     #if HAVE_STRINGS_H
300     # include <strings.h>
301     #endif
302     #if HAVE_INTTYPES_H
303     # include <inttypes.h>
304     #else
305     # if HAVE_STDINT_H
306     # include <stdint.h>
307     # endif
308     #endif
309     #if HAVE_UNISTD_H
310     # include <unistd.h>
311     #endif"
312    
313 gcodispo 1.7 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 VERSION VERSION_NUMBER CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ARCH RELEASE GCC_VERSION SYSTEM mysql_dir MAKE_MYSQL MAKE_MYSQL_CLEAN ssl_lib sqlite_dir MAKE_SQLITE MAKE_SQLITE_CLEAN sqlite_lib EGREP LIBOBJS LTLIBOBJS'
314 gcodispo 1.1 ac_subst_files=''
315    
316     # Initialize some variables set by options.
317     ac_init_help=
318     ac_init_version=false
319     # The variables have the same names as the options, with
320     # dashes changed to underlines.
321     cache_file=/dev/null
322     exec_prefix=NONE
323     no_create=
324     no_recursion=
325     prefix=NONE
326     program_prefix=NONE
327     program_suffix=NONE
328     program_transform_name=s,x,x,
329     silent=
330     site=
331     srcdir=
332     verbose=
333     x_includes=NONE
334     x_libraries=NONE
335    
336     # Installation directory options.
337     # These are left unexpanded so users can "make install exec_prefix=/foo"
338     # and all the variables that are supposed to be based on exec_prefix
339     # by default will actually change.
340     # Use braces instead of parens because sh, perl, etc. also accept them.
341     bindir='${exec_prefix}/bin'
342     sbindir='${exec_prefix}/sbin'
343     libexecdir='${exec_prefix}/libexec'
344     datadir='${prefix}/share'
345     sysconfdir='${prefix}/etc'
346     sharedstatedir='${prefix}/com'
347     localstatedir='${prefix}/var'
348     libdir='${exec_prefix}/lib'
349     includedir='${prefix}/include'
350     oldincludedir='/usr/include'
351     infodir='${prefix}/info'
352     mandir='${prefix}/man'
353    
354     ac_prev=
355     for ac_option
356     do
357     # If the previous option needs an argument, assign it.
358     if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362     fi
363    
364     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365    
366     # Accept the important Cygnus configure options, so we can diagnose typos.
367    
368     case $ac_option in
369    
370     -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374    
375     -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379    
380     -cache-file | --cache-file | --cache-fil | --cache-fi \
381     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386    
387     --config-cache | -C)
388     cache_file=config.cache ;;
389    
390     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393     | --da=*)
394     datadir=$ac_optarg ;;
395    
396     -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401     { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404    
405     -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410     { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414     *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417    
418     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420     | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424     | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426    
427     -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430    
431     -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437    
438     -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440     -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442    
443     -includedir | --includedir | --includedi | --included | --include \
444     | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447     | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449    
450     -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454    
455     -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457     -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459    
460     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461     | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464     | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466    
467     -localstatedir | --localstatedir | --localstatedi | --localstated \
468     | --localstate | --localstat | --localsta | --localst \
469     | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475    
476     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480    
481     -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484    
485     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486     | --no-cr | --no-c | -n)
487     no_create=yes ;;
488    
489     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492    
493     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495     | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501    
502     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506    
507     -program-prefix | --program-prefix | --program-prefi | --program-pref \
508     | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510     -program-prefix=* | --program-prefix=* | --program-prefi=* \
511     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513    
514     -program-suffix | --program-suffix | --program-suffi | --program-suff \
515     | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517     -program-suffix=* | --program-suffix=* | --program-suffi=* \
518     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520    
521     -program-transform-name | --program-transform-name \
522     | --program-transform-nam | --program-transform-na \
523     | --program-transform-n | --program-transform- \
524     | --program-transform | --program-transfor \
525     | --program-transfo | --program-transf \
526     | --program-trans | --program-tran \
527     | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529     -program-transform-name=* | --program-transform-name=* \
530     | --program-transform-nam=* | --program-transform-na=* \
531     | --program-transform-n=* | --program-transform-=* \
532     | --program-transform=* | --program-transfor=* \
533     | --program-transfo=* | --program-transf=* \
534     | --program-trans=* | --program-tran=* \
535     | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537    
538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539     | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541    
542     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545     | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547    
548     -sharedstatedir | --sharedstatedir | --sharedstatedi \
549     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550     | --sharedst | --shareds | --shared | --share | --shar \
551     | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556     | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558    
559     -site | --site | --sit)
560     ac_prev=site ;;
561     -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563    
564     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568    
569     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570     | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575    
576     -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580    
581     -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583    
584     -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586    
587     -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591     { echo "$as_me: error: invalid package name: $ac_package" >&2
592     { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596     *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599    
600     -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604     { echo "$as_me: error: invalid package name: $ac_package" >&2
605     { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608    
609     --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612    
613     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614     | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619    
620     -x-libraries | --x-libraries | --x-librarie | --x-librari \
621     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626    
627     -*) { echo "$as_me: error: unrecognized option: $ac_option
628     Try \`$0 --help' for more information." >&2
629     { (exit 1); exit 1; }; }
630     ;;
631    
632     *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637     { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641    
642     *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649    
650     esac
651     done
652    
653     if test -n "$ac_prev"; then
654     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655     { echo "$as_me: error: missing argument to $ac_option" >&2
656     { (exit 1); exit 1; }; }
657     fi
658    
659     # Be sure to have absolute paths.
660     for ac_var in exec_prefix prefix
661     do
662     eval ac_val=$`echo $ac_var`
663     case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666     { (exit 1); exit 1; }; };;
667     esac
668     done
669    
670     # Be sure to have absolute paths.
671     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672     localstatedir libdir includedir oldincludedir infodir mandir
673     do
674     eval ac_val=$`echo $ac_var`
675     case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678     { (exit 1); exit 1; }; };;
679     esac
680     done
681    
682     # There might be people who depend on the old broken behavior: `$host'
683     # used to hold the argument of --host etc.
684     # FIXME: To remove some day.
685     build=$build_alias
686     host=$host_alias
687     target=$target_alias
688    
689     # FIXME: To remove some day.
690     if test "x$host_alias" != x; then
691     if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695     elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697     fi
698     fi
699    
700     ac_tool_prefix=
701     test -n "$host_alias" && ac_tool_prefix=$host_alias-
702    
703     test "$silent" = yes && exec 6>/dev/null
704    
705    
706     # Find the source files, if location was not specified.
707     if test -z "$srcdir"; then
708     ac_srcdir_defaulted=yes
709     # Try the directory containing this script, then its parent.
710     ac_confdir=`(dirname "$0") 2>/dev/null ||
711     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712     X"$0" : 'X\(//\)[^/]' \| \
713     X"$0" : 'X\(//\)$' \| \
714     X"$0" : 'X\(/\)' \| \
715     . : '\(.\)' 2>/dev/null ||
716     echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719     /^X\(\/\/\)$/{ s//\1/; q; }
720     /^X\(\/\).*/{ s//\1/; q; }
721     s/.*/./; q'`
722     srcdir=$ac_confdir
723     if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725     fi
726     else
727     ac_srcdir_defaulted=no
728     fi
729     if test ! -r $srcdir/$ac_unique_file; then
730     if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732     { (exit 1); exit 1; }; }
733     else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735     { (exit 1); exit 1; }; }
736     fi
737     fi
738     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740     { (exit 1); exit 1; }; }
741     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742     ac_env_build_alias_set=${build_alias+set}
743     ac_env_build_alias_value=$build_alias
744     ac_cv_env_build_alias_set=${build_alias+set}
745     ac_cv_env_build_alias_value=$build_alias
746     ac_env_host_alias_set=${host_alias+set}
747     ac_env_host_alias_value=$host_alias
748     ac_cv_env_host_alias_set=${host_alias+set}
749     ac_cv_env_host_alias_value=$host_alias
750     ac_env_target_alias_set=${target_alias+set}
751     ac_env_target_alias_value=$target_alias
752     ac_cv_env_target_alias_set=${target_alias+set}
753     ac_cv_env_target_alias_value=$target_alias
754     ac_env_CXX_set=${CXX+set}
755     ac_env_CXX_value=$CXX
756     ac_cv_env_CXX_set=${CXX+set}
757     ac_cv_env_CXX_value=$CXX
758     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759     ac_env_CXXFLAGS_value=$CXXFLAGS
760     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762     ac_env_LDFLAGS_set=${LDFLAGS+set}
763     ac_env_LDFLAGS_value=$LDFLAGS
764     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765     ac_cv_env_LDFLAGS_value=$LDFLAGS
766     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767     ac_env_CPPFLAGS_value=$CPPFLAGS
768     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770     ac_env_CC_set=${CC+set}
771     ac_env_CC_value=$CC
772     ac_cv_env_CC_set=${CC+set}
773     ac_cv_env_CC_value=$CC
774     ac_env_CFLAGS_set=${CFLAGS+set}
775     ac_env_CFLAGS_value=$CFLAGS
776     ac_cv_env_CFLAGS_set=${CFLAGS+set}
777     ac_cv_env_CFLAGS_value=$CFLAGS
778     ac_env_CPP_set=${CPP+set}
779     ac_env_CPP_value=$CPP
780     ac_cv_env_CPP_set=${CPP+set}
781     ac_cv_env_CPP_value=$CPP
782 gcodispo 1.7 ac_env_mysql_dir_set=${mysql_dir+set}
783     ac_env_mysql_dir_value=$mysql_dir
784     ac_cv_env_mysql_dir_set=${mysql_dir+set}
785     ac_cv_env_mysql_dir_value=$mysql_dir
786 gcodispo 1.5 ac_env_sqlite_dir_set=${sqlite_dir+set}
787     ac_env_sqlite_dir_value=$sqlite_dir
788     ac_cv_env_sqlite_dir_set=${sqlite_dir+set}
789     ac_cv_env_sqlite_dir_value=$sqlite_dir
790 gcodispo 1.1
791     #
792     # Report the --help message.
793     #
794     if test "$ac_init_help" = "long"; then
795     # Omit some internal or obsolete options to make the list less imposing.
796     # This message is too long to be a string in the A/UX 3.1 sh.
797     cat <<_ACEOF
798 gcodispo 1.5 \`configure' configures boss `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'` to adapt to many kinds of systems.
799 gcodispo 1.1
800     Usage: $0 [OPTION]... [VAR=VALUE]...
801    
802     To assign environment variables (e.g., CC, CFLAGS...), specify them as
803     VAR=VALUE. See below for descriptions of some of the useful variables.
804    
805     Defaults for the options are specified in brackets.
806    
807     Configuration:
808     -h, --help display this help and exit
809     --help=short display options specific to this package
810     --help=recursive display the short help of all the included packages
811     -V, --version display version information and exit
812     -q, --quiet, --silent do not print \`checking...' messages
813     --cache-file=FILE cache test results in FILE [disabled]
814     -C, --config-cache alias for \`--cache-file=config.cache'
815     -n, --no-create do not create output files
816     --srcdir=DIR find the sources in DIR [configure dir or \`..']
817    
818     _ACEOF
819    
820     cat <<_ACEOF
821     Installation directories:
822     --prefix=PREFIX install architecture-independent files in PREFIX
823     [$ac_default_prefix]
824     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
825     [PREFIX]
826    
827     By default, \`make install' will install all the files in
828     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
829     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
830     for instance \`--prefix=\$HOME'.
831    
832     For better control, use the options below.
833    
834     Fine tuning of the installation directories:
835     --bindir=DIR user executables [EPREFIX/bin]
836     --sbindir=DIR system admin executables [EPREFIX/sbin]
837     --libexecdir=DIR program executables [EPREFIX/libexec]
838     --datadir=DIR read-only architecture-independent data [PREFIX/share]
839     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
840     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
841     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
842     --libdir=DIR object code libraries [EPREFIX/lib]
843     --includedir=DIR C header files [PREFIX/include]
844     --oldincludedir=DIR C header files for non-gcc [/usr/include]
845     --infodir=DIR info documentation [PREFIX/info]
846     --mandir=DIR man documentation [PREFIX/man]
847     _ACEOF
848    
849     cat <<\_ACEOF
850     _ACEOF
851     fi
852    
853     if test -n "$ac_init_help"; then
854     case $ac_init_help in
855 gcodispo 1.5 short | recursive ) echo "Configuration of boss `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`:";;
856 gcodispo 1.1 esac
857     cat <<\_ACEOF
858    
859     Some influential environment variables:
860     CXX C++ compiler command
861     CXXFLAGS C++ compiler flags
862     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863     nonstandard directory <lib dir>
864     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865     headers in a nonstandard directory <include dir>
866     CC C compiler command
867     CFLAGS C compiler flags
868     CPP C preprocessor
869 gcodispo 1.7 mysql_dir mysql_dir=DIR top directory containing mysql tree
870 gcodispo 1.5 sqlite_dir sqlite_dir=DIR top directory containing sqlite tree
871 gcodispo 1.1
872     Use these variables to override the choices made by `configure' or to help
873     it to find libraries and programs with nonstandard names/locations.
874    
875     Report bugs to <hn-cms-bossDevel@cern.ch>.
876     _ACEOF
877     fi
878    
879     if test "$ac_init_help" = "recursive"; then
880     # If there are subdirs, report their specific --help.
881     ac_popdir=`pwd`
882     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883     test -d $ac_dir || continue
884     ac_builddir=.
885    
886     if test "$ac_dir" != .; then
887     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888     # A "../" for each directory in $ac_dir_suffix.
889     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890     else
891     ac_dir_suffix= ac_top_builddir=
892     fi
893    
894     case $srcdir in
895     .) # No --srcdir option. We are building in place.
896     ac_srcdir=.
897     if test -z "$ac_top_builddir"; then
898     ac_top_srcdir=.
899     else
900     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901     fi ;;
902     [\\/]* | ?:[\\/]* ) # Absolute path.
903     ac_srcdir=$srcdir$ac_dir_suffix;
904     ac_top_srcdir=$srcdir ;;
905     *) # Relative path.
906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
908     esac
909     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910     # absolute.
911     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915    
916     cd $ac_dir
917     # Check for guested configure; otherwise get Cygnus style configure.
918     if test -f $ac_srcdir/configure.gnu; then
919     echo
920     $SHELL $ac_srcdir/configure.gnu --help=recursive
921     elif test -f $ac_srcdir/configure; then
922     echo
923     $SHELL $ac_srcdir/configure --help=recursive
924     elif test -f $ac_srcdir/configure.ac ||
925     test -f $ac_srcdir/configure.in; then
926     echo
927     $ac_configure --help
928     else
929     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930     fi
931     cd $ac_popdir
932     done
933     fi
934    
935     test -n "$ac_init_help" && exit 0
936     if $ac_init_version; then
937     cat <<\_ACEOF
938 gcodispo 1.5 boss configure `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`
939 gcodispo 1.1 generated by GNU Autoconf 2.57
940    
941     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942     Free Software Foundation, Inc.
943     This configure script is free software; the Free Software Foundation
944     gives unlimited permission to copy, distribute and modify it.
945     _ACEOF
946     exit 0
947     fi
948     exec 5>config.log
949     cat >&5 <<_ACEOF
950     This file contains any messages produced by compilers while
951     running configure, to aid debugging if configure makes a mistake.
952    
953 gcodispo 1.5 It was created by boss $as_me `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`, which was
954 gcodispo 1.1 generated by GNU Autoconf 2.57. Invocation command line was
955    
956     $ $0 $@
957    
958     _ACEOF
959     {
960     cat <<_ASUNAME
961     ## --------- ##
962     ## Platform. ##
963     ## --------- ##
964    
965     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966     uname -m = `(uname -m) 2>/dev/null || echo unknown`
967     uname -r = `(uname -r) 2>/dev/null || echo unknown`
968     uname -s = `(uname -s) 2>/dev/null || echo unknown`
969     uname -v = `(uname -v) 2>/dev/null || echo unknown`
970    
971     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973    
974     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981    
982     _ASUNAME
983    
984     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985     for as_dir in $PATH
986     do
987     IFS=$as_save_IFS
988     test -z "$as_dir" && as_dir=.
989     echo "PATH: $as_dir"
990     done
991    
992     } >&5
993    
994     cat >&5 <<_ACEOF
995    
996    
997     ## ----------- ##
998     ## Core tests. ##
999     ## ----------- ##
1000    
1001     _ACEOF
1002    
1003    
1004     # Keep a trace of the command line.
1005     # Strip out --no-create and --no-recursion so they do not pile up.
1006     # Strip out --silent because we don't want to record it for future runs.
1007     # Also quote any args containing shell meta-characters.
1008     # Make two passes to allow for proper duplicate-argument suppression.
1009     ac_configure_args=
1010     ac_configure_args0=
1011     ac_configure_args1=
1012     ac_sep=
1013     ac_must_keep_next=false
1014     for ac_pass in 1 2
1015     do
1016     for ac_arg
1017     do
1018     case $ac_arg in
1019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021     | -silent | --silent | --silen | --sile | --sil)
1022     continue ;;
1023     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025     esac
1026     case $ac_pass in
1027     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028     2)
1029     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030     if test $ac_must_keep_next = true; then
1031     ac_must_keep_next=false # Got value, back to normal.
1032     else
1033     case $ac_arg in
1034     *=* | --config-cache | -C | -disable-* | --disable-* \
1035     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037     | -with-* | --with-* | -without-* | --without-* | --x)
1038     case "$ac_configure_args0 " in
1039     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040     esac
1041     ;;
1042     -* ) ac_must_keep_next=true ;;
1043     esac
1044     fi
1045     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046     # Get rid of the leading space.
1047     ac_sep=" "
1048     ;;
1049     esac
1050     done
1051     done
1052     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054    
1055     # When interrupted or exit'd, cleanup temporary files, and complete
1056     # config.log. We remove comments because anyway the quotes in there
1057     # would cause problems or look ugly.
1058     # WARNING: Be sure not to use single quotes in there, as some shells,
1059     # such as our DU 5.0 friend, will then `close' the trap.
1060     trap 'exit_status=$?
1061     # Save into config.log some information that might help in debugging.
1062     {
1063     echo
1064    
1065     cat <<\_ASBOX
1066     ## ---------------- ##
1067     ## Cache variables. ##
1068     ## ---------------- ##
1069     _ASBOX
1070     echo
1071     # The following way of writing the cache mishandles newlines in values,
1072     {
1073     (set) 2>&1 |
1074     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075     *ac_space=\ *)
1076     sed -n \
1077     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079     ;;
1080     *)
1081     sed -n \
1082     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083     ;;
1084     esac;
1085     }
1086     echo
1087    
1088     cat <<\_ASBOX
1089     ## ----------------- ##
1090     ## Output variables. ##
1091     ## ----------------- ##
1092     _ASBOX
1093     echo
1094     for ac_var in $ac_subst_vars
1095     do
1096     eval ac_val=$`echo $ac_var`
1097     echo "$ac_var='"'"'$ac_val'"'"'"
1098     done | sort
1099     echo
1100    
1101     if test -n "$ac_subst_files"; then
1102     cat <<\_ASBOX
1103     ## ------------- ##
1104     ## Output files. ##
1105     ## ------------- ##
1106     _ASBOX
1107     echo
1108     for ac_var in $ac_subst_files
1109     do
1110     eval ac_val=$`echo $ac_var`
1111     echo "$ac_var='"'"'$ac_val'"'"'"
1112     done | sort
1113     echo
1114     fi
1115    
1116     if test -s confdefs.h; then
1117     cat <<\_ASBOX
1118     ## ----------- ##
1119     ## confdefs.h. ##
1120     ## ----------- ##
1121     _ASBOX
1122     echo
1123     sed "/^$/d" confdefs.h | sort
1124     echo
1125     fi
1126     test "$ac_signal" != 0 &&
1127     echo "$as_me: caught signal $ac_signal"
1128     echo "$as_me: exit $exit_status"
1129     } >&5
1130     rm -f core core.* *.core &&
1131     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132     exit $exit_status
1133     ' 0
1134     for ac_signal in 1 2 13 15; do
1135     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136     done
1137     ac_signal=0
1138    
1139     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140     rm -rf conftest* confdefs.h
1141     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142     echo >confdefs.h
1143    
1144     # Predefined preprocessor variables.
1145    
1146     cat >>confdefs.h <<_ACEOF
1147     #define PACKAGE_NAME "$PACKAGE_NAME"
1148     _ACEOF
1149    
1150    
1151     cat >>confdefs.h <<_ACEOF
1152     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153     _ACEOF
1154    
1155    
1156     cat >>confdefs.h <<_ACEOF
1157     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158     _ACEOF
1159    
1160    
1161     cat >>confdefs.h <<_ACEOF
1162     #define PACKAGE_STRING "$PACKAGE_STRING"
1163     _ACEOF
1164    
1165    
1166     cat >>confdefs.h <<_ACEOF
1167     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168     _ACEOF
1169    
1170    
1171     # Let the site file select an alternate cache file if it wants to.
1172     # Prefer explicitly selected file to automatically selected ones.
1173     if test -z "$CONFIG_SITE"; then
1174     if test "x$prefix" != xNONE; then
1175     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176     else
1177     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178     fi
1179     fi
1180     for ac_site_file in $CONFIG_SITE; do
1181     if test -r "$ac_site_file"; then
1182     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183     echo "$as_me: loading site script $ac_site_file" >&6;}
1184     sed 's/^/| /' "$ac_site_file" >&5
1185     . "$ac_site_file"
1186     fi
1187     done
1188    
1189     if test -r "$cache_file"; then
1190     # Some versions of bash will fail to source /dev/null (special
1191     # files actually), so we avoid doing that.
1192     if test -f "$cache_file"; then
1193     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194     echo "$as_me: loading cache $cache_file" >&6;}
1195     case $cache_file in
1196     [\\/]* | ?:[\\/]* ) . $cache_file;;
1197     *) . ./$cache_file;;
1198     esac
1199     fi
1200     else
1201     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202     echo "$as_me: creating cache $cache_file" >&6;}
1203     >$cache_file
1204     fi
1205    
1206     # Check that the precious variables saved in the cache have kept the same
1207     # value.
1208     ac_cache_corrupted=false
1209     for ac_var in `(set) 2>&1 |
1210     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212     eval ac_new_set=\$ac_env_${ac_var}_set
1213     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214     eval ac_new_val="\$ac_env_${ac_var}_value"
1215     case $ac_old_set,$ac_new_set in
1216     set,)
1217     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219     ac_cache_corrupted=: ;;
1220     ,set)
1221     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223     ac_cache_corrupted=: ;;
1224     ,);;
1225     *)
1226     if test "x$ac_old_val" != "x$ac_new_val"; then
1227     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230     echo "$as_me: former value: $ac_old_val" >&2;}
1231     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232     echo "$as_me: current value: $ac_new_val" >&2;}
1233     ac_cache_corrupted=:
1234     fi;;
1235     esac
1236     # Pass precious variables to config.status.
1237     if test "$ac_new_set" = set; then
1238     case $ac_new_val in
1239     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241     *) ac_arg=$ac_var=$ac_new_val ;;
1242     esac
1243     case " $ac_configure_args " in
1244     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246     esac
1247     fi
1248     done
1249     if $ac_cache_corrupted; then
1250     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254     { (exit 1); exit 1; }; }
1255     fi
1256    
1257     ac_ext=c
1258     ac_cpp='$CPP $CPPFLAGS'
1259     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262    
1263    
1264    
1265    
1266    
1267    
1268    
1269    
1270    
1271    
1272    
1273    
1274    
1275    
1276    
1277    
1278    
1279    
1280    
1281    
1282    
1283    
1284    
1285    
1286    
1287    
1288    
1289 gcodispo 1.5 VERSION=`tail -1 ./VERSION | cut -f1`
1290     VERSION_NUMBER=`tail -1 ./VERSION | sed 's/_/./g' | sed 's/[^0-9.]//g'`
1291    
1292    
1293 gcodispo 1.1
1294    
1295     ac_config_headers="$ac_config_headers config.h"
1296    
1297    
1298     # Checks for programs.
1299     ac_ext=cc
1300     ac_cpp='$CXXCPP $CPPFLAGS'
1301     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1304     if test -n "$ac_tool_prefix"; then
1305     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1306     do
1307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1308     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1309     echo "$as_me:$LINENO: checking for $ac_word" >&5
1310     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311     if test "${ac_cv_prog_CXX+set}" = set; then
1312     echo $ECHO_N "(cached) $ECHO_C" >&6
1313     else
1314     if test -n "$CXX"; then
1315     ac_cv_prog_CXX="$CXX" # Let the user override the test.
1316     else
1317     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1318     for as_dir in $PATH
1319     do
1320     IFS=$as_save_IFS
1321     test -z "$as_dir" && as_dir=.
1322     for ac_exec_ext in '' $ac_executable_extensions; do
1323     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1324     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1326     break 2
1327     fi
1328     done
1329     done
1330    
1331     fi
1332     fi
1333     CXX=$ac_cv_prog_CXX
1334     if test -n "$CXX"; then
1335     echo "$as_me:$LINENO: result: $CXX" >&5
1336     echo "${ECHO_T}$CXX" >&6
1337     else
1338     echo "$as_me:$LINENO: result: no" >&5
1339     echo "${ECHO_T}no" >&6
1340     fi
1341    
1342     test -n "$CXX" && break
1343     done
1344     fi
1345     if test -z "$CXX"; then
1346     ac_ct_CXX=$CXX
1347     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1348     do
1349     # Extract the first word of "$ac_prog", so it can be a program name with args.
1350     set dummy $ac_prog; ac_word=$2
1351     echo "$as_me:$LINENO: checking for $ac_word" >&5
1352     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1354     echo $ECHO_N "(cached) $ECHO_C" >&6
1355     else
1356     if test -n "$ac_ct_CXX"; then
1357     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1358     else
1359     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360     for as_dir in $PATH
1361     do
1362     IFS=$as_save_IFS
1363     test -z "$as_dir" && as_dir=.
1364     for ac_exec_ext in '' $ac_executable_extensions; do
1365     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366     ac_cv_prog_ac_ct_CXX="$ac_prog"
1367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368     break 2
1369     fi
1370     done
1371     done
1372    
1373     fi
1374     fi
1375     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1376     if test -n "$ac_ct_CXX"; then
1377     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1378     echo "${ECHO_T}$ac_ct_CXX" >&6
1379     else
1380     echo "$as_me:$LINENO: result: no" >&5
1381     echo "${ECHO_T}no" >&6
1382     fi
1383    
1384     test -n "$ac_ct_CXX" && break
1385     done
1386     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1387    
1388     CXX=$ac_ct_CXX
1389     fi
1390    
1391    
1392     # Provide some information about the compiler.
1393     echo "$as_me:$LINENO:" \
1394     "checking for C++ compiler version" >&5
1395     ac_compiler=`set X $ac_compile; echo $2`
1396     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1397     (eval $ac_compiler --version </dev/null >&5) 2>&5
1398     ac_status=$?
1399     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1400     (exit $ac_status); }
1401     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1402     (eval $ac_compiler -v </dev/null >&5) 2>&5
1403     ac_status=$?
1404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1405     (exit $ac_status); }
1406     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1407     (eval $ac_compiler -V </dev/null >&5) 2>&5
1408     ac_status=$?
1409     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1410     (exit $ac_status); }
1411    
1412     cat >conftest.$ac_ext <<_ACEOF
1413     #line $LINENO "configure"
1414     /* confdefs.h. */
1415     _ACEOF
1416     cat confdefs.h >>conftest.$ac_ext
1417     cat >>conftest.$ac_ext <<_ACEOF
1418     /* end confdefs.h. */
1419    
1420     int
1421     main ()
1422     {
1423    
1424     ;
1425     return 0;
1426     }
1427     _ACEOF
1428     ac_clean_files_save=$ac_clean_files
1429     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1430     # Try to create an executable without -o first, disregard a.out.
1431     # It will help us diagnose broken compilers, and finding out an intuition
1432     # of exeext.
1433     echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1434     echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1435     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1436     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1437     (eval $ac_link_default) 2>&5
1438     ac_status=$?
1439     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1440     (exit $ac_status); }; then
1441     # Find the output, starting from the most likely. This scheme is
1442     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1443     # resort.
1444    
1445     # Be careful to initialize this variable, since it used to be cached.
1446     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1447     ac_cv_exeext=
1448     # b.out is created by i960 compilers.
1449     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1450     do
1451     test -f "$ac_file" || continue
1452     case $ac_file in
1453     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1454     ;;
1455     conftest.$ac_ext )
1456     # This is the source file.
1457     ;;
1458     [ab].out )
1459     # We found the default executable, but exeext='' is most
1460     # certainly right.
1461     break;;
1462     *.* )
1463     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1464     # FIXME: I believe we export ac_cv_exeext for Libtool,
1465     # but it would be cool to find out if it's true. Does anybody
1466     # maintain Libtool? --akim.
1467     export ac_cv_exeext
1468     break;;
1469     * )
1470     break;;
1471     esac
1472     done
1473     else
1474     echo "$as_me: failed program was:" >&5
1475     sed 's/^/| /' conftest.$ac_ext >&5
1476    
1477     { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1478     See \`config.log' for more details." >&5
1479     echo "$as_me: error: C++ compiler cannot create executables
1480     See \`config.log' for more details." >&2;}
1481     { (exit 77); exit 77; }; }
1482     fi
1483    
1484     ac_exeext=$ac_cv_exeext
1485     echo "$as_me:$LINENO: result: $ac_file" >&5
1486     echo "${ECHO_T}$ac_file" >&6
1487    
1488     # Check the compiler produces executables we can run. If not, either
1489     # the compiler is broken, or we cross compile.
1490     echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1491     echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1492     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1493     # If not cross compiling, check that we can run a simple program.
1494     if test "$cross_compiling" != yes; then
1495     if { ac_try='./$ac_file'
1496     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1497     (eval $ac_try) 2>&5
1498     ac_status=$?
1499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1500     (exit $ac_status); }; }; then
1501     cross_compiling=no
1502     else
1503     if test "$cross_compiling" = maybe; then
1504     cross_compiling=yes
1505     else
1506     { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1507     If you meant to cross compile, use \`--host'.
1508     See \`config.log' for more details." >&5
1509     echo "$as_me: error: cannot run C++ compiled programs.
1510     If you meant to cross compile, use \`--host'.
1511     See \`config.log' for more details." >&2;}
1512     { (exit 1); exit 1; }; }
1513     fi
1514     fi
1515     fi
1516     echo "$as_me:$LINENO: result: yes" >&5
1517     echo "${ECHO_T}yes" >&6
1518    
1519     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1520     ac_clean_files=$ac_clean_files_save
1521     # Check the compiler produces executables we can run. If not, either
1522     # the compiler is broken, or we cross compile.
1523     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1524     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1525     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1526     echo "${ECHO_T}$cross_compiling" >&6
1527    
1528     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1529     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1530     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1531     (eval $ac_link) 2>&5
1532     ac_status=$?
1533     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1534     (exit $ac_status); }; then
1535     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1536     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1537     # work properly (i.e., refer to `conftest.exe'), while it won't with
1538     # `rm'.
1539     for ac_file in conftest.exe conftest conftest.*; do
1540     test -f "$ac_file" || continue
1541     case $ac_file in
1542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1543     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1544     export ac_cv_exeext
1545     break;;
1546     * ) break;;
1547     esac
1548     done
1549     else
1550     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1551     See \`config.log' for more details." >&5
1552     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1553     See \`config.log' for more details." >&2;}
1554     { (exit 1); exit 1; }; }
1555     fi
1556    
1557     rm -f conftest$ac_cv_exeext
1558     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1559     echo "${ECHO_T}$ac_cv_exeext" >&6
1560    
1561     rm -f conftest.$ac_ext
1562     EXEEXT=$ac_cv_exeext
1563     ac_exeext=$EXEEXT
1564     echo "$as_me:$LINENO: checking for suffix of object files" >&5
1565     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1566     if test "${ac_cv_objext+set}" = set; then
1567     echo $ECHO_N "(cached) $ECHO_C" >&6
1568     else
1569     cat >conftest.$ac_ext <<_ACEOF
1570     #line $LINENO "configure"
1571     /* confdefs.h. */
1572     _ACEOF
1573     cat confdefs.h >>conftest.$ac_ext
1574     cat >>conftest.$ac_ext <<_ACEOF
1575     /* end confdefs.h. */
1576    
1577     int
1578     main ()
1579     {
1580    
1581     ;
1582     return 0;
1583     }
1584     _ACEOF
1585     rm -f conftest.o conftest.obj
1586     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1587     (eval $ac_compile) 2>&5
1588     ac_status=$?
1589     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1590     (exit $ac_status); }; then
1591     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1592     case $ac_file in
1593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1594     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1595     break;;
1596     esac
1597     done
1598     else
1599     echo "$as_me: failed program was:" >&5
1600     sed 's/^/| /' conftest.$ac_ext >&5
1601    
1602     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1603     See \`config.log' for more details." >&5
1604     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1605     See \`config.log' for more details." >&2;}
1606     { (exit 1); exit 1; }; }
1607     fi
1608    
1609     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1610     fi
1611     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1612     echo "${ECHO_T}$ac_cv_objext" >&6
1613     OBJEXT=$ac_cv_objext
1614     ac_objext=$OBJEXT
1615     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1616     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1617     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1618     echo $ECHO_N "(cached) $ECHO_C" >&6
1619     else
1620     cat >conftest.$ac_ext <<_ACEOF
1621     #line $LINENO "configure"
1622     /* confdefs.h. */
1623     _ACEOF
1624     cat confdefs.h >>conftest.$ac_ext
1625     cat >>conftest.$ac_ext <<_ACEOF
1626     /* end confdefs.h. */
1627    
1628     int
1629     main ()
1630     {
1631     #ifndef __GNUC__
1632     choke me
1633     #endif
1634    
1635     ;
1636     return 0;
1637     }
1638     _ACEOF
1639     rm -f conftest.$ac_objext
1640     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1641     (eval $ac_compile) 2>&5
1642     ac_status=$?
1643     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644     (exit $ac_status); } &&
1645     { ac_try='test -s conftest.$ac_objext'
1646     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1647     (eval $ac_try) 2>&5
1648     ac_status=$?
1649     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650     (exit $ac_status); }; }; then
1651     ac_compiler_gnu=yes
1652     else
1653     echo "$as_me: failed program was:" >&5
1654     sed 's/^/| /' conftest.$ac_ext >&5
1655    
1656     ac_compiler_gnu=no
1657     fi
1658     rm -f conftest.$ac_objext conftest.$ac_ext
1659     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1660    
1661     fi
1662     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1663     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1664     GXX=`test $ac_compiler_gnu = yes && echo yes`
1665     ac_test_CXXFLAGS=${CXXFLAGS+set}
1666     ac_save_CXXFLAGS=$CXXFLAGS
1667     CXXFLAGS="-g"
1668     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1669     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1670     if test "${ac_cv_prog_cxx_g+set}" = set; then
1671     echo $ECHO_N "(cached) $ECHO_C" >&6
1672     else
1673     cat >conftest.$ac_ext <<_ACEOF
1674     #line $LINENO "configure"
1675     /* confdefs.h. */
1676     _ACEOF
1677     cat confdefs.h >>conftest.$ac_ext
1678     cat >>conftest.$ac_ext <<_ACEOF
1679     /* end confdefs.h. */
1680    
1681     int
1682     main ()
1683     {
1684    
1685     ;
1686     return 0;
1687     }
1688     _ACEOF
1689     rm -f conftest.$ac_objext
1690     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1691     (eval $ac_compile) 2>&5
1692     ac_status=$?
1693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694     (exit $ac_status); } &&
1695     { ac_try='test -s conftest.$ac_objext'
1696     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1697     (eval $ac_try) 2>&5
1698     ac_status=$?
1699     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700     (exit $ac_status); }; }; then
1701     ac_cv_prog_cxx_g=yes
1702     else
1703     echo "$as_me: failed program was:" >&5
1704     sed 's/^/| /' conftest.$ac_ext >&5
1705    
1706     ac_cv_prog_cxx_g=no
1707     fi
1708     rm -f conftest.$ac_objext conftest.$ac_ext
1709     fi
1710     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1711     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1712     if test "$ac_test_CXXFLAGS" = set; then
1713     CXXFLAGS=$ac_save_CXXFLAGS
1714     elif test $ac_cv_prog_cxx_g = yes; then
1715     if test "$GXX" = yes; then
1716     CXXFLAGS="-g -O2"
1717     else
1718     CXXFLAGS="-g"
1719     fi
1720     else
1721     if test "$GXX" = yes; then
1722     CXXFLAGS="-O2"
1723     else
1724     CXXFLAGS=
1725     fi
1726     fi
1727     for ac_declaration in \
1728     ''\
1729     '#include <stdlib.h>' \
1730     'extern "C" void std::exit (int) throw (); using std::exit;' \
1731     'extern "C" void std::exit (int); using std::exit;' \
1732     'extern "C" void exit (int) throw ();' \
1733     'extern "C" void exit (int);' \
1734     'void exit (int);'
1735     do
1736     cat >conftest.$ac_ext <<_ACEOF
1737     #line $LINENO "configure"
1738     /* confdefs.h. */
1739     _ACEOF
1740     cat confdefs.h >>conftest.$ac_ext
1741     cat >>conftest.$ac_ext <<_ACEOF
1742     /* end confdefs.h. */
1743     #include <stdlib.h>
1744     $ac_declaration
1745     int
1746     main ()
1747     {
1748     exit (42);
1749     ;
1750     return 0;
1751     }
1752     _ACEOF
1753     rm -f conftest.$ac_objext
1754     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1755     (eval $ac_compile) 2>&5
1756     ac_status=$?
1757     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758     (exit $ac_status); } &&
1759     { ac_try='test -s conftest.$ac_objext'
1760     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1761     (eval $ac_try) 2>&5
1762     ac_status=$?
1763     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764     (exit $ac_status); }; }; then
1765     :
1766     else
1767     echo "$as_me: failed program was:" >&5
1768     sed 's/^/| /' conftest.$ac_ext >&5
1769    
1770     continue
1771     fi
1772     rm -f conftest.$ac_objext conftest.$ac_ext
1773     cat >conftest.$ac_ext <<_ACEOF
1774     #line $LINENO "configure"
1775     /* confdefs.h. */
1776     _ACEOF
1777     cat confdefs.h >>conftest.$ac_ext
1778     cat >>conftest.$ac_ext <<_ACEOF
1779     /* end confdefs.h. */
1780     $ac_declaration
1781     int
1782     main ()
1783     {
1784     exit (42);
1785     ;
1786     return 0;
1787     }
1788     _ACEOF
1789     rm -f conftest.$ac_objext
1790     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1791     (eval $ac_compile) 2>&5
1792     ac_status=$?
1793     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794     (exit $ac_status); } &&
1795     { ac_try='test -s conftest.$ac_objext'
1796     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1797     (eval $ac_try) 2>&5
1798     ac_status=$?
1799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800     (exit $ac_status); }; }; then
1801     break
1802     else
1803     echo "$as_me: failed program was:" >&5
1804     sed 's/^/| /' conftest.$ac_ext >&5
1805    
1806     fi
1807     rm -f conftest.$ac_objext conftest.$ac_ext
1808     done
1809     rm -f conftest*
1810     if test -n "$ac_declaration"; then
1811     echo '#ifdef __cplusplus' >>confdefs.h
1812     echo $ac_declaration >>confdefs.h
1813     echo '#endif' >>confdefs.h
1814     fi
1815    
1816     ac_ext=c
1817     ac_cpp='$CPP $CPPFLAGS'
1818     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821    
1822     ac_ext=c
1823     ac_cpp='$CPP $CPPFLAGS'
1824     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827     if test -n "$ac_tool_prefix"; then
1828     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1830     echo "$as_me:$LINENO: checking for $ac_word" >&5
1831     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832     if test "${ac_cv_prog_CC+set}" = set; then
1833     echo $ECHO_N "(cached) $ECHO_C" >&6
1834     else
1835     if test -n "$CC"; then
1836     ac_cv_prog_CC="$CC" # Let the user override the test.
1837     else
1838     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839     for as_dir in $PATH
1840     do
1841     IFS=$as_save_IFS
1842     test -z "$as_dir" && as_dir=.
1843     for ac_exec_ext in '' $ac_executable_extensions; do
1844     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848     fi
1849     done
1850     done
1851    
1852     fi
1853     fi
1854     CC=$ac_cv_prog_CC
1855     if test -n "$CC"; then
1856     echo "$as_me:$LINENO: result: $CC" >&5
1857     echo "${ECHO_T}$CC" >&6
1858     else
1859     echo "$as_me:$LINENO: result: no" >&5
1860     echo "${ECHO_T}no" >&6
1861     fi
1862    
1863     fi
1864     if test -z "$ac_cv_prog_CC"; then
1865     ac_ct_CC=$CC
1866     # Extract the first word of "gcc", so it can be a program name with args.
1867     set dummy gcc; ac_word=$2
1868     echo "$as_me:$LINENO: checking for $ac_word" >&5
1869     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871     echo $ECHO_N "(cached) $ECHO_C" >&6
1872     else
1873     if test -n "$ac_ct_CC"; then
1874     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875     else
1876     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877     for as_dir in $PATH
1878     do
1879     IFS=$as_save_IFS
1880     test -z "$as_dir" && as_dir=.
1881     for ac_exec_ext in '' $ac_executable_extensions; do
1882     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883     ac_cv_prog_ac_ct_CC="gcc"
1884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885     break 2
1886     fi
1887     done
1888     done
1889    
1890     fi
1891     fi
1892     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893     if test -n "$ac_ct_CC"; then
1894     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895     echo "${ECHO_T}$ac_ct_CC" >&6
1896     else
1897     echo "$as_me:$LINENO: result: no" >&5
1898     echo "${ECHO_T}no" >&6
1899     fi
1900    
1901     CC=$ac_ct_CC
1902     else
1903     CC="$ac_cv_prog_CC"
1904     fi
1905    
1906     if test -z "$CC"; then
1907     if test -n "$ac_tool_prefix"; then
1908     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909     set dummy ${ac_tool_prefix}cc; ac_word=$2
1910     echo "$as_me:$LINENO: checking for $ac_word" >&5
1911     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912     if test "${ac_cv_prog_CC+set}" = set; then
1913     echo $ECHO_N "(cached) $ECHO_C" >&6
1914     else
1915     if test -n "$CC"; then
1916     ac_cv_prog_CC="$CC" # Let the user override the test.
1917     else
1918     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919     for as_dir in $PATH
1920     do
1921     IFS=$as_save_IFS
1922     test -z "$as_dir" && as_dir=.
1923     for ac_exec_ext in '' $ac_executable_extensions; do
1924     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925     ac_cv_prog_CC="${ac_tool_prefix}cc"
1926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927     break 2
1928     fi
1929     done
1930     done
1931    
1932     fi
1933     fi
1934     CC=$ac_cv_prog_CC
1935     if test -n "$CC"; then
1936     echo "$as_me:$LINENO: result: $CC" >&5
1937     echo "${ECHO_T}$CC" >&6
1938     else
1939     echo "$as_me:$LINENO: result: no" >&5
1940     echo "${ECHO_T}no" >&6
1941     fi
1942    
1943     fi
1944     if test -z "$ac_cv_prog_CC"; then
1945     ac_ct_CC=$CC
1946     # Extract the first word of "cc", so it can be a program name with args.
1947     set dummy cc; ac_word=$2
1948     echo "$as_me:$LINENO: checking for $ac_word" >&5
1949     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951     echo $ECHO_N "(cached) $ECHO_C" >&6
1952     else
1953     if test -n "$ac_ct_CC"; then
1954     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955     else
1956     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957     for as_dir in $PATH
1958     do
1959     IFS=$as_save_IFS
1960     test -z "$as_dir" && as_dir=.
1961     for ac_exec_ext in '' $ac_executable_extensions; do
1962     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963     ac_cv_prog_ac_ct_CC="cc"
1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965     break 2
1966     fi
1967     done
1968     done
1969    
1970     fi
1971     fi
1972     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973     if test -n "$ac_ct_CC"; then
1974     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975     echo "${ECHO_T}$ac_ct_CC" >&6
1976     else
1977     echo "$as_me:$LINENO: result: no" >&5
1978     echo "${ECHO_T}no" >&6
1979     fi
1980    
1981     CC=$ac_ct_CC
1982     else
1983     CC="$ac_cv_prog_CC"
1984     fi
1985    
1986     fi
1987     if test -z "$CC"; then
1988     # Extract the first word of "cc", so it can be a program name with args.
1989     set dummy cc; ac_word=$2
1990     echo "$as_me:$LINENO: checking for $ac_word" >&5
1991     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992     if test "${ac_cv_prog_CC+set}" = set; then
1993     echo $ECHO_N "(cached) $ECHO_C" >&6
1994     else
1995     if test -n "$CC"; then
1996     ac_cv_prog_CC="$CC" # Let the user override the test.
1997     else
1998     ac_prog_rejected=no
1999     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000     for as_dir in $PATH
2001     do
2002     IFS=$as_save_IFS
2003     test -z "$as_dir" && as_dir=.
2004     for ac_exec_ext in '' $ac_executable_extensions; do
2005     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007     ac_prog_rejected=yes
2008     continue
2009     fi
2010     ac_cv_prog_CC="cc"
2011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012     break 2
2013     fi
2014     done
2015     done
2016    
2017     if test $ac_prog_rejected = yes; then
2018     # We found a bogon in the path, so make sure we never use it.
2019     set dummy $ac_cv_prog_CC
2020     shift
2021     if test $# != 0; then
2022     # We chose a different compiler from the bogus one.
2023     # However, it has the same basename, so the bogon will be chosen
2024     # first if we set CC to just the basename; use the full file name.
2025     shift
2026     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2027     fi
2028     fi
2029     fi
2030     fi
2031     CC=$ac_cv_prog_CC
2032     if test -n "$CC"; then
2033     echo "$as_me:$LINENO: result: $CC" >&5
2034     echo "${ECHO_T}$CC" >&6
2035     else
2036     echo "$as_me:$LINENO: result: no" >&5
2037     echo "${ECHO_T}no" >&6
2038     fi
2039    
2040     fi
2041     if test -z "$CC"; then
2042     if test -n "$ac_tool_prefix"; then
2043     for ac_prog in cl
2044     do
2045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2047     echo "$as_me:$LINENO: checking for $ac_word" >&5
2048     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049     if test "${ac_cv_prog_CC+set}" = set; then
2050     echo $ECHO_N "(cached) $ECHO_C" >&6
2051     else
2052     if test -n "$CC"; then
2053     ac_cv_prog_CC="$CC" # Let the user override the test.
2054     else
2055     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056     for as_dir in $PATH
2057     do
2058     IFS=$as_save_IFS
2059     test -z "$as_dir" && as_dir=.
2060     for ac_exec_ext in '' $ac_executable_extensions; do
2061     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065     fi
2066     done
2067     done
2068    
2069     fi
2070     fi
2071     CC=$ac_cv_prog_CC
2072     if test -n "$CC"; then
2073     echo "$as_me:$LINENO: result: $CC" >&5
2074     echo "${ECHO_T}$CC" >&6
2075     else
2076     echo "$as_me:$LINENO: result: no" >&5
2077     echo "${ECHO_T}no" >&6
2078     fi
2079    
2080     test -n "$CC" && break
2081     done
2082     fi
2083     if test -z "$CC"; then
2084     ac_ct_CC=$CC
2085     for ac_prog in cl
2086     do
2087     # Extract the first word of "$ac_prog", so it can be a program name with args.
2088     set dummy $ac_prog; ac_word=$2
2089     echo "$as_me:$LINENO: checking for $ac_word" >&5
2090     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092     echo $ECHO_N "(cached) $ECHO_C" >&6
2093     else
2094     if test -n "$ac_ct_CC"; then
2095     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096     else
2097     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098     for as_dir in $PATH
2099     do
2100     IFS=$as_save_IFS
2101     test -z "$as_dir" && as_dir=.
2102     for ac_exec_ext in '' $ac_executable_extensions; do
2103     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104     ac_cv_prog_ac_ct_CC="$ac_prog"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107     fi
2108     done
2109     done
2110    
2111     fi
2112     fi
2113     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114     if test -n "$ac_ct_CC"; then
2115     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116     echo "${ECHO_T}$ac_ct_CC" >&6
2117     else
2118     echo "$as_me:$LINENO: result: no" >&5
2119     echo "${ECHO_T}no" >&6
2120     fi
2121    
2122     test -n "$ac_ct_CC" && break
2123     done
2124    
2125     CC=$ac_ct_CC
2126     fi
2127    
2128     fi
2129    
2130    
2131     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132     See \`config.log' for more details." >&5
2133     echo "$as_me: error: no acceptable C compiler found in \$PATH
2134     See \`config.log' for more details." >&2;}
2135     { (exit 1); exit 1; }; }
2136    
2137     # Provide some information about the compiler.
2138     echo "$as_me:$LINENO:" \
2139     "checking for C compiler version" >&5
2140     ac_compiler=`set X $ac_compile; echo $2`
2141     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142     (eval $ac_compiler --version </dev/null >&5) 2>&5
2143     ac_status=$?
2144     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145     (exit $ac_status); }
2146     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147     (eval $ac_compiler -v </dev/null >&5) 2>&5
2148     ac_status=$?
2149     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150     (exit $ac_status); }
2151     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152     (eval $ac_compiler -V </dev/null >&5) 2>&5
2153     ac_status=$?
2154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155     (exit $ac_status); }
2156    
2157     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2158     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2159     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2160     echo $ECHO_N "(cached) $ECHO_C" >&6
2161     else
2162     cat >conftest.$ac_ext <<_ACEOF
2163     #line $LINENO "configure"
2164     /* confdefs.h. */
2165     _ACEOF
2166     cat confdefs.h >>conftest.$ac_ext
2167     cat >>conftest.$ac_ext <<_ACEOF
2168     /* end confdefs.h. */
2169    
2170     int
2171     main ()
2172     {
2173     #ifndef __GNUC__
2174     choke me
2175     #endif
2176    
2177     ;
2178     return 0;
2179     }
2180     _ACEOF
2181     rm -f conftest.$ac_objext
2182     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183     (eval $ac_compile) 2>&5
2184     ac_status=$?
2185     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186     (exit $ac_status); } &&
2187     { ac_try='test -s conftest.$ac_objext'
2188     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189     (eval $ac_try) 2>&5
2190     ac_status=$?
2191     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192     (exit $ac_status); }; }; then
2193     ac_compiler_gnu=yes
2194     else
2195     echo "$as_me: failed program was:" >&5
2196     sed 's/^/| /' conftest.$ac_ext >&5
2197    
2198     ac_compiler_gnu=no
2199     fi
2200     rm -f conftest.$ac_objext conftest.$ac_ext
2201     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202    
2203     fi
2204     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206     GCC=`test $ac_compiler_gnu = yes && echo yes`
2207     ac_test_CFLAGS=${CFLAGS+set}
2208     ac_save_CFLAGS=$CFLAGS
2209     CFLAGS="-g"
2210     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212     if test "${ac_cv_prog_cc_g+set}" = set; then
2213     echo $ECHO_N "(cached) $ECHO_C" >&6
2214     else
2215     cat >conftest.$ac_ext <<_ACEOF
2216     #line $LINENO "configure"
2217     /* confdefs.h. */
2218     _ACEOF
2219     cat confdefs.h >>conftest.$ac_ext
2220     cat >>conftest.$ac_ext <<_ACEOF
2221     /* end confdefs.h. */
2222    
2223     int
2224     main ()
2225     {
2226    
2227     ;
2228     return 0;
2229     }
2230     _ACEOF
2231     rm -f conftest.$ac_objext
2232     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233     (eval $ac_compile) 2>&5
2234     ac_status=$?
2235     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236     (exit $ac_status); } &&
2237     { ac_try='test -s conftest.$ac_objext'
2238     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239     (eval $ac_try) 2>&5
2240     ac_status=$?
2241     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242     (exit $ac_status); }; }; then
2243     ac_cv_prog_cc_g=yes
2244     else
2245     echo "$as_me: failed program was:" >&5
2246     sed 's/^/| /' conftest.$ac_ext >&5
2247    
2248     ac_cv_prog_cc_g=no
2249     fi
2250     rm -f conftest.$ac_objext conftest.$ac_ext
2251     fi
2252     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2253     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2254     if test "$ac_test_CFLAGS" = set; then
2255     CFLAGS=$ac_save_CFLAGS
2256     elif test $ac_cv_prog_cc_g = yes; then
2257     if test "$GCC" = yes; then
2258     CFLAGS="-g -O2"
2259     else
2260     CFLAGS="-g"
2261     fi
2262     else
2263     if test "$GCC" = yes; then
2264     CFLAGS="-O2"
2265     else
2266     CFLAGS=
2267     fi
2268     fi
2269     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2270     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2271     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2272     echo $ECHO_N "(cached) $ECHO_C" >&6
2273     else
2274     ac_cv_prog_cc_stdc=no
2275     ac_save_CC=$CC
2276     cat >conftest.$ac_ext <<_ACEOF
2277     #line $LINENO "configure"
2278     /* confdefs.h. */
2279     _ACEOF
2280     cat confdefs.h >>conftest.$ac_ext
2281     cat >>conftest.$ac_ext <<_ACEOF
2282     /* end confdefs.h. */
2283     #include <stdarg.h>
2284     #include <stdio.h>
2285     #include <sys/types.h>
2286     #include <sys/stat.h>
2287     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2288     struct buf { int x; };
2289     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2290     static char *e (p, i)
2291     char **p;
2292     int i;
2293     {
2294     return p[i];
2295     }
2296     static char *f (char * (*g) (char **, int), char **p, ...)
2297     {
2298     char *s;
2299     va_list v;
2300     va_start (v,p);
2301     s = g (p, va_arg (v,int));
2302     va_end (v);
2303     return s;
2304     }
2305     int test (int i, double x);
2306     struct s1 {int (*f) (int a);};
2307     struct s2 {int (*f) (double a);};
2308     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2309     int argc;
2310     char **argv;
2311     int
2312     main ()
2313     {
2314     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2315     ;
2316     return 0;
2317     }
2318     _ACEOF
2319     # Don't try gcc -ansi; that turns off useful extensions and
2320     # breaks some systems' header files.
2321     # AIX -qlanglvl=ansi
2322     # Ultrix and OSF/1 -std1
2323     # HP-UX 10.20 and later -Ae
2324     # HP-UX older versions -Aa -D_HPUX_SOURCE
2325     # SVR4 -Xc -D__EXTENSIONS__
2326     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2327     do
2328     CC="$ac_save_CC $ac_arg"
2329     rm -f conftest.$ac_objext
2330     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331     (eval $ac_compile) 2>&5
2332     ac_status=$?
2333     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334     (exit $ac_status); } &&
2335     { ac_try='test -s conftest.$ac_objext'
2336     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337     (eval $ac_try) 2>&5
2338     ac_status=$?
2339     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340     (exit $ac_status); }; }; then
2341     ac_cv_prog_cc_stdc=$ac_arg
2342     break
2343     else
2344     echo "$as_me: failed program was:" >&5
2345     sed 's/^/| /' conftest.$ac_ext >&5
2346    
2347     fi
2348     rm -f conftest.$ac_objext
2349     done
2350     rm -f conftest.$ac_ext conftest.$ac_objext
2351     CC=$ac_save_CC
2352    
2353     fi
2354    
2355     case "x$ac_cv_prog_cc_stdc" in
2356     x|xno)
2357     echo "$as_me:$LINENO: result: none needed" >&5
2358     echo "${ECHO_T}none needed" >&6 ;;
2359     *)
2360     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362     CC="$CC $ac_cv_prog_cc_stdc" ;;
2363     esac
2364    
2365     # Some people use a C++ compiler to compile C. Since we use `exit',
2366     # in C++ we need to declare it. In case someone uses the same compiler
2367     # for both compiling C and C++ we need to have the C++ compiler decide
2368     # the declaration of exit, since it's the most demanding environment.
2369     cat >conftest.$ac_ext <<_ACEOF
2370     #ifndef __cplusplus
2371     choke me
2372     #endif
2373     _ACEOF
2374     rm -f conftest.$ac_objext
2375     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376     (eval $ac_compile) 2>&5
2377     ac_status=$?
2378     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379     (exit $ac_status); } &&
2380     { ac_try='test -s conftest.$ac_objext'
2381     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382     (eval $ac_try) 2>&5
2383     ac_status=$?
2384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385     (exit $ac_status); }; }; then
2386     for ac_declaration in \
2387     ''\
2388     '#include <stdlib.h>' \
2389     'extern "C" void std::exit (int) throw (); using std::exit;' \
2390     'extern "C" void std::exit (int); using std::exit;' \
2391     'extern "C" void exit (int) throw ();' \
2392     'extern "C" void exit (int);' \
2393     'void exit (int);'
2394     do
2395     cat >conftest.$ac_ext <<_ACEOF
2396     #line $LINENO "configure"
2397     /* confdefs.h. */
2398     _ACEOF
2399     cat confdefs.h >>conftest.$ac_ext
2400     cat >>conftest.$ac_ext <<_ACEOF
2401     /* end confdefs.h. */
2402     #include <stdlib.h>
2403     $ac_declaration
2404     int
2405     main ()
2406     {
2407     exit (42);
2408     ;
2409     return 0;
2410     }
2411     _ACEOF
2412     rm -f conftest.$ac_objext
2413     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414     (eval $ac_compile) 2>&5
2415     ac_status=$?
2416     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417     (exit $ac_status); } &&
2418     { ac_try='test -s conftest.$ac_objext'
2419     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420     (eval $ac_try) 2>&5
2421     ac_status=$?
2422     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423     (exit $ac_status); }; }; then
2424     :
2425     else
2426     echo "$as_me: failed program was:" >&5
2427     sed 's/^/| /' conftest.$ac_ext >&5
2428    
2429     continue
2430     fi
2431     rm -f conftest.$ac_objext conftest.$ac_ext
2432     cat >conftest.$ac_ext <<_ACEOF
2433     #line $LINENO "configure"
2434     /* confdefs.h. */
2435     _ACEOF
2436     cat confdefs.h >>conftest.$ac_ext
2437     cat >>conftest.$ac_ext <<_ACEOF
2438     /* end confdefs.h. */
2439     $ac_declaration
2440     int
2441     main ()
2442     {
2443     exit (42);
2444     ;
2445     return 0;
2446     }
2447     _ACEOF
2448     rm -f conftest.$ac_objext
2449     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450     (eval $ac_compile) 2>&5
2451     ac_status=$?
2452     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453     (exit $ac_status); } &&
2454     { ac_try='test -s conftest.$ac_objext'
2455     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456     (eval $ac_try) 2>&5
2457     ac_status=$?
2458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459     (exit $ac_status); }; }; then
2460     break
2461     else
2462     echo "$as_me: failed program was:" >&5
2463     sed 's/^/| /' conftest.$ac_ext >&5
2464    
2465     fi
2466     rm -f conftest.$ac_objext conftest.$ac_ext
2467     done
2468     rm -f conftest*
2469     if test -n "$ac_declaration"; then
2470     echo '#ifdef __cplusplus' >>confdefs.h
2471     echo $ac_declaration >>confdefs.h
2472     echo '#endif' >>confdefs.h
2473     fi
2474    
2475     else
2476     echo "$as_me: failed program was:" >&5
2477     sed 's/^/| /' conftest.$ac_ext >&5
2478    
2479     fi
2480     rm -f conftest.$ac_objext conftest.$ac_ext
2481     ac_ext=c
2482     ac_cpp='$CPP $CPPFLAGS'
2483     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486    
2487     ac_ext=c
2488     ac_cpp='$CPP $CPPFLAGS'
2489     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2493     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2494     # On Suns, sometimes $CPP names a directory.
2495     if test -n "$CPP" && test -d "$CPP"; then
2496     CPP=
2497     fi
2498     if test -z "$CPP"; then
2499     if test "${ac_cv_prog_CPP+set}" = set; then
2500     echo $ECHO_N "(cached) $ECHO_C" >&6
2501     else
2502     # Double quotes because CPP needs to be expanded
2503     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2504     do
2505     ac_preproc_ok=false
2506     for ac_c_preproc_warn_flag in '' yes
2507     do
2508     # Use a header file that comes with gcc, so configuring glibc
2509     # with a fresh cross-compiler works.
2510     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2511     # <limits.h> exists even on freestanding compilers.
2512     # On the NeXT, cc -E runs the code through the compiler's parser,
2513     # not just through cpp. "Syntax error" is here to catch this case.
2514     cat >conftest.$ac_ext <<_ACEOF
2515     #line $LINENO "configure"
2516     /* confdefs.h. */
2517     _ACEOF
2518     cat confdefs.h >>conftest.$ac_ext
2519     cat >>conftest.$ac_ext <<_ACEOF
2520     /* end confdefs.h. */
2521     #ifdef __STDC__
2522     # include <limits.h>
2523     #else
2524     # include <assert.h>
2525     #endif
2526     Syntax error
2527     _ACEOF
2528     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2529     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2530     ac_status=$?
2531     grep -v '^ *+' conftest.er1 >conftest.err
2532     rm -f conftest.er1
2533     cat conftest.err >&5
2534     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535     (exit $ac_status); } >/dev/null; then
2536     if test -s conftest.err; then
2537     ac_cpp_err=$ac_c_preproc_warn_flag
2538     else
2539     ac_cpp_err=
2540     fi
2541     else
2542     ac_cpp_err=yes
2543     fi
2544     if test -z "$ac_cpp_err"; then
2545     :
2546     else
2547     echo "$as_me: failed program was:" >&5
2548     sed 's/^/| /' conftest.$ac_ext >&5
2549    
2550     # Broken: fails on valid input.
2551     continue
2552     fi
2553     rm -f conftest.err conftest.$ac_ext
2554    
2555     # OK, works on sane cases. Now check whether non-existent headers
2556     # can be detected and how.
2557     cat >conftest.$ac_ext <<_ACEOF
2558     #line $LINENO "configure"
2559     /* confdefs.h. */
2560     _ACEOF
2561     cat confdefs.h >>conftest.$ac_ext
2562     cat >>conftest.$ac_ext <<_ACEOF
2563     /* end confdefs.h. */
2564     #include <ac_nonexistent.h>
2565     _ACEOF
2566     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2567     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568     ac_status=$?
2569     grep -v '^ *+' conftest.er1 >conftest.err
2570     rm -f conftest.er1
2571     cat conftest.err >&5
2572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573     (exit $ac_status); } >/dev/null; then
2574     if test -s conftest.err; then
2575     ac_cpp_err=$ac_c_preproc_warn_flag
2576     else
2577     ac_cpp_err=
2578     fi
2579     else
2580     ac_cpp_err=yes
2581     fi
2582     if test -z "$ac_cpp_err"; then
2583     # Broken: success on invalid input.
2584     continue
2585     else
2586     echo "$as_me: failed program was:" >&5
2587     sed 's/^/| /' conftest.$ac_ext >&5
2588    
2589     # Passes both tests.
2590     ac_preproc_ok=:
2591     break
2592     fi
2593     rm -f conftest.err conftest.$ac_ext
2594    
2595     done
2596     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2597     rm -f conftest.err conftest.$ac_ext
2598     if $ac_preproc_ok; then
2599     break
2600     fi
2601    
2602     done
2603     ac_cv_prog_CPP=$CPP
2604    
2605     fi
2606     CPP=$ac_cv_prog_CPP
2607     else
2608     ac_cv_prog_CPP=$CPP
2609     fi
2610     echo "$as_me:$LINENO: result: $CPP" >&5
2611     echo "${ECHO_T}$CPP" >&6
2612     ac_preproc_ok=false
2613     for ac_c_preproc_warn_flag in '' yes
2614     do
2615     # Use a header file that comes with gcc, so configuring glibc
2616     # with a fresh cross-compiler works.
2617     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2618     # <limits.h> exists even on freestanding compilers.
2619     # On the NeXT, cc -E runs the code through the compiler's parser,
2620     # not just through cpp. "Syntax error" is here to catch this case.
2621     cat >conftest.$ac_ext <<_ACEOF
2622     #line $LINENO "configure"
2623     /* confdefs.h. */
2624     _ACEOF
2625     cat confdefs.h >>conftest.$ac_ext
2626     cat >>conftest.$ac_ext <<_ACEOF
2627     /* end confdefs.h. */
2628     #ifdef __STDC__
2629     # include <limits.h>
2630     #else
2631     # include <assert.h>
2632     #endif
2633     Syntax error
2634     _ACEOF
2635     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2636     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2637     ac_status=$?
2638     grep -v '^ *+' conftest.er1 >conftest.err
2639     rm -f conftest.er1
2640     cat conftest.err >&5
2641     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642     (exit $ac_status); } >/dev/null; then
2643     if test -s conftest.err; then
2644     ac_cpp_err=$ac_c_preproc_warn_flag
2645     else
2646     ac_cpp_err=
2647     fi
2648     else
2649     ac_cpp_err=yes
2650     fi
2651     if test -z "$ac_cpp_err"; then
2652     :
2653     else
2654     echo "$as_me: failed program was:" >&5
2655     sed 's/^/| /' conftest.$ac_ext >&5
2656    
2657     # Broken: fails on valid input.
2658     continue
2659     fi
2660     rm -f conftest.err conftest.$ac_ext
2661    
2662     # OK, works on sane cases. Now check whether non-existent headers
2663     # can be detected and how.
2664     cat >conftest.$ac_ext <<_ACEOF
2665     #line $LINENO "configure"
2666     /* confdefs.h. */
2667     _ACEOF
2668     cat confdefs.h >>conftest.$ac_ext
2669     cat >>conftest.$ac_ext <<_ACEOF
2670     /* end confdefs.h. */
2671     #include <ac_nonexistent.h>
2672     _ACEOF
2673     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2674     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2675     ac_status=$?
2676     grep -v '^ *+' conftest.er1 >conftest.err
2677     rm -f conftest.er1
2678     cat conftest.err >&5
2679     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680     (exit $ac_status); } >/dev/null; then
2681     if test -s conftest.err; then
2682     ac_cpp_err=$ac_c_preproc_warn_flag
2683     else
2684     ac_cpp_err=
2685     fi
2686     else
2687     ac_cpp_err=yes
2688     fi
2689     if test -z "$ac_cpp_err"; then
2690     # Broken: success on invalid input.
2691     continue
2692     else
2693     echo "$as_me: failed program was:" >&5
2694     sed 's/^/| /' conftest.$ac_ext >&5
2695    
2696     # Passes both tests.
2697     ac_preproc_ok=:
2698     break
2699     fi
2700     rm -f conftest.err conftest.$ac_ext
2701    
2702     done
2703     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2704     rm -f conftest.err conftest.$ac_ext
2705     if $ac_preproc_ok; then
2706     :
2707     else
2708     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2709     See \`config.log' for more details." >&5
2710     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2711     See \`config.log' for more details." >&2;}
2712     { (exit 1); exit 1; }; }
2713     fi
2714    
2715     ac_ext=c
2716     ac_cpp='$CPP $CPPFLAGS'
2717     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720    
2721    
2722     # Checks for libraries.
2723     # FIXME: Replace `main' with a function in `-lBossBase':
2724     #AC_CHECK_LIB([BossBase], [main])
2725     # FIXME: Replace `main' with a function in `-lClassAdLite':
2726     #AC_CHECK_LIB([ClassAdLite], [main])
2727     # FIXME: Replace `main' with a function in `-lMonaLisa':
2728     #AC_CHECK_LIB([MonaLisa], [main])
2729     # FIXME: Replace `main' with a function in `-lOSUtils':
2730     #AC_CHECK_LIB([OSUtils], [main])
2731 gcodispo 1.5 # FIXME: Replace `main' with a function in `-lmysqlclient':
2732     #AC_CHECK_LIB([mysqlclient], [main])
2733     # FIXME: Replace `main' with a function in `-lsqlite3':
2734     #AC_CHECK_LIB([sqlite3], [main])
2735 gcodispo 1.1 # FIXME: Replace `main' with a function in `-lSirDBMySQL':
2736     #AC_CHECK_LIB([SirDBMySQL], [main])
2737     # FIXME: Replace `main' with a function in `-lSirDBSQLite':
2738     #AC_CHECK_LIB([SirDBSQLite], [main])
2739     # FIXME: Replace `main' with a function in `-ldl':
2740    
2741    
2742     echo "$as_me:$LINENO: checking for main in -ldl" >&5
2743     echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
2744     if test "${ac_cv_lib_dl_main+set}" = set; then
2745     echo $ECHO_N "(cached) $ECHO_C" >&6
2746     else
2747     ac_check_lib_save_LIBS=$LIBS
2748     LIBS="-ldl $LIBS"
2749     cat >conftest.$ac_ext <<_ACEOF
2750     #line $LINENO "configure"
2751     /* confdefs.h. */
2752     _ACEOF
2753     cat confdefs.h >>conftest.$ac_ext
2754     cat >>conftest.$ac_ext <<_ACEOF
2755     /* end confdefs.h. */
2756    
2757    
2758     int
2759     main ()
2760     {
2761     main ();
2762     ;
2763     return 0;
2764     }
2765     _ACEOF
2766     rm -f conftest.$ac_objext conftest$ac_exeext
2767     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768     (eval $ac_link) 2>&5
2769     ac_status=$?
2770     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771     (exit $ac_status); } &&
2772     { ac_try='test -s conftest$ac_exeext'
2773     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774     (eval $ac_try) 2>&5
2775     ac_status=$?
2776     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777     (exit $ac_status); }; }; then
2778     ac_cv_lib_dl_main=yes
2779     else
2780     echo "$as_me: failed program was:" >&5
2781     sed 's/^/| /' conftest.$ac_ext >&5
2782    
2783     ac_cv_lib_dl_main=no
2784     fi
2785     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2786     LIBS=$ac_check_lib_save_LIBS
2787     fi
2788     echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
2789     echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
2790     if test $ac_cv_lib_dl_main = yes; then
2791     cat >>confdefs.h <<_ACEOF
2792     #define HAVE_LIBDL 1
2793     _ACEOF
2794    
2795     LIBS="-ldl $LIBS"
2796    
2797     fi
2798    
2799     # FIXME: Replace `main' with a function in `-llog4cplus':
2800    
2801     echo "$as_me:$LINENO: checking for main in -llog4cplus" >&5
2802     echo $ECHO_N "checking for main in -llog4cplus... $ECHO_C" >&6
2803     if test "${ac_cv_lib_log4cplus_main+set}" = set; then
2804     echo $ECHO_N "(cached) $ECHO_C" >&6
2805     else
2806     ac_check_lib_save_LIBS=$LIBS
2807     LIBS="-llog4cplus $LIBS"
2808     cat >conftest.$ac_ext <<_ACEOF
2809     #line $LINENO "configure"
2810     /* confdefs.h. */
2811     _ACEOF
2812     cat confdefs.h >>conftest.$ac_ext
2813     cat >>conftest.$ac_ext <<_ACEOF
2814     /* end confdefs.h. */
2815    
2816    
2817     int
2818     main ()
2819     {
2820     main ();
2821     ;
2822     return 0;
2823     }
2824     _ACEOF
2825     rm -f conftest.$ac_objext conftest$ac_exeext
2826     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2827     (eval $ac_link) 2>&5
2828     ac_status=$?
2829     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830     (exit $ac_status); } &&
2831     { ac_try='test -s conftest$ac_exeext'
2832     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833     (eval $ac_try) 2>&5
2834     ac_status=$?
2835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836     (exit $ac_status); }; }; then
2837     ac_cv_lib_log4cplus_main=yes
2838     else
2839     echo "$as_me: failed program was:" >&5
2840     sed 's/^/| /' conftest.$ac_ext >&5
2841    
2842     ac_cv_lib_log4cplus_main=no
2843     fi
2844     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2845     LIBS=$ac_check_lib_save_LIBS
2846     fi
2847     echo "$as_me:$LINENO: result: $ac_cv_lib_log4cplus_main" >&5
2848     echo "${ECHO_T}$ac_cv_lib_log4cplus_main" >&6
2849     if test $ac_cv_lib_log4cplus_main = yes; then
2850     cat >>confdefs.h <<_ACEOF
2851     #define HAVE_LIBLOG4CPLUS 1
2852     _ACEOF
2853    
2854     LIBS="-llog4cplus $LIBS"
2855    
2856     fi
2857    
2858     # FIXME: Replace `main' with a function in `-lpthread':
2859    
2860     echo "$as_me:$LINENO: checking for main in -lpthread" >&5
2861     echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
2862     if test "${ac_cv_lib_pthread_main+set}" = set; then
2863     echo $ECHO_N "(cached) $ECHO_C" >&6
2864     else
2865     ac_check_lib_save_LIBS=$LIBS
2866     LIBS="-lpthread $LIBS"
2867     cat >conftest.$ac_ext <<_ACEOF
2868     #line $LINENO "configure"
2869     /* confdefs.h. */
2870     _ACEOF
2871     cat confdefs.h >>conftest.$ac_ext
2872     cat >>conftest.$ac_ext <<_ACEOF
2873     /* end confdefs.h. */
2874    
2875    
2876     int
2877     main ()
2878     {
2879     main ();
2880     ;
2881     return 0;
2882     }
2883     _ACEOF
2884     rm -f conftest.$ac_objext conftest$ac_exeext
2885     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886     (eval $ac_link) 2>&5
2887     ac_status=$?
2888     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889     (exit $ac_status); } &&
2890     { ac_try='test -s conftest$ac_exeext'
2891     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892     (eval $ac_try) 2>&5
2893     ac_status=$?
2894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895     (exit $ac_status); }; }; then
2896     ac_cv_lib_pthread_main=yes
2897     else
2898     echo "$as_me: failed program was:" >&5
2899     sed 's/^/| /' conftest.$ac_ext >&5
2900    
2901     ac_cv_lib_pthread_main=no
2902     fi
2903     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2904     LIBS=$ac_check_lib_save_LIBS
2905     fi
2906     echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
2907     echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
2908     if test $ac_cv_lib_pthread_main = yes; then
2909     cat >>confdefs.h <<_ACEOF
2910     #define HAVE_LIBPTHREAD 1
2911     _ACEOF
2912    
2913     LIBS="-lpthread $LIBS"
2914    
2915     fi
2916    
2917 gcodispo 1.5 # FIXME: Replace `main' with a function in `-luuid':
2918 gcodispo 1.1
2919 gcodispo 1.5 echo "$as_me:$LINENO: checking for main in -luuid" >&5
2920     echo $ECHO_N "checking for main in -luuid... $ECHO_C" >&6
2921     if test "${ac_cv_lib_uuid_main+set}" = set; then
2922 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2923     else
2924     ac_check_lib_save_LIBS=$LIBS
2925 gcodispo 1.5 LIBS="-luuid $LIBS"
2926 gcodispo 1.1 cat >conftest.$ac_ext <<_ACEOF
2927     #line $LINENO "configure"
2928     /* confdefs.h. */
2929     _ACEOF
2930     cat confdefs.h >>conftest.$ac_ext
2931     cat >>conftest.$ac_ext <<_ACEOF
2932     /* end confdefs.h. */
2933    
2934    
2935     int
2936     main ()
2937     {
2938     main ();
2939     ;
2940     return 0;
2941     }
2942     _ACEOF
2943     rm -f conftest.$ac_objext conftest$ac_exeext
2944     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945     (eval $ac_link) 2>&5
2946     ac_status=$?
2947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948     (exit $ac_status); } &&
2949     { ac_try='test -s conftest$ac_exeext'
2950     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951     (eval $ac_try) 2>&5
2952     ac_status=$?
2953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954     (exit $ac_status); }; }; then
2955 gcodispo 1.5 ac_cv_lib_uuid_main=yes
2956 gcodispo 1.1 else
2957     echo "$as_me: failed program was:" >&5
2958     sed 's/^/| /' conftest.$ac_ext >&5
2959    
2960 gcodispo 1.5 ac_cv_lib_uuid_main=no
2961 gcodispo 1.1 fi
2962     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2963     LIBS=$ac_check_lib_save_LIBS
2964     fi
2965 gcodispo 1.5 echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_main" >&5
2966     echo "${ECHO_T}$ac_cv_lib_uuid_main" >&6
2967     if test $ac_cv_lib_uuid_main = yes; then
2968 gcodispo 1.1 cat >>confdefs.h <<_ACEOF
2969 gcodispo 1.5 #define HAVE_LIBUUID 1
2970 gcodispo 1.1 _ACEOF
2971    
2972 gcodispo 1.5 LIBS="-luuid $LIBS"
2973 gcodispo 1.1
2974     fi
2975    
2976 gcodispo 1.5 # FIXME: Replace `main' with a function in `-lc':
2977 gcodispo 1.1
2978 gcodispo 1.5 echo "$as_me:$LINENO: checking for main in -lc" >&5
2979     echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
2980     if test "${ac_cv_lib_c_main+set}" = set; then
2981 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2982     else
2983     ac_check_lib_save_LIBS=$LIBS
2984 gcodispo 1.5 LIBS="-lc $LIBS"
2985 gcodispo 1.1 cat >conftest.$ac_ext <<_ACEOF
2986     #line $LINENO "configure"
2987     /* confdefs.h. */
2988     _ACEOF
2989     cat confdefs.h >>conftest.$ac_ext
2990     cat >>conftest.$ac_ext <<_ACEOF
2991     /* end confdefs.h. */
2992    
2993    
2994     int
2995     main ()
2996     {
2997     main ();
2998     ;
2999     return 0;
3000     }
3001     _ACEOF
3002     rm -f conftest.$ac_objext conftest$ac_exeext
3003     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3004     (eval $ac_link) 2>&5
3005     ac_status=$?
3006     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007     (exit $ac_status); } &&
3008     { ac_try='test -s conftest$ac_exeext'
3009     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010     (eval $ac_try) 2>&5
3011     ac_status=$?
3012     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013     (exit $ac_status); }; }; then
3014 gcodispo 1.5 ac_cv_lib_c_main=yes
3015 gcodispo 1.1 else
3016     echo "$as_me: failed program was:" >&5
3017     sed 's/^/| /' conftest.$ac_ext >&5
3018    
3019 gcodispo 1.5 ac_cv_lib_c_main=no
3020 gcodispo 1.1 fi
3021     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3022     LIBS=$ac_check_lib_save_LIBS
3023     fi
3024 gcodispo 1.5 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
3025     echo "${ECHO_T}$ac_cv_lib_c_main" >&6
3026     if test $ac_cv_lib_c_main = yes; then
3027 gcodispo 1.1 cat >>confdefs.h <<_ACEOF
3028 gcodispo 1.5 #define HAVE_LIBC 1
3029 gcodispo 1.1 _ACEOF
3030    
3031 gcodispo 1.5 LIBS="-lc $LIBS"
3032 gcodispo 1.1
3033     fi
3034    
3035 gcodispo 1.4 # FIXME: Replace `main' with a function in `-lm':
3036    
3037     echo "$as_me:$LINENO: checking for main in -lm" >&5
3038     echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3039     if test "${ac_cv_lib_m_main+set}" = set; then
3040     echo $ECHO_N "(cached) $ECHO_C" >&6
3041     else
3042     ac_check_lib_save_LIBS=$LIBS
3043     LIBS="-lm $LIBS"
3044     cat >conftest.$ac_ext <<_ACEOF
3045     #line $LINENO "configure"
3046     /* confdefs.h. */
3047     _ACEOF
3048     cat confdefs.h >>conftest.$ac_ext
3049     cat >>conftest.$ac_ext <<_ACEOF
3050     /* end confdefs.h. */
3051    
3052    
3053     int
3054     main ()
3055     {
3056     main ();
3057     ;
3058     return 0;
3059     }
3060     _ACEOF
3061     rm -f conftest.$ac_objext conftest$ac_exeext
3062     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063     (eval $ac_link) 2>&5
3064     ac_status=$?
3065     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066     (exit $ac_status); } &&
3067     { ac_try='test -s conftest$ac_exeext'
3068     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069     (eval $ac_try) 2>&5
3070     ac_status=$?
3071     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072     (exit $ac_status); }; }; then
3073     ac_cv_lib_m_main=yes
3074     else
3075     echo "$as_me: failed program was:" >&5
3076     sed 's/^/| /' conftest.$ac_ext >&5
3077    
3078     ac_cv_lib_m_main=no
3079     fi
3080     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3081     LIBS=$ac_check_lib_save_LIBS
3082     fi
3083     echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3084     echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3085     if test $ac_cv_lib_m_main = yes; then
3086     cat >>confdefs.h <<_ACEOF
3087     #define HAVE_LIBM 1
3088     _ACEOF
3089    
3090     LIBS="-lm $LIBS"
3091    
3092     fi
3093    
3094 gcodispo 1.1 # FIXME: Replace `main' with a function in `-lz':
3095    
3096     echo "$as_me:$LINENO: checking for main in -lz" >&5
3097     echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
3098     if test "${ac_cv_lib_z_main+set}" = set; then
3099     echo $ECHO_N "(cached) $ECHO_C" >&6
3100     else
3101     ac_check_lib_save_LIBS=$LIBS
3102     LIBS="-lz $LIBS"
3103     cat >conftest.$ac_ext <<_ACEOF
3104     #line $LINENO "configure"
3105     /* confdefs.h. */
3106     _ACEOF
3107     cat confdefs.h >>conftest.$ac_ext
3108     cat >>conftest.$ac_ext <<_ACEOF
3109     /* end confdefs.h. */
3110    
3111    
3112     int
3113     main ()
3114     {
3115     main ();
3116     ;
3117     return 0;
3118     }
3119     _ACEOF
3120     rm -f conftest.$ac_objext conftest$ac_exeext
3121     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3122     (eval $ac_link) 2>&5
3123     ac_status=$?
3124     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125     (exit $ac_status); } &&
3126     { ac_try='test -s conftest$ac_exeext'
3127     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128     (eval $ac_try) 2>&5
3129     ac_status=$?
3130     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131     (exit $ac_status); }; }; then
3132     ac_cv_lib_z_main=yes
3133     else
3134     echo "$as_me: failed program was:" >&5
3135     sed 's/^/| /' conftest.$ac_ext >&5
3136    
3137     ac_cv_lib_z_main=no
3138     fi
3139     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3140     LIBS=$ac_check_lib_save_LIBS
3141     fi
3142     echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
3143     echo "${ECHO_T}$ac_cv_lib_z_main" >&6
3144     if test $ac_cv_lib_z_main = yes; then
3145     cat >>confdefs.h <<_ACEOF
3146     #define HAVE_LIBZ 1
3147     _ACEOF
3148    
3149     LIBS="-lz $LIBS"
3150    
3151     else
3152     { { echo "$as_me:$LINENO: error: Missing gzip compression library libz.a or libz.so needed by MySQL client library \"mysqlclient\"" >&5
3153     echo "$as_me: error: Missing gzip compression library libz.a or libz.so needed by MySQL client library \"mysqlclient\"" >&2;}
3154     { (exit 1); exit 1; }; }
3155     fi
3156    
3157 gcodispo 1.4 # FIXME: Replace `main' with a function in `-lxml2':
3158    
3159     echo "$as_me:$LINENO: checking for main in -lxml2" >&5
3160     echo $ECHO_N "checking for main in -lxml2... $ECHO_C" >&6
3161     if test "${ac_cv_lib_xml2_main+set}" = set; then
3162     echo $ECHO_N "(cached) $ECHO_C" >&6
3163     else
3164     ac_check_lib_save_LIBS=$LIBS
3165     LIBS="-lxml2 $LIBS"
3166     cat >conftest.$ac_ext <<_ACEOF
3167     #line $LINENO "configure"
3168     /* confdefs.h. */
3169     _ACEOF
3170     cat confdefs.h >>conftest.$ac_ext
3171     cat >>conftest.$ac_ext <<_ACEOF
3172     /* end confdefs.h. */
3173    
3174    
3175     int
3176     main ()
3177     {
3178     main ();
3179     ;
3180     return 0;
3181     }
3182     _ACEOF
3183     rm -f conftest.$ac_objext conftest$ac_exeext
3184     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185     (eval $ac_link) 2>&5
3186     ac_status=$?
3187     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188     (exit $ac_status); } &&
3189     { ac_try='test -s conftest$ac_exeext'
3190     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191     (eval $ac_try) 2>&5
3192     ac_status=$?
3193     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194     (exit $ac_status); }; }; then
3195     ac_cv_lib_xml2_main=yes
3196     else
3197     echo "$as_me: failed program was:" >&5
3198     sed 's/^/| /' conftest.$ac_ext >&5
3199    
3200     ac_cv_lib_xml2_main=no
3201     fi
3202     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3203     LIBS=$ac_check_lib_save_LIBS
3204     fi
3205     echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_main" >&5
3206     echo "${ECHO_T}$ac_cv_lib_xml2_main" >&6
3207     if test $ac_cv_lib_xml2_main = yes; then
3208     cat >>confdefs.h <<_ACEOF
3209     #define HAVE_LIBXML2 1
3210     _ACEOF
3211    
3212     LIBS="-lxml2 $LIBS"
3213    
3214     else
3215     { { echo "$as_me:$LINENO: error: Missing xml2 library needed by XMLdoc" >&5
3216     echo "$as_me: error: Missing xml2 library needed by XMLdoc" >&2;}
3217     { (exit 1); exit 1; }; }
3218     fi
3219    
3220     # FIXME: Replace `main' with a function in `-lxslt':
3221    
3222     echo "$as_me:$LINENO: checking for main in -lxslt" >&5
3223     echo $ECHO_N "checking for main in -lxslt... $ECHO_C" >&6
3224     if test "${ac_cv_lib_xslt_main+set}" = set; then
3225     echo $ECHO_N "(cached) $ECHO_C" >&6
3226     else
3227     ac_check_lib_save_LIBS=$LIBS
3228     LIBS="-lxslt $LIBS"
3229     cat >conftest.$ac_ext <<_ACEOF
3230     #line $LINENO "configure"
3231     /* confdefs.h. */
3232     _ACEOF
3233     cat confdefs.h >>conftest.$ac_ext
3234     cat >>conftest.$ac_ext <<_ACEOF
3235     /* end confdefs.h. */
3236    
3237    
3238     int
3239     main ()
3240     {
3241     main ();
3242     ;
3243     return 0;
3244     }
3245     _ACEOF
3246     rm -f conftest.$ac_objext conftest$ac_exeext
3247     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3248     (eval $ac_link) 2>&5
3249     ac_status=$?
3250     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251     (exit $ac_status); } &&
3252     { ac_try='test -s conftest$ac_exeext'
3253     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254     (eval $ac_try) 2>&5
3255     ac_status=$?
3256     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257     (exit $ac_status); }; }; then
3258     ac_cv_lib_xslt_main=yes
3259     else
3260     echo "$as_me: failed program was:" >&5
3261     sed 's/^/| /' conftest.$ac_ext >&5
3262    
3263     ac_cv_lib_xslt_main=no
3264     fi
3265     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3266     LIBS=$ac_check_lib_save_LIBS
3267     fi
3268     echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_main" >&5
3269     echo "${ECHO_T}$ac_cv_lib_xslt_main" >&6
3270     if test $ac_cv_lib_xslt_main = yes; then
3271     cat >>confdefs.h <<_ACEOF
3272     #define HAVE_LIBXSLT 1
3273     _ACEOF
3274    
3275     LIBS="-lxslt $LIBS"
3276    
3277     else
3278     { { echo "$as_me:$LINENO: error: Missing xslt library needed by XMLdoc" >&5
3279     echo "$as_me: error: Missing xslt library needed by XMLdoc" >&2;}
3280     { (exit 1); exit 1; }; }
3281     fi
3282    
3283    
3284 gcodispo 1.7 #Checks for db backend location (macro defined in acinclude.m4)
3285 gcodispo 1.4
3286     if test "${ARCH+set}" = set; then
3287     echo $ECHO_N "(cached) $ECHO_C" >&6
3288     else
3289    
3290     for p in `uname -m` ; do
3291     case "$p" in
3292     *x86_64*)
3293     ARCH=amd64_
3294     ;;
3295     *i386* | *i686* )
3296     ARCH=ia32_
3297     ;;
3298     esac
3299     done
3300    
3301    
3302     fi
3303    
3304    
3305     if test "${RELEASE+set}" = set; then
3306     echo $ECHO_N "(cached) $ECHO_C" >&6
3307     else
3308    
3309     for p in `cat /etc/redhat-release 2>/dev/null; cat /etc/issue* 2>/dev/null` ; do
3310     case "$p" in
3311     *SL* | *Scientific*Linux* )
3312     RELEASE=slc`sed 's/[^0-9]//g' /etc/redhat-release | cut -c 1`_
3313     ;;
3314     *Mandrake* | *Red*Hat*Linux* | *SuSE* | *Debian*GNU*Linux*3*0* )
3315     RELEASE=rh73_
3316     ARC=""
3317    
3318     ;;
3319     *Debian*GNU*Linux*3*1* | *Fedora* | *Fermi* | *Red*Hat*Enterprise* | *Rocks* )
3320     RELEASE=slc3_
3321     ;;
3322     esac
3323     done
3324    
3325    
3326     fi
3327    
3328    
3329     if test "${GCC_VERSION+set}" = set; then
3330     echo $ECHO_N "(cached) $ECHO_C" >&6
3331     else
3332    
3333     for p in "`gcc --version | cut -d ' ' -f 1,3 `" ; do
3334     case "$p" in
3335     *gcc* )
3336     GCC_VERSION=gcc`echo $p | cut -d ' ' -f 2 |sed 's/[^0-9]//g' `
3337     ;;
3338     esac
3339     done
3340    
3341    
3342     fi
3343    
3344    
3345     if test "${SYSTEM+set}" = set; then
3346     echo $ECHO_N "(cached) $ECHO_C" >&6
3347     else
3348    
3349     SYSTEM=${RELEASE}${ARCH}${GCC_VERSION}
3350     echo system attributes... ${SYSTEM}
3351    
3352    
3353     fi
3354    
3355    
3356 gcodispo 1.1
3357    
3358 gcodispo 1.7
3359     mysql_lib="${mysql_dir}/lib"
3360     if test x"${mysql_dir}" = x ; then
3361     if test "${mysql_dir+set}" = set; then
3362 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
3363     else
3364    
3365 gcodispo 1.7 if test -d "$srcdir/mysql" ; then
3366     mysql_dir=`(cd $srcdir/mysql; pwd)`
3367 gcodispo 1.5 if test -f "$srcdir/mysql/Makefile.in" ; then
3368 gcodispo 1.7 MAKE_MYSQL_DIR="$srcdir/mysql/src/Makefile"
3369 gcodispo 1.5 fi
3370 gcodispo 1.7 if test -f "$srcdir/mysql/Makefile" ; then
3371     MAKE_MYSQL="\$(MAKE) -C mysql"
3372     MAKE_MYSQL_CLEAN="\$(MAKE) -C mysql clean"
3373 gcodispo 1.1
3374    
3375 gcodispo 1.7 fi
3376 gcodispo 1.5 fi
3377 gcodispo 1.1
3378 gcodispo 1.7 # check for ${VO_CMS_SW_DIR}/lcg/external/mysql
3379     if test x"${mysql_dir}" = x ; then
3380 gcodispo 1.5 for i in \
3381 gcodispo 1.7 `ls -dr ${VO_CMS_SW_DIR}/lcg/external/mysql/*4.*.**/${SYSTEM} 2>/dev/null` \
3382     `ls -dr /afs/cern.ch/cms/external/lcg/external/mysql/*4.*.**/${SYSTEM} 2>/dev/null`
3383 gcodispo 1.5 do
3384 gcodispo 1.7 if test -f "$i/lib/libmysqlclient.so" ; then
3385     mysql_dir=`(cd $i; pwd)`
3386 gcodispo 1.5 break
3387     fi
3388     done
3389     fi
3390 gcodispo 1.1
3391     # check in a few common install locations
3392 gcodispo 1.7 if test x"${mysql_dir}" = x ; then
3393 gcodispo 1.5 for i in \
3394     `ls -d ${libdir} 2>/dev/null` \
3395     `ls -d /usr/local/lib 2>/dev/null` \
3396     `ls -d /usr/contrib/lib 2>/dev/null` \
3397     `ls -d /usr/lib 2>/dev/null`
3398     do
3399 gcodispo 1.7 if test -f "$i/libmysql3.a" ; then
3400     mysql_dir=`(cd $i; cd ..; pwd)`
3401 gcodispo 1.5 break
3402     fi
3403     done
3404     fi
3405 gcodispo 1.1
3406 gcodispo 1.5 fi
3407 gcodispo 1.1
3408     fi
3409    
3410 gcodispo 1.7 if test x"${mysql_dir}" = x ; then
3411     { echo "$as_me:$LINENO: WARNING: \"Can't find mysql\"" >&5
3412     echo "$as_me: WARNING: \"Can't find mysql\"" >&2;}
3413 gcodispo 1.1 { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3414     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3415     { (exit 1); exit 1; }; }
3416 gcodispo 1.5 else
3417 gcodispo 1.7 echo "$as_me:$LINENO: result: found \"${mysql_dir}\"" >&5
3418     echo "${ECHO_T}found \"${mysql_dir}\"" >&6
3419    
3420     fi
3421    
3422     LIBS=" -L${mysql_dir}/lib"
3423     echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
3424     echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
3425     if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
3426     echo $ECHO_N "(cached) $ECHO_C" >&6
3427     else
3428     ac_check_lib_save_LIBS=$LIBS
3429     LIBS="-lmysqlclient $LIBS"
3430     cat >conftest.$ac_ext <<_ACEOF
3431     #line $LINENO "configure"
3432     /* confdefs.h. */
3433     _ACEOF
3434     cat confdefs.h >>conftest.$ac_ext
3435     cat >>conftest.$ac_ext <<_ACEOF
3436     /* end confdefs.h. */
3437    
3438 gcodispo 1.5
3439 gcodispo 1.7 int
3440     main ()
3441     {
3442     main ();
3443     ;
3444     return 0;
3445     }
3446     _ACEOF
3447     rm -f conftest.$ac_objext conftest$ac_exeext
3448     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449     (eval $ac_link) 2>&5
3450     ac_status=$?
3451     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452     (exit $ac_status); } &&
3453     { ac_try='test -s conftest$ac_exeext'
3454     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455     (eval $ac_try) 2>&5
3456     ac_status=$?
3457     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458     (exit $ac_status); }; }; then
3459     ac_cv_lib_mysqlclient_main=yes
3460     else
3461     echo "$as_me: failed program was:" >&5
3462     sed 's/^/| /' conftest.$ac_ext >&5
3463 gcodispo 1.5
3464 gcodispo 1.7 ac_cv_lib_mysqlclient_main=no
3465     fi
3466     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3467     LIBS=$ac_check_lib_save_LIBS
3468 gcodispo 1.5 fi
3469 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
3470     echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
3471     if test $ac_cv_lib_mysqlclient_main = yes; then
3472 gcodispo 1.5
3473 gcodispo 1.7 for p in `ldd ${mysql_dir}/lib/libmysqlclient.so`; do
3474     case $p in
3475     *ssl* )
3476     ssl="yes"
3477     ;;
3478     * )
3479     ;;
3480     esac
3481     done
3482     if test "${ssl}" = "yes" ; then
3483     echo "$as_me:$LINENO: result: -> found ssl dependency in mysl" >&5
3484     echo "${ECHO_T}-> found ssl dependency in mysl" >&6
3485 gcodispo 1.5
3486 gcodispo 1.7 echo "$as_me:$LINENO: checking for main in -lssl" >&5
3487     echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
3488     if test "${ac_cv_lib_ssl_main+set}" = set; then
3489 gcodispo 1.5 echo $ECHO_N "(cached) $ECHO_C" >&6
3490     else
3491     ac_check_lib_save_LIBS=$LIBS
3492 gcodispo 1.7 LIBS="-lssl $LIBS"
3493 gcodispo 1.5 cat >conftest.$ac_ext <<_ACEOF
3494     #line $LINENO "configure"
3495     /* confdefs.h. */
3496     _ACEOF
3497     cat confdefs.h >>conftest.$ac_ext
3498     cat >>conftest.$ac_ext <<_ACEOF
3499     /* end confdefs.h. */
3500    
3501    
3502     int
3503     main ()
3504     {
3505     main ();
3506     ;
3507     return 0;
3508     }
3509     _ACEOF
3510     rm -f conftest.$ac_objext conftest$ac_exeext
3511     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3512     (eval $ac_link) 2>&5
3513     ac_status=$?
3514     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515     (exit $ac_status); } &&
3516     { ac_try='test -s conftest$ac_exeext'
3517     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518     (eval $ac_try) 2>&5
3519     ac_status=$?
3520     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521     (exit $ac_status); }; }; then
3522 gcodispo 1.7 ac_cv_lib_ssl_main=yes
3523 gcodispo 1.5 else
3524     echo "$as_me: failed program was:" >&5
3525     sed 's/^/| /' conftest.$ac_ext >&5
3526    
3527 gcodispo 1.7 ac_cv_lib_ssl_main=no
3528 gcodispo 1.5 fi
3529     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3530     LIBS=$ac_check_lib_save_LIBS
3531     fi
3532 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
3533     echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
3534     if test $ac_cv_lib_ssl_main = yes; then
3535 gcodispo 1.5 cat >>confdefs.h <<_ACEOF
3536 gcodispo 1.7 #define HAVE_LIBSSL 1
3537 gcodispo 1.5 _ACEOF
3538    
3539 gcodispo 1.7 LIBS="-lssl $LIBS"
3540    
3541     else
3542     { { echo "$as_me:$LINENO: error: Missing ssl library needed by sqlite" >&5
3543     echo "$as_me: error: Missing ssl library needed by sqlite" >&2;}
3544     { (exit 1); exit 1; }; }
3545     fi
3546    
3547     ssl_lib="-lssl"
3548    
3549     fi
3550 gcodispo 1.5
3551     else
3552    
3553 gcodispo 1.7 { { echo "$as_me:$LINENO: error: mysqlclient library not found. Please check mysql installation and path" >&5
3554     echo "$as_me: error: mysqlclient library not found. Please check mysql installation and path" >&2;}
3555 gcodispo 1.5 { (exit 1); exit 1; }; }
3556 gcodispo 1.7
3557 gcodispo 1.5 fi
3558    
3559 gcodispo 1.1
3560    
3561 gcodispo 1.7
3562    
3563     sqlite_lib="${sqlite_dir}/lib"
3564     if test x"${sqlite_dir}" = x ; then
3565     if test "${sqlite_dir+set}" = set; then
3566 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
3567     else
3568    
3569 gcodispo 1.7 if test -d "$srcdir/sqlite" ; then
3570     sqlite_dir=`(cd $srcdir/sqlite; pwd)`
3571     if test -f "$srcdir/sqlite/src/Makefile.in" ; then
3572     MAKE_SQLITE_DIR="$srcdir/sqlite/src/Makefile"
3573 gcodispo 1.5 fi
3574 gcodispo 1.7 if test -f "$srcdir/sqlite/Makefile" ; then
3575     MAKE_SQLITE="\$(MAKE) -C sqlite"
3576     MAKE_SQLITE_CLEAN="\$(MAKE) -C sqlite clean"
3577 gcodispo 1.1
3578    
3579 gcodispo 1.7 fi
3580 gcodispo 1.5 fi
3581 gcodispo 1.1
3582 gcodispo 1.7 # check for ${VO_CMS_SW_DIR}/lcg/external/sqlite
3583     if test x"${sqlite_dir}" = x ; then
3584 gcodispo 1.5 for i in \
3585 gcodispo 1.7 `ls -dr ${VO_CMS_SW_DIR}/lcg/external/sqlite/*3.*.**/${SYSTEM} 2>/dev/null` \
3586     `ls -dr /afs/cern.ch/cms/external/lcg/external/sqlite/*3.*.**/${SYSTEM} 2>/dev/null`
3587 gcodispo 1.5 do
3588 gcodispo 1.7 if test -f "$i/lib/libsqlite3.a" ; then
3589     sqlite_dir=`(cd $i; pwd)`
3590 gcodispo 1.5 break
3591     fi
3592     done
3593     fi
3594 gcodispo 1.1
3595     # check in a few common install locations
3596 gcodispo 1.7 if test x"${sqlite_dir}" = x ; then
3597 gcodispo 1.5 for i in \
3598     `ls -d ${libdir} 2>/dev/null` \
3599     `ls -d /usr/local/lib 2>/dev/null` \
3600     `ls -d /usr/contrib/lib 2>/dev/null` \
3601     `ls -d /usr/lib 2>/dev/null`
3602     do
3603 gcodispo 1.7 if test -f "$i/libsqlite3.a" ; then
3604     sqlite_dir=`(cd $i; cd ..; pwd)`
3605 gcodispo 1.5 break
3606     fi
3607     done
3608     fi
3609 gcodispo 1.1
3610 gcodispo 1.5 fi
3611 gcodispo 1.1
3612     fi
3613    
3614 gcodispo 1.7 if test x"${sqlite_dir}" = x; then
3615     { echo "$as_me:$LINENO: WARNING: \"Can't find sqlite\"" >&5
3616     echo "$as_me: WARNING: \"Can't find sqlite\"" >&2;}
3617 gcodispo 1.1 { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3618     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3619     { (exit 1); exit 1; }; }
3620 gcodispo 1.5 else
3621 gcodispo 1.7 echo "$as_me:$LINENO: result: found \"${sqlite_dir}\"" >&5
3622     echo "${ECHO_T}found \"${sqlite_dir}\"" >&6
3623 gcodispo 1.5
3624    
3625     fi
3626    
3627 gcodispo 1.7 LIBS=" -L${sqlite_dir}/lib"
3628    
3629     echo "$as_me:$LINENO: checking for main in -lsqlite3" >&5
3630     echo $ECHO_N "checking for main in -lsqlite3... $ECHO_C" >&6
3631     if test "${ac_cv_lib_sqlite3_main+set}" = set; then
3632 gcodispo 1.5 echo $ECHO_N "(cached) $ECHO_C" >&6
3633     else
3634     ac_check_lib_save_LIBS=$LIBS
3635 gcodispo 1.7 LIBS="-lsqlite3 $LIBS"
3636 gcodispo 1.5 cat >conftest.$ac_ext <<_ACEOF
3637     #line $LINENO "configure"
3638     /* confdefs.h. */
3639     _ACEOF
3640     cat confdefs.h >>conftest.$ac_ext
3641     cat >>conftest.$ac_ext <<_ACEOF
3642     /* end confdefs.h. */
3643    
3644    
3645     int
3646     main ()
3647     {
3648     main ();
3649     ;
3650     return 0;
3651     }
3652     _ACEOF
3653     rm -f conftest.$ac_objext conftest$ac_exeext
3654     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655     (eval $ac_link) 2>&5
3656     ac_status=$?
3657     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658     (exit $ac_status); } &&
3659     { ac_try='test -s conftest$ac_exeext'
3660     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661     (eval $ac_try) 2>&5
3662     ac_status=$?
3663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664     (exit $ac_status); }; }; then
3665 gcodispo 1.7 ac_cv_lib_sqlite3_main=yes
3666 gcodispo 1.5 else
3667     echo "$as_me: failed program was:" >&5
3668     sed 's/^/| /' conftest.$ac_ext >&5
3669    
3670 gcodispo 1.7 ac_cv_lib_sqlite3_main=no
3671 gcodispo 1.5 fi
3672     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673     LIBS=$ac_check_lib_save_LIBS
3674     fi
3675 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_main" >&5
3676     echo "${ECHO_T}$ac_cv_lib_sqlite3_main" >&6
3677     if test $ac_cv_lib_sqlite3_main = yes; then
3678     cat >>confdefs.h <<_ACEOF
3679     #define HAVE_LIBSQLITE3 1
3680     _ACEOF
3681 gcodispo 1.5
3682 gcodispo 1.7 LIBS="-lsqlite3 $LIBS"
3683 gcodispo 1.5
3684     else
3685    
3686 gcodispo 1.7 { { echo "$as_me:$LINENO: error: sqlite3 library not found. Please check sqlite installation and path" >&5
3687     echo "$as_me: error: sqlite3 library not found. Please check sqlite installation and path" >&2;}
3688 gcodispo 1.5 { (exit 1); exit 1; }; }
3689 gcodispo 1.7 fi
3690 gcodispo 1.1
3691    
3692    
3693     # Checks for header files.
3694    
3695     echo "$as_me:$LINENO: checking for egrep" >&5
3696     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3697     if test "${ac_cv_prog_egrep+set}" = set; then
3698     echo $ECHO_N "(cached) $ECHO_C" >&6
3699     else
3700     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3701     then ac_cv_prog_egrep='grep -E'
3702     else ac_cv_prog_egrep='egrep'
3703     fi
3704     fi
3705     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3706     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3707     EGREP=$ac_cv_prog_egrep
3708    
3709    
3710     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3711     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3712     if test "${ac_cv_header_stdc+set}" = set; then
3713     echo $ECHO_N "(cached) $ECHO_C" >&6
3714     else
3715     cat >conftest.$ac_ext <<_ACEOF
3716     #line $LINENO "configure"
3717     /* confdefs.h. */
3718     _ACEOF
3719     cat confdefs.h >>conftest.$ac_ext
3720     cat >>conftest.$ac_ext <<_ACEOF
3721     /* end confdefs.h. */
3722     #include <stdlib.h>
3723     #include <stdarg.h>
3724     #include <string.h>
3725     #include <float.h>
3726    
3727     int
3728     main ()
3729     {
3730    
3731     ;
3732     return 0;
3733     }
3734     _ACEOF
3735     rm -f conftest.$ac_objext
3736     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737     (eval $ac_compile) 2>&5
3738     ac_status=$?
3739     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740     (exit $ac_status); } &&
3741     { ac_try='test -s conftest.$ac_objext'
3742     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743     (eval $ac_try) 2>&5
3744     ac_status=$?
3745     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746     (exit $ac_status); }; }; then
3747     ac_cv_header_stdc=yes
3748     else
3749     echo "$as_me: failed program was:" >&5
3750     sed 's/^/| /' conftest.$ac_ext >&5
3751    
3752     ac_cv_header_stdc=no
3753     fi
3754     rm -f conftest.$ac_objext conftest.$ac_ext
3755    
3756     if test $ac_cv_header_stdc = yes; then
3757     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758     cat >conftest.$ac_ext <<_ACEOF
3759     #line $LINENO "configure"
3760     /* confdefs.h. */
3761     _ACEOF
3762     cat confdefs.h >>conftest.$ac_ext
3763     cat >>conftest.$ac_ext <<_ACEOF
3764     /* end confdefs.h. */
3765     #include <string.h>
3766    
3767     _ACEOF
3768     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769     $EGREP "memchr" >/dev/null 2>&1; then
3770     :
3771     else
3772     ac_cv_header_stdc=no
3773     fi
3774     rm -f conftest*
3775    
3776     fi
3777    
3778     if test $ac_cv_header_stdc = yes; then
3779     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780     cat >conftest.$ac_ext <<_ACEOF
3781     #line $LINENO "configure"
3782     /* confdefs.h. */
3783     _ACEOF
3784     cat confdefs.h >>conftest.$ac_ext
3785     cat >>conftest.$ac_ext <<_ACEOF
3786     /* end confdefs.h. */
3787     #include <stdlib.h>
3788    
3789     _ACEOF
3790     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791     $EGREP "free" >/dev/null 2>&1; then
3792     :
3793     else
3794     ac_cv_header_stdc=no
3795     fi
3796     rm -f conftest*
3797    
3798     fi
3799    
3800     if test $ac_cv_header_stdc = yes; then
3801     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3802     if test "$cross_compiling" = yes; then
3803     :
3804     else
3805     cat >conftest.$ac_ext <<_ACEOF
3806     #line $LINENO "configure"
3807     /* confdefs.h. */
3808     _ACEOF
3809     cat confdefs.h >>conftest.$ac_ext
3810     cat >>conftest.$ac_ext <<_ACEOF
3811     /* end confdefs.h. */
3812     #include <ctype.h>
3813     #if ((' ' & 0x0FF) == 0x020)
3814     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3815     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3816     #else
3817     # define ISLOWER(c) \
3818     (('a' <= (c) && (c) <= 'i') \
3819     || ('j' <= (c) && (c) <= 'r') \
3820     || ('s' <= (c) && (c) <= 'z'))
3821     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3822     #endif
3823    
3824     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3825     int
3826     main ()
3827     {
3828     int i;
3829     for (i = 0; i < 256; i++)
3830     if (XOR (islower (i), ISLOWER (i))
3831     || toupper (i) != TOUPPER (i))
3832     exit(2);
3833     exit (0);
3834     }
3835     _ACEOF
3836     rm -f conftest$ac_exeext
3837     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838     (eval $ac_link) 2>&5
3839     ac_status=$?
3840     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3842     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843     (eval $ac_try) 2>&5
3844     ac_status=$?
3845     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846     (exit $ac_status); }; }; then
3847     :
3848     else
3849     echo "$as_me: program exited with status $ac_status" >&5
3850     echo "$as_me: failed program was:" >&5
3851     sed 's/^/| /' conftest.$ac_ext >&5
3852    
3853     ( exit $ac_status )
3854     ac_cv_header_stdc=no
3855     fi
3856     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3857     fi
3858     fi
3859     fi
3860     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3861     echo "${ECHO_T}$ac_cv_header_stdc" >&6
3862     if test $ac_cv_header_stdc = yes; then
3863    
3864     cat >>confdefs.h <<\_ACEOF
3865     #define STDC_HEADERS 1
3866     _ACEOF
3867    
3868     fi
3869    
3870     echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3871     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3872     if test "${ac_cv_header_sys_wait_h+set}" = set; then
3873     echo $ECHO_N "(cached) $ECHO_C" >&6
3874     else
3875     cat >conftest.$ac_ext <<_ACEOF
3876     #line $LINENO "configure"
3877     /* confdefs.h. */
3878     _ACEOF
3879     cat confdefs.h >>conftest.$ac_ext
3880     cat >>conftest.$ac_ext <<_ACEOF
3881     /* end confdefs.h. */
3882     #include <sys/types.h>
3883     #include <sys/wait.h>
3884     #ifndef WEXITSTATUS
3885     # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3886     #endif
3887     #ifndef WIFEXITED
3888     # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3889     #endif
3890    
3891     int
3892     main ()
3893     {
3894     int s;
3895     wait (&s);
3896     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3897     ;
3898     return 0;
3899     }
3900     _ACEOF
3901     rm -f conftest.$ac_objext
3902     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903     (eval $ac_compile) 2>&5
3904     ac_status=$?
3905     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906     (exit $ac_status); } &&
3907     { ac_try='test -s conftest.$ac_objext'
3908     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909     (eval $ac_try) 2>&5
3910     ac_status=$?
3911     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912     (exit $ac_status); }; }; then
3913     ac_cv_header_sys_wait_h=yes
3914     else
3915     echo "$as_me: failed program was:" >&5
3916     sed 's/^/| /' conftest.$ac_ext >&5
3917    
3918     ac_cv_header_sys_wait_h=no
3919     fi
3920     rm -f conftest.$ac_objext conftest.$ac_ext
3921     fi
3922     echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3923     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3924     if test $ac_cv_header_sys_wait_h = yes; then
3925    
3926     cat >>confdefs.h <<\_ACEOF
3927     #define HAVE_SYS_WAIT_H 1
3928     _ACEOF
3929    
3930     fi
3931    
3932     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3933    
3934    
3935    
3936    
3937    
3938    
3939    
3940    
3941    
3942     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3943     inttypes.h stdint.h unistd.h
3944     do
3945     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946     echo "$as_me:$LINENO: checking for $ac_header" >&5
3947     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949     echo $ECHO_N "(cached) $ECHO_C" >&6
3950     else
3951     cat >conftest.$ac_ext <<_ACEOF
3952     #line $LINENO "configure"
3953     /* confdefs.h. */
3954     _ACEOF
3955     cat confdefs.h >>conftest.$ac_ext
3956     cat >>conftest.$ac_ext <<_ACEOF
3957     /* end confdefs.h. */
3958     $ac_includes_default
3959    
3960     #include <$ac_header>
3961     _ACEOF
3962     rm -f conftest.$ac_objext
3963     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964     (eval $ac_compile) 2>&5
3965     ac_status=$?
3966     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967     (exit $ac_status); } &&
3968     { ac_try='test -s conftest.$ac_objext'
3969     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970     (eval $ac_try) 2>&5
3971     ac_status=$?
3972     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973     (exit $ac_status); }; }; then
3974     eval "$as_ac_Header=yes"
3975     else
3976     echo "$as_me: failed program was:" >&5
3977     sed 's/^/| /' conftest.$ac_ext >&5
3978    
3979     eval "$as_ac_Header=no"
3980     fi
3981     rm -f conftest.$ac_objext conftest.$ac_ext
3982     fi
3983     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3984     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3985     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3986     cat >>confdefs.h <<_ACEOF
3987     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3988     _ACEOF
3989    
3990     fi
3991    
3992     done
3993    
3994    
3995    
3996    
3997    
3998    
3999    
4000    
4001    
4002     for ac_header in arpa/inet.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
4003     do
4004     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006     echo "$as_me:$LINENO: checking for $ac_header" >&5
4007     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009     echo $ECHO_N "(cached) $ECHO_C" >&6
4010     fi
4011     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4012     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4013     else
4014     # Is the header compilable?
4015     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4016     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4017     cat >conftest.$ac_ext <<_ACEOF
4018     #line $LINENO "configure"
4019     /* confdefs.h. */
4020     _ACEOF
4021     cat confdefs.h >>conftest.$ac_ext
4022     cat >>conftest.$ac_ext <<_ACEOF
4023     /* end confdefs.h. */
4024     $ac_includes_default
4025     #include <$ac_header>
4026     _ACEOF
4027     rm -f conftest.$ac_objext
4028     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029     (eval $ac_compile) 2>&5
4030     ac_status=$?
4031     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032     (exit $ac_status); } &&
4033     { ac_try='test -s conftest.$ac_objext'
4034     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035     (eval $ac_try) 2>&5
4036     ac_status=$?
4037     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038     (exit $ac_status); }; }; then
4039     ac_header_compiler=yes
4040     else
4041     echo "$as_me: failed program was:" >&5
4042     sed 's/^/| /' conftest.$ac_ext >&5
4043    
4044     ac_header_compiler=no
4045     fi
4046     rm -f conftest.$ac_objext conftest.$ac_ext
4047     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4048     echo "${ECHO_T}$ac_header_compiler" >&6
4049    
4050     # Is the header present?
4051     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4052     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4053     cat >conftest.$ac_ext <<_ACEOF
4054     #line $LINENO "configure"
4055     /* confdefs.h. */
4056     _ACEOF
4057     cat confdefs.h >>conftest.$ac_ext
4058     cat >>conftest.$ac_ext <<_ACEOF
4059     /* end confdefs.h. */
4060     #include <$ac_header>
4061     _ACEOF
4062     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4063     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4064     ac_status=$?
4065     grep -v '^ *+' conftest.er1 >conftest.err
4066     rm -f conftest.er1
4067     cat conftest.err >&5
4068     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069     (exit $ac_status); } >/dev/null; then
4070     if test -s conftest.err; then
4071     ac_cpp_err=$ac_c_preproc_warn_flag
4072     else
4073     ac_cpp_err=
4074     fi
4075     else
4076     ac_cpp_err=yes
4077     fi
4078     if test -z "$ac_cpp_err"; then
4079     ac_header_preproc=yes
4080     else
4081     echo "$as_me: failed program was:" >&5
4082     sed 's/^/| /' conftest.$ac_ext >&5
4083    
4084     ac_header_preproc=no
4085     fi
4086     rm -f conftest.err conftest.$ac_ext
4087     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4088     echo "${ECHO_T}$ac_header_preproc" >&6
4089    
4090     # So? What about this header?
4091     case $ac_header_compiler:$ac_header_preproc in
4092     yes:no )
4093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4094     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4096     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4097     (
4098     cat <<\_ASBOX
4099     ## ------------------------------------ ##
4100     ## Report this to bug-autoconf@gnu.org. ##
4101     ## ------------------------------------ ##
4102     _ASBOX
4103     ) |
4104     sed "s/^/$as_me: WARNING: /" >&2
4105     ;;
4106     no:yes )
4107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4108     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4109     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4110     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4112     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4113     (
4114     cat <<\_ASBOX
4115     ## ------------------------------------ ##
4116     ## Report this to bug-autoconf@gnu.org. ##
4117     ## ------------------------------------ ##
4118     _ASBOX
4119     ) |
4120     sed "s/^/$as_me: WARNING: /" >&2
4121     ;;
4122     esac
4123     echo "$as_me:$LINENO: checking for $ac_header" >&5
4124     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4125     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4126     echo $ECHO_N "(cached) $ECHO_C" >&6
4127     else
4128     eval "$as_ac_Header=$ac_header_preproc"
4129     fi
4130     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4131     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4132    
4133     fi
4134     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4135     cat >>confdefs.h <<_ACEOF
4136     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4137     _ACEOF
4138    
4139     fi
4140    
4141     done
4142    
4143    
4144     # Checks for typedefs, structures, and compiler characteristics.
4145     echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4146     echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4147     if test "${ac_cv_header_stdbool_h+set}" = set; then
4148     echo $ECHO_N "(cached) $ECHO_C" >&6
4149     else
4150     cat >conftest.$ac_ext <<_ACEOF
4151     #line $LINENO "configure"
4152     /* confdefs.h. */
4153     _ACEOF
4154     cat confdefs.h >>conftest.$ac_ext
4155     cat >>conftest.$ac_ext <<_ACEOF
4156     /* end confdefs.h. */
4157    
4158     #include <stdbool.h>
4159     #ifndef bool
4160     # error bool is not defined
4161     #endif
4162     #ifndef false
4163     # error false is not defined
4164     #endif
4165     #if false
4166     # error false is not 0
4167     #endif
4168     #ifndef true
4169     # error true is not defined
4170     #endif
4171     #if true != 1
4172     # error true is not 1
4173     #endif
4174     #ifndef __bool_true_false_are_defined
4175     # error __bool_true_false_are_defined is not defined
4176     #endif
4177    
4178     struct s { _Bool s: 1; _Bool t; } s;
4179    
4180     char a[true == 1 ? 1 : -1];
4181     char b[false == 0 ? 1 : -1];
4182     char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4183     char d[(bool) -0.5 == true ? 1 : -1];
4184     bool e = &s;
4185     char f[(_Bool) -0.0 == false ? 1 : -1];
4186     char g[true];
4187     char h[sizeof (_Bool)];
4188     char i[sizeof s.t];
4189    
4190     int
4191     main ()
4192     {
4193     return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4194     ;
4195     return 0;
4196     }
4197     _ACEOF
4198     rm -f conftest.$ac_objext
4199     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200     (eval $ac_compile) 2>&5
4201     ac_status=$?
4202     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203     (exit $ac_status); } &&
4204     { ac_try='test -s conftest.$ac_objext'
4205     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206     (eval $ac_try) 2>&5
4207     ac_status=$?
4208     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209     (exit $ac_status); }; }; then
4210     ac_cv_header_stdbool_h=yes
4211     else
4212     echo "$as_me: failed program was:" >&5
4213     sed 's/^/| /' conftest.$ac_ext >&5
4214    
4215     ac_cv_header_stdbool_h=no
4216     fi
4217     rm -f conftest.$ac_objext conftest.$ac_ext
4218     fi
4219     echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4220     echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4221     echo "$as_me:$LINENO: checking for _Bool" >&5
4222     echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4223     if test "${ac_cv_type__Bool+set}" = set; then
4224     echo $ECHO_N "(cached) $ECHO_C" >&6
4225     else
4226     cat >conftest.$ac_ext <<_ACEOF
4227     #line $LINENO "configure"
4228     /* confdefs.h. */
4229     _ACEOF
4230     cat confdefs.h >>conftest.$ac_ext
4231     cat >>conftest.$ac_ext <<_ACEOF
4232     /* end confdefs.h. */
4233     $ac_includes_default
4234     int
4235     main ()
4236     {
4237     if ((_Bool *) 0)
4238     return 0;
4239     if (sizeof (_Bool))
4240     return 0;
4241     ;
4242     return 0;
4243     }
4244     _ACEOF
4245     rm -f conftest.$ac_objext
4246     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247     (eval $ac_compile) 2>&5
4248     ac_status=$?
4249     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250     (exit $ac_status); } &&
4251     { ac_try='test -s conftest.$ac_objext'
4252     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253     (eval $ac_try) 2>&5
4254     ac_status=$?
4255     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256     (exit $ac_status); }; }; then
4257     ac_cv_type__Bool=yes
4258     else
4259     echo "$as_me: failed program was:" >&5
4260     sed 's/^/| /' conftest.$ac_ext >&5
4261    
4262     ac_cv_type__Bool=no
4263     fi
4264     rm -f conftest.$ac_objext conftest.$ac_ext
4265     fi
4266     echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4267     echo "${ECHO_T}$ac_cv_type__Bool" >&6
4268     if test $ac_cv_type__Bool = yes; then
4269    
4270     cat >>confdefs.h <<_ACEOF
4271     #define HAVE__BOOL 1
4272     _ACEOF
4273    
4274    
4275     fi
4276    
4277     if test $ac_cv_header_stdbool_h = yes; then
4278    
4279     cat >>confdefs.h <<\_ACEOF
4280     #define HAVE_STDBOOL_H 1
4281     _ACEOF
4282    
4283     fi
4284    
4285     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4286     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4287     if test "${ac_cv_c_const+set}" = set; then
4288     echo $ECHO_N "(cached) $ECHO_C" >&6
4289     else
4290     cat >conftest.$ac_ext <<_ACEOF
4291     #line $LINENO "configure"
4292     /* confdefs.h. */
4293     _ACEOF
4294     cat confdefs.h >>conftest.$ac_ext
4295     cat >>conftest.$ac_ext <<_ACEOF
4296     /* end confdefs.h. */
4297    
4298     int
4299     main ()
4300     {
4301     /* FIXME: Include the comments suggested by Paul. */
4302     #ifndef __cplusplus
4303     /* Ultrix mips cc rejects this. */
4304     typedef int charset[2];
4305     const charset x;
4306     /* SunOS 4.1.1 cc rejects this. */
4307     char const *const *ccp;
4308     char **p;
4309     /* NEC SVR4.0.2 mips cc rejects this. */
4310     struct point {int x, y;};
4311     static struct point const zero = {0,0};
4312     /* AIX XL C 1.02.0.0 rejects this.
4313     It does not let you subtract one const X* pointer from another in
4314     an arm of an if-expression whose if-part is not a constant
4315     expression */
4316     const char *g = "string";
4317     ccp = &g + (g ? g-g : 0);
4318     /* HPUX 7.0 cc rejects these. */
4319     ++ccp;
4320     p = (char**) ccp;
4321     ccp = (char const *const *) p;
4322     { /* SCO 3.2v4 cc rejects this. */
4323     char *t;
4324     char const *s = 0 ? (char *) 0 : (char const *) 0;
4325    
4326     *t++ = 0;
4327     }
4328     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4329     int x[] = {25, 17};
4330     const int *foo = &x[0];
4331     ++foo;
4332     }
4333     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4334     typedef const int *iptr;
4335     iptr p = 0;
4336     ++p;
4337     }
4338     { /* AIX XL C 1.02.0.0 rejects this saying
4339     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4340     struct s { int j; const int *ap[3]; };
4341     struct s *b; b->j = 5;
4342     }
4343     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4344     const int foo = 10;
4345     }
4346     #endif
4347    
4348     ;
4349     return 0;
4350     }
4351     _ACEOF
4352     rm -f conftest.$ac_objext
4353     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354     (eval $ac_compile) 2>&5
4355     ac_status=$?
4356     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357     (exit $ac_status); } &&
4358     { ac_try='test -s conftest.$ac_objext'
4359     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360     (eval $ac_try) 2>&5
4361     ac_status=$?
4362     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363     (exit $ac_status); }; }; then
4364     ac_cv_c_const=yes
4365     else
4366     echo "$as_me: failed program was:" >&5
4367     sed 's/^/| /' conftest.$ac_ext >&5
4368    
4369     ac_cv_c_const=no
4370     fi
4371     rm -f conftest.$ac_objext conftest.$ac_ext
4372     fi
4373     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4374     echo "${ECHO_T}$ac_cv_c_const" >&6
4375     if test $ac_cv_c_const = no; then
4376    
4377     cat >>confdefs.h <<\_ACEOF
4378     #define const
4379     _ACEOF
4380    
4381     fi
4382    
4383     echo "$as_me:$LINENO: checking for inline" >&5
4384     echo $ECHO_N "checking for inline... $ECHO_C" >&6
4385     if test "${ac_cv_c_inline+set}" = set; then
4386     echo $ECHO_N "(cached) $ECHO_C" >&6
4387     else
4388     ac_cv_c_inline=no
4389     for ac_kw in inline __inline__ __inline; do
4390     cat >conftest.$ac_ext <<_ACEOF
4391     #line $LINENO "configure"
4392     /* confdefs.h. */
4393     _ACEOF
4394     cat confdefs.h >>conftest.$ac_ext
4395     cat >>conftest.$ac_ext <<_ACEOF
4396     /* end confdefs.h. */
4397     #ifndef __cplusplus
4398     typedef int foo_t;
4399     static $ac_kw foo_t static_foo () {return 0; }
4400     $ac_kw foo_t foo () {return 0; }
4401     #endif
4402    
4403     _ACEOF
4404     rm -f conftest.$ac_objext
4405     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406     (eval $ac_compile) 2>&5
4407     ac_status=$?
4408     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409     (exit $ac_status); } &&
4410     { ac_try='test -s conftest.$ac_objext'
4411     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412     (eval $ac_try) 2>&5
4413     ac_status=$?
4414     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415     (exit $ac_status); }; }; then
4416     ac_cv_c_inline=$ac_kw; break
4417     else
4418     echo "$as_me: failed program was:" >&5
4419     sed 's/^/| /' conftest.$ac_ext >&5
4420    
4421     fi
4422     rm -f conftest.$ac_objext conftest.$ac_ext
4423     done
4424    
4425     fi
4426     echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4427     echo "${ECHO_T}$ac_cv_c_inline" >&6
4428     case $ac_cv_c_inline in
4429     inline | yes) ;;
4430     no)
4431     cat >>confdefs.h <<\_ACEOF
4432     #define inline
4433     _ACEOF
4434     ;;
4435     *) cat >>confdefs.h <<_ACEOF
4436     #define inline $ac_cv_c_inline
4437     _ACEOF
4438     ;;
4439     esac
4440    
4441     echo "$as_me:$LINENO: checking for pid_t" >&5
4442     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4443     if test "${ac_cv_type_pid_t+set}" = set; then
4444     echo $ECHO_N "(cached) $ECHO_C" >&6
4445     else
4446     cat >conftest.$ac_ext <<_ACEOF
4447     #line $LINENO "configure"
4448     /* confdefs.h. */
4449     _ACEOF
4450     cat confdefs.h >>conftest.$ac_ext
4451     cat >>conftest.$ac_ext <<_ACEOF
4452     /* end confdefs.h. */
4453     $ac_includes_default
4454     int
4455     main ()
4456     {
4457     if ((pid_t *) 0)
4458     return 0;
4459     if (sizeof (pid_t))
4460     return 0;
4461     ;
4462     return 0;
4463     }
4464     _ACEOF
4465     rm -f conftest.$ac_objext
4466     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467     (eval $ac_compile) 2>&5
4468     ac_status=$?
4469     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470     (exit $ac_status); } &&
4471     { ac_try='test -s conftest.$ac_objext'
4472     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473     (eval $ac_try) 2>&5
4474     ac_status=$?
4475     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476     (exit $ac_status); }; }; then
4477     ac_cv_type_pid_t=yes
4478     else
4479     echo "$as_me: failed program was:" >&5
4480     sed 's/^/| /' conftest.$ac_ext >&5
4481    
4482     ac_cv_type_pid_t=no
4483     fi
4484     rm -f conftest.$ac_objext conftest.$ac_ext
4485     fi
4486     echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4487     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4488     if test $ac_cv_type_pid_t = yes; then
4489     :
4490     else
4491    
4492     cat >>confdefs.h <<_ACEOF
4493     #define pid_t int
4494     _ACEOF
4495    
4496     fi
4497    
4498     echo "$as_me:$LINENO: checking for size_t" >&5
4499     echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4500     if test "${ac_cv_type_size_t+set}" = set; then
4501     echo $ECHO_N "(cached) $ECHO_C" >&6
4502     else
4503     cat >conftest.$ac_ext <<_ACEOF
4504     #line $LINENO "configure"
4505     /* confdefs.h. */
4506     _ACEOF
4507     cat confdefs.h >>conftest.$ac_ext
4508     cat >>conftest.$ac_ext <<_ACEOF
4509     /* end confdefs.h. */
4510     $ac_includes_default
4511     int
4512     main ()
4513     {
4514     if ((size_t *) 0)
4515     return 0;
4516     if (sizeof (size_t))
4517     return 0;
4518     ;
4519     return 0;
4520     }
4521     _ACEOF
4522     rm -f conftest.$ac_objext
4523     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524     (eval $ac_compile) 2>&5
4525     ac_status=$?
4526     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527     (exit $ac_status); } &&
4528     { ac_try='test -s conftest.$ac_objext'
4529     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530     (eval $ac_try) 2>&5
4531     ac_status=$?
4532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533     (exit $ac_status); }; }; then
4534     ac_cv_type_size_t=yes
4535     else
4536     echo "$as_me: failed program was:" >&5
4537     sed 's/^/| /' conftest.$ac_ext >&5
4538    
4539     ac_cv_type_size_t=no
4540     fi
4541     rm -f conftest.$ac_objext conftest.$ac_ext
4542     fi
4543     echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4544     echo "${ECHO_T}$ac_cv_type_size_t" >&6
4545     if test $ac_cv_type_size_t = yes; then
4546     :
4547     else
4548    
4549     cat >>confdefs.h <<_ACEOF
4550     #define size_t unsigned
4551     _ACEOF
4552    
4553     fi
4554    
4555     echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4556     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4557     if test "${ac_cv_header_time+set}" = set; then
4558     echo $ECHO_N "(cached) $ECHO_C" >&6
4559     else
4560     cat >conftest.$ac_ext <<_ACEOF
4561     #line $LINENO "configure"
4562     /* confdefs.h. */
4563     _ACEOF
4564     cat confdefs.h >>conftest.$ac_ext
4565     cat >>conftest.$ac_ext <<_ACEOF
4566     /* end confdefs.h. */
4567     #include <sys/types.h>
4568     #include <sys/time.h>
4569     #include <time.h>
4570    
4571     int
4572     main ()
4573     {
4574     if ((struct tm *) 0)
4575     return 0;
4576     ;
4577     return 0;
4578     }
4579     _ACEOF
4580     rm -f conftest.$ac_objext
4581     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582     (eval $ac_compile) 2>&5
4583     ac_status=$?
4584     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585     (exit $ac_status); } &&
4586     { ac_try='test -s conftest.$ac_objext'
4587     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588     (eval $ac_try) 2>&5
4589     ac_status=$?
4590     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591     (exit $ac_status); }; }; then
4592     ac_cv_header_time=yes
4593     else
4594     echo "$as_me: failed program was:" >&5
4595     sed 's/^/| /' conftest.$ac_ext >&5
4596    
4597     ac_cv_header_time=no
4598     fi
4599     rm -f conftest.$ac_objext conftest.$ac_ext
4600     fi
4601     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4602     echo "${ECHO_T}$ac_cv_header_time" >&6
4603     if test $ac_cv_header_time = yes; then
4604    
4605     cat >>confdefs.h <<\_ACEOF
4606     #define TIME_WITH_SYS_TIME 1
4607     _ACEOF
4608    
4609     fi
4610    
4611     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4612     echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4613     if test "${ac_cv_struct_tm+set}" = set; then
4614     echo $ECHO_N "(cached) $ECHO_C" >&6
4615     else
4616     cat >conftest.$ac_ext <<_ACEOF
4617     #line $LINENO "configure"
4618     /* confdefs.h. */
4619     _ACEOF
4620     cat confdefs.h >>conftest.$ac_ext
4621     cat >>conftest.$ac_ext <<_ACEOF
4622     /* end confdefs.h. */
4623     #include <sys/types.h>
4624     #include <time.h>
4625    
4626     int
4627     main ()
4628     {
4629     struct tm *tp; tp->tm_sec;
4630     ;
4631     return 0;
4632     }
4633     _ACEOF
4634     rm -f conftest.$ac_objext
4635     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636     (eval $ac_compile) 2>&5
4637     ac_status=$?
4638     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639     (exit $ac_status); } &&
4640     { ac_try='test -s conftest.$ac_objext'
4641     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642     (eval $ac_try) 2>&5
4643     ac_status=$?
4644     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645     (exit $ac_status); }; }; then
4646     ac_cv_struct_tm=time.h
4647     else
4648     echo "$as_me: failed program was:" >&5
4649     sed 's/^/| /' conftest.$ac_ext >&5
4650    
4651     ac_cv_struct_tm=sys/time.h
4652     fi
4653     rm -f conftest.$ac_objext conftest.$ac_ext
4654     fi
4655     echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4656     echo "${ECHO_T}$ac_cv_struct_tm" >&6
4657     if test $ac_cv_struct_tm = sys/time.h; then
4658    
4659     cat >>confdefs.h <<\_ACEOF
4660     #define TM_IN_SYS_TIME 1
4661     _ACEOF
4662    
4663     fi
4664    
4665     echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4666     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4667     if test "${ac_cv_type_uid_t+set}" = set; then
4668     echo $ECHO_N "(cached) $ECHO_C" >&6
4669     else
4670     cat >conftest.$ac_ext <<_ACEOF
4671     #line $LINENO "configure"
4672     /* confdefs.h. */
4673     _ACEOF
4674     cat confdefs.h >>conftest.$ac_ext
4675     cat >>conftest.$ac_ext <<_ACEOF
4676     /* end confdefs.h. */
4677     #include <sys/types.h>
4678    
4679     _ACEOF
4680     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681     $EGREP "uid_t" >/dev/null 2>&1; then
4682     ac_cv_type_uid_t=yes
4683     else
4684     ac_cv_type_uid_t=no
4685     fi
4686     rm -f conftest*
4687    
4688     fi
4689     echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4690     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4691     if test $ac_cv_type_uid_t = no; then
4692    
4693     cat >>confdefs.h <<\_ACEOF
4694     #define uid_t int
4695     _ACEOF
4696    
4697    
4698     cat >>confdefs.h <<\_ACEOF
4699     #define gid_t int
4700     _ACEOF
4701    
4702     fi
4703    
4704    
4705     # Checks for library functions.
4706     echo "$as_me:$LINENO: checking for error_at_line" >&5
4707     echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4708     if test "${ac_cv_lib_error_at_line+set}" = set; then
4709     echo $ECHO_N "(cached) $ECHO_C" >&6
4710     else
4711     cat >conftest.$ac_ext <<_ACEOF
4712     #line $LINENO "configure"
4713     /* confdefs.h. */
4714     _ACEOF
4715     cat confdefs.h >>conftest.$ac_ext
4716     cat >>conftest.$ac_ext <<_ACEOF
4717     /* end confdefs.h. */
4718    
4719     int
4720     main ()
4721     {
4722     error_at_line (0, 0, "", 0, "");
4723     ;
4724     return 0;
4725     }
4726     _ACEOF
4727     rm -f conftest.$ac_objext conftest$ac_exeext
4728     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729     (eval $ac_link) 2>&5
4730     ac_status=$?
4731     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732     (exit $ac_status); } &&
4733     { ac_try='test -s conftest$ac_exeext'
4734     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735     (eval $ac_try) 2>&5
4736     ac_status=$?
4737     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738     (exit $ac_status); }; }; then
4739     ac_cv_lib_error_at_line=yes
4740     else
4741     echo "$as_me: failed program was:" >&5
4742     sed 's/^/| /' conftest.$ac_ext >&5
4743    
4744     ac_cv_lib_error_at_line=no
4745     fi
4746     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4747     fi
4748     echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4749     echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
4750     if test $ac_cv_lib_error_at_line = no; then
4751     LIBOBJS="$LIBOBJS error.$ac_objext"
4752     fi
4753    
4754    
4755    
4756     for ac_header in unistd.h vfork.h
4757     do
4758     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760     echo "$as_me:$LINENO: checking for $ac_header" >&5
4761     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763     echo $ECHO_N "(cached) $ECHO_C" >&6
4764     fi
4765     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767     else
4768     # Is the header compilable?
4769     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4770     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4771     cat >conftest.$ac_ext <<_ACEOF
4772     #line $LINENO "configure"
4773     /* confdefs.h. */
4774     _ACEOF
4775     cat confdefs.h >>conftest.$ac_ext
4776     cat >>conftest.$ac_ext <<_ACEOF
4777     /* end confdefs.h. */
4778     $ac_includes_default
4779     #include <$ac_header>
4780     _ACEOF
4781     rm -f conftest.$ac_objext
4782     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783     (eval $ac_compile) 2>&5
4784     ac_status=$?
4785     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786     (exit $ac_status); } &&
4787     { ac_try='test -s conftest.$ac_objext'
4788     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789     (eval $ac_try) 2>&5
4790     ac_status=$?
4791     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792     (exit $ac_status); }; }; then
4793     ac_header_compiler=yes
4794     else
4795     echo "$as_me: failed program was:" >&5
4796     sed 's/^/| /' conftest.$ac_ext >&5
4797    
4798     ac_header_compiler=no
4799     fi
4800     rm -f conftest.$ac_objext conftest.$ac_ext
4801     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4802     echo "${ECHO_T}$ac_header_compiler" >&6
4803    
4804     # Is the header present?
4805     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4806     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4807     cat >conftest.$ac_ext <<_ACEOF
4808     #line $LINENO "configure"
4809     /* confdefs.h. */
4810     _ACEOF
4811     cat confdefs.h >>conftest.$ac_ext
4812     cat >>conftest.$ac_ext <<_ACEOF
4813     /* end confdefs.h. */
4814     #include <$ac_header>
4815     _ACEOF
4816     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4817     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4818     ac_status=$?
4819     grep -v '^ *+' conftest.er1 >conftest.err
4820     rm -f conftest.er1
4821     cat conftest.err >&5
4822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823     (exit $ac_status); } >/dev/null; then
4824     if test -s conftest.err; then
4825     ac_cpp_err=$ac_c_preproc_warn_flag
4826     else
4827     ac_cpp_err=
4828     fi
4829     else
4830     ac_cpp_err=yes
4831     fi
4832     if test -z "$ac_cpp_err"; then
4833     ac_header_preproc=yes
4834     else
4835     echo "$as_me: failed program was:" >&5
4836     sed 's/^/| /' conftest.$ac_ext >&5
4837    
4838     ac_header_preproc=no
4839     fi
4840     rm -f conftest.err conftest.$ac_ext
4841     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4842     echo "${ECHO_T}$ac_header_preproc" >&6
4843    
4844     # So? What about this header?
4845     case $ac_header_compiler:$ac_header_preproc in
4846     yes:no )
4847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4848     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4850     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4851     (
4852     cat <<\_ASBOX
4853     ## ------------------------------------ ##
4854     ## Report this to bug-autoconf@gnu.org. ##
4855     ## ------------------------------------ ##
4856     _ASBOX
4857     ) |
4858     sed "s/^/$as_me: WARNING: /" >&2
4859     ;;
4860     no:yes )
4861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4862     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4863     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4864     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4866     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4867     (
4868     cat <<\_ASBOX
4869     ## ------------------------------------ ##
4870     ## Report this to bug-autoconf@gnu.org. ##
4871     ## ------------------------------------ ##
4872     _ASBOX
4873     ) |
4874     sed "s/^/$as_me: WARNING: /" >&2
4875     ;;
4876     esac
4877     echo "$as_me:$LINENO: checking for $ac_header" >&5
4878     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4879     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4880     echo $ECHO_N "(cached) $ECHO_C" >&6
4881     else
4882     eval "$as_ac_Header=$ac_header_preproc"
4883     fi
4884     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4885     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4886    
4887     fi
4888     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4889     cat >>confdefs.h <<_ACEOF
4890     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4891     _ACEOF
4892    
4893     fi
4894    
4895     done
4896    
4897    
4898    
4899     for ac_func in fork vfork
4900     do
4901     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4902     echo "$as_me:$LINENO: checking for $ac_func" >&5
4903     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4904     if eval "test \"\${$as_ac_var+set}\" = set"; then
4905     echo $ECHO_N "(cached) $ECHO_C" >&6
4906     else
4907     cat >conftest.$ac_ext <<_ACEOF
4908     #line $LINENO "configure"
4909     /* confdefs.h. */
4910     _ACEOF
4911     cat confdefs.h >>conftest.$ac_ext
4912     cat >>conftest.$ac_ext <<_ACEOF
4913     /* end confdefs.h. */
4914     /* System header to define __stub macros and hopefully few prototypes,
4915     which can conflict with char $ac_func (); below.
4916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917     <limits.h> exists even on freestanding compilers. */
4918     #ifdef __STDC__
4919     # include <limits.h>
4920     #else
4921     # include <assert.h>
4922     #endif
4923     /* Override any gcc2 internal prototype to avoid an error. */
4924     #ifdef __cplusplus
4925     extern "C"
4926     {
4927     #endif
4928     /* We use char because int might match the return type of a gcc2
4929     builtin and then its argument prototype would still apply. */
4930     char $ac_func ();
4931     /* The GNU C library defines this for functions which it implements
4932     to always fail with ENOSYS. Some functions are actually named
4933     something starting with __ and the normal name is an alias. */
4934     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4935     choke me
4936     #else
4937     char (*f) () = $ac_func;
4938     #endif
4939     #ifdef __cplusplus
4940     }
4941     #endif
4942    
4943     int
4944     main ()
4945     {
4946     return f != $ac_func;
4947     ;
4948     return 0;
4949     }
4950     _ACEOF
4951     rm -f conftest.$ac_objext conftest$ac_exeext
4952     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953     (eval $ac_link) 2>&5
4954     ac_status=$?
4955     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956     (exit $ac_status); } &&
4957     { ac_try='test -s conftest$ac_exeext'
4958     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959     (eval $ac_try) 2>&5
4960     ac_status=$?
4961     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962     (exit $ac_status); }; }; then
4963     eval "$as_ac_var=yes"
4964     else
4965     echo "$as_me: failed program was:" >&5
4966     sed 's/^/| /' conftest.$ac_ext >&5
4967    
4968     eval "$as_ac_var=no"
4969     fi
4970     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4971     fi
4972     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4973     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4974     if test `eval echo '${'$as_ac_var'}'` = yes; then
4975     cat >>confdefs.h <<_ACEOF
4976     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4977     _ACEOF
4978    
4979     fi
4980     done
4981    
4982     if test "x$ac_cv_func_fork" = xyes; then
4983     echo "$as_me:$LINENO: checking for working fork" >&5
4984     echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4985     if test "${ac_cv_func_fork_works+set}" = set; then
4986     echo $ECHO_N "(cached) $ECHO_C" >&6
4987     else
4988     if test "$cross_compiling" = yes; then
4989     ac_cv_func_fork_works=cross
4990     else
4991     cat >conftest.$ac_ext <<_ACEOF
4992     /* By Ruediger Kuhlmann. */
4993     #include <sys/types.h>
4994     #if HAVE_UNISTD_H
4995     # include <unistd.h>
4996     #endif
4997     /* Some systems only have a dummy stub for fork() */
4998     int main ()
4999     {
5000     if (fork() < 0)
5001     exit (1);
5002     exit (0);
5003     }
5004     _ACEOF
5005     rm -f conftest$ac_exeext
5006     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007     (eval $ac_link) 2>&5
5008     ac_status=$?
5009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012     (eval $ac_try) 2>&5
5013     ac_status=$?
5014     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015     (exit $ac_status); }; }; then
5016     ac_cv_func_fork_works=yes
5017     else
5018     echo "$as_me: program exited with status $ac_status" >&5
5019     echo "$as_me: failed program was:" >&5
5020     sed 's/^/| /' conftest.$ac_ext >&5
5021    
5022     ( exit $ac_status )
5023     ac_cv_func_fork_works=no
5024     fi
5025     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5026     fi
5027     fi
5028     echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5029     echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5030    
5031     else
5032     ac_cv_func_fork_works=$ac_cv_func_fork
5033     fi
5034     if test "x$ac_cv_func_fork_works" = xcross; then
5035     case $host in
5036     *-*-amigaos* | *-*-msdosdjgpp*)
5037     # Override, as these systems have only a dummy fork() stub
5038     ac_cv_func_fork_works=no
5039     ;;
5040     *)
5041     ac_cv_func_fork_works=yes
5042     ;;
5043     esac
5044     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5045     echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5046     fi
5047     ac_cv_func_vfork_works=$ac_cv_func_vfork
5048     if test "x$ac_cv_func_vfork" = xyes; then
5049     echo "$as_me:$LINENO: checking for working vfork" >&5
5050     echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5051     if test "${ac_cv_func_vfork_works+set}" = set; then
5052     echo $ECHO_N "(cached) $ECHO_C" >&6
5053     else
5054     if test "$cross_compiling" = yes; then
5055     ac_cv_func_vfork_works=cross
5056     else
5057     cat >conftest.$ac_ext <<_ACEOF
5058     #line $LINENO "configure"
5059     /* confdefs.h. */
5060     _ACEOF
5061     cat confdefs.h >>conftest.$ac_ext
5062     cat >>conftest.$ac_ext <<_ACEOF
5063     /* end confdefs.h. */
5064     /* Thanks to Paul Eggert for this test. */
5065     #include <stdio.h>
5066     #include <stdlib.h>
5067     #include <sys/types.h>
5068     #include <sys/stat.h>
5069     #include <sys/wait.h>
5070     #if HAVE_UNISTD_H
5071     # include <unistd.h>
5072     #endif
5073     #if HAVE_VFORK_H
5074     # include <vfork.h>
5075     #endif
5076     /* On some sparc systems, changes by the child to local and incoming
5077     argument registers are propagated back to the parent. The compiler
5078     is told about this with #include <vfork.h>, but some compilers
5079     (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5080     static variable whose address is put into a register that is
5081     clobbered by the vfork. */
5082     static void
5083     #ifdef __cplusplus
5084     sparc_address_test (int arg)
5085     # else
5086     sparc_address_test (arg) int arg;
5087     #endif
5088     {
5089     static pid_t child;
5090     if (!child) {
5091     child = vfork ();
5092     if (child < 0) {
5093     perror ("vfork");
5094     _exit(2);
5095     }
5096     if (!child) {
5097     arg = getpid();
5098     write(-1, "", 0);
5099     _exit (arg);
5100     }
5101     }
5102     }
5103    
5104     int
5105     main ()
5106     {
5107     pid_t parent = getpid ();
5108     pid_t child;
5109    
5110     sparc_address_test (0);
5111    
5112     child = vfork ();
5113    
5114     if (child == 0) {
5115     /* Here is another test for sparc vfork register problems. This
5116     test uses lots of local variables, at least as many local
5117     variables as main has allocated so far including compiler
5118     temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5119     4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5120     reuse the register of parent for one of the local variables,
5121     since it will think that parent can't possibly be used any more
5122     in this routine. Assigning to the local variable will thus
5123     munge parent in the parent process. */
5124     pid_t
5125     p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5126     p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5127     /* Convince the compiler that p..p7 are live; otherwise, it might
5128     use the same hardware register for all 8 local variables. */
5129     if (p != p1 || p != p2 || p != p3 || p != p4
5130     || p != p5 || p != p6 || p != p7)
5131     _exit(1);
5132    
5133     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5134     from child file descriptors. If the child closes a descriptor
5135     before it execs or exits, this munges the parent's descriptor
5136     as well. Test for this by closing stdout in the child. */
5137     _exit(close(fileno(stdout)) != 0);
5138     } else {
5139     int status;
5140     struct stat st;
5141    
5142     while (wait(&status) != child)
5143     ;
5144     exit(
5145     /* Was there some problem with vforking? */
5146     child < 0
5147    
5148     /* Did the child fail? (This shouldn't happen.) */
5149     || status
5150    
5151     /* Did the vfork/compiler bug occur? */
5152     || parent != getpid()
5153    
5154     /* Did the file descriptor bug occur? */
5155     || fstat(fileno(stdout), &st) != 0
5156     );
5157     }
5158     }
5159     _ACEOF
5160     rm -f conftest$ac_exeext
5161     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162     (eval $ac_link) 2>&5
5163     ac_status=$?
5164     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5166     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167     (eval $ac_try) 2>&5
5168     ac_status=$?
5169     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170     (exit $ac_status); }; }; then
5171     ac_cv_func_vfork_works=yes
5172     else
5173     echo "$as_me: program exited with status $ac_status" >&5
5174     echo "$as_me: failed program was:" >&5
5175     sed 's/^/| /' conftest.$ac_ext >&5
5176    
5177     ( exit $ac_status )
5178     ac_cv_func_vfork_works=no
5179     fi
5180     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5181     fi
5182     fi
5183     echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5184     echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5185    
5186     fi;
5187     if test "x$ac_cv_func_fork_works" = xcross; then
5188     ac_cv_func_vfork_works=ac_cv_func_vfork
5189     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5190     echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5191     fi
5192    
5193     if test "x$ac_cv_func_vfork_works" = xyes; then
5194    
5195     cat >>confdefs.h <<\_ACEOF
5196     #define HAVE_WORKING_VFORK 1
5197     _ACEOF
5198    
5199     else
5200    
5201     cat >>confdefs.h <<\_ACEOF
5202     #define vfork fork
5203     _ACEOF
5204    
5205     fi
5206     if test "x$ac_cv_func_fork_works" = xyes; then
5207    
5208     cat >>confdefs.h <<\_ACEOF
5209     #define HAVE_WORKING_FORK 1
5210     _ACEOF
5211    
5212     fi
5213    
5214    
5215     for ac_header in stdlib.h
5216     do
5217     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219     echo "$as_me:$LINENO: checking for $ac_header" >&5
5220     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5221     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222     echo $ECHO_N "(cached) $ECHO_C" >&6
5223     fi
5224     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226     else
5227     # Is the header compilable?
5228     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5230     cat >conftest.$ac_ext <<_ACEOF
5231     #line $LINENO "configure"
5232     /* confdefs.h. */
5233     _ACEOF
5234     cat confdefs.h >>conftest.$ac_ext
5235     cat >>conftest.$ac_ext <<_ACEOF
5236     /* end confdefs.h. */
5237     $ac_includes_default
5238     #include <$ac_header>
5239     _ACEOF
5240     rm -f conftest.$ac_objext
5241     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242     (eval $ac_compile) 2>&5
5243     ac_status=$?
5244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245     (exit $ac_status); } &&
5246     { ac_try='test -s conftest.$ac_objext'
5247     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248     (eval $ac_try) 2>&5
5249     ac_status=$?
5250     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251     (exit $ac_status); }; }; then
5252     ac_header_compiler=yes
5253     else
5254     echo "$as_me: failed program was:" >&5
5255     sed 's/^/| /' conftest.$ac_ext >&5
5256    
5257     ac_header_compiler=no
5258     fi
5259     rm -f conftest.$ac_objext conftest.$ac_ext
5260     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5261     echo "${ECHO_T}$ac_header_compiler" >&6
5262    
5263     # Is the header present?
5264     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5265     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5266     cat >conftest.$ac_ext <<_ACEOF
5267     #line $LINENO "configure"
5268     /* confdefs.h. */
5269     _ACEOF
5270     cat confdefs.h >>conftest.$ac_ext
5271     cat >>conftest.$ac_ext <<_ACEOF
5272     /* end confdefs.h. */
5273     #include <$ac_header>
5274     _ACEOF
5275     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5276     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5277     ac_status=$?
5278     grep -v '^ *+' conftest.er1 >conftest.err
5279     rm -f conftest.er1
5280     cat conftest.err >&5
5281     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282     (exit $ac_status); } >/dev/null; then
5283     if test -s conftest.err; then
5284     ac_cpp_err=$ac_c_preproc_warn_flag
5285     else
5286     ac_cpp_err=
5287     fi
5288     else
5289     ac_cpp_err=yes
5290     fi
5291     if test -z "$ac_cpp_err"; then
5292     ac_header_preproc=yes
5293     else
5294     echo "$as_me: failed program was:" >&5
5295     sed 's/^/| /' conftest.$ac_ext >&5
5296    
5297     ac_header_preproc=no
5298     fi
5299     rm -f conftest.err conftest.$ac_ext
5300     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5301     echo "${ECHO_T}$ac_header_preproc" >&6
5302    
5303     # So? What about this header?
5304     case $ac_header_compiler:$ac_header_preproc in
5305     yes:no )
5306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5307     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310     (
5311     cat <<\_ASBOX
5312     ## ------------------------------------ ##
5313     ## Report this to bug-autoconf@gnu.org. ##
5314     ## ------------------------------------ ##
5315     _ASBOX
5316     ) |
5317     sed "s/^/$as_me: WARNING: /" >&2
5318     ;;
5319     no:yes )
5320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5321     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5322     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5323     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5325     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5326     (
5327     cat <<\_ASBOX
5328     ## ------------------------------------ ##
5329     ## Report this to bug-autoconf@gnu.org. ##
5330     ## ------------------------------------ ##
5331     _ASBOX
5332     ) |
5333     sed "s/^/$as_me: WARNING: /" >&2
5334     ;;
5335     esac
5336     echo "$as_me:$LINENO: checking for $ac_header" >&5
5337     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5338     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5339     echo $ECHO_N "(cached) $ECHO_C" >&6
5340     else
5341     eval "$as_ac_Header=$ac_header_preproc"
5342     fi
5343     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5344     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5345    
5346     fi
5347     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5348     cat >>confdefs.h <<_ACEOF
5349     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5350     _ACEOF
5351    
5352     fi
5353    
5354     done
5355    
5356     echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5357     echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5358     if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5359     echo $ECHO_N "(cached) $ECHO_C" >&6
5360     else
5361     if test "$cross_compiling" = yes; then
5362     ac_cv_func_malloc_0_nonnull=no
5363     else
5364     cat >conftest.$ac_ext <<_ACEOF
5365     #line $LINENO "configure"
5366     /* confdefs.h. */
5367     _ACEOF
5368     cat confdefs.h >>conftest.$ac_ext
5369     cat >>conftest.$ac_ext <<_ACEOF
5370     /* end confdefs.h. */
5371     #if STDC_HEADERS || HAVE_STDLIB_H
5372     # include <stdlib.h>
5373     #else
5374     char *malloc ();
5375     #endif
5376    
5377     int
5378     main ()
5379     {
5380     exit (malloc (0) ? 0 : 1);
5381     ;
5382     return 0;
5383     }
5384     _ACEOF
5385     rm -f conftest$ac_exeext
5386     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387     (eval $ac_link) 2>&5
5388     ac_status=$?
5389     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5391     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392     (eval $ac_try) 2>&5
5393     ac_status=$?
5394     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395     (exit $ac_status); }; }; then
5396     ac_cv_func_malloc_0_nonnull=yes
5397     else
5398     echo "$as_me: program exited with status $ac_status" >&5
5399     echo "$as_me: failed program was:" >&5
5400     sed 's/^/| /' conftest.$ac_ext >&5
5401    
5402     ( exit $ac_status )
5403     ac_cv_func_malloc_0_nonnull=no
5404     fi
5405     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5406     fi
5407     fi
5408     echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5409     echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5410     if test $ac_cv_func_malloc_0_nonnull = yes; then
5411    
5412     cat >>confdefs.h <<\_ACEOF
5413     #define HAVE_MALLOC 1
5414     _ACEOF
5415    
5416     else
5417     cat >>confdefs.h <<\_ACEOF
5418     #define HAVE_MALLOC 0
5419     _ACEOF
5420    
5421     LIBOBJS="$LIBOBJS malloc.$ac_objext"
5422    
5423     cat >>confdefs.h <<\_ACEOF
5424     #define malloc rpl_malloc
5425     _ACEOF
5426    
5427     fi
5428    
5429    
5430    
5431    
5432    
5433     for ac_header in sys/time.h unistd.h
5434     do
5435     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5436     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437     echo "$as_me:$LINENO: checking for $ac_header" >&5
5438     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440     echo $ECHO_N "(cached) $ECHO_C" >&6
5441     fi
5442     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444     else
5445     # Is the header compilable?
5446     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5448     cat >conftest.$ac_ext <<_ACEOF
5449     #line $LINENO "configure"
5450     /* confdefs.h. */
5451     _ACEOF
5452     cat confdefs.h >>conftest.$ac_ext
5453     cat >>conftest.$ac_ext <<_ACEOF
5454     /* end confdefs.h. */
5455     $ac_includes_default
5456     #include <$ac_header>
5457     _ACEOF
5458     rm -f conftest.$ac_objext
5459     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460     (eval $ac_compile) 2>&5
5461     ac_status=$?
5462     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463     (exit $ac_status); } &&
5464     { ac_try='test -s conftest.$ac_objext'
5465     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466     (eval $ac_try) 2>&5
5467     ac_status=$?
5468     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469     (exit $ac_status); }; }; then
5470     ac_header_compiler=yes
5471     else
5472     echo "$as_me: failed program was:" >&5
5473     sed 's/^/| /' conftest.$ac_ext >&5
5474    
5475     ac_header_compiler=no
5476     fi
5477     rm -f conftest.$ac_objext conftest.$ac_ext
5478     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5479     echo "${ECHO_T}$ac_header_compiler" >&6
5480    
5481     # Is the header present?
5482     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5483     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5484     cat >conftest.$ac_ext <<_ACEOF
5485     #line $LINENO "configure"
5486     /* confdefs.h. */
5487     _ACEOF
5488     cat confdefs.h >>conftest.$ac_ext
5489     cat >>conftest.$ac_ext <<_ACEOF
5490     /* end confdefs.h. */
5491     #include <$ac_header>
5492     _ACEOF
5493     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5494     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5495     ac_status=$?
5496     grep -v '^ *+' conftest.er1 >conftest.err
5497     rm -f conftest.er1
5498     cat conftest.err >&5
5499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500     (exit $ac_status); } >/dev/null; then
5501     if test -s conftest.err; then
5502     ac_cpp_err=$ac_c_preproc_warn_flag
5503     else
5504     ac_cpp_err=
5505     fi
5506     else
5507     ac_cpp_err=yes
5508     fi
5509     if test -z "$ac_cpp_err"; then
5510     ac_header_preproc=yes
5511     else
5512     echo "$as_me: failed program was:" >&5
5513     sed 's/^/| /' conftest.$ac_ext >&5
5514    
5515     ac_header_preproc=no
5516     fi
5517     rm -f conftest.err conftest.$ac_ext
5518     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5519     echo "${ECHO_T}$ac_header_preproc" >&6
5520    
5521     # So? What about this header?
5522     case $ac_header_compiler:$ac_header_preproc in
5523     yes:no )
5524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5525     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5527     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5528     (
5529     cat <<\_ASBOX
5530     ## ------------------------------------ ##
5531     ## Report this to bug-autoconf@gnu.org. ##
5532     ## ------------------------------------ ##
5533     _ASBOX
5534     ) |
5535     sed "s/^/$as_me: WARNING: /" >&2
5536     ;;
5537     no:yes )
5538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5539     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5540     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5541     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5543     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5544     (
5545     cat <<\_ASBOX
5546     ## ------------------------------------ ##
5547     ## Report this to bug-autoconf@gnu.org. ##
5548     ## ------------------------------------ ##
5549     _ASBOX
5550     ) |
5551     sed "s/^/$as_me: WARNING: /" >&2
5552     ;;
5553     esac
5554     echo "$as_me:$LINENO: checking for $ac_header" >&5
5555     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5556     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5557     echo $ECHO_N "(cached) $ECHO_C" >&6
5558     else
5559     eval "$as_ac_Header=$ac_header_preproc"
5560     fi
5561     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5562     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5563    
5564     fi
5565     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566     cat >>confdefs.h <<_ACEOF
5567     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568     _ACEOF
5569    
5570     fi
5571    
5572     done
5573    
5574    
5575     for ac_func in alarm
5576     do
5577     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578     echo "$as_me:$LINENO: checking for $ac_func" >&5
5579     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5580     if eval "test \"\${$as_ac_var+set}\" = set"; then
5581     echo $ECHO_N "(cached) $ECHO_C" >&6
5582     else
5583     cat >conftest.$ac_ext <<_ACEOF
5584     #line $LINENO "configure"
5585     /* confdefs.h. */
5586     _ACEOF
5587     cat confdefs.h >>conftest.$ac_ext
5588     cat >>conftest.$ac_ext <<_ACEOF
5589     /* end confdefs.h. */
5590     /* System header to define __stub macros and hopefully few prototypes,
5591     which can conflict with char $ac_func (); below.
5592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5593     <limits.h> exists even on freestanding compilers. */
5594     #ifdef __STDC__
5595     # include <limits.h>
5596     #else
5597     # include <assert.h>
5598     #endif
5599     /* Override any gcc2 internal prototype to avoid an error. */
5600     #ifdef __cplusplus
5601     extern "C"
5602     {
5603     #endif
5604     /* We use char because int might match the return type of a gcc2
5605     builtin and then its argument prototype would still apply. */
5606     char $ac_func ();
5607     /* The GNU C library defines this for functions which it implements
5608     to always fail with ENOSYS. Some functions are actually named
5609     something starting with __ and the normal name is an alias. */
5610     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5611     choke me
5612     #else
5613     char (*f) () = $ac_func;
5614     #endif
5615     #ifdef __cplusplus
5616     }
5617     #endif
5618    
5619     int
5620     main ()
5621     {
5622     return f != $ac_func;
5623     ;
5624     return 0;
5625     }
5626     _ACEOF
5627     rm -f conftest.$ac_objext conftest$ac_exeext
5628     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629     (eval $ac_link) 2>&5
5630     ac_status=$?
5631     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632     (exit $ac_status); } &&
5633     { ac_try='test -s conftest$ac_exeext'
5634     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635     (eval $ac_try) 2>&5
5636     ac_status=$?
5637     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638     (exit $ac_status); }; }; then
5639     eval "$as_ac_var=yes"
5640     else
5641     echo "$as_me: failed program was:" >&5
5642     sed 's/^/| /' conftest.$ac_ext >&5
5643    
5644     eval "$as_ac_var=no"
5645     fi
5646     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5647     fi
5648     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5649     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5650     if test `eval echo '${'$as_ac_var'}'` = yes; then
5651     cat >>confdefs.h <<_ACEOF
5652     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5653     _ACEOF
5654    
5655     fi
5656     done
5657    
5658     echo "$as_me:$LINENO: checking for working mktime" >&5
5659     echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
5660     if test "${ac_cv_func_working_mktime+set}" = set; then
5661     echo $ECHO_N "(cached) $ECHO_C" >&6
5662     else
5663     if test "$cross_compiling" = yes; then
5664     ac_cv_func_working_mktime=no
5665     else
5666     cat >conftest.$ac_ext <<_ACEOF
5667     #line $LINENO "configure"
5668     /* confdefs.h. */
5669     _ACEOF
5670     cat confdefs.h >>conftest.$ac_ext
5671     cat >>conftest.$ac_ext <<_ACEOF
5672     /* end confdefs.h. */
5673     /* Test program from Paul Eggert and Tony Leneis. */
5674     #if TIME_WITH_SYS_TIME
5675     # include <sys/time.h>
5676     # include <time.h>
5677     #else
5678     # if HAVE_SYS_TIME_H
5679     # include <sys/time.h>
5680     # else
5681     # include <time.h>
5682     # endif
5683     #endif
5684    
5685     #if HAVE_UNISTD_H
5686     # include <unistd.h>
5687     #endif
5688    
5689     #if !HAVE_ALARM
5690     # define alarm(X) /* empty */
5691     #endif
5692    
5693     /* Work around redefinition to rpl_putenv by other config tests. */
5694     #undef putenv
5695    
5696     static time_t time_t_max;
5697    
5698     /* Values we'll use to set the TZ environment variable. */
5699     static const char *const tz_strings[] = {
5700     (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5701     "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5702     };
5703     #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5704    
5705     /* Fail if mktime fails to convert a date in the spring-forward gap.
5706     Based on a problem report from Andreas Jaeger. */
5707     static void
5708     spring_forward_gap ()
5709     {
5710     /* glibc (up to about 1998-10-07) failed this test. */
5711     struct tm tm;
5712    
5713     /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5714     instead of "TZ=America/Vancouver" in order to detect the bug even
5715     on systems that don't support the Olson extension, or don't have the
5716     full zoneinfo tables installed. */
5717     putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5718    
5719     tm.tm_year = 98;
5720     tm.tm_mon = 3;
5721     tm.tm_mday = 5;
5722     tm.tm_hour = 2;
5723     tm.tm_min = 0;
5724     tm.tm_sec = 0;
5725     tm.tm_isdst = -1;
5726     if (mktime (&tm) == (time_t)-1)
5727     exit (1);
5728     }
5729    
5730     static void
5731     mktime_test (now)
5732     time_t now;
5733     {
5734     struct tm *lt;
5735     if ((lt = localtime (&now)) && mktime (lt) != now)
5736     exit (1);
5737     now = time_t_max - now;
5738     if ((lt = localtime (&now)) && mktime (lt) != now)
5739     exit (1);
5740     }
5741    
5742     static void
5743     irix_6_4_bug ()
5744     {
5745     /* Based on code from Ariel Faigon. */
5746     struct tm tm;
5747     tm.tm_year = 96;
5748     tm.tm_mon = 3;
5749     tm.tm_mday = 0;
5750     tm.tm_hour = 0;
5751     tm.tm_min = 0;
5752     tm.tm_sec = 0;
5753     tm.tm_isdst = -1;
5754     mktime (&tm);
5755     if (tm.tm_mon != 2 || tm.tm_mday != 31)
5756     exit (1);
5757     }
5758    
5759     static void
5760     bigtime_test (j)
5761     int j;
5762     {
5763     struct tm tm;
5764     time_t now;
5765     tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5766     now = mktime (&tm);
5767     if (now != (time_t) -1)
5768     {
5769     struct tm *lt = localtime (&now);
5770     if (! (lt
5771     && lt->tm_year == tm.tm_year
5772     && lt->tm_mon == tm.tm_mon
5773     && lt->tm_mday == tm.tm_mday
5774     && lt->tm_hour == tm.tm_hour
5775     && lt->tm_min == tm.tm_min
5776     && lt->tm_sec == tm.tm_sec
5777     && lt->tm_yday == tm.tm_yday
5778     && lt->tm_wday == tm.tm_wday
5779     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5780     == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5781     exit (1);
5782     }
5783     }
5784    
5785     int
5786     main ()
5787     {
5788     time_t t, delta;
5789     int i, j;
5790    
5791     /* This test makes some buggy mktime implementations loop.
5792     Give up after 60 seconds; a mktime slower than that
5793     isn't worth using anyway. */
5794     alarm (60);
5795    
5796     for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5797     continue;
5798     time_t_max--;
5799     delta = time_t_max / 997; /* a suitable prime number */
5800     for (i = 0; i < N_STRINGS; i++)
5801     {
5802     if (tz_strings[i])
5803     putenv (tz_strings[i]);
5804    
5805     for (t = 0; t <= time_t_max - delta; t += delta)
5806     mktime_test (t);
5807     mktime_test ((time_t) 60 * 60);
5808     mktime_test ((time_t) 60 * 60 * 24);
5809    
5810     for (j = 1; 0 < j; j *= 2)
5811     bigtime_test (j);
5812     bigtime_test (j - 1);
5813     }
5814     irix_6_4_bug ();
5815     spring_forward_gap ();
5816     exit (0);
5817     }
5818     _ACEOF
5819     rm -f conftest$ac_exeext
5820     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5821     (eval $ac_link) 2>&5
5822     ac_status=$?
5823     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5825     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826     (eval $ac_try) 2>&5
5827     ac_status=$?
5828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829     (exit $ac_status); }; }; then
5830     ac_cv_func_working_mktime=yes
5831     else
5832     echo "$as_me: program exited with status $ac_status" >&5
5833     echo "$as_me: failed program was:" >&5
5834     sed 's/^/| /' conftest.$ac_ext >&5
5835    
5836     ( exit $ac_status )
5837     ac_cv_func_working_mktime=no
5838     fi
5839     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5840     fi
5841     fi
5842     echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
5843     echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
5844     if test $ac_cv_func_working_mktime = no; then
5845     LIBOBJS="$LIBOBJS mktime.$ac_objext"
5846     fi
5847    
5848    
5849     for ac_header in stdlib.h
5850     do
5851     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5852     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5853     echo "$as_me:$LINENO: checking for $ac_header" >&5
5854     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5855     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5856     echo $ECHO_N "(cached) $ECHO_C" >&6
5857     fi
5858     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5859     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5860     else
5861     # Is the header compilable?
5862     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5863     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5864     cat >conftest.$ac_ext <<_ACEOF
5865     #line $LINENO "configure"
5866     /* confdefs.h. */
5867     _ACEOF
5868     cat confdefs.h >>conftest.$ac_ext
5869     cat >>conftest.$ac_ext <<_ACEOF
5870     /* end confdefs.h. */
5871     $ac_includes_default
5872     #include <$ac_header>
5873     _ACEOF
5874     rm -f conftest.$ac_objext
5875     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876     (eval $ac_compile) 2>&5
5877     ac_status=$?
5878     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879     (exit $ac_status); } &&
5880     { ac_try='test -s conftest.$ac_objext'
5881     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882     (eval $ac_try) 2>&5
5883     ac_status=$?
5884     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885     (exit $ac_status); }; }; then
5886     ac_header_compiler=yes
5887     else
5888     echo "$as_me: failed program was:" >&5
5889     sed 's/^/| /' conftest.$ac_ext >&5
5890    
5891     ac_header_compiler=no
5892     fi
5893     rm -f conftest.$ac_objext conftest.$ac_ext
5894     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5895     echo "${ECHO_T}$ac_header_compiler" >&6
5896    
5897     # Is the header present?
5898     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5899     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5900     cat >conftest.$ac_ext <<_ACEOF
5901     #line $LINENO "configure"
5902     /* confdefs.h. */
5903     _ACEOF
5904     cat confdefs.h >>conftest.$ac_ext
5905     cat >>conftest.$ac_ext <<_ACEOF
5906     /* end confdefs.h. */
5907     #include <$ac_header>
5908     _ACEOF
5909     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911     ac_status=$?
5912     grep -v '^ *+' conftest.er1 >conftest.err
5913     rm -f conftest.er1
5914     cat conftest.err >&5
5915     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916     (exit $ac_status); } >/dev/null; then
5917     if test -s conftest.err; then
5918     ac_cpp_err=$ac_c_preproc_warn_flag
5919     else
5920     ac_cpp_err=
5921     fi
5922     else
5923     ac_cpp_err=yes
5924     fi
5925     if test -z "$ac_cpp_err"; then
5926     ac_header_preproc=yes
5927     else
5928     echo "$as_me: failed program was:" >&5
5929     sed 's/^/| /' conftest.$ac_ext >&5
5930    
5931     ac_header_preproc=no
5932     fi
5933     rm -f conftest.err conftest.$ac_ext
5934     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5935     echo "${ECHO_T}$ac_header_preproc" >&6
5936    
5937     # So? What about this header?
5938     case $ac_header_compiler:$ac_header_preproc in
5939     yes:no )
5940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5941     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5943     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5944     (
5945     cat <<\_ASBOX
5946     ## ------------------------------------ ##
5947     ## Report this to bug-autoconf@gnu.org. ##
5948     ## ------------------------------------ ##
5949     _ASBOX
5950     ) |
5951     sed "s/^/$as_me: WARNING: /" >&2
5952     ;;
5953     no:yes )
5954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5955     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5956     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5957     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5959     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5960     (
5961     cat <<\_ASBOX
5962     ## ------------------------------------ ##
5963     ## Report this to bug-autoconf@gnu.org. ##
5964     ## ------------------------------------ ##
5965     _ASBOX
5966     ) |
5967     sed "s/^/$as_me: WARNING: /" >&2
5968     ;;
5969     esac
5970     echo "$as_me:$LINENO: checking for $ac_header" >&5
5971     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973     echo $ECHO_N "(cached) $ECHO_C" >&6
5974     else
5975     eval "$as_ac_Header=$ac_header_preproc"
5976     fi
5977     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5978     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5979    
5980     fi
5981     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5982     cat >>confdefs.h <<_ACEOF
5983     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5984     _ACEOF
5985    
5986     fi
5987    
5988     done
5989    
5990     echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5991     echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
5992     if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5993     echo $ECHO_N "(cached) $ECHO_C" >&6
5994     else
5995     if test "$cross_compiling" = yes; then
5996     ac_cv_func_realloc_0_nonnull=no
5997     else
5998     cat >conftest.$ac_ext <<_ACEOF
5999     #line $LINENO "configure"
6000     /* confdefs.h. */
6001     _ACEOF
6002     cat confdefs.h >>conftest.$ac_ext
6003     cat >>conftest.$ac_ext <<_ACEOF
6004     /* end confdefs.h. */
6005     #if STDC_HEADERS || HAVE_STDLIB_H
6006     # include <stdlib.h>
6007     #else
6008     char *realloc ();
6009     #endif
6010    
6011     int
6012     main ()
6013     {
6014     exit (realloc (0, 0) ? 0 : 1);
6015     ;
6016     return 0;
6017     }
6018     _ACEOF
6019     rm -f conftest$ac_exeext
6020     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6021     (eval $ac_link) 2>&5
6022     ac_status=$?
6023     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6025     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026     (eval $ac_try) 2>&5
6027     ac_status=$?
6028     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029     (exit $ac_status); }; }; then
6030     ac_cv_func_realloc_0_nonnull=yes
6031     else
6032     echo "$as_me: program exited with status $ac_status" >&5
6033     echo "$as_me: failed program was:" >&5
6034     sed 's/^/| /' conftest.$ac_ext >&5
6035    
6036     ( exit $ac_status )
6037     ac_cv_func_realloc_0_nonnull=no
6038     fi
6039     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6040     fi
6041     fi
6042     echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
6043     echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
6044     if test $ac_cv_func_realloc_0_nonnull = yes; then
6045    
6046     cat >>confdefs.h <<\_ACEOF
6047     #define HAVE_REALLOC 1
6048     _ACEOF
6049    
6050     else
6051     cat >>confdefs.h <<\_ACEOF
6052     #define HAVE_REALLOC 0
6053     _ACEOF
6054    
6055     LIBOBJS="$LIBOBJS realloc.$ac_objext"
6056    
6057     cat >>confdefs.h <<\_ACEOF
6058     #define realloc rpl_realloc
6059     _ACEOF
6060    
6061     fi
6062    
6063    
6064    
6065    
6066    
6067     for ac_header in sys/select.h sys/socket.h
6068     do
6069     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071     echo "$as_me:$LINENO: checking for $ac_header" >&5
6072     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074     echo $ECHO_N "(cached) $ECHO_C" >&6
6075     fi
6076     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078     else
6079     # Is the header compilable?
6080     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082     cat >conftest.$ac_ext <<_ACEOF
6083     #line $LINENO "configure"
6084     /* confdefs.h. */
6085     _ACEOF
6086     cat confdefs.h >>conftest.$ac_ext
6087     cat >>conftest.$ac_ext <<_ACEOF
6088     /* end confdefs.h. */
6089     $ac_includes_default
6090     #include <$ac_header>
6091     _ACEOF
6092     rm -f conftest.$ac_objext
6093     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094     (eval $ac_compile) 2>&5
6095     ac_status=$?
6096     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097     (exit $ac_status); } &&
6098     { ac_try='test -s conftest.$ac_objext'
6099     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100     (eval $ac_try) 2>&5
6101     ac_status=$?
6102     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103     (exit $ac_status); }; }; then
6104     ac_header_compiler=yes
6105     else
6106     echo "$as_me: failed program was:" >&5
6107     sed 's/^/| /' conftest.$ac_ext >&5
6108    
6109     ac_header_compiler=no
6110     fi
6111     rm -f conftest.$ac_objext conftest.$ac_ext
6112     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113     echo "${ECHO_T}$ac_header_compiler" >&6
6114    
6115     # Is the header present?
6116     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6117     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6118     cat >conftest.$ac_ext <<_ACEOF
6119     #line $LINENO "configure"
6120     /* confdefs.h. */
6121     _ACEOF
6122     cat confdefs.h >>conftest.$ac_ext
6123     cat >>conftest.$ac_ext <<_ACEOF
6124     /* end confdefs.h. */
6125     #include <$ac_header>
6126     _ACEOF
6127     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129     ac_status=$?
6130     grep -v '^ *+' conftest.er1 >conftest.err
6131     rm -f conftest.er1
6132     cat conftest.err >&5
6133     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134     (exit $ac_status); } >/dev/null; then
6135     if test -s conftest.err; then
6136     ac_cpp_err=$ac_c_preproc_warn_flag
6137     else
6138     ac_cpp_err=
6139     fi
6140     else
6141     ac_cpp_err=yes
6142     fi
6143     if test -z "$ac_cpp_err"; then
6144     ac_header_preproc=yes
6145     else
6146     echo "$as_me: failed program was:" >&5
6147     sed 's/^/| /' conftest.$ac_ext >&5
6148    
6149     ac_header_preproc=no
6150     fi
6151     rm -f conftest.err conftest.$ac_ext
6152     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153     echo "${ECHO_T}$ac_header_preproc" >&6
6154    
6155     # So? What about this header?
6156     case $ac_header_compiler:$ac_header_preproc in
6157     yes:no )
6158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6161     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6162     (
6163     cat <<\_ASBOX
6164     ## ------------------------------------ ##
6165     ## Report this to bug-autoconf@gnu.org. ##
6166     ## ------------------------------------ ##
6167     _ASBOX
6168     ) |
6169     sed "s/^/$as_me: WARNING: /" >&2
6170     ;;
6171     no:yes )
6172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6173     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6174     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6175     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6177     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6178     (
6179     cat <<\_ASBOX
6180     ## ------------------------------------ ##
6181     ## Report this to bug-autoconf@gnu.org. ##
6182     ## ------------------------------------ ##
6183     _ASBOX
6184     ) |
6185     sed "s/^/$as_me: WARNING: /" >&2
6186     ;;
6187     esac
6188     echo "$as_me:$LINENO: checking for $ac_header" >&5
6189     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6190     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6191     echo $ECHO_N "(cached) $ECHO_C" >&6
6192     else
6193     eval "$as_ac_Header=$ac_header_preproc"
6194     fi
6195     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6196     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6197    
6198     fi
6199     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6200     cat >>confdefs.h <<_ACEOF
6201     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6202     _ACEOF
6203    
6204     fi
6205    
6206     done
6207    
6208     echo "$as_me:$LINENO: checking types of arguments for select" >&5
6209     echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
6210     if test "${ac_cv_func_select_args+set}" = set; then
6211     echo $ECHO_N "(cached) $ECHO_C" >&6
6212     else
6213     for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6214     for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
6215     for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6216     cat >conftest.$ac_ext <<_ACEOF
6217     #line $LINENO "configure"
6218     /* confdefs.h. */
6219     _ACEOF
6220     cat confdefs.h >>conftest.$ac_ext
6221     cat >>conftest.$ac_ext <<_ACEOF
6222     /* end confdefs.h. */
6223     $ac_includes_default
6224     #if HAVE_SYS_SELECT_H
6225     # include <sys/select.h>
6226     #endif
6227     #if HAVE_SYS_SOCKET_H
6228     # include <sys/socket.h>
6229     #endif
6230    
6231     int
6232     main ()
6233     {
6234     extern int select ($ac_arg1,
6235     $ac_arg234, $ac_arg234, $ac_arg234,
6236     $ac_arg5);
6237     ;
6238     return 0;
6239     }
6240     _ACEOF
6241     rm -f conftest.$ac_objext
6242     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243     (eval $ac_compile) 2>&5
6244     ac_status=$?
6245     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246     (exit $ac_status); } &&
6247     { ac_try='test -s conftest.$ac_objext'
6248     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249     (eval $ac_try) 2>&5
6250     ac_status=$?
6251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252     (exit $ac_status); }; }; then
6253     ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6254     else
6255     echo "$as_me: failed program was:" >&5
6256     sed 's/^/| /' conftest.$ac_ext >&5
6257    
6258     fi
6259     rm -f conftest.$ac_objext conftest.$ac_ext
6260     done
6261     done
6262     done
6263     # Provide a safe default value.
6264     : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6265    
6266     fi
6267     echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6268     echo "${ECHO_T}$ac_cv_func_select_args" >&6
6269     ac_save_IFS=$IFS; IFS=','
6270     set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6271     IFS=$ac_save_IFS
6272     shift
6273    
6274     cat >>confdefs.h <<_ACEOF
6275     #define SELECT_TYPE_ARG1 $1
6276     _ACEOF
6277    
6278    
6279     cat >>confdefs.h <<_ACEOF
6280     #define SELECT_TYPE_ARG234 ($2)
6281     _ACEOF
6282    
6283    
6284     cat >>confdefs.h <<_ACEOF
6285     #define SELECT_TYPE_ARG5 ($3)
6286     _ACEOF
6287    
6288     rm -f conftest*
6289    
6290     echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6291     echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
6292     if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6293     echo $ECHO_N "(cached) $ECHO_C" >&6
6294     else
6295     rm -f conftest.sym conftest.file
6296     echo >conftest.file
6297     if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6298     if test "$cross_compiling" = yes; then
6299     ac_cv_func_lstat_dereferences_slashed_symlink=no
6300     else
6301     cat >conftest.$ac_ext <<_ACEOF
6302     #line $LINENO "configure"
6303     /* confdefs.h. */
6304     _ACEOF
6305     cat confdefs.h >>conftest.$ac_ext
6306     cat >>conftest.$ac_ext <<_ACEOF
6307     /* end confdefs.h. */
6308     $ac_includes_default
6309     int
6310     main ()
6311     {
6312     struct stat sbuf;
6313     /* Linux will dereference the symlink and fail.
6314     That is better in the sense that it means we will not
6315     have to compile and use the lstat wrapper. */
6316     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6317     ;
6318     return 0;
6319     }
6320     _ACEOF
6321     rm -f conftest$ac_exeext
6322     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323     (eval $ac_link) 2>&5
6324     ac_status=$?
6325     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6327     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328     (eval $ac_try) 2>&5
6329     ac_status=$?
6330     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331     (exit $ac_status); }; }; then
6332     ac_cv_func_lstat_dereferences_slashed_symlink=yes
6333     else
6334     echo "$as_me: program exited with status $ac_status" >&5
6335     echo "$as_me: failed program was:" >&5
6336     sed 's/^/| /' conftest.$ac_ext >&5
6337    
6338     ( exit $ac_status )
6339     ac_cv_func_lstat_dereferences_slashed_symlink=no
6340     fi
6341     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6342     fi
6343     else
6344     # If the `ln -s' command failed, then we probably don't even
6345     # have an lstat function.
6346     ac_cv_func_lstat_dereferences_slashed_symlink=no
6347     fi
6348     rm -f conftest.sym conftest.file
6349    
6350     fi
6351     echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6352     echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
6353    
6354     test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6355    
6356     cat >>confdefs.h <<_ACEOF
6357     #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6358     _ACEOF
6359    
6360    
6361     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
6362     LIBOBJS="$LIBOBJS lstat.$ac_objext"
6363     fi
6364    
6365     echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6366     echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6367     if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6368     echo $ECHO_N "(cached) $ECHO_C" >&6
6369     else
6370     if test "$cross_compiling" = yes; then
6371     ac_cv_func_stat_empty_string_bug=yes
6372     else
6373     cat >conftest.$ac_ext <<_ACEOF
6374     #line $LINENO "configure"
6375     /* confdefs.h. */
6376     _ACEOF
6377     cat confdefs.h >>conftest.$ac_ext
6378     cat >>conftest.$ac_ext <<_ACEOF
6379     /* end confdefs.h. */
6380     $ac_includes_default
6381     int
6382     main ()
6383     {
6384     struct stat sbuf;
6385     exit (stat ("", &sbuf) ? 1 : 0);
6386     ;
6387     return 0;
6388     }
6389     _ACEOF
6390     rm -f conftest$ac_exeext
6391     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392     (eval $ac_link) 2>&5
6393     ac_status=$?
6394     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6396     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397     (eval $ac_try) 2>&5
6398     ac_status=$?
6399     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400     (exit $ac_status); }; }; then
6401     ac_cv_func_stat_empty_string_bug=yes
6402     else
6403     echo "$as_me: program exited with status $ac_status" >&5
6404     echo "$as_me: failed program was:" >&5
6405     sed 's/^/| /' conftest.$ac_ext >&5
6406    
6407     ( exit $ac_status )
6408     ac_cv_func_stat_empty_string_bug=no
6409     fi
6410     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6411     fi
6412     fi
6413     echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6414     echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6415     if test $ac_cv_func_stat_empty_string_bug = yes; then
6416     LIBOBJS="$LIBOBJS stat.$ac_objext"
6417    
6418     cat >>confdefs.h <<_ACEOF
6419     #define HAVE_STAT_EMPTY_STRING_BUG 1
6420     _ACEOF
6421    
6422     fi
6423    
6424    
6425    
6426    
6427    
6428    
6429    
6430    
6431    
6432    
6433    
6434    
6435    
6436    
6437    
6438    
6439    
6440    
6441    
6442     for ac_func in bzero dup2 getcwd gethostbyname gethostname inet_ntoa memmove memset mkfifo select setenv socket strchr strdup strerror strndup strstr uname
6443     do
6444     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6445     echo "$as_me:$LINENO: checking for $ac_func" >&5
6446     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6447     if eval "test \"\${$as_ac_var+set}\" = set"; then
6448     echo $ECHO_N "(cached) $ECHO_C" >&6
6449     else
6450     cat >conftest.$ac_ext <<_ACEOF
6451     #line $LINENO "configure"
6452     /* confdefs.h. */
6453     _ACEOF
6454     cat confdefs.h >>conftest.$ac_ext
6455     cat >>conftest.$ac_ext <<_ACEOF
6456     /* end confdefs.h. */
6457     /* System header to define __stub macros and hopefully few prototypes,
6458     which can conflict with char $ac_func (); below.
6459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460     <limits.h> exists even on freestanding compilers. */
6461     #ifdef __STDC__
6462     # include <limits.h>
6463     #else
6464     # include <assert.h>
6465     #endif
6466     /* Override any gcc2 internal prototype to avoid an error. */
6467     #ifdef __cplusplus
6468     extern "C"
6469     {
6470     #endif
6471     /* We use char because int might match the return type of a gcc2
6472     builtin and then its argument prototype would still apply. */
6473     char $ac_func ();
6474     /* The GNU C library defines this for functions which it implements
6475     to always fail with ENOSYS. Some functions are actually named
6476     something starting with __ and the normal name is an alias. */
6477     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6478     choke me
6479     #else
6480     char (*f) () = $ac_func;
6481     #endif
6482     #ifdef __cplusplus
6483     }
6484     #endif
6485    
6486     int
6487     main ()
6488     {
6489     return f != $ac_func;
6490     ;
6491     return 0;
6492     }
6493     _ACEOF
6494     rm -f conftest.$ac_objext conftest$ac_exeext
6495     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496     (eval $ac_link) 2>&5
6497     ac_status=$?
6498     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499     (exit $ac_status); } &&
6500     { ac_try='test -s conftest$ac_exeext'
6501     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502     (eval $ac_try) 2>&5
6503     ac_status=$?
6504     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505     (exit $ac_status); }; }; then
6506     eval "$as_ac_var=yes"
6507     else
6508     echo "$as_me: failed program was:" >&5
6509     sed 's/^/| /' conftest.$ac_ext >&5
6510    
6511     eval "$as_ac_var=no"
6512     fi
6513     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6514     fi
6515     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6516     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6517     if test `eval echo '${'$as_ac_var'}'` = yes; then
6518     cat >>confdefs.h <<_ACEOF
6519     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6520     _ACEOF
6521    
6522     fi
6523     done
6524    
6525    
6526     ac_config_files="$ac_config_files BossClient/Makefile BossClient/src/Makefile BossCore/Makefile BossCore/src/Makefile BossPython/Makefile BossRTMon/Makefile BossRTMon/src/Makefile BossSched/Makefile BossSched/src/Makefile BossWrapper/Makefile BossWrapper/src/Makefile ClassAdLite/Makefile ClassAdLite/src/Makefile ClassAdLite/test/Makefile Examples/Makefile Makefile MonaLisa/Makefile MonaLisa/src/Makefile MonaLisa/test/Makefile OSUtils/Makefile OSUtils/src/Makefile OSUtils/test/Makefile SirDB/Makefile SirDB/src/Makefile install.sh"
6527    
6528    
6529     ac_config_commands="$ac_config_commands install"
6530    
6531    
6532     cat >confcache <<\_ACEOF
6533     # This file is a shell script that caches the results of configure
6534     # tests run on this system so they can be shared between configure
6535     # scripts and configure runs, see configure's option --config-cache.
6536     # It is not useful on other systems. If it contains results you don't
6537     # want to keep, you may remove or edit it.
6538     #
6539     # config.status only pays attention to the cache file if you give it
6540     # the --recheck option to rerun configure.
6541     #
6542     # `ac_cv_env_foo' variables (set or unset) will be overridden when
6543     # loading this file, other *unset* `ac_cv_foo' will be assigned the
6544     # following values.
6545    
6546     _ACEOF
6547    
6548     # The following way of writing the cache mishandles newlines in values,
6549     # but we know of no workaround that is simple, portable, and efficient.
6550     # So, don't put newlines in cache variables' values.
6551     # Ultrix sh set writes to stderr and can't be redirected directly,
6552     # and sets the high bit in the cache file unless we assign to the vars.
6553     {
6554     (set) 2>&1 |
6555     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6556     *ac_space=\ *)
6557     # `set' does not quote correctly, so add quotes (double-quote
6558     # substitution turns \\\\ into \\, and sed turns \\ into \).
6559     sed -n \
6560     "s/'/'\\\\''/g;
6561     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6562     ;;
6563     *)
6564     # `set' quotes correctly as required by POSIX, so do not add quotes.
6565     sed -n \
6566     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6567     ;;
6568     esac;
6569     } |
6570     sed '
6571     t clear
6572     : clear
6573     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6574     t end
6575     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6576     : end' >>confcache
6577     if diff $cache_file confcache >/dev/null 2>&1; then :; else
6578     if test -w $cache_file; then
6579     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6580     cat confcache >$cache_file
6581     else
6582     echo "not updating unwritable cache $cache_file"
6583     fi
6584     fi
6585     rm -f confcache
6586    
6587     test "x$prefix" = xNONE && prefix=$ac_default_prefix
6588     # Let make expand exec_prefix.
6589     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6590    
6591     # VPATH may cause trouble with some makes, so we remove $(srcdir),
6592     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6593     # trailing colons and then remove the whole line if VPATH becomes empty
6594     # (actually we leave an empty line to preserve line numbers).
6595     if test "x$srcdir" = x.; then
6596     ac_vpsub='/^[ ]*VPATH[ ]*=/{
6597     s/:*\$(srcdir):*/:/;
6598     s/:*\${srcdir}:*/:/;
6599     s/:*@srcdir@:*/:/;
6600     s/^\([^=]*=[ ]*\):*/\1/;
6601     s/:*$//;
6602     s/^[^=]*=[ ]*$//;
6603     }'
6604     fi
6605    
6606     DEFS=-DHAVE_CONFIG_H
6607    
6608     ac_libobjs=
6609     ac_ltlibobjs=
6610     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6611     # 1. Remove the extension, and $U if already installed.
6612     ac_i=`echo "$ac_i" |
6613     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6614     # 2. Add them.
6615     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6616     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6617     done
6618     LIBOBJS=$ac_libobjs
6619    
6620     LTLIBOBJS=$ac_ltlibobjs
6621    
6622    
6623    
6624     : ${CONFIG_STATUS=./config.status}
6625     ac_clean_files_save=$ac_clean_files
6626     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6627     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6628     echo "$as_me: creating $CONFIG_STATUS" >&6;}
6629     cat >$CONFIG_STATUS <<_ACEOF
6630     #! $SHELL
6631     # Generated by $as_me.
6632     # Run this file to recreate the current configuration.
6633     # Compiler output produced by configure, useful for debugging
6634     # configure, is in config.log if it exists.
6635    
6636     debug=false
6637     ac_cs_recheck=false
6638     ac_cs_silent=false
6639     SHELL=\${CONFIG_SHELL-$SHELL}
6640     _ACEOF
6641    
6642     cat >>$CONFIG_STATUS <<\_ACEOF
6643     ## --------------------- ##
6644     ## M4sh Initialization. ##
6645     ## --------------------- ##
6646    
6647     # Be Bourne compatible
6648     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6649     emulate sh
6650     NULLCMD=:
6651     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6652     # is contrary to our usage. Disable this feature.
6653     alias -g '${1+"$@"}'='"$@"'
6654     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6655     set -o posix
6656     fi
6657    
6658     # Support unset when possible.
6659     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6660     as_unset=unset
6661     else
6662     as_unset=false
6663     fi
6664    
6665    
6666     # Work around bugs in pre-3.0 UWIN ksh.
6667     $as_unset ENV MAIL MAILPATH
6668     PS1='$ '
6669     PS2='> '
6670     PS4='+ '
6671    
6672     # NLS nuisances.
6673     for as_var in \
6674     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6675     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6676     LC_TELEPHONE LC_TIME
6677     do
6678     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6679     eval $as_var=C; export $as_var
6680     else
6681     $as_unset $as_var
6682     fi
6683     done
6684    
6685     # Required to use basename.
6686     if expr a : '\(a\)' >/dev/null 2>&1; then
6687     as_expr=expr
6688     else
6689     as_expr=false
6690     fi
6691    
6692     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6693     as_basename=basename
6694     else
6695     as_basename=false
6696     fi
6697    
6698    
6699     # Name of the executable.
6700     as_me=`$as_basename "$0" ||
6701     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6702     X"$0" : 'X\(//\)$' \| \
6703     X"$0" : 'X\(/\)$' \| \
6704     . : '\(.\)' 2>/dev/null ||
6705     echo X/"$0" |
6706     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6707     /^X\/\(\/\/\)$/{ s//\1/; q; }
6708     /^X\/\(\/\).*/{ s//\1/; q; }
6709     s/.*/./; q'`
6710    
6711    
6712     # PATH needs CR, and LINENO needs CR and PATH.
6713     # Avoid depending upon Character Ranges.
6714     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6715     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6716     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6717     as_cr_digits='0123456789'
6718     as_cr_alnum=$as_cr_Letters$as_cr_digits
6719    
6720     # The user is always right.
6721     if test "${PATH_SEPARATOR+set}" != set; then
6722     echo "#! /bin/sh" >conf$$.sh
6723     echo "exit 0" >>conf$$.sh
6724     chmod +x conf$$.sh
6725     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6726     PATH_SEPARATOR=';'
6727     else
6728     PATH_SEPARATOR=:
6729     fi
6730     rm -f conf$$.sh
6731     fi
6732    
6733    
6734     as_lineno_1=$LINENO
6735     as_lineno_2=$LINENO
6736     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6737     test "x$as_lineno_1" != "x$as_lineno_2" &&
6738     test "x$as_lineno_3" = "x$as_lineno_2" || {
6739     # Find who we are. Look in the path if we contain no path at all
6740     # relative or not.
6741     case $0 in
6742     *[\\/]* ) as_myself=$0 ;;
6743     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744     for as_dir in $PATH
6745     do
6746     IFS=$as_save_IFS
6747     test -z "$as_dir" && as_dir=.
6748     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6749     done
6750    
6751     ;;
6752     esac
6753     # We did not find ourselves, most probably we were run as `sh COMMAND'
6754     # in which case we are not to be found in the path.
6755     if test "x$as_myself" = x; then
6756     as_myself=$0
6757     fi
6758     if test ! -f "$as_myself"; then
6759     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6760     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6761     { (exit 1); exit 1; }; }
6762     fi
6763     case $CONFIG_SHELL in
6764     '')
6765     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6767     do
6768     IFS=$as_save_IFS
6769     test -z "$as_dir" && as_dir=.
6770     for as_base in sh bash ksh sh5; do
6771     case $as_dir in
6772     /*)
6773     if ("$as_dir/$as_base" -c '
6774     as_lineno_1=$LINENO
6775     as_lineno_2=$LINENO
6776     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6777     test "x$as_lineno_1" != "x$as_lineno_2" &&
6778     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6779     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6780     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6781     CONFIG_SHELL=$as_dir/$as_base
6782     export CONFIG_SHELL
6783     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6784     fi;;
6785     esac
6786     done
6787     done
6788     ;;
6789     esac
6790    
6791     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6792     # uniformly replaced by the line number. The first 'sed' inserts a
6793     # line-number line before each line; the second 'sed' does the real
6794     # work. The second script uses 'N' to pair each line-number line
6795     # with the numbered line, and appends trailing '-' during
6796     # substitution so that $LINENO is not a special case at line end.
6797     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6798     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6799     sed '=' <$as_myself |
6800     sed '
6801     N
6802     s,$,-,
6803     : loop
6804     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6805     t loop
6806     s,-$,,
6807     s,^['$as_cr_digits']*\n,,
6808     ' >$as_me.lineno &&
6809     chmod +x $as_me.lineno ||
6810     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6811     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6812     { (exit 1); exit 1; }; }
6813    
6814     # Don't try to exec as it changes $[0], causing all sort of problems
6815     # (the dirname of $[0] is not the place where we might find the
6816     # original and so on. Autoconf is especially sensible to this).
6817     . ./$as_me.lineno
6818     # Exit status is that of the last command.
6819     exit
6820     }
6821    
6822    
6823     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6824     *c*,-n*) ECHO_N= ECHO_C='
6825     ' ECHO_T=' ' ;;
6826     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6827     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6828     esac
6829    
6830     if expr a : '\(a\)' >/dev/null 2>&1; then
6831     as_expr=expr
6832     else
6833     as_expr=false
6834     fi
6835    
6836     rm -f conf$$ conf$$.exe conf$$.file
6837     echo >conf$$.file
6838     if ln -s conf$$.file conf$$ 2>/dev/null; then
6839     # We could just check for DJGPP; but this test a) works b) is more generic
6840     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6841     if test -f conf$$.exe; then
6842     # Don't use ln at all; we don't have any links
6843     as_ln_s='cp -p'
6844     else
6845     as_ln_s='ln -s'
6846     fi
6847     elif ln conf$$.file conf$$ 2>/dev/null; then
6848     as_ln_s=ln
6849     else
6850     as_ln_s='cp -p'
6851     fi
6852     rm -f conf$$ conf$$.exe conf$$.file
6853    
6854     if mkdir -p . 2>/dev/null; then
6855     as_mkdir_p=:
6856     else
6857     as_mkdir_p=false
6858     fi
6859    
6860     as_executable_p="test -f"
6861    
6862     # Sed expression to map a string onto a valid CPP name.
6863     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6864    
6865     # Sed expression to map a string onto a valid variable name.
6866     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6867    
6868    
6869     # IFS
6870     # We need space, tab and new line, in precisely that order.
6871     as_nl='
6872     '
6873     IFS=" $as_nl"
6874    
6875     # CDPATH.
6876     $as_unset CDPATH
6877    
6878     exec 6>&1
6879    
6880     # Open the log real soon, to keep \$[0] and so on meaningful, and to
6881     # report actual input values of CONFIG_FILES etc. instead of their
6882     # values after options handling. Logging --version etc. is OK.
6883     exec 5>>config.log
6884     {
6885     echo
6886     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6887     ## Running $as_me. ##
6888     _ASBOX
6889     } >&5
6890     cat >&5 <<_CSEOF
6891    
6892 gcodispo 1.5 This file was extended by boss $as_me `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`, which was
6893 gcodispo 1.1 generated by GNU Autoconf 2.57. Invocation command line was
6894    
6895     CONFIG_FILES = $CONFIG_FILES
6896     CONFIG_HEADERS = $CONFIG_HEADERS
6897     CONFIG_LINKS = $CONFIG_LINKS
6898     CONFIG_COMMANDS = $CONFIG_COMMANDS
6899     $ $0 $@
6900    
6901     _CSEOF
6902     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6903     echo >&5
6904     _ACEOF
6905    
6906     # Files that config.status was made for.
6907     if test -n "$ac_config_files"; then
6908     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6909     fi
6910    
6911     if test -n "$ac_config_headers"; then
6912     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6913     fi
6914    
6915     if test -n "$ac_config_links"; then
6916     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6917     fi
6918    
6919     if test -n "$ac_config_commands"; then
6920     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6921     fi
6922    
6923     cat >>$CONFIG_STATUS <<\_ACEOF
6924    
6925     ac_cs_usage="\
6926     \`$as_me' instantiates files from templates according to the
6927     current configuration.
6928    
6929     Usage: $0 [OPTIONS] [FILE]...
6930    
6931     -h, --help print this help, then exit
6932     -V, --version print version number, then exit
6933     -q, --quiet do not print progress messages
6934     -d, --debug don't remove temporary files
6935     --recheck update $as_me by reconfiguring in the same conditions
6936     --file=FILE[:TEMPLATE]
6937     instantiate the configuration file FILE
6938     --header=FILE[:TEMPLATE]
6939     instantiate the configuration header FILE
6940    
6941     Configuration files:
6942     $config_files
6943    
6944     Configuration headers:
6945     $config_headers
6946    
6947     Configuration commands:
6948     $config_commands
6949    
6950     Report bugs to <bug-autoconf@gnu.org>."
6951     _ACEOF
6952    
6953     cat >>$CONFIG_STATUS <<_ACEOF
6954     ac_cs_version="\\
6955 gcodispo 1.5 boss config.status `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`
6956 gcodispo 1.1 configured by $0, generated by GNU Autoconf 2.57,
6957     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6958    
6959     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6960     Free Software Foundation, Inc.
6961     This config.status script is free software; the Free Software Foundation
6962     gives unlimited permission to copy, distribute and modify it."
6963     srcdir=$srcdir
6964     _ACEOF
6965    
6966     cat >>$CONFIG_STATUS <<\_ACEOF
6967     # If no file are specified by the user, then we need to provide default
6968     # value. By we need to know if files were specified by the user.
6969     ac_need_defaults=:
6970     while test $# != 0
6971     do
6972     case $1 in
6973     --*=*)
6974     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6975     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6976     ac_shift=:
6977     ;;
6978     -*)
6979     ac_option=$1
6980     ac_optarg=$2
6981     ac_shift=shift
6982     ;;
6983     *) # This is not an option, so the user has probably given explicit
6984     # arguments.
6985     ac_option=$1
6986     ac_need_defaults=false;;
6987     esac
6988    
6989     case $ac_option in
6990     # Handling of the options.
6991     _ACEOF
6992     cat >>$CONFIG_STATUS <<\_ACEOF
6993     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6994     ac_cs_recheck=: ;;
6995     --version | --vers* | -V )
6996     echo "$ac_cs_version"; exit 0 ;;
6997     --he | --h)
6998     # Conflict between --help and --header
6999     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7000     Try \`$0 --help' for more information." >&5
7001     echo "$as_me: error: ambiguous option: $1
7002     Try \`$0 --help' for more information." >&2;}
7003     { (exit 1); exit 1; }; };;
7004     --help | --hel | -h )
7005     echo "$ac_cs_usage"; exit 0 ;;
7006     --debug | --d* | -d )
7007     debug=: ;;
7008     --file | --fil | --fi | --f )
7009     $ac_shift
7010     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7011     ac_need_defaults=false;;
7012     --header | --heade | --head | --hea )
7013     $ac_shift
7014     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7015     ac_need_defaults=false;;
7016     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7017     | -silent | --silent | --silen | --sile | --sil | --si | --s)
7018     ac_cs_silent=: ;;
7019    
7020     # This is an error.
7021     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7022     Try \`$0 --help' for more information." >&5
7023     echo "$as_me: error: unrecognized option: $1
7024     Try \`$0 --help' for more information." >&2;}
7025     { (exit 1); exit 1; }; } ;;
7026    
7027     *) ac_config_targets="$ac_config_targets $1" ;;
7028    
7029     esac
7030     shift
7031     done
7032    
7033     ac_configure_extra_args=
7034    
7035     if $ac_cs_silent; then
7036     exec 6>/dev/null
7037     ac_configure_extra_args="$ac_configure_extra_args --silent"
7038     fi
7039    
7040     _ACEOF
7041     cat >>$CONFIG_STATUS <<_ACEOF
7042     if \$ac_cs_recheck; then
7043     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7044     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7045     fi
7046    
7047     _ACEOF
7048    
7049    
7050    
7051    
7052    
7053     cat >>$CONFIG_STATUS <<\_ACEOF
7054     for ac_config_target in $ac_config_targets
7055     do
7056     case "$ac_config_target" in
7057     # Handling of arguments.
7058     "BossClient/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossClient/Makefile" ;;
7059     "BossClient/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossClient/src/Makefile" ;;
7060     "BossCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossCore/Makefile" ;;
7061     "BossCore/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossCore/src/Makefile" ;;
7062     "BossPython/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossPython/Makefile" ;;
7063     "BossRTMon/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossRTMon/Makefile" ;;
7064     "BossRTMon/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossRTMon/src/Makefile" ;;
7065     "BossSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossSched/Makefile" ;;
7066     "BossSched/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossSched/src/Makefile" ;;
7067     "BossWrapper/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossWrapper/Makefile" ;;
7068     "BossWrapper/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossWrapper/src/Makefile" ;;
7069     "ClassAdLite/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/Makefile" ;;
7070     "ClassAdLite/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/src/Makefile" ;;
7071     "ClassAdLite/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/test/Makefile" ;;
7072     "Examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
7073     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7074     "MonaLisa/Makefile" ) CONFIG_FILES="$CONFIG_FILES MonaLisa/Makefile" ;;
7075     "MonaLisa/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES MonaLisa/src/Makefile" ;;
7076     "MonaLisa/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES MonaLisa/test/Makefile" ;;
7077     "OSUtils/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/Makefile" ;;
7078     "OSUtils/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/src/Makefile" ;;
7079     "OSUtils/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/test/Makefile" ;;
7080     "SirDB/Makefile" ) CONFIG_FILES="$CONFIG_FILES SirDB/Makefile" ;;
7081     "SirDB/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES SirDB/src/Makefile" ;;
7082     "install.sh" ) CONFIG_FILES="$CONFIG_FILES install.sh" ;;
7083     "install" ) CONFIG_COMMANDS="$CONFIG_COMMANDS install" ;;
7084     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7085     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7086     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7087     { (exit 1); exit 1; }; };;
7088     esac
7089     done
7090    
7091     # If the user did not use the arguments to specify the items to instantiate,
7092     # then the envvar interface is used. Set only those that are not.
7093     # We use the long form for the default assignment because of an extremely
7094     # bizarre bug on SunOS 4.1.3.
7095     if $ac_need_defaults; then
7096     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7097     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7098     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7099     fi
7100    
7101     # Have a temporary directory for convenience. Make it in the build tree
7102     # simply because there is no reason to put it here, and in addition,
7103     # creating and moving files from /tmp can sometimes cause problems.
7104     # Create a temporary directory, and hook for its removal unless debugging.
7105     $debug ||
7106     {
7107     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7108     trap '{ (exit 1); exit 1; }' 1 2 13 15
7109     }
7110    
7111     # Create a (secure) tmp directory for tmp files.
7112    
7113     {
7114     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7115     test -n "$tmp" && test -d "$tmp"
7116     } ||
7117     {
7118     tmp=./confstat$$-$RANDOM
7119     (umask 077 && mkdir $tmp)
7120     } ||
7121     {
7122     echo "$me: cannot create a temporary directory in ." >&2
7123     { (exit 1); exit 1; }
7124     }
7125    
7126     _ACEOF
7127    
7128     cat >>$CONFIG_STATUS <<_ACEOF
7129    
7130     #
7131     # CONFIG_FILES section.
7132     #
7133    
7134     # No need to generate the scripts if there are no CONFIG_FILES.
7135     # This happens for instance when ./config.status config.h
7136     if test -n "\$CONFIG_FILES"; then
7137     # Protect against being on the right side of a sed subst in config.status.
7138     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7139     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7140     s,@SHELL@,$SHELL,;t t
7141     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7142     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7143     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7144     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7145     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7146     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7147     s,@exec_prefix@,$exec_prefix,;t t
7148     s,@prefix@,$prefix,;t t
7149     s,@program_transform_name@,$program_transform_name,;t t
7150     s,@bindir@,$bindir,;t t
7151     s,@sbindir@,$sbindir,;t t
7152     s,@libexecdir@,$libexecdir,;t t
7153     s,@datadir@,$datadir,;t t
7154     s,@sysconfdir@,$sysconfdir,;t t
7155     s,@sharedstatedir@,$sharedstatedir,;t t
7156     s,@localstatedir@,$localstatedir,;t t
7157     s,@libdir@,$libdir,;t t
7158     s,@includedir@,$includedir,;t t
7159     s,@oldincludedir@,$oldincludedir,;t t
7160     s,@infodir@,$infodir,;t t
7161     s,@mandir@,$mandir,;t t
7162     s,@build_alias@,$build_alias,;t t
7163     s,@host_alias@,$host_alias,;t t
7164     s,@target_alias@,$target_alias,;t t
7165     s,@DEFS@,$DEFS,;t t
7166     s,@ECHO_C@,$ECHO_C,;t t
7167     s,@ECHO_N@,$ECHO_N,;t t
7168     s,@ECHO_T@,$ECHO_T,;t t
7169     s,@LIBS@,$LIBS,;t t
7170     s,@VERSION@,$VERSION,;t t
7171 gcodispo 1.5 s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
7172 gcodispo 1.1 s,@CXX@,$CXX,;t t
7173     s,@CXXFLAGS@,$CXXFLAGS,;t t
7174     s,@LDFLAGS@,$LDFLAGS,;t t
7175     s,@CPPFLAGS@,$CPPFLAGS,;t t
7176     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7177     s,@EXEEXT@,$EXEEXT,;t t
7178     s,@OBJEXT@,$OBJEXT,;t t
7179     s,@CC@,$CC,;t t
7180     s,@CFLAGS@,$CFLAGS,;t t
7181     s,@ac_ct_CC@,$ac_ct_CC,;t t
7182     s,@CPP@,$CPP,;t t
7183 gcodispo 1.4 s,@ARCH@,$ARCH,;t t
7184     s,@RELEASE@,$RELEASE,;t t
7185     s,@GCC_VERSION@,$GCC_VERSION,;t t
7186     s,@SYSTEM@,$SYSTEM,;t t
7187 gcodispo 1.7 s,@mysql_dir@,$mysql_dir,;t t
7188     s,@MAKE_MYSQL@,$MAKE_MYSQL,;t t
7189     s,@MAKE_MYSQL_CLEAN@,$MAKE_MYSQL_CLEAN,;t t
7190     s,@ssl_lib@,$ssl_lib,;t t
7191 gcodispo 1.5 s,@sqlite_dir@,$sqlite_dir,;t t
7192 gcodispo 1.1 s,@MAKE_SQLITE@,$MAKE_SQLITE,;t t
7193     s,@MAKE_SQLITE_CLEAN@,$MAKE_SQLITE_CLEAN,;t t
7194     s,@sqlite_lib@,$sqlite_lib,;t t
7195     s,@EGREP@,$EGREP,;t t
7196     s,@LIBOBJS@,$LIBOBJS,;t t
7197     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7198     CEOF
7199    
7200     _ACEOF
7201    
7202     cat >>$CONFIG_STATUS <<\_ACEOF
7203     # Split the substitutions into bite-sized pieces for seds with
7204     # small command number limits, like on Digital OSF/1 and HP-UX.
7205     ac_max_sed_lines=48
7206     ac_sed_frag=1 # Number of current file.
7207     ac_beg=1 # First line for current file.
7208     ac_end=$ac_max_sed_lines # Line after last line for current file.
7209     ac_more_lines=:
7210     ac_sed_cmds=
7211     while $ac_more_lines; do
7212     if test $ac_beg -gt 1; then
7213     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7214     else
7215     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7216     fi
7217     if test ! -s $tmp/subs.frag; then
7218     ac_more_lines=false
7219     else
7220     # The purpose of the label and of the branching condition is to
7221     # speed up the sed processing (if there are no `@' at all, there
7222     # is no need to browse any of the substitutions).
7223     # These are the two extra sed commands mentioned above.
7224     (echo ':t
7225     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7226     if test -z "$ac_sed_cmds"; then
7227     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7228     else
7229     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7230     fi
7231     ac_sed_frag=`expr $ac_sed_frag + 1`
7232     ac_beg=$ac_end
7233     ac_end=`expr $ac_end + $ac_max_sed_lines`
7234     fi
7235     done
7236     if test -z "$ac_sed_cmds"; then
7237     ac_sed_cmds=cat
7238     fi
7239     fi # test -n "$CONFIG_FILES"
7240    
7241     _ACEOF
7242     cat >>$CONFIG_STATUS <<\_ACEOF
7243     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7244     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7245     case $ac_file in
7246     - | *:- | *:-:* ) # input from stdin
7247     cat >$tmp/stdin
7248     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7249     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7250     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7251     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7252     * ) ac_file_in=$ac_file.in ;;
7253     esac
7254    
7255     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7256     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7257     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7258     X"$ac_file" : 'X\(//\)[^/]' \| \
7259     X"$ac_file" : 'X\(//\)$' \| \
7260     X"$ac_file" : 'X\(/\)' \| \
7261     . : '\(.\)' 2>/dev/null ||
7262     echo X"$ac_file" |
7263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7264     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7265     /^X\(\/\/\)$/{ s//\1/; q; }
7266     /^X\(\/\).*/{ s//\1/; q; }
7267     s/.*/./; q'`
7268     { if $as_mkdir_p; then
7269     mkdir -p "$ac_dir"
7270     else
7271     as_dir="$ac_dir"
7272     as_dirs=
7273     while test ! -d "$as_dir"; do
7274     as_dirs="$as_dir $as_dirs"
7275     as_dir=`(dirname "$as_dir") 2>/dev/null ||
7276     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7277     X"$as_dir" : 'X\(//\)[^/]' \| \
7278     X"$as_dir" : 'X\(//\)$' \| \
7279     X"$as_dir" : 'X\(/\)' \| \
7280     . : '\(.\)' 2>/dev/null ||
7281     echo X"$as_dir" |
7282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7283     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7284     /^X\(\/\/\)$/{ s//\1/; q; }
7285     /^X\(\/\).*/{ s//\1/; q; }
7286     s/.*/./; q'`
7287     done
7288     test ! -n "$as_dirs" || mkdir $as_dirs
7289     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7290     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7291     { (exit 1); exit 1; }; }; }
7292    
7293     ac_builddir=.
7294    
7295     if test "$ac_dir" != .; then
7296     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7297     # A "../" for each directory in $ac_dir_suffix.
7298     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7299     else
7300     ac_dir_suffix= ac_top_builddir=
7301     fi
7302    
7303     case $srcdir in
7304     .) # No --srcdir option. We are building in place.
7305     ac_srcdir=.
7306     if test -z "$ac_top_builddir"; then
7307     ac_top_srcdir=.
7308     else
7309     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7310     fi ;;
7311     [\\/]* | ?:[\\/]* ) # Absolute path.
7312     ac_srcdir=$srcdir$ac_dir_suffix;
7313     ac_top_srcdir=$srcdir ;;
7314     *) # Relative path.
7315     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7316     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7317     esac
7318     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7319     # absolute.
7320     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7321     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7322     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7323     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7324    
7325    
7326    
7327     if test x"$ac_file" != x-; then
7328     { echo "$as_me:$LINENO: creating $ac_file" >&5
7329     echo "$as_me: creating $ac_file" >&6;}
7330     rm -f "$ac_file"
7331     fi
7332     # Let's still pretend it is `configure' which instantiates (i.e., don't
7333     # use $as_me), people would be surprised to read:
7334     # /* config.h. Generated by config.status. */
7335     if test x"$ac_file" = x-; then
7336     configure_input=
7337     else
7338     configure_input="$ac_file. "
7339     fi
7340     configure_input=$configure_input"Generated from `echo $ac_file_in |
7341     sed 's,.*/,,'` by configure."
7342    
7343     # First look for the input files in the build tree, otherwise in the
7344     # src tree.
7345     ac_file_inputs=`IFS=:
7346     for f in $ac_file_in; do
7347     case $f in
7348     -) echo $tmp/stdin ;;
7349     [\\/$]*)
7350     # Absolute (can't be DOS-style, as IFS=:)
7351     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7352     echo "$as_me: error: cannot find input file: $f" >&2;}
7353     { (exit 1); exit 1; }; }
7354     echo $f;;
7355     *) # Relative
7356     if test -f "$f"; then
7357     # Build tree
7358     echo $f
7359     elif test -f "$srcdir/$f"; then
7360     # Source tree
7361     echo $srcdir/$f
7362     else
7363     # /dev/null tree
7364     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7365     echo "$as_me: error: cannot find input file: $f" >&2;}
7366     { (exit 1); exit 1; }; }
7367     fi;;
7368     esac
7369     done` || { (exit 1); exit 1; }
7370     _ACEOF
7371     cat >>$CONFIG_STATUS <<_ACEOF
7372     sed "$ac_vpsub
7373     $extrasub
7374     _ACEOF
7375     cat >>$CONFIG_STATUS <<\_ACEOF
7376     :t
7377     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7378     s,@configure_input@,$configure_input,;t t
7379     s,@srcdir@,$ac_srcdir,;t t
7380     s,@abs_srcdir@,$ac_abs_srcdir,;t t
7381     s,@top_srcdir@,$ac_top_srcdir,;t t
7382     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7383     s,@builddir@,$ac_builddir,;t t
7384     s,@abs_builddir@,$ac_abs_builddir,;t t
7385     s,@top_builddir@,$ac_top_builddir,;t t
7386     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7387     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7388     rm -f $tmp/stdin
7389     if test x"$ac_file" != x-; then
7390     mv $tmp/out $ac_file
7391     else
7392     cat $tmp/out
7393     rm -f $tmp/out
7394     fi
7395    
7396     done
7397     _ACEOF
7398     cat >>$CONFIG_STATUS <<\_ACEOF
7399    
7400     #
7401     # CONFIG_HEADER section.
7402     #
7403    
7404     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7405     # NAME is the cpp macro being defined and VALUE is the value it is being given.
7406     #
7407     # ac_d sets the value in "#define NAME VALUE" lines.
7408     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7409     ac_dB='[ ].*$,\1#\2'
7410     ac_dC=' '
7411     ac_dD=',;t'
7412     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7413     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7414     ac_uB='$,\1#\2define\3'
7415     ac_uC=' '
7416     ac_uD=',;t'
7417    
7418     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7419     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7420     case $ac_file in
7421     - | *:- | *:-:* ) # input from stdin
7422     cat >$tmp/stdin
7423     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7424     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7425     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7426     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7427     * ) ac_file_in=$ac_file.in ;;
7428     esac
7429    
7430     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7431     echo "$as_me: creating $ac_file" >&6;}
7432    
7433     # First look for the input files in the build tree, otherwise in the
7434     # src tree.
7435     ac_file_inputs=`IFS=:
7436     for f in $ac_file_in; do
7437     case $f in
7438     -) echo $tmp/stdin ;;
7439     [\\/$]*)
7440     # Absolute (can't be DOS-style, as IFS=:)
7441     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7442     echo "$as_me: error: cannot find input file: $f" >&2;}
7443     { (exit 1); exit 1; }; }
7444     echo $f;;
7445     *) # Relative
7446     if test -f "$f"; then
7447     # Build tree
7448     echo $f
7449     elif test -f "$srcdir/$f"; then
7450     # Source tree
7451     echo $srcdir/$f
7452     else
7453     # /dev/null tree
7454     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7455     echo "$as_me: error: cannot find input file: $f" >&2;}
7456     { (exit 1); exit 1; }; }
7457     fi;;
7458     esac
7459     done` || { (exit 1); exit 1; }
7460     # Remove the trailing spaces.
7461     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7462    
7463     _ACEOF
7464    
7465     # Transform confdefs.h into two sed scripts, `conftest.defines' and
7466     # `conftest.undefs', that substitutes the proper values into
7467     # config.h.in to produce config.h. The first handles `#define'
7468     # templates, and the second `#undef' templates.
7469     # And first: Protect against being on the right side of a sed subst in
7470     # config.status. Protect against being in an unquoted here document
7471     # in config.status.
7472     rm -f conftest.defines conftest.undefs
7473     # Using a here document instead of a string reduces the quoting nightmare.
7474     # Putting comments in sed scripts is not portable.
7475     #
7476     # `end' is used to avoid that the second main sed command (meant for
7477     # 0-ary CPP macros) applies to n-ary macro definitions.
7478     # See the Autoconf documentation for `clear'.
7479     cat >confdef2sed.sed <<\_ACEOF
7480     s/[\\&,]/\\&/g
7481     s,[\\$`],\\&,g
7482     t clear
7483     : clear
7484     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7485     t end
7486     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7487     : end
7488     _ACEOF
7489     # If some macros were called several times there might be several times
7490     # the same #defines, which is useless. Nevertheless, we may not want to
7491     # sort them, since we want the *last* AC-DEFINE to be honored.
7492     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7493     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7494     rm -f confdef2sed.sed
7495    
7496     # This sed command replaces #undef with comments. This is necessary, for
7497     # example, in the case of _POSIX_SOURCE, which is predefined and required
7498     # on some systems where configure will not decide to define it.
7499     cat >>conftest.undefs <<\_ACEOF
7500     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7501     _ACEOF
7502    
7503     # Break up conftest.defines because some shells have a limit on the size
7504     # of here documents, and old seds have small limits too (100 cmds).
7505     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7506     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7507     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7508     echo ' :' >>$CONFIG_STATUS
7509     rm -f conftest.tail
7510     while grep . conftest.defines >/dev/null
7511     do
7512     # Write a limited-size here document to $tmp/defines.sed.
7513     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7514     # Speed up: don't consider the non `#define' lines.
7515     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7516     # Work around the forget-to-reset-the-flag bug.
7517     echo 't clr' >>$CONFIG_STATUS
7518     echo ': clr' >>$CONFIG_STATUS
7519     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7520     echo 'CEOF
7521     sed -f $tmp/defines.sed $tmp/in >$tmp/out
7522     rm -f $tmp/in
7523     mv $tmp/out $tmp/in
7524     ' >>$CONFIG_STATUS
7525     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7526     rm -f conftest.defines
7527     mv conftest.tail conftest.defines
7528     done
7529     rm -f conftest.defines
7530     echo ' fi # grep' >>$CONFIG_STATUS
7531     echo >>$CONFIG_STATUS
7532    
7533     # Break up conftest.undefs because some shells have a limit on the size
7534     # of here documents, and old seds have small limits too (100 cmds).
7535     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7536     rm -f conftest.tail
7537     while grep . conftest.undefs >/dev/null
7538     do
7539     # Write a limited-size here document to $tmp/undefs.sed.
7540     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7541     # Speed up: don't consider the non `#undef'
7542     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7543     # Work around the forget-to-reset-the-flag bug.
7544     echo 't clr' >>$CONFIG_STATUS
7545     echo ': clr' >>$CONFIG_STATUS
7546     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7547     echo 'CEOF
7548     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7549     rm -f $tmp/in
7550     mv $tmp/out $tmp/in
7551     ' >>$CONFIG_STATUS
7552     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7553     rm -f conftest.undefs
7554     mv conftest.tail conftest.undefs
7555     done
7556     rm -f conftest.undefs
7557    
7558     cat >>$CONFIG_STATUS <<\_ACEOF
7559     # Let's still pretend it is `configure' which instantiates (i.e., don't
7560     # use $as_me), people would be surprised to read:
7561     # /* config.h. Generated by config.status. */
7562     if test x"$ac_file" = x-; then
7563     echo "/* Generated by configure. */" >$tmp/config.h
7564     else
7565     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7566     fi
7567     cat $tmp/in >>$tmp/config.h
7568     rm -f $tmp/in
7569     if test x"$ac_file" != x-; then
7570     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7571     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7572     echo "$as_me: $ac_file is unchanged" >&6;}
7573     else
7574     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7575     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7576     X"$ac_file" : 'X\(//\)[^/]' \| \
7577     X"$ac_file" : 'X\(//\)$' \| \
7578     X"$ac_file" : 'X\(/\)' \| \
7579     . : '\(.\)' 2>/dev/null ||
7580     echo X"$ac_file" |
7581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7582     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7583     /^X\(\/\/\)$/{ s//\1/; q; }
7584     /^X\(\/\).*/{ s//\1/; q; }
7585     s/.*/./; q'`
7586     { if $as_mkdir_p; then
7587     mkdir -p "$ac_dir"
7588     else
7589     as_dir="$ac_dir"
7590     as_dirs=
7591     while test ! -d "$as_dir"; do
7592     as_dirs="$as_dir $as_dirs"
7593     as_dir=`(dirname "$as_dir") 2>/dev/null ||
7594     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7595     X"$as_dir" : 'X\(//\)[^/]' \| \
7596     X"$as_dir" : 'X\(//\)$' \| \
7597     X"$as_dir" : 'X\(/\)' \| \
7598     . : '\(.\)' 2>/dev/null ||
7599     echo X"$as_dir" |
7600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7601     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7602     /^X\(\/\/\)$/{ s//\1/; q; }
7603     /^X\(\/\).*/{ s//\1/; q; }
7604     s/.*/./; q'`
7605     done
7606     test ! -n "$as_dirs" || mkdir $as_dirs
7607     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7608     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7609     { (exit 1); exit 1; }; }; }
7610    
7611     rm -f $ac_file
7612     mv $tmp/config.h $ac_file
7613     fi
7614     else
7615     cat $tmp/config.h
7616     rm -f $tmp/config.h
7617     fi
7618     done
7619     _ACEOF
7620     cat >>$CONFIG_STATUS <<\_ACEOF
7621    
7622     #
7623     # CONFIG_COMMANDS section.
7624     #
7625     for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7626     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7627     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7628     ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7629     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7630     X"$ac_dest" : 'X\(//\)[^/]' \| \
7631     X"$ac_dest" : 'X\(//\)$' \| \
7632     X"$ac_dest" : 'X\(/\)' \| \
7633     . : '\(.\)' 2>/dev/null ||
7634     echo X"$ac_dest" |
7635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7636     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7637     /^X\(\/\/\)$/{ s//\1/; q; }
7638     /^X\(\/\).*/{ s//\1/; q; }
7639     s/.*/./; q'`
7640     ac_builddir=.
7641    
7642     if test "$ac_dir" != .; then
7643     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7644     # A "../" for each directory in $ac_dir_suffix.
7645     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7646     else
7647     ac_dir_suffix= ac_top_builddir=
7648     fi
7649    
7650     case $srcdir in
7651     .) # No --srcdir option. We are building in place.
7652     ac_srcdir=.
7653     if test -z "$ac_top_builddir"; then
7654     ac_top_srcdir=.
7655     else
7656     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7657     fi ;;
7658     [\\/]* | ?:[\\/]* ) # Absolute path.
7659     ac_srcdir=$srcdir$ac_dir_suffix;
7660     ac_top_srcdir=$srcdir ;;
7661     *) # Relative path.
7662     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7663     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7664     esac
7665     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7666     # absolute.
7667     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7668     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7669     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7670     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7671    
7672    
7673     { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7674     echo "$as_me: executing $ac_dest commands" >&6;}
7675     case $ac_dest in
7676     install ) chmod +x install.sh; ./install.sh ;;
7677     esac
7678     done
7679     _ACEOF
7680    
7681     cat >>$CONFIG_STATUS <<\_ACEOF
7682    
7683     { (exit 0); exit 0; }
7684     _ACEOF
7685     chmod +x $CONFIG_STATUS
7686     ac_clean_files=$ac_clean_files_save
7687    
7688    
7689     # configure is writing to config.log, and then calls config.status.
7690     # config.status does its own redirection, appending to config.log.
7691     # Unfortunately, on DOS this fails, as config.log is still kept open
7692     # by configure, so config.status won't be able to write to it; its
7693     # output is simply discarded. So we exec the FD to /dev/null,
7694     # effectively closing config.log, so it can be properly (re)opened and
7695     # appended to by config.status. When coming back to configure, we
7696     # need to make the FD available again.
7697     if test "$no_create" != yes; then
7698     ac_cs_success=:
7699     ac_config_status_args=
7700     test "$silent" = yes &&
7701     ac_config_status_args="$ac_config_status_args --quiet"
7702     exec 5>/dev/null
7703     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7704     exec 5>>config.log
7705     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7706     # would make configure fail if this is the last instruction.
7707     $ac_cs_success || { (exit 1); exit 1; }
7708     fi
7709