ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.2
Committed: Thu Jan 12 17:46:47 2006 UTC (19 years, 3 months ago) by gcodispo
Branch: MAIN
Changes since 1.1: +4 -4 lines
Log Message:
*** empty log message ***

File Contents

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