]> git.sur5r.net Git - bacula/bacula/blob - gui/configure
Apply bacula-web 1.2 updates
[bacula/bacula] / gui / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="autoconf/configure.in"
275 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 BUILD_DIR TRUEPRG FALSEPRG AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MV RM CP ECHO AR build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup bacula hostname DISTNAME DISTVER LIBOBJS LTLIBOBJS'
276 ac_subst_files='MCOMMON'
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319   # If the previous option needs an argument, assign it.
320   if test -n "$ac_prev"; then
321     eval "$ac_prev=\$ac_option"
322     ac_prev=
323     continue
324   fi
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
341
342   -cache-file | --cache-file | --cache-fil | --cache-fi \
343   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344     ac_prev=cache_file ;;
345   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363    { (exit 1); exit 1; }; }
364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365     eval "enable_$ac_feature=no" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372    { (exit 1); exit 1; }; }
373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374     case $ac_option in
375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
379
380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382   | --exec | --exe | --ex)
383     ac_prev=exec_prefix ;;
384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386   | --exec=* | --exe=* | --ex=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
393   -help | --help | --hel | --he | -h)
394     ac_init_help=long ;;
395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396     ac_init_help=recursive ;;
397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398     ac_init_help=short ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
404
405   -includedir | --includedir | --includedi | --included | --include \
406   | --includ | --inclu | --incl | --inc)
407     ac_prev=includedir ;;
408   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409   | --includ=* | --inclu=* | --incl=* | --inc=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
421
422   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423   | --libexe | --libex | --libe)
424     ac_prev=libexecdir ;;
425   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426   | --libexe=* | --libex=* | --libe=*)
427     libexecdir=$ac_optarg ;;
428
429   -localstatedir | --localstatedir | --localstatedi | --localstated \
430   | --localstate | --localstat | --localsta | --localst \
431   | --locals | --local | --loca | --loc | --lo)
432     ac_prev=localstatedir ;;
433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
442
443   -nfp | --nfp | --nf)
444     # Obsolete; use --without-fp.
445     with_fp=no ;;
446
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c | -n)
449     no_create=yes ;;
450
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453     no_recursion=yes ;;
454
455   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457   | --oldin | --oldi | --old | --ol | --o)
458     ac_prev=oldincludedir ;;
459   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
468
469   -program-prefix | --program-prefix | --program-prefi | --program-pref \
470   | --program-pre | --program-pr | --program-p)
471     ac_prev=program_prefix ;;
472   -program-prefix=* | --program-prefix=* | --program-prefi=* \
473   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474     program_prefix=$ac_optarg ;;
475
476   -program-suffix | --program-suffix | --program-suffi | --program-suff \
477   | --program-suf | --program-su | --program-s)
478     ac_prev=program_suffix ;;
479   -program-suffix=* | --program-suffix=* | --program-suffi=* \
480   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481     program_suffix=$ac_optarg ;;
482
483   -program-transform-name | --program-transform-name \
484   | --program-transform-nam | --program-transform-na \
485   | --program-transform-n | --program-transform- \
486   | --program-transform | --program-transfor \
487   | --program-transfo | --program-transf \
488   | --program-trans | --program-tran \
489   | --progr-tra | --program-tr | --program-t)
490     ac_prev=program_transform_name ;;
491   -program-transform-name=* | --program-transform-name=* \
492   | --program-transform-nam=* | --program-transform-na=* \
493   | --program-transform-n=* | --program-transform-=* \
494   | --program-transform=* | --program-transfor=* \
495   | --program-transfo=* | --program-transf=* \
496   | --program-trans=* | --program-tran=* \
497   | --progr-tra=* | --program-tr=* | --program-t=*)
498     program_transform_name=$ac_optarg ;;
499
500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501   | -silent | --silent | --silen | --sile | --sil)
502     silent=yes ;;
503
504   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505     ac_prev=sbindir ;;
506   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507   | --sbi=* | --sb=*)
508     sbindir=$ac_optarg ;;
509
510   -sharedstatedir | --sharedstatedir | --sharedstatedi \
511   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512   | --sharedst | --shareds | --shared | --share | --shar \
513   | --sha | --sh)
514     ac_prev=sharedstatedir ;;
515   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518   | --sha=* | --sh=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
530
531   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532   | --syscon | --sysco | --sysc | --sys | --sy)
533     ac_prev=sysconfdir ;;
534   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid package name: $ac_package" >&2
554    { (exit 1); exit 1; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid package name: $ac_package" >&2
567    { (exit 1); exit 1; }; }
568     ac_package=`echo $ac_package | sed 's/-/_/g'`
569     eval "with_$ac_package=no" ;;
570
571   --x)
572     # Obsolete; use --with-x.
573     with_x=yes ;;
574
575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576   | --x-incl | --x-inc | --x-in | --x-i)
577     ac_prev=x_includes ;;
578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580     x_includes=$ac_optarg ;;
581
582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584     ac_prev=x_libraries ;;
585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
594   *=*)
595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599    { (exit 1); exit 1; }; }
600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601     eval "$ac_envvar='$ac_optarg'"
602     export $ac_envvar ;;
603
604   *)
605     # FIXME: should be removed in autoconf 3.0.
606     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617   { echo "$as_me: error: missing argument to $ac_option" >&2
618    { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624   eval ac_val=$`echo $ac_var`
625   case $ac_val in
626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628    { (exit 1); exit 1; }; };;
629   esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
636   eval ac_val=$`echo $ac_var`
637   case $ac_val in
638     [\\/$]* | ?:[\\/]* ) ;;
639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640    { (exit 1); exit 1; }; };;
641   esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653   if test "x$build_alias" = x; then
654     cross_compiling=maybe
655     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656     If a cross compiler is detected then cross compile mode will be used." >&2
657   elif test "x$build_alias" != "x$host_alias"; then
658     cross_compiling=yes
659   fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
672   ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674          X"$0" : 'X\(//\)[^/]' \| \
675          X"$0" : 'X\(//\)$' \| \
676          X"$0" : 'X\(/\)' \| \
677          .     : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681           /^X\(\/\/\)$/{ s//\1/; q; }
682           /^X\(\/\).*/{ s//\1/; q; }
683           s/.*/./; q'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702    { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716
717 #
718 # Report the --help message.
719 #
720 if test "$ac_init_help" = "long"; then
721   # Omit some internal or obsolete options to make the list less imposing.
722   # This message is too long to be a string in the A/UX 3.1 sh.
723   cat <<_ACEOF
724 \`configure' configures this package to adapt to many kinds of systems.
725
726 Usage: $0 [OPTION]... [VAR=VALUE]...
727
728 To assign environment variables (e.g., CC, CFLAGS...), specify them as
729 VAR=VALUE.  See below for descriptions of some of the useful variables.
730
731 Defaults for the options are specified in brackets.
732
733 Configuration:
734   -h, --help              display this help and exit
735       --help=short        display options specific to this package
736       --help=recursive    display the short help of all the included packages
737   -V, --version           display version information and exit
738   -q, --quiet, --silent   do not print \`checking...' messages
739       --cache-file=FILE   cache test results in FILE [disabled]
740   -C, --config-cache      alias for \`--cache-file=config.cache'
741   -n, --no-create         do not create output files
742       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
743
744 _ACEOF
745
746   cat <<_ACEOF
747 Installation directories:
748   --prefix=PREFIX         install architecture-independent files in PREFIX
749                           [$ac_default_prefix]
750   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
751                           [PREFIX]
752
753 By default, \`make install' will install all the files in
754 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
755 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
756 for instance \`--prefix=\$HOME'.
757
758 For better control, use the options below.
759
760 Fine tuning of the installation directories:
761   --bindir=DIR           user executables [EPREFIX/bin]
762   --sbindir=DIR          system admin executables [EPREFIX/sbin]
763   --libexecdir=DIR       program executables [EPREFIX/libexec]
764   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
765   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
766   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
767   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
768   --libdir=DIR           object code libraries [EPREFIX/lib]
769   --includedir=DIR       C header files [PREFIX/include]
770   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
771   --infodir=DIR          info documentation [PREFIX/info]
772   --mandir=DIR           man documentation [PREFIX/man]
773 _ACEOF
774
775   cat <<\_ACEOF
776
777 System types:
778   --build=BUILD     configure for building on BUILD [guessed]
779   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
780 _ACEOF
781 fi
782
783 if test -n "$ac_init_help"; then
784
785   cat <<\_ACEOF
786
787 Optional Packages:
788   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
789   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
790   --with-bacula=PATH    specify path to Bacula source
791   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
792   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
793   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
794   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
795   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
796   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
797
798 _ACEOF
799 fi
800
801 if test "$ac_init_help" = "recursive"; then
802   # If there are subdirs, report their specific --help.
803   ac_popdir=`pwd`
804   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
805     test -d $ac_dir || continue
806     ac_builddir=.
807
808 if test "$ac_dir" != .; then
809   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
810   # A "../" for each directory in $ac_dir_suffix.
811   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
812 else
813   ac_dir_suffix= ac_top_builddir=
814 fi
815
816 case $srcdir in
817   .)  # No --srcdir option.  We are building in place.
818     ac_srcdir=.
819     if test -z "$ac_top_builddir"; then
820        ac_top_srcdir=.
821     else
822        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
823     fi ;;
824   [\\/]* | ?:[\\/]* )  # Absolute path.
825     ac_srcdir=$srcdir$ac_dir_suffix;
826     ac_top_srcdir=$srcdir ;;
827   *) # Relative path.
828     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
829     ac_top_srcdir=$ac_top_builddir$srcdir ;;
830 esac
831
832 # Do not use `cd foo && pwd` to compute absolute paths, because
833 # the directories may not exist.
834 case `pwd` in
835 .) ac_abs_builddir="$ac_dir";;
836 *)
837   case "$ac_dir" in
838   .) ac_abs_builddir=`pwd`;;
839   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
840   *) ac_abs_builddir=`pwd`/"$ac_dir";;
841   esac;;
842 esac
843 case $ac_abs_builddir in
844 .) ac_abs_top_builddir=${ac_top_builddir}.;;
845 *)
846   case ${ac_top_builddir}. in
847   .) ac_abs_top_builddir=$ac_abs_builddir;;
848   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
849   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
850   esac;;
851 esac
852 case $ac_abs_builddir in
853 .) ac_abs_srcdir=$ac_srcdir;;
854 *)
855   case $ac_srcdir in
856   .) ac_abs_srcdir=$ac_abs_builddir;;
857   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
858   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
859   esac;;
860 esac
861 case $ac_abs_builddir in
862 .) ac_abs_top_srcdir=$ac_top_srcdir;;
863 *)
864   case $ac_top_srcdir in
865   .) ac_abs_top_srcdir=$ac_abs_builddir;;
866   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
867   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
868   esac;;
869 esac
870
871     cd $ac_dir
872     # Check for guested configure; otherwise get Cygnus style configure.
873     if test -f $ac_srcdir/configure.gnu; then
874       echo
875       $SHELL $ac_srcdir/configure.gnu  --help=recursive
876     elif test -f $ac_srcdir/configure; then
877       echo
878       $SHELL $ac_srcdir/configure  --help=recursive
879     elif test -f $ac_srcdir/configure.ac ||
880            test -f $ac_srcdir/configure.in; then
881       echo
882       $ac_configure --help
883     else
884       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
885     fi
886     cd $ac_popdir
887   done
888 fi
889
890 test -n "$ac_init_help" && exit 0
891 if $ac_init_version; then
892   cat <<\_ACEOF
893
894 Copyright (C) 2003 Free Software Foundation, Inc.
895 This configure script is free software; the Free Software Foundation
896 gives unlimited permission to copy, distribute and modify it.
897 _ACEOF
898   exit 0
899 fi
900 exec 5>config.log
901 cat >&5 <<_ACEOF
902 This file contains any messages produced by compilers while
903 running configure, to aid debugging if configure makes a mistake.
904
905 It was created by $as_me, which was
906 generated by GNU Autoconf 2.59.  Invocation command line was
907
908   $ $0 $@
909
910 _ACEOF
911 {
912 cat <<_ASUNAME
913 ## --------- ##
914 ## Platform. ##
915 ## --------- ##
916
917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
922
923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
924 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
925
926 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
927 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
929 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
930 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
931 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
932 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
933
934 _ASUNAME
935
936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
937 for as_dir in $PATH
938 do
939   IFS=$as_save_IFS
940   test -z "$as_dir" && as_dir=.
941   echo "PATH: $as_dir"
942 done
943
944 } >&5
945
946 cat >&5 <<_ACEOF
947
948
949 ## ----------- ##
950 ## Core tests. ##
951 ## ----------- ##
952
953 _ACEOF
954
955
956 # Keep a trace of the command line.
957 # Strip out --no-create and --no-recursion so they do not pile up.
958 # Strip out --silent because we don't want to record it for future runs.
959 # Also quote any args containing shell meta-characters.
960 # Make two passes to allow for proper duplicate-argument suppression.
961 ac_configure_args=
962 ac_configure_args0=
963 ac_configure_args1=
964 ac_sep=
965 ac_must_keep_next=false
966 for ac_pass in 1 2
967 do
968   for ac_arg
969   do
970     case $ac_arg in
971     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
972     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
973     | -silent | --silent | --silen | --sile | --sil)
974       continue ;;
975     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
976       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
977     esac
978     case $ac_pass in
979     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
980     2)
981       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
982       if test $ac_must_keep_next = true; then
983         ac_must_keep_next=false # Got value, back to normal.
984       else
985         case $ac_arg in
986           *=* | --config-cache | -C | -disable-* | --disable-* \
987           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
988           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
989           | -with-* | --with-* | -without-* | --without-* | --x)
990             case "$ac_configure_args0 " in
991               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
992             esac
993             ;;
994           -* ) ac_must_keep_next=true ;;
995         esac
996       fi
997       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
998       # Get rid of the leading space.
999       ac_sep=" "
1000       ;;
1001     esac
1002   done
1003 done
1004 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1005 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1006
1007 # When interrupted or exit'd, cleanup temporary files, and complete
1008 # config.log.  We remove comments because anyway the quotes in there
1009 # would cause problems or look ugly.
1010 # WARNING: Be sure not to use single quotes in there, as some shells,
1011 # such as our DU 5.0 friend, will then `close' the trap.
1012 trap 'exit_status=$?
1013   # Save into config.log some information that might help in debugging.
1014   {
1015     echo
1016
1017     cat <<\_ASBOX
1018 ## ---------------- ##
1019 ## Cache variables. ##
1020 ## ---------------- ##
1021 _ASBOX
1022     echo
1023     # The following way of writing the cache mishandles newlines in values,
1024 {
1025   (set) 2>&1 |
1026     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1027     *ac_space=\ *)
1028       sed -n \
1029         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1030           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1031       ;;
1032     *)
1033       sed -n \
1034         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1035       ;;
1036     esac;
1037 }
1038     echo
1039
1040     cat <<\_ASBOX
1041 ## ----------------- ##
1042 ## Output variables. ##
1043 ## ----------------- ##
1044 _ASBOX
1045     echo
1046     for ac_var in $ac_subst_vars
1047     do
1048       eval ac_val=$`echo $ac_var`
1049       echo "$ac_var='"'"'$ac_val'"'"'"
1050     done | sort
1051     echo
1052
1053     if test -n "$ac_subst_files"; then
1054       cat <<\_ASBOX
1055 ## ------------- ##
1056 ## Output files. ##
1057 ## ------------- ##
1058 _ASBOX
1059       echo
1060       for ac_var in $ac_subst_files
1061       do
1062         eval ac_val=$`echo $ac_var`
1063         echo "$ac_var='"'"'$ac_val'"'"'"
1064       done | sort
1065       echo
1066     fi
1067
1068     if test -s confdefs.h; then
1069       cat <<\_ASBOX
1070 ## ----------- ##
1071 ## confdefs.h. ##
1072 ## ----------- ##
1073 _ASBOX
1074       echo
1075       sed "/^$/d" confdefs.h | sort
1076       echo
1077     fi
1078     test "$ac_signal" != 0 &&
1079       echo "$as_me: caught signal $ac_signal"
1080     echo "$as_me: exit $exit_status"
1081   } >&5
1082   rm -f core *.core &&
1083   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1084     exit $exit_status
1085      ' 0
1086 for ac_signal in 1 2 13 15; do
1087   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1088 done
1089 ac_signal=0
1090
1091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1092 rm -rf conftest* confdefs.h
1093 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1094 echo >confdefs.h
1095
1096 # Predefined preprocessor variables.
1097
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_NAME "$PACKAGE_NAME"
1100 _ACEOF
1101
1102
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1105 _ACEOF
1106
1107
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1110 _ACEOF
1111
1112
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_STRING "$PACKAGE_STRING"
1115 _ACEOF
1116
1117
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1120 _ACEOF
1121
1122
1123 # Let the site file select an alternate cache file if it wants to.
1124 # Prefer explicitly selected file to automatically selected ones.
1125 if test -z "$CONFIG_SITE"; then
1126   if test "x$prefix" != xNONE; then
1127     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1128   else
1129     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1130   fi
1131 fi
1132 for ac_site_file in $CONFIG_SITE; do
1133   if test -r "$ac_site_file"; then
1134     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1135 echo "$as_me: loading site script $ac_site_file" >&6;}
1136     sed 's/^/| /' "$ac_site_file" >&5
1137     . "$ac_site_file"
1138   fi
1139 done
1140
1141 if test -r "$cache_file"; then
1142   # Some versions of bash will fail to source /dev/null (special
1143   # files actually), so we avoid doing that.
1144   if test -f "$cache_file"; then
1145     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1146 echo "$as_me: loading cache $cache_file" >&6;}
1147     case $cache_file in
1148       [\\/]* | ?:[\\/]* ) . $cache_file;;
1149       *)                      . ./$cache_file;;
1150     esac
1151   fi
1152 else
1153   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1154 echo "$as_me: creating cache $cache_file" >&6;}
1155   >$cache_file
1156 fi
1157
1158 # Check that the precious variables saved in the cache have kept the same
1159 # value.
1160 ac_cache_corrupted=false
1161 for ac_var in `(set) 2>&1 |
1162                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1163   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1164   eval ac_new_set=\$ac_env_${ac_var}_set
1165   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1166   eval ac_new_val="\$ac_env_${ac_var}_value"
1167   case $ac_old_set,$ac_new_set in
1168     set,)
1169       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1170 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1171       ac_cache_corrupted=: ;;
1172     ,set)
1173       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1174 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1175       ac_cache_corrupted=: ;;
1176     ,);;
1177     *)
1178       if test "x$ac_old_val" != "x$ac_new_val"; then
1179         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1180 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1181         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1182 echo "$as_me:   former value:  $ac_old_val" >&2;}
1183         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1184 echo "$as_me:   current value: $ac_new_val" >&2;}
1185         ac_cache_corrupted=:
1186       fi;;
1187   esac
1188   # Pass precious variables to config.status.
1189   if test "$ac_new_set" = set; then
1190     case $ac_new_val in
1191     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1192       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1193     *) ac_arg=$ac_var=$ac_new_val ;;
1194     esac
1195     case " $ac_configure_args " in
1196       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1197       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1198     esac
1199   fi
1200 done
1201 if $ac_cache_corrupted; then
1202   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1203 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1204   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1205 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1206    { (exit 1); exit 1; }; }
1207 fi
1208
1209 ac_ext=c
1210 ac_cpp='$CPP $CPPFLAGS'
1211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233 BUILD_DIR=`pwd`
1234 cd ..
1235 TOP_DIR=`pwd`
1236 cd ${BUILD_DIR}
1237
1238 ac_aux_dir=
1239 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1240   if test -f $ac_dir/install-sh; then
1241     ac_aux_dir=$ac_dir
1242     ac_install_sh="$ac_aux_dir/install-sh -c"
1243     break
1244   elif test -f $ac_dir/install.sh; then
1245     ac_aux_dir=$ac_dir
1246     ac_install_sh="$ac_aux_dir/install.sh -c"
1247     break
1248   elif test -f $ac_dir/shtool; then
1249     ac_aux_dir=$ac_dir
1250     ac_install_sh="$ac_aux_dir/shtool install -c"
1251     break
1252   fi
1253 done
1254 if test -z "$ac_aux_dir"; then
1255   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1256 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1257    { (exit 1); exit 1; }; }
1258 fi
1259 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1260 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1261 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1262
1263
1264
1265
1266
1267 for ac_prog in true
1268 do
1269   # Extract the first word of "$ac_prog", so it can be a program name with args.
1270 set dummy $ac_prog; ac_word=$2
1271 echo "$as_me:$LINENO: checking for $ac_word" >&5
1272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1273 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1274   echo $ECHO_N "(cached) $ECHO_C" >&6
1275 else
1276   case $TRUEPRG in
1277   [\\/]* | ?:[\\/]*)
1278   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1279   ;;
1280   *)
1281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1283 do
1284   IFS=$as_save_IFS
1285   test -z "$as_dir" && as_dir=.
1286   for ac_exec_ext in '' $ac_executable_extensions; do
1287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1288     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1290     break 2
1291   fi
1292 done
1293 done
1294
1295   ;;
1296 esac
1297 fi
1298 TRUEPRG=$ac_cv_path_TRUEPRG
1299
1300 if test -n "$TRUEPRG"; then
1301   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1302 echo "${ECHO_T}$TRUEPRG" >&6
1303 else
1304   echo "$as_me:$LINENO: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1306 fi
1307
1308   test -n "$TRUEPRG" && break
1309 done
1310 test -n "$TRUEPRG" || TRUEPRG=":"
1311
1312 for ac_prog in false
1313 do
1314   # Extract the first word of "$ac_prog", so it can be a program name with args.
1315 set dummy $ac_prog; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1319   echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321   case $FALSEPRG in
1322   [\\/]* | ?:[\\/]*)
1323   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1324   ;;
1325   *)
1326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329   IFS=$as_save_IFS
1330   test -z "$as_dir" && as_dir=.
1331   for ac_exec_ext in '' $ac_executable_extensions; do
1332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335     break 2
1336   fi
1337 done
1338 done
1339
1340   ;;
1341 esac
1342 fi
1343 FALSEPRG=$ac_cv_path_FALSEPRG
1344
1345 if test -n "$FALSEPRG"; then
1346   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1347 echo "${ECHO_T}$FALSEPRG" >&6
1348 else
1349   echo "$as_me:$LINENO: result: no" >&5
1350 echo "${ECHO_T}no" >&6
1351 fi
1352
1353   test -n "$FALSEPRG" && break
1354 done
1355 test -n "$FALSEPRG" || FALSEPRG=":"
1356
1357
1358 for ac_prog in gawk mawk nawk awk
1359 do
1360   # Extract the first word of "$ac_prog", so it can be a program name with args.
1361 set dummy $ac_prog; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_AWK+set}" = set; then
1365   echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367   if test -n "$AWK"; then
1368   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
1373   IFS=$as_save_IFS
1374   test -z "$as_dir" && as_dir=.
1375   for ac_exec_ext in '' $ac_executable_extensions; do
1376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377     ac_cv_prog_AWK="$ac_prog"
1378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379     break 2
1380   fi
1381 done
1382 done
1383
1384 fi
1385 fi
1386 AWK=$ac_cv_prog_AWK
1387 if test -n "$AWK"; then
1388   echo "$as_me:$LINENO: result: $AWK" >&5
1389 echo "${ECHO_T}$AWK" >&6
1390 else
1391   echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395   test -n "$AWK" && break
1396 done
1397
1398 # Some AWK programs fail, so test it and warn the user
1399 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
1400       { if ((prog == $2) || (("(" prog ")") == $2) ||
1401            (("" prog "") == $2) ||
1402            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
1403 else
1404   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
1405    The regex engine of $AWK is too broken to be used you
1406    might want to install GNU AWK.
1407    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
1408 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
1409    The regex engine of $AWK is too broken to be used you
1410    might want to install GNU AWK.
1411    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
1412    { (exit 1); exit 1; }; }
1413 fi
1414 THE_AWK=$AWK
1415 # Extract the first word of "$THE_AWK", so it can be a program name with args.
1416 set dummy $THE_AWK; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_AWK+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $AWK in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
1442   ;;
1443 esac
1444 fi
1445 AWK=$ac_cv_path_AWK
1446
1447 if test -n "$AWK"; then
1448   echo "$as_me:$LINENO: result: $AWK" >&5
1449 echo "${ECHO_T}$AWK" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455
1456
1457 #VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/version.h`
1458 #DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/version.h`
1459 #AC_SUBST(VERSION)dnl
1460 #AC_SUBST(DATE)dnl
1461 #echo "configuring for Bacula $VERSION ($DATE)"
1462
1463
1464 # Find a good install program.  We prefer a C program (faster),
1465 # so one script is as good as another.  But avoid the broken or
1466 # incompatible versions:
1467 # SysV /etc/install, /usr/sbin/install
1468 # SunOS /usr/etc/install
1469 # IRIX /sbin/install
1470 # AIX /bin/install
1471 # AmigaOS /C/install, which installs bootblocks on floppy discs
1472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1475 # OS/2's system install, which has a completely different semantic
1476 # ./install, which can be erroneously created by make from ./install.sh.
1477 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1478 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1479 if test -z "$INSTALL"; then
1480 if test "${ac_cv_path_install+set}" = set; then
1481   echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   # Account for people who put trailing slashes in PATH elements.
1489 case $as_dir/ in
1490   ./ | .// | /cC/* | \
1491   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1492   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1493   /usr/ucb/* ) ;;
1494   *)
1495     # OSF1 and SCO ODT 3.0 have their own names for install.
1496     # Don't use installbsd from OSF since it installs stuff as root
1497     # by default.
1498     for ac_prog in ginstall scoinst install; do
1499       for ac_exec_ext in '' $ac_executable_extensions; do
1500         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1501           if test $ac_prog = install &&
1502             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1503             # AIX install.  It has an incompatible calling convention.
1504             :
1505           elif test $ac_prog = install &&
1506             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1507             # program-specific install script used by HP pwplus--don't use.
1508             :
1509           else
1510             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1511             break 3
1512           fi
1513         fi
1514       done
1515     done
1516     ;;
1517 esac
1518 done
1519
1520
1521 fi
1522   if test "${ac_cv_path_install+set}" = set; then
1523     INSTALL=$ac_cv_path_install
1524   else
1525     # As a last resort, use the slow shell script.  We don't cache a
1526     # path for INSTALL within a source directory, because that will
1527     # break other packages using the cache if that directory is
1528     # removed, or if the path is relative.
1529     INSTALL=$ac_install_sh
1530   fi
1531 fi
1532 echo "$as_me:$LINENO: result: $INSTALL" >&5
1533 echo "${ECHO_T}$INSTALL" >&6
1534
1535 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1536 # It thinks the first close brace ends the variable substitution.
1537 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1538
1539 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1540
1541 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1542
1543 # Extract the first word of "mv", so it can be a program name with args.
1544 set dummy mv; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_path_MV+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   case $MV in
1551   [\\/]* | ?:[\\/]*)
1552   ac_cv_path_MV="$MV" # Let the user override the test with a path.
1553   ;;
1554   *)
1555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1557 do
1558   IFS=$as_save_IFS
1559   test -z "$as_dir" && as_dir=.
1560   for ac_exec_ext in '' $ac_executable_extensions; do
1561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
1563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564     break 2
1565   fi
1566 done
1567 done
1568
1569   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1570   ;;
1571 esac
1572 fi
1573 MV=$ac_cv_path_MV
1574
1575 if test -n "$MV"; then
1576   echo "$as_me:$LINENO: result: $MV" >&5
1577 echo "${ECHO_T}$MV" >&6
1578 else
1579   echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1581 fi
1582
1583 # Extract the first word of "rm", so it can be a program name with args.
1584 set dummy rm; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_path_RM+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   case $RM in
1591   [\\/]* | ?:[\\/]*)
1592   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1593   ;;
1594   *)
1595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598   IFS=$as_save_IFS
1599   test -z "$as_dir" && as_dir=.
1600   for ac_exec_ext in '' $ac_executable_extensions; do
1601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
1603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604     break 2
1605   fi
1606 done
1607 done
1608
1609   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1610   ;;
1611 esac
1612 fi
1613 RM=$ac_cv_path_RM
1614
1615 if test -n "$RM"; then
1616   echo "$as_me:$LINENO: result: $RM" >&5
1617 echo "${ECHO_T}$RM" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623 # Extract the first word of "cp", so it can be a program name with args.
1624 set dummy cp; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_path_CP+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   case $CP in
1631   [\\/]* | ?:[\\/]*)
1632   ac_cv_path_CP="$CP" # Let the user override the test with a path.
1633   ;;
1634   *)
1635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   for ac_exec_ext in '' $ac_executable_extensions; do
1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
1643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644     break 2
1645   fi
1646 done
1647 done
1648
1649   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1650   ;;
1651 esac
1652 fi
1653 CP=$ac_cv_path_CP
1654
1655 if test -n "$CP"; then
1656   echo "$as_me:$LINENO: result: $CP" >&5
1657 echo "${ECHO_T}$CP" >&6
1658 else
1659   echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1661 fi
1662
1663 # Extract the first word of "echo", so it can be a program name with args.
1664 set dummy echo; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_path_ECHO+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   case $ECHO in
1671   [\\/]* | ?:[\\/]*)
1672   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1673   ;;
1674   *)
1675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1690   ;;
1691 esac
1692 fi
1693 ECHO=$ac_cv_path_ECHO
1694
1695 if test -n "$ECHO"; then
1696   echo "$as_me:$LINENO: result: $ECHO" >&5
1697 echo "${ECHO_T}$ECHO" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703 # Extract the first word of "ar", so it can be a program name with args.
1704 set dummy ar; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_path_AR+set}" = set; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   case $AR in
1711   [\\/]* | ?:[\\/]*)
1712   ac_cv_path_AR="$AR" # Let the user override the test with a path.
1713   ;;
1714   *)
1715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   for ac_exec_ext in '' $ac_executable_extensions; do
1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1730   ;;
1731 esac
1732 fi
1733 AR=$ac_cv_path_AR
1734
1735 if test -n "$AR"; then
1736   echo "$as_me:$LINENO: result: $AR" >&5
1737 echo "${ECHO_T}$AR" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743
1744 # Make sure we can run config.sub.
1745 $ac_config_sub sun4 >/dev/null 2>&1 ||
1746   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1747 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1748    { (exit 1); exit 1; }; }
1749
1750 echo "$as_me:$LINENO: checking build system type" >&5
1751 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1752 if test "${ac_cv_build+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   ac_cv_build_alias=$build_alias
1756 test -z "$ac_cv_build_alias" &&
1757   ac_cv_build_alias=`$ac_config_guess`
1758 test -z "$ac_cv_build_alias" &&
1759   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1760 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1761    { (exit 1); exit 1; }; }
1762 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1763   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1764 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1765    { (exit 1); exit 1; }; }
1766
1767 fi
1768 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1769 echo "${ECHO_T}$ac_cv_build" >&6
1770 build=$ac_cv_build
1771 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774
1775
1776
1777 echo "$as_me:$LINENO: checking host system type" >&5
1778 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1779 if test "${ac_cv_host+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   ac_cv_host_alias=$host_alias
1783 test -z "$ac_cv_host_alias" &&
1784   ac_cv_host_alias=$ac_cv_build_alias
1785 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1786   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1787 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1788    { (exit 1); exit 1; }; }
1789
1790 fi
1791 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1792 echo "${ECHO_T}$ac_cv_host" >&6
1793 host=$ac_cv_host
1794 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799 case $host_os in
1800   *cygwin* ) CYGWIN=yes;;
1801          * ) CYGWIN=no;;
1802 esac
1803
1804 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1805 then
1806
1807
1808 if $TRUEPRG; then
1809   HAVE_SUN_OS_TRUE=
1810   HAVE_SUN_OS_FALSE='#'
1811 else
1812   HAVE_SUN_OS_TRUE='#'
1813   HAVE_SUN_OS_FALSE=
1814 fi
1815         cat >>confdefs.h <<\_ACEOF
1816 #define HAVE_SUN_OS 1
1817 _ACEOF
1818
1819 else
1820
1821
1822 if $FALSEPRG; then
1823   HAVE_SUN_OS_TRUE=
1824   HAVE_SUN_OS_FALSE='#'
1825 else
1826   HAVE_SUN_OS_TRUE='#'
1827   HAVE_SUN_OS_FALSE=
1828 fi
1829 fi
1830
1831 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1832 then
1833
1834
1835 if $TRUEPRG; then
1836   HAVE_OSF1_OS_TRUE=
1837   HAVE_OSF1_OS_FALSE='#'
1838 else
1839   HAVE_OSF1_OS_TRUE='#'
1840   HAVE_OSF1_OS_FALSE=
1841 fi
1842         cat >>confdefs.h <<\_ACEOF
1843 #define HAVE_OSF1_OS 1
1844 _ACEOF
1845
1846 else
1847
1848
1849 if $FALSEPRG; then
1850   HAVE_OSF1_OS_TRUE=
1851   HAVE_OSF1_OS_FALSE='#'
1852 else
1853   HAVE_OSF1_OS_TRUE='#'
1854   HAVE_OSF1_OS_FALSE=
1855 fi
1856 fi
1857
1858 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1859 then
1860
1861
1862 if $TRUEPRG; then
1863   HAVE_AIX_OS_TRUE=
1864   HAVE_AIX_OS_FALSE='#'
1865 else
1866   HAVE_AIX_OS_TRUE='#'
1867   HAVE_AIX_OS_FALSE=
1868 fi
1869         cat >>confdefs.h <<\_ACEOF
1870 #define HAVE_AIX_OS 1
1871 _ACEOF
1872
1873 else
1874
1875
1876 if $FALSEPRG; then
1877   HAVE_AIX_OS_TRUE=
1878   HAVE_AIX_OS_FALSE='#'
1879 else
1880   HAVE_AIX_OS_TRUE='#'
1881   HAVE_AIX_OS_FALSE=
1882 fi
1883 fi
1884
1885 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1886 then
1887
1888
1889 if $TRUEPRG; then
1890   HAVE_HPUX_OS_TRUE=
1891   HAVE_HPUX_OS_FALSE='#'
1892 else
1893   HAVE_HPUX_OS_TRUE='#'
1894   HAVE_HPUX_OS_FALSE=
1895 fi
1896         cat >>confdefs.h <<\_ACEOF
1897 #define HAVE_HPUX_OS 1
1898 _ACEOF
1899
1900 else
1901
1902
1903 if $FALSEPRG; then
1904   HAVE_HPUX_OS_TRUE=
1905   HAVE_HPUX_OS_FALSE='#'
1906 else
1907   HAVE_HPUX_OS_TRUE='#'
1908   HAVE_HPUX_OS_FALSE=
1909 fi
1910 fi
1911
1912 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1913 then
1914
1915
1916 if $TRUEPRG; then
1917   HAVE_LINUX_OS_TRUE=
1918   HAVE_LINUX_OS_FALSE='#'
1919 else
1920   HAVE_LINUX_OS_TRUE='#'
1921   HAVE_LINUX_OS_FALSE=
1922 fi
1923         cat >>confdefs.h <<\_ACEOF
1924 #define HAVE_LINUX_OS 1
1925 _ACEOF
1926
1927 else
1928
1929
1930 if $FALSEPRG; then
1931   HAVE_LINUX_OS_TRUE=
1932   HAVE_LINUX_OS_FALSE='#'
1933 else
1934   HAVE_LINUX_OS_TRUE='#'
1935   HAVE_LINUX_OS_FALSE=
1936 fi
1937 fi
1938
1939 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
1940 then
1941
1942
1943 if $TRUEPRG; then
1944   HAVE_FREEBSD_OS_TRUE=
1945   HAVE_FREEBSD_OS_FALSE='#'
1946 else
1947   HAVE_FREEBSD_OS_TRUE='#'
1948   HAVE_FREEBSD_OS_FALSE=
1949 fi
1950         cat >>confdefs.h <<\_ACEOF
1951 #define HAVE_FREEBSD_OS 1
1952 _ACEOF
1953
1954 else
1955
1956
1957 if $FALSEPRG; then
1958   HAVE_FREEBSD_OS_TRUE=
1959   HAVE_FREEBSD_OS_FALSE='#'
1960 else
1961   HAVE_FREEBSD_OS_TRUE='#'
1962   HAVE_FREEBSD_OS_FALSE=
1963 fi
1964 fi
1965
1966 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
1967 then
1968
1969
1970 if $TRUEPRG; then
1971   HAVE_NETBSD_OS_TRUE=
1972   HAVE_NETBSD_OS_FALSE='#'
1973 else
1974   HAVE_NETBSD_OS_TRUE='#'
1975   HAVE_NETBSD_OS_FALSE=
1976 fi
1977         cat >>confdefs.h <<\_ACEOF
1978 #define HAVE_NETBSD_OS 1
1979 _ACEOF
1980
1981 else
1982
1983
1984 if $FALSEPRG; then
1985   HAVE_NETBSD_OS_TRUE=
1986   HAVE_NETBSD_OS_FALSE='#'
1987 else
1988   HAVE_NETBSD_OS_TRUE='#'
1989   HAVE_NETBSD_OS_FALSE=
1990 fi
1991 fi
1992
1993 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
1994 then
1995
1996
1997 if $TRUEPRG; then
1998   HAVE_OPENBSD_OS_TRUE=
1999   HAVE_OPENBSD_OS_FALSE='#'
2000 else
2001   HAVE_OPENBSD_OS_TRUE='#'
2002   HAVE_OPENBSD_OS_FALSE=
2003 fi
2004         cat >>confdefs.h <<\_ACEOF
2005 #define HAVE_OPENBSD_OS 1
2006 _ACEOF
2007
2008 else
2009
2010
2011 if $FALSEPRG; then
2012   HAVE_OPENBSD_OS_TRUE=
2013   HAVE_OPENBSD_OS_FALSE='#'
2014 else
2015   HAVE_OPENBSD_OS_TRUE='#'
2016   HAVE_OPENBSD_OS_FALSE=
2017 fi
2018 fi
2019
2020 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2021 then
2022
2023
2024 if $TRUEPRG; then
2025   HAVE_BSDI_OS_TRUE=
2026   HAVE_BSDI_OS_FALSE='#'
2027 else
2028   HAVE_BSDI_OS_TRUE='#'
2029   HAVE_BSDI_OS_FALSE=
2030 fi
2031         cat >>confdefs.h <<\_ACEOF
2032 #define HAVE_BSDI_OS 1
2033 _ACEOF
2034
2035 else
2036
2037
2038 if $FALSEPRG; then
2039   HAVE_BSDI_OS_TRUE=
2040   HAVE_BSDI_OS_FALSE='#'
2041 else
2042   HAVE_BSDI_OS_TRUE='#'
2043   HAVE_BSDI_OS_FALSE=
2044 fi
2045 fi
2046
2047 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2048 then
2049
2050
2051 if $TRUEPRG; then
2052   HAVE_SGI_OS_TRUE=
2053   HAVE_SGI_OS_FALSE='#'
2054 else
2055   HAVE_SGI_OS_TRUE='#'
2056   HAVE_SGI_OS_FALSE=
2057 fi
2058         cat >>confdefs.h <<\_ACEOF
2059 #define HAVE_SGI_OS 1
2060 _ACEOF
2061
2062 else
2063
2064
2065 if $FALSEPRG; then
2066   HAVE_SGI_OS_TRUE=
2067   HAVE_SGI_OS_FALSE='#'
2068 else
2069   HAVE_SGI_OS_TRUE='#'
2070   HAVE_SGI_OS_FALSE=
2071 fi
2072 fi
2073
2074 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2075 then
2076
2077
2078 if $TRUEPRG; then
2079   HAVE_IRIX_OS_TRUE=
2080   HAVE_IRIX_OS_FALSE='#'
2081 else
2082   HAVE_IRIX_OS_TRUE='#'
2083   HAVE_IRIX_OS_FALSE=
2084 fi
2085         cat >>confdefs.h <<\_ACEOF
2086 #define HAVE_IRIX_OS 1
2087 _ACEOF
2088
2089 else
2090
2091
2092 if $FALSEPRG; then
2093   HAVE_IRIX_OS_TRUE=
2094   HAVE_IRIX_OS_FALSE='#'
2095 else
2096   HAVE_IRIX_OS_TRUE='#'
2097   HAVE_IRIX_OS_FALSE=
2098 fi
2099 fi
2100
2101 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2102 then
2103
2104
2105 if $TRUEPRG; then
2106   HAVE_DARWIN_OS_TRUE=
2107   HAVE_DARWIN_OS_FALSE='#'
2108 else
2109   HAVE_DARWIN_OS_TRUE='#'
2110   HAVE_DARWIN_OS_FALSE=
2111 fi
2112     cat >>confdefs.h <<\_ACEOF
2113 #define HAVE_DARWIN_OS 1
2114 _ACEOF
2115
2116 else
2117
2118
2119 if $FALSEPRG; then
2120   HAVE_DARWIN_OS_TRUE=
2121   HAVE_DARWIN_OS_FALSE='#'
2122 else
2123   HAVE_DARWIN_OS_TRUE='#'
2124   HAVE_DARWIN_OS_FALSE=
2125 fi
2126 fi
2127
2128
2129 # -----------------------------------------------------------
2130 # ----------------------------------------------------------
2131 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
2132 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
2133 if test "x$DISTNAME" != "x"
2134 then
2135         echo "distname set to $DISTNAME"
2136 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2137 then
2138         DISTNAME=alpha
2139 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2140 then
2141         DISTNAME=aix
2142 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2143 then
2144         DISTNAME=hpux
2145 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2146 then
2147         DISTNAME=solaris
2148 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2149 then
2150         DISTNAME=freebsd
2151 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2152 then
2153         DISTNAME=netbsd
2154 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2155 then
2156         DISTNAME=openbsd
2157 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2158 then
2159         DISTNAME=irix
2160 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2161 then
2162         DISTNAME=bsdi
2163 elif test -f /etc/SuSE-release
2164 then
2165         DISTNAME=suse
2166 elif test -d /etc/SuSEconfig
2167 then
2168         DISTNAME=suse5
2169 elif test -f /etc/mandrake-release
2170 then
2171         DISTNAME=mandrake
2172 elif test -f /etc/whitebox-release
2173 then
2174        DISTNAME=redhat
2175 elif test -f /etc/redhat-release
2176 then
2177         DISTNAME=redhat
2178 elif test -f /etc/gentoo-release
2179 then
2180         DISTNAME=gentoo
2181 elif test -f /etc/debian_version
2182 then
2183         DISTNAME=debian
2184 elif test -f /etc/slackware-version
2185 then
2186         DISTNAME=slackware
2187 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2188 then
2189     DISTNAME=darwin
2190 elif test -f /etc/engarde-version
2191 then
2192         DISTNAME=engarde
2193 elif test "$CYGWIN" = yes
2194 then
2195         DISTNAME=cygwin
2196         cat >>confdefs.h <<\_ACEOF
2197 #define HAVE_CYGWIN 1
2198 _ACEOF
2199
2200 else
2201         DISTNAME=unknown
2202 fi
2203 echo "$as_me:$LINENO: result: done" >&5
2204 echo "${ECHO_T}done" >&6
2205
2206
2207 # -------------------------------------------------------------------------
2208 #  If the user has not set --exec-prefix, we default to ${prefix}
2209 # -------------------------------------------------------------------------
2210 if test x${exec_prefix} = xNONE ; then
2211     exec_prefix=${prefix}
2212 fi
2213
2214
2215
2216 # ------------------------------------------
2217 # Where to get Bacula source
2218 # ------------------------------------------
2219
2220 # Check whether --with-bacula or --without-bacula was given.
2221 if test "${with_bacula+set}" = set; then
2222   withval="$with_bacula"
2223
2224        if test "x$withval" != "xno" ; then
2225           bacula=$withval
2226        fi
2227
2228
2229 fi;
2230
2231 # -------------------------------------------------------------------------
2232 #  Set variables for bimagemgr installation
2233 # -------------------------------------------------------------------------
2234 bimagemgr_cgidir=/var/www/cgi-bin
2235
2236 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
2237 if test "${with_bimagemgr_cgidir+set}" = set; then
2238   withval="$with_bimagemgr_cgidir"
2239
2240        if test "x$withval" != "xno" ; then
2241            bimagemgr_cgidir=$withval
2242        fi
2243
2244
2245 fi;
2246
2247 bimagemgr_docdir=/var/www/html
2248
2249 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
2250 if test "${with_bimagemgr_docdir+set}" = set; then
2251   withval="$with_bimagemgr_docdir"
2252
2253        if test "x$withval" != "xno" ; then
2254            bimagemgr_docdir=$withval
2255        fi
2256
2257
2258 fi;
2259
2260 bimagemgr_binowner=root
2261
2262 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
2263 if test "${with_bimagemgr_binowner+set}" = set; then
2264   withval="$with_bimagemgr_binowner"
2265
2266        if test "x$withval" != "xno" ; then
2267            bimagemgr_binowner=$withval
2268        fi
2269
2270
2271 fi;
2272
2273 bimagemgr_bingroup=root
2274
2275 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
2276 if test "${with_bimagemgr_bingroup+set}" = set; then
2277   withval="$with_bimagemgr_bingroup"
2278
2279        if test "x$withval" != "xno" ; then
2280            bimagemgr_bingroup=$withval
2281        fi
2282
2283
2284 fi;
2285
2286 bimagemgr_dataowner=apache
2287
2288 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
2289 if test "${with_bimagemgr_dataowner+set}" = set; then
2290   withval="$with_bimagemgr_dataowner"
2291
2292        if test "x$withval" != "xno" ; then
2293            bimagemgr_dataowner=$withval
2294        fi
2295
2296
2297 fi;
2298
2299 bimagemgr_datagroup=apache
2300
2301 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
2302 if test "${with_bimagemgr_datagroup+set}" = set; then
2303   withval="$with_bimagemgr_datagroup"
2304
2305        if test "x$withval" != "xno" ; then
2306            bimagemgr_datagroup=$withval
2307        fi
2308
2309
2310 fi;
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322 #
2323 # Finally we set appropriate distribution specific
2324 #  variables and defaults
2325 #
2326 # PFILES are platform specific files
2327 PFILES=""
2328 WIN32=
2329 MACOSX=
2330 hostname=`uname -n | cut -d '.' -f 1`
2331 case "$DISTNAME" in
2332 aix)
2333         DISTVER=`uname -r`
2334   ;;
2335 alpha)
2336         DISTVER=`uname -r`
2337   ;;
2338 bsdi)
2339         DISTVER=`uname -a |awk '{print $3}'`
2340   ;;
2341 cygwin)
2342         DISTVER=`uname -a |awk '{print $3}'`
2343         WIN32=win32
2344   ;;
2345 darwin)
2346         DISTVER=`uname -r`
2347   ;;
2348 debian)
2349         DISTVER=`cat /etc/debian_version`
2350   ;;
2351 freebsd)
2352         DISTVER=`uname -a |awk '{print $3}'`
2353   ;;
2354 hpux)
2355         DISTVER=`uname -r`
2356   ;;
2357 irix)
2358         DISTVER=`uname -r`
2359   ;;
2360 netbsd)
2361         DISTVER=`uname -a |awk '{print $3}'`
2362   ;;
2363 openbsd)
2364         DISTVER=`uname -a |awk '{print $3}'`
2365   ;;
2366 redhat)
2367         if test -f /etc/whitebox-release ; then
2368            f=/etc/whitebox-release
2369         else
2370            f=/etc/redhat-release
2371         fi
2372         if test `cat $f | grep release |\
2373                    cut -f 3 -d ' '`x = "Enterprise"x ; then
2374            DISTVER="Enterprise "`cat $f | grep release |\
2375                     cut -f 6 -d ' '`
2376         else
2377             DISTVER=`cat /etc/redhat-release | grep release |\
2378                      cut -f 5 -d ' '`
2379         fi
2380         hostname=`hostname -s`
2381   ;;
2382 mandrake)
2383         DISTVER=`cat /etc/mandrake-release | grep release |\
2384            cut -f 5 -d ' '`
2385   ;;
2386 gentoo)
2387         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
2388   ;;
2389 slackware)
2390         DISTVER=`cat /etc/slackware-version`
2391   ;;
2392 solaris)
2393         DISTVER=`uname -r`
2394   ;;
2395 suse)
2396         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
2397             cut -f 3 -d ' '`
2398   ;;
2399 suse5)
2400         DISTNAME=suse
2401         DISTVER=5.x
2402   ;;
2403 unknown)
2404         DISTVER=unknown
2405   ;;
2406 *)
2407   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
2408   ;;
2409 esac
2410
2411
2412
2413
2414
2415
2416 MCOMMON=./autoconf/Make.common
2417
2418
2419
2420                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile bimagemgr/Makefile bimagemgr/bacula-bimagemgr.spec $PFILES"
2421           ac_config_commands="$ac_config_commands default"
2422 cat >confcache <<\_ACEOF
2423 # This file is a shell script that caches the results of configure
2424 # tests run on this system so they can be shared between configure
2425 # scripts and configure runs, see configure's option --config-cache.
2426 # It is not useful on other systems.  If it contains results you don't
2427 # want to keep, you may remove or edit it.
2428 #
2429 # config.status only pays attention to the cache file if you give it
2430 # the --recheck option to rerun configure.
2431 #
2432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2434 # following values.
2435
2436 _ACEOF
2437
2438 # The following way of writing the cache mishandles newlines in values,
2439 # but we know of no workaround that is simple, portable, and efficient.
2440 # So, don't put newlines in cache variables' values.
2441 # Ultrix sh set writes to stderr and can't be redirected directly,
2442 # and sets the high bit in the cache file unless we assign to the vars.
2443 {
2444   (set) 2>&1 |
2445     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2446     *ac_space=\ *)
2447       # `set' does not quote correctly, so add quotes (double-quote
2448       # substitution turns \\\\ into \\, and sed turns \\ into \).
2449       sed -n \
2450         "s/'/'\\\\''/g;
2451           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2452       ;;
2453     *)
2454       # `set' quotes correctly as required by POSIX, so do not add quotes.
2455       sed -n \
2456         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2457       ;;
2458     esac;
2459 } |
2460   sed '
2461      t clear
2462      : clear
2463      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2464      t end
2465      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2466      : end' >>confcache
2467 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2468   if test -w $cache_file; then
2469     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2470     cat confcache >$cache_file
2471   else
2472     echo "not updating unwritable cache $cache_file"
2473   fi
2474 fi
2475 rm -f confcache
2476
2477 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2478 # Let make expand exec_prefix.
2479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2480
2481 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2482 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2483 # trailing colons and then remove the whole line if VPATH becomes empty
2484 # (actually we leave an empty line to preserve line numbers).
2485 if test "x$srcdir" = x.; then
2486   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2487 s/:*\$(srcdir):*/:/;
2488 s/:*\${srcdir}:*/:/;
2489 s/:*@srcdir@:*/:/;
2490 s/^\([^=]*=[     ]*\):*/\1/;
2491 s/:*$//;
2492 s/^[^=]*=[       ]*$//;
2493 }'
2494 fi
2495
2496 # Transform confdefs.h into DEFS.
2497 # Protect against shell expansion while executing Makefile rules.
2498 # Protect against Makefile macro expansion.
2499 #
2500 # If the first sed substitution is executed (which looks for macros that
2501 # take arguments), then we branch to the quote section.  Otherwise,
2502 # look for a macro that doesn't take arguments.
2503 cat >confdef2opt.sed <<\_ACEOF
2504 t clear
2505 : clear
2506 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2507 t quote
2508 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2509 t quote
2510 d
2511 : quote
2512 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
2513 s,\[,\\&,g
2514 s,\],\\&,g
2515 s,\$,$$,g
2516 p
2517 _ACEOF
2518 # We use echo to avoid assuming a particular line-breaking character.
2519 # The extra dot is to prevent the shell from consuming trailing
2520 # line-breaks from the sub-command output.  A line-break within
2521 # single-quotes doesn't work because, if this script is created in a
2522 # platform that uses two characters for line-breaks (e.g., DOS), tr
2523 # would break.
2524 ac_LF_and_DOT=`echo; echo .`
2525 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2526 rm -f confdef2opt.sed
2527
2528
2529 ac_libobjs=
2530 ac_ltlibobjs=
2531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2532   # 1. Remove the extension, and $U if already installed.
2533   ac_i=`echo "$ac_i" |
2534          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2535   # 2. Add them.
2536   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2537   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2538 done
2539 LIBOBJS=$ac_libobjs
2540
2541 LTLIBOBJS=$ac_ltlibobjs
2542
2543
2544
2545 : ${CONFIG_STATUS=./config.status}
2546 ac_clean_files_save=$ac_clean_files
2547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2548 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2549 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2550 cat >$CONFIG_STATUS <<_ACEOF
2551 #! $SHELL
2552 # Generated by $as_me.
2553 # Run this file to recreate the current configuration.
2554 # Compiler output produced by configure, useful for debugging
2555 # configure, is in config.log if it exists.
2556
2557 debug=false
2558 ac_cs_recheck=false
2559 ac_cs_silent=false
2560 SHELL=\${CONFIG_SHELL-$SHELL}
2561 _ACEOF
2562
2563 cat >>$CONFIG_STATUS <<\_ACEOF
2564 ## --------------------- ##
2565 ## M4sh Initialization.  ##
2566 ## --------------------- ##
2567
2568 # Be Bourne compatible
2569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2570   emulate sh
2571   NULLCMD=:
2572   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2573   # is contrary to our usage.  Disable this feature.
2574   alias -g '${1+"$@"}'='"$@"'
2575 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2576   set -o posix
2577 fi
2578 DUALCASE=1; export DUALCASE # for MKS sh
2579
2580 # Support unset when possible.
2581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2582   as_unset=unset
2583 else
2584   as_unset=false
2585 fi
2586
2587
2588 # Work around bugs in pre-3.0 UWIN ksh.
2589 $as_unset ENV MAIL MAILPATH
2590 PS1='$ '
2591 PS2='> '
2592 PS4='+ '
2593
2594 # NLS nuisances.
2595 for as_var in \
2596   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2597   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2598   LC_TELEPHONE LC_TIME
2599 do
2600   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2601     eval $as_var=C; export $as_var
2602   else
2603     $as_unset $as_var
2604   fi
2605 done
2606
2607 # Required to use basename.
2608 if expr a : '\(a\)' >/dev/null 2>&1; then
2609   as_expr=expr
2610 else
2611   as_expr=false
2612 fi
2613
2614 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2615   as_basename=basename
2616 else
2617   as_basename=false
2618 fi
2619
2620
2621 # Name of the executable.
2622 as_me=`$as_basename "$0" ||
2623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2624          X"$0" : 'X\(//\)$' \| \
2625          X"$0" : 'X\(/\)$' \| \
2626          .     : '\(.\)' 2>/dev/null ||
2627 echo X/"$0" |
2628     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2629           /^X\/\(\/\/\)$/{ s//\1/; q; }
2630           /^X\/\(\/\).*/{ s//\1/; q; }
2631           s/.*/./; q'`
2632
2633
2634 # PATH needs CR, and LINENO needs CR and PATH.
2635 # Avoid depending upon Character Ranges.
2636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2639 as_cr_digits='0123456789'
2640 as_cr_alnum=$as_cr_Letters$as_cr_digits
2641
2642 # The user is always right.
2643 if test "${PATH_SEPARATOR+set}" != set; then
2644   echo "#! /bin/sh" >conf$$.sh
2645   echo  "exit 0"   >>conf$$.sh
2646   chmod +x conf$$.sh
2647   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2648     PATH_SEPARATOR=';'
2649   else
2650     PATH_SEPARATOR=:
2651   fi
2652   rm -f conf$$.sh
2653 fi
2654
2655
2656   as_lineno_1=$LINENO
2657   as_lineno_2=$LINENO
2658   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2659   test "x$as_lineno_1" != "x$as_lineno_2" &&
2660   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2661   # Find who we are.  Look in the path if we contain no path at all
2662   # relative or not.
2663   case $0 in
2664     *[\\/]* ) as_myself=$0 ;;
2665     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2671 done
2672
2673        ;;
2674   esac
2675   # We did not find ourselves, most probably we were run as `sh COMMAND'
2676   # in which case we are not to be found in the path.
2677   if test "x$as_myself" = x; then
2678     as_myself=$0
2679   fi
2680   if test ! -f "$as_myself"; then
2681     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2682 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2683    { (exit 1); exit 1; }; }
2684   fi
2685   case $CONFIG_SHELL in
2686   '')
2687     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692   for as_base in sh bash ksh sh5; do
2693          case $as_dir in
2694          /*)
2695            if ("$as_dir/$as_base" -c '
2696   as_lineno_1=$LINENO
2697   as_lineno_2=$LINENO
2698   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2699   test "x$as_lineno_1" != "x$as_lineno_2" &&
2700   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2701              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2702              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2703              CONFIG_SHELL=$as_dir/$as_base
2704              export CONFIG_SHELL
2705              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2706            fi;;
2707          esac
2708        done
2709 done
2710 ;;
2711   esac
2712
2713   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2714   # uniformly replaced by the line number.  The first 'sed' inserts a
2715   # line-number line before each line; the second 'sed' does the real
2716   # work.  The second script uses 'N' to pair each line-number line
2717   # with the numbered line, and appends trailing '-' during
2718   # substitution so that $LINENO is not a special case at line end.
2719   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2720   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2721   sed '=' <$as_myself |
2722     sed '
2723       N
2724       s,$,-,
2725       : loop
2726       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2727       t loop
2728       s,-$,,
2729       s,^['$as_cr_digits']*\n,,
2730     ' >$as_me.lineno &&
2731   chmod +x $as_me.lineno ||
2732     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2733 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2734    { (exit 1); exit 1; }; }
2735
2736   # Don't try to exec as it changes $[0], causing all sort of problems
2737   # (the dirname of $[0] is not the place where we might find the
2738   # original and so on.  Autoconf is especially sensible to this).
2739   . ./$as_me.lineno
2740   # Exit status is that of the last command.
2741   exit
2742 }
2743
2744
2745 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2746   *c*,-n*) ECHO_N= ECHO_C='
2747 ' ECHO_T='      ' ;;
2748   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2749   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2750 esac
2751
2752 if expr a : '\(a\)' >/dev/null 2>&1; then
2753   as_expr=expr
2754 else
2755   as_expr=false
2756 fi
2757
2758 rm -f conf$$ conf$$.exe conf$$.file
2759 echo >conf$$.file
2760 if ln -s conf$$.file conf$$ 2>/dev/null; then
2761   # We could just check for DJGPP; but this test a) works b) is more generic
2762   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2763   if test -f conf$$.exe; then
2764     # Don't use ln at all; we don't have any links
2765     as_ln_s='cp -p'
2766   else
2767     as_ln_s='ln -s'
2768   fi
2769 elif ln conf$$.file conf$$ 2>/dev/null; then
2770   as_ln_s=ln
2771 else
2772   as_ln_s='cp -p'
2773 fi
2774 rm -f conf$$ conf$$.exe conf$$.file
2775
2776 if mkdir -p . 2>/dev/null; then
2777   as_mkdir_p=:
2778 else
2779   test -d ./-p && rmdir ./-p
2780   as_mkdir_p=false
2781 fi
2782
2783 as_executable_p="test -f"
2784
2785 # Sed expression to map a string onto a valid CPP name.
2786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2787
2788 # Sed expression to map a string onto a valid variable name.
2789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2790
2791
2792 # IFS
2793 # We need space, tab and new line, in precisely that order.
2794 as_nl='
2795 '
2796 IFS="   $as_nl"
2797
2798 # CDPATH.
2799 $as_unset CDPATH
2800
2801 exec 6>&1
2802
2803 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2804 # report actual input values of CONFIG_FILES etc. instead of their
2805 # values after options handling.  Logging --version etc. is OK.
2806 exec 5>>config.log
2807 {
2808   echo
2809   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2810 ## Running $as_me. ##
2811 _ASBOX
2812 } >&5
2813 cat >&5 <<_CSEOF
2814
2815 This file was extended by $as_me, which was
2816 generated by GNU Autoconf 2.59.  Invocation command line was
2817
2818   CONFIG_FILES    = $CONFIG_FILES
2819   CONFIG_HEADERS  = $CONFIG_HEADERS
2820   CONFIG_LINKS    = $CONFIG_LINKS
2821   CONFIG_COMMANDS = $CONFIG_COMMANDS
2822   $ $0 $@
2823
2824 _CSEOF
2825 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2826 echo >&5
2827 _ACEOF
2828
2829 # Files that config.status was made for.
2830 if test -n "$ac_config_files"; then
2831   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2832 fi
2833
2834 if test -n "$ac_config_headers"; then
2835   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2836 fi
2837
2838 if test -n "$ac_config_links"; then
2839   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2840 fi
2841
2842 if test -n "$ac_config_commands"; then
2843   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2844 fi
2845
2846 cat >>$CONFIG_STATUS <<\_ACEOF
2847
2848 ac_cs_usage="\
2849 \`$as_me' instantiates files from templates according to the
2850 current configuration.
2851
2852 Usage: $0 [OPTIONS] [FILE]...
2853
2854   -h, --help       print this help, then exit
2855   -V, --version    print version number, then exit
2856   -q, --quiet      do not print progress messages
2857   -d, --debug      don't remove temporary files
2858       --recheck    update $as_me by reconfiguring in the same conditions
2859   --file=FILE[:TEMPLATE]
2860                    instantiate the configuration file FILE
2861
2862 Configuration files:
2863 $config_files
2864
2865 Configuration commands:
2866 $config_commands
2867
2868 Report bugs to <bug-autoconf@gnu.org>."
2869 _ACEOF
2870
2871 cat >>$CONFIG_STATUS <<_ACEOF
2872 ac_cs_version="\\
2873 config.status
2874 configured by $0, generated by GNU Autoconf 2.59,
2875   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2876
2877 Copyright (C) 2003 Free Software Foundation, Inc.
2878 This config.status script is free software; the Free Software Foundation
2879 gives unlimited permission to copy, distribute and modify it."
2880 srcdir=$srcdir
2881 INSTALL="$INSTALL"
2882 _ACEOF
2883
2884 cat >>$CONFIG_STATUS <<\_ACEOF
2885 # If no file are specified by the user, then we need to provide default
2886 # value.  By we need to know if files were specified by the user.
2887 ac_need_defaults=:
2888 while test $# != 0
2889 do
2890   case $1 in
2891   --*=*)
2892     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2893     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2894     ac_shift=:
2895     ;;
2896   -*)
2897     ac_option=$1
2898     ac_optarg=$2
2899     ac_shift=shift
2900     ;;
2901   *) # This is not an option, so the user has probably given explicit
2902      # arguments.
2903      ac_option=$1
2904      ac_need_defaults=false;;
2905   esac
2906
2907   case $ac_option in
2908   # Handling of the options.
2909 _ACEOF
2910 cat >>$CONFIG_STATUS <<\_ACEOF
2911   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2912     ac_cs_recheck=: ;;
2913   --version | --vers* | -V )
2914     echo "$ac_cs_version"; exit 0 ;;
2915   --he | --h)
2916     # Conflict between --help and --header
2917     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2918 Try \`$0 --help' for more information." >&5
2919 echo "$as_me: error: ambiguous option: $1
2920 Try \`$0 --help' for more information." >&2;}
2921    { (exit 1); exit 1; }; };;
2922   --help | --hel | -h )
2923     echo "$ac_cs_usage"; exit 0 ;;
2924   --debug | --d* | -d )
2925     debug=: ;;
2926   --file | --fil | --fi | --f )
2927     $ac_shift
2928     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2929     ac_need_defaults=false;;
2930   --header | --heade | --head | --hea )
2931     $ac_shift
2932     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2933     ac_need_defaults=false;;
2934   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2935   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2936     ac_cs_silent=: ;;
2937
2938   # This is an error.
2939   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2940 Try \`$0 --help' for more information." >&5
2941 echo "$as_me: error: unrecognized option: $1
2942 Try \`$0 --help' for more information." >&2;}
2943    { (exit 1); exit 1; }; } ;;
2944
2945   *) ac_config_targets="$ac_config_targets $1" ;;
2946
2947   esac
2948   shift
2949 done
2950
2951 ac_configure_extra_args=
2952
2953 if $ac_cs_silent; then
2954   exec 6>/dev/null
2955   ac_configure_extra_args="$ac_configure_extra_args --silent"
2956 fi
2957
2958 _ACEOF
2959 cat >>$CONFIG_STATUS <<_ACEOF
2960 if \$ac_cs_recheck; then
2961   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2962   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2963 fi
2964
2965 _ACEOF
2966
2967
2968
2969
2970
2971 cat >>$CONFIG_STATUS <<\_ACEOF
2972 for ac_config_target in $ac_config_targets
2973 do
2974   case "$ac_config_target" in
2975   # Handling of arguments.
2976   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
2977   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2978   "bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES bimagemgr/Makefile" ;;
2979   "bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES bimagemgr/bacula-bimagemgr.spec" ;;
2980   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
2981   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
2982   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2983 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2984    { (exit 1); exit 1; }; };;
2985   esac
2986 done
2987
2988 # If the user did not use the arguments to specify the items to instantiate,
2989 # then the envvar interface is used.  Set only those that are not.
2990 # We use the long form for the default assignment because of an extremely
2991 # bizarre bug on SunOS 4.1.3.
2992 if $ac_need_defaults; then
2993   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2994   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2995 fi
2996
2997 # Have a temporary directory for convenience.  Make it in the build tree
2998 # simply because there is no reason to put it here, and in addition,
2999 # creating and moving files from /tmp can sometimes cause problems.
3000 # Create a temporary directory, and hook for its removal unless debugging.
3001 $debug ||
3002 {
3003   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3004   trap '{ (exit 1); exit 1; }' 1 2 13 15
3005 }
3006
3007 # Create a (secure) tmp directory for tmp files.
3008
3009 {
3010   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3011   test -n "$tmp" && test -d "$tmp"
3012 }  ||
3013 {
3014   tmp=./confstat$$-$RANDOM
3015   (umask 077 && mkdir $tmp)
3016 } ||
3017 {
3018    echo "$me: cannot create a temporary directory in ." >&2
3019    { (exit 1); exit 1; }
3020 }
3021
3022 _ACEOF
3023
3024 cat >>$CONFIG_STATUS <<_ACEOF
3025
3026 #
3027 # CONFIG_FILES section.
3028 #
3029
3030 # No need to generate the scripts if there are no CONFIG_FILES.
3031 # This happens for instance when ./config.status config.h
3032 if test -n "\$CONFIG_FILES"; then
3033   # Protect against being on the right side of a sed subst in config.status.
3034   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3035    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3036 s,@SHELL@,$SHELL,;t t
3037 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3038 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3039 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3040 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3041 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3042 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3043 s,@exec_prefix@,$exec_prefix,;t t
3044 s,@prefix@,$prefix,;t t
3045 s,@program_transform_name@,$program_transform_name,;t t
3046 s,@bindir@,$bindir,;t t
3047 s,@sbindir@,$sbindir,;t t
3048 s,@libexecdir@,$libexecdir,;t t
3049 s,@datadir@,$datadir,;t t
3050 s,@sysconfdir@,$sysconfdir,;t t
3051 s,@sharedstatedir@,$sharedstatedir,;t t
3052 s,@localstatedir@,$localstatedir,;t t
3053 s,@libdir@,$libdir,;t t
3054 s,@includedir@,$includedir,;t t
3055 s,@oldincludedir@,$oldincludedir,;t t
3056 s,@infodir@,$infodir,;t t
3057 s,@mandir@,$mandir,;t t
3058 s,@build_alias@,$build_alias,;t t
3059 s,@host_alias@,$host_alias,;t t
3060 s,@target_alias@,$target_alias,;t t
3061 s,@DEFS@,$DEFS,;t t
3062 s,@ECHO_C@,$ECHO_C,;t t
3063 s,@ECHO_N@,$ECHO_N,;t t
3064 s,@ECHO_T@,$ECHO_T,;t t
3065 s,@LIBS@,$LIBS,;t t
3066 s,@BUILD_DIR@,$BUILD_DIR,;t t
3067 s,@TRUEPRG@,$TRUEPRG,;t t
3068 s,@FALSEPRG@,$FALSEPRG,;t t
3069 s,@AWK@,$AWK,;t t
3070 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3071 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3072 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3073 s,@MV@,$MV,;t t
3074 s,@RM@,$RM,;t t
3075 s,@CP@,$CP,;t t
3076 s,@ECHO@,$ECHO,;t t
3077 s,@AR@,$AR,;t t
3078 s,@build@,$build,;t t
3079 s,@build_cpu@,$build_cpu,;t t
3080 s,@build_vendor@,$build_vendor,;t t
3081 s,@build_os@,$build_os,;t t
3082 s,@host@,$host,;t t
3083 s,@host_cpu@,$host_cpu,;t t
3084 s,@host_vendor@,$host_vendor,;t t
3085 s,@host_os@,$host_os,;t t
3086 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
3087 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
3088 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
3089 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
3090 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
3091 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
3092 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
3093 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
3094 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
3095 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
3096 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
3097 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
3098 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
3099 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
3100 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
3101 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
3102 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
3103 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
3104 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
3105 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
3106 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
3107 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
3108 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
3109 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
3110 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
3111 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
3112 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
3113 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
3114 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
3115 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
3116 s,@bacula@,$bacula,;t t
3117 s,@hostname@,$hostname,;t t
3118 s,@DISTNAME@,$DISTNAME,;t t
3119 s,@DISTVER@,$DISTVER,;t t
3120 s,@LIBOBJS@,$LIBOBJS,;t t
3121 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3122 /@MCOMMON@/r $MCOMMON
3123 s,@MCOMMON@,,;t t
3124 CEOF
3125
3126 _ACEOF
3127
3128   cat >>$CONFIG_STATUS <<\_ACEOF
3129   # Split the substitutions into bite-sized pieces for seds with
3130   # small command number limits, like on Digital OSF/1 and HP-UX.
3131   ac_max_sed_lines=48
3132   ac_sed_frag=1 # Number of current file.
3133   ac_beg=1 # First line for current file.
3134   ac_end=$ac_max_sed_lines # Line after last line for current file.
3135   ac_more_lines=:
3136   ac_sed_cmds=
3137   while $ac_more_lines; do
3138     if test $ac_beg -gt 1; then
3139       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3140     else
3141       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3142     fi
3143     if test ! -s $tmp/subs.frag; then
3144       ac_more_lines=false
3145     else
3146       # The purpose of the label and of the branching condition is to
3147       # speed up the sed processing (if there are no `@' at all, there
3148       # is no need to browse any of the substitutions).
3149       # These are the two extra sed commands mentioned above.
3150       (echo ':t
3151   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3152       if test -z "$ac_sed_cmds"; then
3153         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3154       else
3155         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3156       fi
3157       ac_sed_frag=`expr $ac_sed_frag + 1`
3158       ac_beg=$ac_end
3159       ac_end=`expr $ac_end + $ac_max_sed_lines`
3160     fi
3161   done
3162   if test -z "$ac_sed_cmds"; then
3163     ac_sed_cmds=cat
3164   fi
3165 fi # test -n "$CONFIG_FILES"
3166
3167 _ACEOF
3168 cat >>$CONFIG_STATUS <<\_ACEOF
3169 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3170   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3171   case $ac_file in
3172   - | *:- | *:-:* ) # input from stdin
3173         cat >$tmp/stdin
3174         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3175         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3176   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3177         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3178   * )   ac_file_in=$ac_file.in ;;
3179   esac
3180
3181   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3182   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3184          X"$ac_file" : 'X\(//\)[^/]' \| \
3185          X"$ac_file" : 'X\(//\)$' \| \
3186          X"$ac_file" : 'X\(/\)' \| \
3187          .     : '\(.\)' 2>/dev/null ||
3188 echo X"$ac_file" |
3189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3191           /^X\(\/\/\)$/{ s//\1/; q; }
3192           /^X\(\/\).*/{ s//\1/; q; }
3193           s/.*/./; q'`
3194   { if $as_mkdir_p; then
3195     mkdir -p "$ac_dir"
3196   else
3197     as_dir="$ac_dir"
3198     as_dirs=
3199     while test ! -d "$as_dir"; do
3200       as_dirs="$as_dir $as_dirs"
3201       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3203          X"$as_dir" : 'X\(//\)[^/]' \| \
3204          X"$as_dir" : 'X\(//\)$' \| \
3205          X"$as_dir" : 'X\(/\)' \| \
3206          .     : '\(.\)' 2>/dev/null ||
3207 echo X"$as_dir" |
3208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3209           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3210           /^X\(\/\/\)$/{ s//\1/; q; }
3211           /^X\(\/\).*/{ s//\1/; q; }
3212           s/.*/./; q'`
3213     done
3214     test ! -n "$as_dirs" || mkdir $as_dirs
3215   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3217    { (exit 1); exit 1; }; }; }
3218
3219   ac_builddir=.
3220
3221 if test "$ac_dir" != .; then
3222   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3223   # A "../" for each directory in $ac_dir_suffix.
3224   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3225 else
3226   ac_dir_suffix= ac_top_builddir=
3227 fi
3228
3229 case $srcdir in
3230   .)  # No --srcdir option.  We are building in place.
3231     ac_srcdir=.
3232     if test -z "$ac_top_builddir"; then
3233        ac_top_srcdir=.
3234     else
3235        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3236     fi ;;
3237   [\\/]* | ?:[\\/]* )  # Absolute path.
3238     ac_srcdir=$srcdir$ac_dir_suffix;
3239     ac_top_srcdir=$srcdir ;;
3240   *) # Relative path.
3241     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3242     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3243 esac
3244
3245 # Do not use `cd foo && pwd` to compute absolute paths, because
3246 # the directories may not exist.
3247 case `pwd` in
3248 .) ac_abs_builddir="$ac_dir";;
3249 *)
3250   case "$ac_dir" in
3251   .) ac_abs_builddir=`pwd`;;
3252   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3253   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3254   esac;;
3255 esac
3256 case $ac_abs_builddir in
3257 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3258 *)
3259   case ${ac_top_builddir}. in
3260   .) ac_abs_top_builddir=$ac_abs_builddir;;
3261   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3262   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3263   esac;;
3264 esac
3265 case $ac_abs_builddir in
3266 .) ac_abs_srcdir=$ac_srcdir;;
3267 *)
3268   case $ac_srcdir in
3269   .) ac_abs_srcdir=$ac_abs_builddir;;
3270   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3271   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3272   esac;;
3273 esac
3274 case $ac_abs_builddir in
3275 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3276 *)
3277   case $ac_top_srcdir in
3278   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3279   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3280   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3281   esac;;
3282 esac
3283
3284
3285   case $INSTALL in
3286   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3287   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3288   esac
3289
3290   if test x"$ac_file" != x-; then
3291     { echo "$as_me:$LINENO: creating $ac_file" >&5
3292 echo "$as_me: creating $ac_file" >&6;}
3293     rm -f "$ac_file"
3294   fi
3295   # Let's still pretend it is `configure' which instantiates (i.e., don't
3296   # use $as_me), people would be surprised to read:
3297   #    /* config.h.  Generated by config.status.  */
3298   if test x"$ac_file" = x-; then
3299     configure_input=
3300   else
3301     configure_input="$ac_file.  "
3302   fi
3303   configure_input=$configure_input"Generated from `echo $ac_file_in |
3304                                      sed 's,.*/,,'` by configure."
3305
3306   # First look for the input files in the build tree, otherwise in the
3307   # src tree.
3308   ac_file_inputs=`IFS=:
3309     for f in $ac_file_in; do
3310       case $f in
3311       -) echo $tmp/stdin ;;
3312       [\\/$]*)
3313          # Absolute (can't be DOS-style, as IFS=:)
3314          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3315 echo "$as_me: error: cannot find input file: $f" >&2;}
3316    { (exit 1); exit 1; }; }
3317          echo "$f";;
3318       *) # Relative
3319          if test -f "$f"; then
3320            # Build tree
3321            echo "$f"
3322          elif test -f "$srcdir/$f"; then
3323            # Source tree
3324            echo "$srcdir/$f"
3325          else
3326            # /dev/null tree
3327            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3328 echo "$as_me: error: cannot find input file: $f" >&2;}
3329    { (exit 1); exit 1; }; }
3330          fi;;
3331       esac
3332     done` || { (exit 1); exit 1; }
3333 _ACEOF
3334 cat >>$CONFIG_STATUS <<_ACEOF
3335   sed "$ac_vpsub
3336 $extrasub
3337 _ACEOF
3338 cat >>$CONFIG_STATUS <<\_ACEOF
3339 :t
3340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3341 s,@configure_input@,$configure_input,;t t
3342 s,@srcdir@,$ac_srcdir,;t t
3343 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3344 s,@top_srcdir@,$ac_top_srcdir,;t t
3345 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3346 s,@builddir@,$ac_builddir,;t t
3347 s,@abs_builddir@,$ac_abs_builddir,;t t
3348 s,@top_builddir@,$ac_top_builddir,;t t
3349 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3350 s,@INSTALL@,$ac_INSTALL,;t t
3351 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3352   rm -f $tmp/stdin
3353   if test x"$ac_file" != x-; then
3354     mv $tmp/out $ac_file
3355   else
3356     cat $tmp/out
3357     rm -f $tmp/out
3358   fi
3359
3360 done
3361 _ACEOF
3362 cat >>$CONFIG_STATUS <<\_ACEOF
3363
3364 #
3365 # CONFIG_COMMANDS section.
3366 #
3367 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3368   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3369   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3370   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
3371 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3372          X"$ac_dest" : 'X\(//\)[^/]' \| \
3373          X"$ac_dest" : 'X\(//\)$' \| \
3374          X"$ac_dest" : 'X\(/\)' \| \
3375          .     : '\(.\)' 2>/dev/null ||
3376 echo X"$ac_dest" |
3377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3379           /^X\(\/\/\)$/{ s//\1/; q; }
3380           /^X\(\/\).*/{ s//\1/; q; }
3381           s/.*/./; q'`
3382   { if $as_mkdir_p; then
3383     mkdir -p "$ac_dir"
3384   else
3385     as_dir="$ac_dir"
3386     as_dirs=
3387     while test ! -d "$as_dir"; do
3388       as_dirs="$as_dir $as_dirs"
3389       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3391          X"$as_dir" : 'X\(//\)[^/]' \| \
3392          X"$as_dir" : 'X\(//\)$' \| \
3393          X"$as_dir" : 'X\(/\)' \| \
3394          .     : '\(.\)' 2>/dev/null ||
3395 echo X"$as_dir" |
3396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3398           /^X\(\/\/\)$/{ s//\1/; q; }
3399           /^X\(\/\).*/{ s//\1/; q; }
3400           s/.*/./; q'`
3401     done
3402     test ! -n "$as_dirs" || mkdir $as_dirs
3403   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3405    { (exit 1); exit 1; }; }; }
3406
3407   ac_builddir=.
3408
3409 if test "$ac_dir" != .; then
3410   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3411   # A "../" for each directory in $ac_dir_suffix.
3412   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3413 else
3414   ac_dir_suffix= ac_top_builddir=
3415 fi
3416
3417 case $srcdir in
3418   .)  # No --srcdir option.  We are building in place.
3419     ac_srcdir=.
3420     if test -z "$ac_top_builddir"; then
3421        ac_top_srcdir=.
3422     else
3423        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3424     fi ;;
3425   [\\/]* | ?:[\\/]* )  # Absolute path.
3426     ac_srcdir=$srcdir$ac_dir_suffix;
3427     ac_top_srcdir=$srcdir ;;
3428   *) # Relative path.
3429     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3430     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3431 esac
3432
3433 # Do not use `cd foo && pwd` to compute absolute paths, because
3434 # the directories may not exist.
3435 case `pwd` in
3436 .) ac_abs_builddir="$ac_dir";;
3437 *)
3438   case "$ac_dir" in
3439   .) ac_abs_builddir=`pwd`;;
3440   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3441   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3442   esac;;
3443 esac
3444 case $ac_abs_builddir in
3445 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3446 *)
3447   case ${ac_top_builddir}. in
3448   .) ac_abs_top_builddir=$ac_abs_builddir;;
3449   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3450   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3451   esac;;
3452 esac
3453 case $ac_abs_builddir in
3454 .) ac_abs_srcdir=$ac_srcdir;;
3455 *)
3456   case $ac_srcdir in
3457   .) ac_abs_srcdir=$ac_abs_builddir;;
3458   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3459   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3460   esac;;
3461 esac
3462 case $ac_abs_builddir in
3463 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3464 *)
3465   case $ac_top_srcdir in
3466   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3467   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3468   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3469   esac;;
3470 esac
3471
3472
3473   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
3474 echo "$as_me: executing $ac_dest commands" >&6;}
3475   case $ac_dest in
3476     default )
3477  ;;
3478   esac
3479 done
3480 _ACEOF
3481
3482 cat >>$CONFIG_STATUS <<\_ACEOF
3483
3484 { (exit 0); exit 0; }
3485 _ACEOF
3486 chmod +x $CONFIG_STATUS
3487 ac_clean_files=$ac_clean_files_save
3488
3489
3490 # configure is writing to config.log, and then calls config.status.
3491 # config.status does its own redirection, appending to config.log.
3492 # Unfortunately, on DOS this fails, as config.log is still kept open
3493 # by configure, so config.status won't be able to write to it; its
3494 # output is simply discarded.  So we exec the FD to /dev/null,
3495 # effectively closing config.log, so it can be properly (re)opened and
3496 # appended to by config.status.  When coming back to configure, we
3497 # need to make the FD available again.
3498 if test "$no_create" != yes; then
3499   ac_cs_success=:
3500   ac_config_status_args=
3501   test "$silent" = yes &&
3502     ac_config_status_args="$ac_config_status_args --quiet"
3503   exec 5>/dev/null
3504   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3505   exec 5>>config.log
3506   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3507   # would make configure fail if this is the last instruction.
3508   $ac_cs_success || { (exit 1); exit 1; }
3509 fi
3510
3511
3512
3513 echo "
3514 Configuration on `date`:
3515
3516   Host:                       $host -- ${DISTNAME} ${DISTVER}
3517   Bacula version:             ${VERSION} (${DATE})
3518   Source code location:       ${bacula}
3519
3520   " > config.out
3521
3522 cat config.out