ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.24
Committed: Fri Apr 28 17:45:21 2006 UTC (19 years ago) by gcodispo
Branch: MAIN
CVS Tags: BOSS_4_0_4, BOSS_4_0_3
Changes since 1.23: +19 -6 lines
Log Message:
compilation options are now globally set at configure
added --enable-warn-build to enable -Wall compilation option
fixed bossenv.csh

File Contents

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