ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.13
Committed: Thu Mar 23 11:02:17 2006 UTC (19 years, 1 month ago) by gcodispo
Branch: MAIN
Changes since 1.12: +4 -1 lines
Log Message:
Fixed OS release detection

File Contents

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