ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.21
Committed: Tue Apr 25 21:56:20 2006 UTC (19 years ago) by elmer
Branch: MAIN
Changes since 1.20: +321 -494 lines
Log Message:
Add --enable-dbg-build option.
Change Makefile.in to use substition values @CXX@ and @CXXFLAGS@ (still many
things one could clean up there, though)

File Contents

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