]> git.sur5r.net Git - bacula/rescue/blob - rescue/configure
Update
[bacula/rescue] / rescue / 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="version.h"
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 VERSION DATE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MV RM CP ECHO AR CDRECORD 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 CDSTL STATIC_FD iso where type 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 Features:
788   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
789   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
790   --enable-static-fd      enable static File daemon disabled
791
792 Optional Packages:
793   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
794   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
795   --with-iso=PATH        specify path to iso
796   --with-cdrom=PATH    specify path to cdrom
797   --with-bacula=PATH    specify path to Bacula source
798
799 _ACEOF
800 fi
801
802 if test "$ac_init_help" = "recursive"; then
803   # If there are subdirs, report their specific --help.
804   ac_popdir=`pwd`
805   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
806     test -d $ac_dir || continue
807     ac_builddir=.
808
809 if test "$ac_dir" != .; then
810   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
811   # A "../" for each directory in $ac_dir_suffix.
812   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
813 else
814   ac_dir_suffix= ac_top_builddir=
815 fi
816
817 case $srcdir in
818   .)  # No --srcdir option.  We are building in place.
819     ac_srcdir=.
820     if test -z "$ac_top_builddir"; then
821        ac_top_srcdir=.
822     else
823        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
824     fi ;;
825   [\\/]* | ?:[\\/]* )  # Absolute path.
826     ac_srcdir=$srcdir$ac_dir_suffix;
827     ac_top_srcdir=$srcdir ;;
828   *) # Relative path.
829     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
830     ac_top_srcdir=$ac_top_builddir$srcdir ;;
831 esac
832
833 # Do not use `cd foo && pwd` to compute absolute paths, because
834 # the directories may not exist.
835 case `pwd` in
836 .) ac_abs_builddir="$ac_dir";;
837 *)
838   case "$ac_dir" in
839   .) ac_abs_builddir=`pwd`;;
840   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
841   *) ac_abs_builddir=`pwd`/"$ac_dir";;
842   esac;;
843 esac
844 case $ac_abs_builddir in
845 .) ac_abs_top_builddir=${ac_top_builddir}.;;
846 *)
847   case ${ac_top_builddir}. in
848   .) ac_abs_top_builddir=$ac_abs_builddir;;
849   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
850   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
851   esac;;
852 esac
853 case $ac_abs_builddir in
854 .) ac_abs_srcdir=$ac_srcdir;;
855 *)
856   case $ac_srcdir in
857   .) ac_abs_srcdir=$ac_abs_builddir;;
858   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
859   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
860   esac;;
861 esac
862 case $ac_abs_builddir in
863 .) ac_abs_top_srcdir=$ac_top_srcdir;;
864 *)
865   case $ac_top_srcdir in
866   .) ac_abs_top_srcdir=$ac_abs_builddir;;
867   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
868   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
869   esac;;
870 esac
871
872     cd $ac_dir
873     # Check for guested configure; otherwise get Cygnus style configure.
874     if test -f $ac_srcdir/configure.gnu; then
875       echo
876       $SHELL $ac_srcdir/configure.gnu  --help=recursive
877     elif test -f $ac_srcdir/configure; then
878       echo
879       $SHELL $ac_srcdir/configure  --help=recursive
880     elif test -f $ac_srcdir/configure.ac ||
881            test -f $ac_srcdir/configure.in; then
882       echo
883       $ac_configure --help
884     else
885       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
886     fi
887     cd $ac_popdir
888   done
889 fi
890
891 test -n "$ac_init_help" && exit 0
892 if $ac_init_version; then
893   cat <<\_ACEOF
894
895 Copyright (C) 2003 Free Software Foundation, Inc.
896 This configure script is free software; the Free Software Foundation
897 gives unlimited permission to copy, distribute and modify it.
898 _ACEOF
899   exit 0
900 fi
901 exec 5>config.log
902 cat >&5 <<_ACEOF
903 This file contains any messages produced by compilers while
904 running configure, to aid debugging if configure makes a mistake.
905
906 It was created by $as_me, which was
907 generated by GNU Autoconf 2.59.  Invocation command line was
908
909   $ $0 $@
910
911 _ACEOF
912 {
913 cat <<_ASUNAME
914 ## --------- ##
915 ## Platform. ##
916 ## --------- ##
917
918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
923
924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
925 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
926
927 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
928 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
930 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
931 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
932 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
933 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
934
935 _ASUNAME
936
937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
938 for as_dir in $PATH
939 do
940   IFS=$as_save_IFS
941   test -z "$as_dir" && as_dir=.
942   echo "PATH: $as_dir"
943 done
944
945 } >&5
946
947 cat >&5 <<_ACEOF
948
949
950 ## ----------- ##
951 ## Core tests. ##
952 ## ----------- ##
953
954 _ACEOF
955
956
957 # Keep a trace of the command line.
958 # Strip out --no-create and --no-recursion so they do not pile up.
959 # Strip out --silent because we don't want to record it for future runs.
960 # Also quote any args containing shell meta-characters.
961 # Make two passes to allow for proper duplicate-argument suppression.
962 ac_configure_args=
963 ac_configure_args0=
964 ac_configure_args1=
965 ac_sep=
966 ac_must_keep_next=false
967 for ac_pass in 1 2
968 do
969   for ac_arg
970   do
971     case $ac_arg in
972     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
973     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
974     | -silent | --silent | --silen | --sile | --sil)
975       continue ;;
976     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
977       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
978     esac
979     case $ac_pass in
980     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
981     2)
982       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
983       if test $ac_must_keep_next = true; then
984         ac_must_keep_next=false # Got value, back to normal.
985       else
986         case $ac_arg in
987           *=* | --config-cache | -C | -disable-* | --disable-* \
988           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
989           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
990           | -with-* | --with-* | -without-* | --without-* | --x)
991             case "$ac_configure_args0 " in
992               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
993             esac
994             ;;
995           -* ) ac_must_keep_next=true ;;
996         esac
997       fi
998       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999       # Get rid of the leading space.
1000       ac_sep=" "
1001       ;;
1002     esac
1003   done
1004 done
1005 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1006 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1007
1008 # When interrupted or exit'd, cleanup temporary files, and complete
1009 # config.log.  We remove comments because anyway the quotes in there
1010 # would cause problems or look ugly.
1011 # WARNING: Be sure not to use single quotes in there, as some shells,
1012 # such as our DU 5.0 friend, will then `close' the trap.
1013 trap 'exit_status=$?
1014   # Save into config.log some information that might help in debugging.
1015   {
1016     echo
1017
1018     cat <<\_ASBOX
1019 ## ---------------- ##
1020 ## Cache variables. ##
1021 ## ---------------- ##
1022 _ASBOX
1023     echo
1024     # The following way of writing the cache mishandles newlines in values,
1025 {
1026   (set) 2>&1 |
1027     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028     *ac_space=\ *)
1029       sed -n \
1030         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032       ;;
1033     *)
1034       sed -n \
1035         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036       ;;
1037     esac;
1038 }
1039     echo
1040
1041     cat <<\_ASBOX
1042 ## ----------------- ##
1043 ## Output variables. ##
1044 ## ----------------- ##
1045 _ASBOX
1046     echo
1047     for ac_var in $ac_subst_vars
1048     do
1049       eval ac_val=$`echo $ac_var`
1050       echo "$ac_var='"'"'$ac_val'"'"'"
1051     done | sort
1052     echo
1053
1054     if test -n "$ac_subst_files"; then
1055       cat <<\_ASBOX
1056 ## ------------- ##
1057 ## Output files. ##
1058 ## ------------- ##
1059 _ASBOX
1060       echo
1061       for ac_var in $ac_subst_files
1062       do
1063         eval ac_val=$`echo $ac_var`
1064         echo "$ac_var='"'"'$ac_val'"'"'"
1065       done | sort
1066       echo
1067     fi
1068
1069     if test -s confdefs.h; then
1070       cat <<\_ASBOX
1071 ## ----------- ##
1072 ## confdefs.h. ##
1073 ## ----------- ##
1074 _ASBOX
1075       echo
1076       sed "/^$/d" confdefs.h | sort
1077       echo
1078     fi
1079     test "$ac_signal" != 0 &&
1080       echo "$as_me: caught signal $ac_signal"
1081     echo "$as_me: exit $exit_status"
1082   } >&5
1083   rm -f core *.core &&
1084   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1085     exit $exit_status
1086      ' 0
1087 for ac_signal in 1 2 13 15; do
1088   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1089 done
1090 ac_signal=0
1091
1092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1093 rm -rf conftest* confdefs.h
1094 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1095 echo >confdefs.h
1096
1097 # Predefined preprocessor variables.
1098
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_NAME "$PACKAGE_NAME"
1101 _ACEOF
1102
1103
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1106 _ACEOF
1107
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1111 _ACEOF
1112
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_STRING "$PACKAGE_STRING"
1116 _ACEOF
1117
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1121 _ACEOF
1122
1123
1124 # Let the site file select an alternate cache file if it wants to.
1125 # Prefer explicitly selected file to automatically selected ones.
1126 if test -z "$CONFIG_SITE"; then
1127   if test "x$prefix" != xNONE; then
1128     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1129   else
1130     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1131   fi
1132 fi
1133 for ac_site_file in $CONFIG_SITE; do
1134   if test -r "$ac_site_file"; then
1135     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136 echo "$as_me: loading site script $ac_site_file" >&6;}
1137     sed 's/^/| /' "$ac_site_file" >&5
1138     . "$ac_site_file"
1139   fi
1140 done
1141
1142 if test -r "$cache_file"; then
1143   # Some versions of bash will fail to source /dev/null (special
1144   # files actually), so we avoid doing that.
1145   if test -f "$cache_file"; then
1146     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147 echo "$as_me: loading cache $cache_file" >&6;}
1148     case $cache_file in
1149       [\\/]* | ?:[\\/]* ) . $cache_file;;
1150       *)                      . ./$cache_file;;
1151     esac
1152   fi
1153 else
1154   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155 echo "$as_me: creating cache $cache_file" >&6;}
1156   >$cache_file
1157 fi
1158
1159 # Check that the precious variables saved in the cache have kept the same
1160 # value.
1161 ac_cache_corrupted=false
1162 for ac_var in `(set) 2>&1 |
1163                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165   eval ac_new_set=\$ac_env_${ac_var}_set
1166   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167   eval ac_new_val="\$ac_env_${ac_var}_value"
1168   case $ac_old_set,$ac_new_set in
1169     set,)
1170       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172       ac_cache_corrupted=: ;;
1173     ,set)
1174       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176       ac_cache_corrupted=: ;;
1177     ,);;
1178     *)
1179       if test "x$ac_old_val" != "x$ac_new_val"; then
1180         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1183 echo "$as_me:   former value:  $ac_old_val" >&2;}
1184         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1185 echo "$as_me:   current value: $ac_new_val" >&2;}
1186         ac_cache_corrupted=:
1187       fi;;
1188   esac
1189   # Pass precious variables to config.status.
1190   if test "$ac_new_set" = set; then
1191     case $ac_new_val in
1192     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194     *) ac_arg=$ac_var=$ac_new_val ;;
1195     esac
1196     case " $ac_configure_args " in
1197       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1198       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1199     esac
1200   fi
1201 done
1202 if $ac_cache_corrupted; then
1203   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207    { (exit 1); exit 1; }; }
1208 fi
1209
1210 ac_ext=c
1211 ac_cpp='$CPP $CPPFLAGS'
1212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234 BUILD_DIR=`pwd`
1235 cd ..
1236 TOP_DIR=`pwd`
1237 cd ${BUILD_DIR}
1238
1239 ac_aux_dir=
1240 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1241   if test -f $ac_dir/install-sh; then
1242     ac_aux_dir=$ac_dir
1243     ac_install_sh="$ac_aux_dir/install-sh -c"
1244     break
1245   elif test -f $ac_dir/install.sh; then
1246     ac_aux_dir=$ac_dir
1247     ac_install_sh="$ac_aux_dir/install.sh -c"
1248     break
1249   elif test -f $ac_dir/shtool; then
1250     ac_aux_dir=$ac_dir
1251     ac_install_sh="$ac_aux_dir/shtool install -c"
1252     break
1253   fi
1254 done
1255 if test -z "$ac_aux_dir"; then
1256   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1257 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1258    { (exit 1); exit 1; }; }
1259 fi
1260 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1261 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1262 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1263
1264
1265
1266
1267
1268 for ac_prog in true
1269 do
1270   # Extract the first word of "$ac_prog", so it can be a program name with args.
1271 set dummy $ac_prog; ac_word=$2
1272 echo "$as_me:$LINENO: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1275   echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277   case $TRUEPRG in
1278   [\\/]* | ?:[\\/]*)
1279   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1280   ;;
1281   *)
1282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 for as_dir in $PATH
1284 do
1285   IFS=$as_save_IFS
1286   test -z "$as_dir" && as_dir=.
1287   for ac_exec_ext in '' $ac_executable_extensions; do
1288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1289     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1291     break 2
1292   fi
1293 done
1294 done
1295
1296   ;;
1297 esac
1298 fi
1299 TRUEPRG=$ac_cv_path_TRUEPRG
1300
1301 if test -n "$TRUEPRG"; then
1302   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1303 echo "${ECHO_T}$TRUEPRG" >&6
1304 else
1305   echo "$as_me:$LINENO: result: no" >&5
1306 echo "${ECHO_T}no" >&6
1307 fi
1308
1309   test -n "$TRUEPRG" && break
1310 done
1311 test -n "$TRUEPRG" || TRUEPRG=":"
1312
1313 for ac_prog in false
1314 do
1315   # Extract the first word of "$ac_prog", so it can be a program name with args.
1316 set dummy $ac_prog; ac_word=$2
1317 echo "$as_me:$LINENO: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1320   echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322   case $FALSEPRG in
1323   [\\/]* | ?:[\\/]*)
1324   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1325   ;;
1326   *)
1327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328 for as_dir in $PATH
1329 do
1330   IFS=$as_save_IFS
1331   test -z "$as_dir" && as_dir=.
1332   for ac_exec_ext in '' $ac_executable_extensions; do
1333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1334     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1336     break 2
1337   fi
1338 done
1339 done
1340
1341   ;;
1342 esac
1343 fi
1344 FALSEPRG=$ac_cv_path_FALSEPRG
1345
1346 if test -n "$FALSEPRG"; then
1347   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1348 echo "${ECHO_T}$FALSEPRG" >&6
1349 else
1350   echo "$as_me:$LINENO: result: no" >&5
1351 echo "${ECHO_T}no" >&6
1352 fi
1353
1354   test -n "$FALSEPRG" && break
1355 done
1356 test -n "$FALSEPRG" || FALSEPRG=":"
1357
1358
1359 for ac_prog in gawk mawk nawk awk
1360 do
1361   # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_AWK+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   if test -n "$AWK"; then
1369   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1373 do
1374   IFS=$as_save_IFS
1375   test -z "$as_dir" && as_dir=.
1376   for ac_exec_ext in '' $ac_executable_extensions; do
1377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378     ac_cv_prog_AWK="$ac_prog"
1379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380     break 2
1381   fi
1382 done
1383 done
1384
1385 fi
1386 fi
1387 AWK=$ac_cv_prog_AWK
1388 if test -n "$AWK"; then
1389   echo "$as_me:$LINENO: result: $AWK" >&5
1390 echo "${ECHO_T}$AWK" >&6
1391 else
1392   echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1394 fi
1395
1396   test -n "$AWK" && break
1397 done
1398
1399 # Some AWK programs fail, so test it and warn the user
1400 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
1401       { if ((prog == $2) || (("(" prog ")") == $2) ||
1402            (("" prog "") == $2) ||
1403            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
1404 else
1405   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
1406    The regex engine of $AWK is too broken to be used you
1407    might want to install GNU AWK.
1408    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
1409 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
1410    The regex engine of $AWK is too broken to be used you
1411    might want to install GNU AWK.
1412    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
1413    { (exit 1); exit 1; }; }
1414 fi
1415 THE_AWK=$AWK
1416 # Extract the first word of "$THE_AWK", so it can be a program name with args.
1417 set dummy $THE_AWK; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_AWK+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   case $AWK in
1424   [\\/]* | ?:[\\/]*)
1425   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1426   ;;
1427   *)
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
1443   ;;
1444 esac
1445 fi
1446 AWK=$ac_cv_path_AWK
1447
1448 if test -n "$AWK"; then
1449   echo "$as_me:$LINENO: result: $AWK" >&5
1450 echo "${ECHO_T}$AWK" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456
1457
1458 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/version.h`
1459 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/version.h`
1460 echo "configuring for Rescue $VERSION ($DATE)"
1461
1462
1463 # Find a good install program.  We prefer a C program (faster),
1464 # so one script is as good as another.  But avoid the broken or
1465 # incompatible versions:
1466 # SysV /etc/install, /usr/sbin/install
1467 # SunOS /usr/etc/install
1468 # IRIX /sbin/install
1469 # AIX /bin/install
1470 # AmigaOS /C/install, which installs bootblocks on floppy discs
1471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1474 # OS/2's system install, which has a completely different semantic
1475 # ./install, which can be erroneously created by make from ./install.sh.
1476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1478 if test -z "$INSTALL"; then
1479 if test "${ac_cv_path_install+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   # Account for people who put trailing slashes in PATH elements.
1488 case $as_dir/ in
1489   ./ | .// | /cC/* | \
1490   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492   /usr/ucb/* ) ;;
1493   *)
1494     # OSF1 and SCO ODT 3.0 have their own names for install.
1495     # Don't use installbsd from OSF since it installs stuff as root
1496     # by default.
1497     for ac_prog in ginstall scoinst install; do
1498       for ac_exec_ext in '' $ac_executable_extensions; do
1499         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1500           if test $ac_prog = install &&
1501             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1502             # AIX install.  It has an incompatible calling convention.
1503             :
1504           elif test $ac_prog = install &&
1505             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506             # program-specific install script used by HP pwplus--don't use.
1507             :
1508           else
1509             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510             break 3
1511           fi
1512         fi
1513       done
1514     done
1515     ;;
1516 esac
1517 done
1518
1519
1520 fi
1521   if test "${ac_cv_path_install+set}" = set; then
1522     INSTALL=$ac_cv_path_install
1523   else
1524     # As a last resort, use the slow shell script.  We don't cache a
1525     # path for INSTALL within a source directory, because that will
1526     # break other packages using the cache if that directory is
1527     # removed, or if the path is relative.
1528     INSTALL=$ac_install_sh
1529   fi
1530 fi
1531 echo "$as_me:$LINENO: result: $INSTALL" >&5
1532 echo "${ECHO_T}$INSTALL" >&6
1533
1534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535 # It thinks the first close brace ends the variable substitution.
1536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1537
1538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1539
1540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1541
1542 # Extract the first word of "mv", so it can be a program name with args.
1543 set dummy mv; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_path_MV+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   case $MV in
1550   [\\/]* | ?:[\\/]*)
1551   ac_cv_path_MV="$MV" # Let the user override the test with a path.
1552   ;;
1553   *)
1554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   for ac_exec_ext in '' $ac_executable_extensions; do
1560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
1562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563     break 2
1564   fi
1565 done
1566 done
1567
1568   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1569   ;;
1570 esac
1571 fi
1572 MV=$ac_cv_path_MV
1573
1574 if test -n "$MV"; then
1575   echo "$as_me:$LINENO: result: $MV" >&5
1576 echo "${ECHO_T}$MV" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582 # Extract the first word of "rm", so it can be a program name with args.
1583 set dummy rm; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_path_RM+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   case $RM in
1590   [\\/]* | ?:[\\/]*)
1591   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1592   ;;
1593   *)
1594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   for ac_exec_ext in '' $ac_executable_extensions; do
1600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
1602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603     break 2
1604   fi
1605 done
1606 done
1607
1608   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1609   ;;
1610 esac
1611 fi
1612 RM=$ac_cv_path_RM
1613
1614 if test -n "$RM"; then
1615   echo "$as_me:$LINENO: result: $RM" >&5
1616 echo "${ECHO_T}$RM" >&6
1617 else
1618   echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1620 fi
1621
1622 # Extract the first word of "cp", so it can be a program name with args.
1623 set dummy cp; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_path_CP+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   case $CP in
1630   [\\/]* | ?:[\\/]*)
1631   ac_cv_path_CP="$CP" # Let the user override the test with a path.
1632   ;;
1633   *)
1634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   for ac_exec_ext in '' $ac_executable_extensions; do
1640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
1642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643     break 2
1644   fi
1645 done
1646 done
1647
1648   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1649   ;;
1650 esac
1651 fi
1652 CP=$ac_cv_path_CP
1653
1654 if test -n "$CP"; then
1655   echo "$as_me:$LINENO: result: $CP" >&5
1656 echo "${ECHO_T}$CP" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 # Extract the first word of "echo", so it can be a program name with args.
1663 set dummy echo; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_path_ECHO+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   case $ECHO in
1670   [\\/]* | ?:[\\/]*)
1671   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1672   ;;
1673   *)
1674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   for ac_exec_ext in '' $ac_executable_extensions; do
1680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
1682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683     break 2
1684   fi
1685 done
1686 done
1687
1688   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1689   ;;
1690 esac
1691 fi
1692 ECHO=$ac_cv_path_ECHO
1693
1694 if test -n "$ECHO"; then
1695   echo "$as_me:$LINENO: result: $ECHO" >&5
1696 echo "${ECHO_T}$ECHO" >&6
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702 # Extract the first word of "ar", so it can be a program name with args.
1703 set dummy ar; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_path_AR+set}" = set; then
1707   echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709   case $AR in
1710   [\\/]* | ?:[\\/]*)
1711   ac_cv_path_AR="$AR" # Let the user override the test with a path.
1712   ;;
1713   *)
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   for ac_exec_ext in '' $ac_executable_extensions; do
1720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1729   ;;
1730 esac
1731 fi
1732 AR=$ac_cv_path_AR
1733
1734 if test -n "$AR"; then
1735   echo "$as_me:$LINENO: result: $AR" >&5
1736 echo "${ECHO_T}$AR" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 # Extract the first word of "cdrecord", so it can be a program name with args.
1743 set dummy cdrecord; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_path_CDRECORD+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   case $CDRECORD in
1750   [\\/]* | ?:[\\/]*)
1751   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
1752   ;;
1753   *)
1754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
1769   ;;
1770 esac
1771 fi
1772 CDRECORD=$ac_cv_path_CDRECORD
1773
1774 if test -n "$CDRECORD"; then
1775   echo "$as_me:$LINENO: result: $CDRECORD" >&5
1776 echo "${ECHO_T}$CDRECORD" >&6
1777 else
1778   echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782
1783 # Make sure we can run config.sub.
1784 $ac_config_sub sun4 >/dev/null 2>&1 ||
1785   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1786 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1787    { (exit 1); exit 1; }; }
1788
1789 echo "$as_me:$LINENO: checking build system type" >&5
1790 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1791 if test "${ac_cv_build+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   ac_cv_build_alias=$build_alias
1795 test -z "$ac_cv_build_alias" &&
1796   ac_cv_build_alias=`$ac_config_guess`
1797 test -z "$ac_cv_build_alias" &&
1798   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1799 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1800    { (exit 1); exit 1; }; }
1801 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1802   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1803 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1804    { (exit 1); exit 1; }; }
1805
1806 fi
1807 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1808 echo "${ECHO_T}$ac_cv_build" >&6
1809 build=$ac_cv_build
1810 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815
1816 echo "$as_me:$LINENO: checking host system type" >&5
1817 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1818 if test "${ac_cv_host+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   ac_cv_host_alias=$host_alias
1822 test -z "$ac_cv_host_alias" &&
1823   ac_cv_host_alias=$ac_cv_build_alias
1824 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1825   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1826 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1827    { (exit 1); exit 1; }; }
1828
1829 fi
1830 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1831 echo "${ECHO_T}$ac_cv_host" >&6
1832 host=$ac_cv_host
1833 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1834 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1835 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1836
1837
1838 case $host_os in
1839   *cygwin* ) CYGWIN=yes;;
1840          * ) CYGWIN=no;;
1841 esac
1842
1843 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1844 then
1845
1846
1847 if $TRUEPRG; then
1848   HAVE_SUN_OS_TRUE=
1849   HAVE_SUN_OS_FALSE='#'
1850 else
1851   HAVE_SUN_OS_TRUE='#'
1852   HAVE_SUN_OS_FALSE=
1853 fi
1854         cat >>confdefs.h <<\_ACEOF
1855 #define HAVE_SUN_OS 1
1856 _ACEOF
1857
1858 else
1859
1860
1861 if $FALSEPRG; then
1862   HAVE_SUN_OS_TRUE=
1863   HAVE_SUN_OS_FALSE='#'
1864 else
1865   HAVE_SUN_OS_TRUE='#'
1866   HAVE_SUN_OS_FALSE=
1867 fi
1868 fi
1869
1870 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1871 then
1872
1873
1874 if $TRUEPRG; then
1875   HAVE_OSF1_OS_TRUE=
1876   HAVE_OSF1_OS_FALSE='#'
1877 else
1878   HAVE_OSF1_OS_TRUE='#'
1879   HAVE_OSF1_OS_FALSE=
1880 fi
1881         cat >>confdefs.h <<\_ACEOF
1882 #define HAVE_OSF1_OS 1
1883 _ACEOF
1884
1885 else
1886
1887
1888 if $FALSEPRG; then
1889   HAVE_OSF1_OS_TRUE=
1890   HAVE_OSF1_OS_FALSE='#'
1891 else
1892   HAVE_OSF1_OS_TRUE='#'
1893   HAVE_OSF1_OS_FALSE=
1894 fi
1895 fi
1896
1897 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1898 then
1899
1900
1901 if $TRUEPRG; then
1902   HAVE_AIX_OS_TRUE=
1903   HAVE_AIX_OS_FALSE='#'
1904 else
1905   HAVE_AIX_OS_TRUE='#'
1906   HAVE_AIX_OS_FALSE=
1907 fi
1908         cat >>confdefs.h <<\_ACEOF
1909 #define HAVE_AIX_OS 1
1910 _ACEOF
1911
1912 else
1913
1914
1915 if $FALSEPRG; then
1916   HAVE_AIX_OS_TRUE=
1917   HAVE_AIX_OS_FALSE='#'
1918 else
1919   HAVE_AIX_OS_TRUE='#'
1920   HAVE_AIX_OS_FALSE=
1921 fi
1922 fi
1923
1924 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1925 then
1926
1927
1928 if $TRUEPRG; then
1929   HAVE_HPUX_OS_TRUE=
1930   HAVE_HPUX_OS_FALSE='#'
1931 else
1932   HAVE_HPUX_OS_TRUE='#'
1933   HAVE_HPUX_OS_FALSE=
1934 fi
1935         cat >>confdefs.h <<\_ACEOF
1936 #define HAVE_HPUX_OS 1
1937 _ACEOF
1938
1939 else
1940
1941
1942 if $FALSEPRG; then
1943   HAVE_HPUX_OS_TRUE=
1944   HAVE_HPUX_OS_FALSE='#'
1945 else
1946   HAVE_HPUX_OS_TRUE='#'
1947   HAVE_HPUX_OS_FALSE=
1948 fi
1949 fi
1950
1951 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1952 then
1953
1954
1955 if $TRUEPRG; then
1956   HAVE_LINUX_OS_TRUE=
1957   HAVE_LINUX_OS_FALSE='#'
1958 else
1959   HAVE_LINUX_OS_TRUE='#'
1960   HAVE_LINUX_OS_FALSE=
1961 fi
1962         cat >>confdefs.h <<\_ACEOF
1963 #define HAVE_LINUX_OS 1
1964 _ACEOF
1965
1966 else
1967
1968
1969 if $FALSEPRG; then
1970   HAVE_LINUX_OS_TRUE=
1971   HAVE_LINUX_OS_FALSE='#'
1972 else
1973   HAVE_LINUX_OS_TRUE='#'
1974   HAVE_LINUX_OS_FALSE=
1975 fi
1976 fi
1977
1978 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
1979 then
1980
1981
1982 if $TRUEPRG; then
1983   HAVE_FREEBSD_OS_TRUE=
1984   HAVE_FREEBSD_OS_FALSE='#'
1985 else
1986   HAVE_FREEBSD_OS_TRUE='#'
1987   HAVE_FREEBSD_OS_FALSE=
1988 fi
1989         cat >>confdefs.h <<\_ACEOF
1990 #define HAVE_FREEBSD_OS 1
1991 _ACEOF
1992
1993 else
1994
1995
1996 if $FALSEPRG; then
1997   HAVE_FREEBSD_OS_TRUE=
1998   HAVE_FREEBSD_OS_FALSE='#'
1999 else
2000   HAVE_FREEBSD_OS_TRUE='#'
2001   HAVE_FREEBSD_OS_FALSE=
2002 fi
2003 fi
2004
2005 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2006 then
2007
2008
2009 if $TRUEPRG; then
2010   HAVE_NETBSD_OS_TRUE=
2011   HAVE_NETBSD_OS_FALSE='#'
2012 else
2013   HAVE_NETBSD_OS_TRUE='#'
2014   HAVE_NETBSD_OS_FALSE=
2015 fi
2016         cat >>confdefs.h <<\_ACEOF
2017 #define HAVE_NETBSD_OS 1
2018 _ACEOF
2019
2020 else
2021
2022
2023 if $FALSEPRG; then
2024   HAVE_NETBSD_OS_TRUE=
2025   HAVE_NETBSD_OS_FALSE='#'
2026 else
2027   HAVE_NETBSD_OS_TRUE='#'
2028   HAVE_NETBSD_OS_FALSE=
2029 fi
2030 fi
2031
2032 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2033 then
2034
2035
2036 if $TRUEPRG; then
2037   HAVE_OPENBSD_OS_TRUE=
2038   HAVE_OPENBSD_OS_FALSE='#'
2039 else
2040   HAVE_OPENBSD_OS_TRUE='#'
2041   HAVE_OPENBSD_OS_FALSE=
2042 fi
2043         cat >>confdefs.h <<\_ACEOF
2044 #define HAVE_OPENBSD_OS 1
2045 _ACEOF
2046
2047 else
2048
2049
2050 if $FALSEPRG; then
2051   HAVE_OPENBSD_OS_TRUE=
2052   HAVE_OPENBSD_OS_FALSE='#'
2053 else
2054   HAVE_OPENBSD_OS_TRUE='#'
2055   HAVE_OPENBSD_OS_FALSE=
2056 fi
2057 fi
2058
2059 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2060 then
2061
2062
2063 if $TRUEPRG; then
2064   HAVE_BSDI_OS_TRUE=
2065   HAVE_BSDI_OS_FALSE='#'
2066 else
2067   HAVE_BSDI_OS_TRUE='#'
2068   HAVE_BSDI_OS_FALSE=
2069 fi
2070         cat >>confdefs.h <<\_ACEOF
2071 #define HAVE_BSDI_OS 1
2072 _ACEOF
2073
2074 else
2075
2076
2077 if $FALSEPRG; then
2078   HAVE_BSDI_OS_TRUE=
2079   HAVE_BSDI_OS_FALSE='#'
2080 else
2081   HAVE_BSDI_OS_TRUE='#'
2082   HAVE_BSDI_OS_FALSE=
2083 fi
2084 fi
2085
2086 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2087 then
2088
2089
2090 if $TRUEPRG; then
2091   HAVE_SGI_OS_TRUE=
2092   HAVE_SGI_OS_FALSE='#'
2093 else
2094   HAVE_SGI_OS_TRUE='#'
2095   HAVE_SGI_OS_FALSE=
2096 fi
2097         cat >>confdefs.h <<\_ACEOF
2098 #define HAVE_SGI_OS 1
2099 _ACEOF
2100
2101 else
2102
2103
2104 if $FALSEPRG; then
2105   HAVE_SGI_OS_TRUE=
2106   HAVE_SGI_OS_FALSE='#'
2107 else
2108   HAVE_SGI_OS_TRUE='#'
2109   HAVE_SGI_OS_FALSE=
2110 fi
2111 fi
2112
2113 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2114 then
2115
2116
2117 if $TRUEPRG; then
2118   HAVE_IRIX_OS_TRUE=
2119   HAVE_IRIX_OS_FALSE='#'
2120 else
2121   HAVE_IRIX_OS_TRUE='#'
2122   HAVE_IRIX_OS_FALSE=
2123 fi
2124         cat >>confdefs.h <<\_ACEOF
2125 #define HAVE_IRIX_OS 1
2126 _ACEOF
2127
2128 else
2129
2130
2131 if $FALSEPRG; then
2132   HAVE_IRIX_OS_TRUE=
2133   HAVE_IRIX_OS_FALSE='#'
2134 else
2135   HAVE_IRIX_OS_TRUE='#'
2136   HAVE_IRIX_OS_FALSE=
2137 fi
2138 fi
2139
2140 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2141 then
2142
2143
2144 if $TRUEPRG; then
2145   HAVE_DARWIN_OS_TRUE=
2146   HAVE_DARWIN_OS_FALSE='#'
2147 else
2148   HAVE_DARWIN_OS_TRUE='#'
2149   HAVE_DARWIN_OS_FALSE=
2150 fi
2151     cat >>confdefs.h <<\_ACEOF
2152 #define HAVE_DARWIN_OS 1
2153 _ACEOF
2154
2155 else
2156
2157
2158 if $FALSEPRG; then
2159   HAVE_DARWIN_OS_TRUE=
2160   HAVE_DARWIN_OS_FALSE='#'
2161 else
2162   HAVE_DARWIN_OS_TRUE='#'
2163   HAVE_DARWIN_OS_FALSE=
2164 fi
2165 fi
2166
2167
2168 # -----------------------------------------------------------
2169 # ----------------------------------------------------------
2170 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
2171 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
2172 if test "x$DISTNAME" != "x"
2173 then
2174         echo "distname set to $DISTNAME"
2175 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2176 then
2177         DISTNAME=alpha
2178 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2179 then
2180         DISTNAME=aix
2181 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2182 then
2183         DISTNAME=hpux
2184 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2185 then
2186         DISTNAME=solaris
2187 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2188 then
2189         DISTNAME=freebsd
2190 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2191 then
2192         DISTNAME=netbsd
2193 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2194 then
2195         DISTNAME=openbsd
2196 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2197 then
2198         DISTNAME=irix
2199 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2200 then
2201         DISTNAME=bsdi
2202 elif test -f /etc/SuSE-release
2203 then
2204         DISTNAME=suse
2205 elif test -d /etc/SuSEconfig
2206 then
2207         DISTNAME=suse5
2208 elif test -f /etc/mandrake-release
2209 then
2210         DISTNAME=mandrake
2211 elif test -f /etc/whitebox-release
2212 then
2213        DISTNAME=redhat
2214 elif test -f /etc/redhat-release
2215 then
2216         DISTNAME=redhat
2217 elif test -f /etc/gentoo-release
2218 then
2219         DISTNAME=gentoo
2220 elif test -f /etc/debian_version
2221 then
2222         DISTNAME=debian
2223 elif test -f /etc/slackware-version
2224 then
2225         DISTNAME=slackware
2226 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2227 then
2228     DISTNAME=darwin
2229 elif test -f /etc/engarde-version
2230 then
2231         DISTNAME=engarde
2232 elif test "$CYGWIN" = yes
2233 then
2234         DISTNAME=cygwin
2235         cat >>confdefs.h <<\_ACEOF
2236 #define HAVE_CYGWIN 1
2237 _ACEOF
2238
2239 else
2240         DISTNAME=unknown
2241 fi
2242 echo "$as_me:$LINENO: result: done" >&5
2243 echo "${ECHO_T}done" >&6
2244
2245
2246 # -------------------------------------------------------------------------
2247 #  If the user has not set --exec-prefix, we default to ${prefix}
2248 # -------------------------------------------------------------------------
2249 if test x${exec_prefix} = xNONE ; then
2250     exec_prefix=${prefix}
2251 fi
2252
2253 # -------------------------------------------
2254 # check for cdrecord writer location
2255 # get scsibus,target,lun
2256 # -------------------------------------------
2257 CDSTL="3,0,0"
2258 if test ! x$CDRECORD = x ; then
2259    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
2260    if test x${CDSTL} = x ; then
2261       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
2262    fi
2263    if test x${CDSTL} = x ; then
2264       CDSTL="3,0,0"
2265    fi
2266 fi
2267
2268
2269
2270 # -------------------------------------------
2271 # static-fd    (default off)
2272 # -------------------------------------------
2273 # Check whether --enable-static-fd or --disable-static-fd was given.
2274 if test "${enable_static_fd+set}" = set; then
2275   enableval="$enable_static_fd"
2276   if test x$enableval = xyes; then
2277      support_static_fd=yes
2278    fi
2279 fi;
2280
2281 STATIC_FD=
2282 if test x$support_static_fd = xyes; then
2283    STATIC_FD="static-bacula-fd"
2284 fi
2285
2286
2287 where=
2288 # ------------------------------------------
2289 # Where to get iso
2290 # ------------------------------------------
2291
2292 # Check whether --with-iso or --without-iso was given.
2293 if test "${with_iso+set}" = set; then
2294   withval="$with_iso"
2295
2296        if test "x$withval" != "xno" ; then
2297            where=$withval
2298            type=iso
2299        fi
2300
2301
2302 fi;
2303
2304
2305 # ------------------------------------------
2306 # Where to get cdrom
2307 # ------------------------------------------
2308
2309 # Check whether --with-cdrom or --without-cdrom was given.
2310 if test "${with_cdrom+set}" = set; then
2311   withval="$with_cdrom"
2312
2313        if test "x$withval" != "xno" ; then
2314           where=$withval
2315           type=cdrom
2316        fi
2317
2318
2319 fi;
2320
2321
2322
2323
2324 # ------------------------------------------
2325 # Where to get Bacula source
2326 # ------------------------------------------
2327
2328 # Check whether --with-bacula or --without-bacula was given.
2329 if test "${with_bacula+set}" = set; then
2330   withval="$with_bacula"
2331
2332        if test "x$withval" != "xno" ; then
2333           bacula=$withval
2334        fi
2335
2336
2337 fi;
2338
2339 if test x${bacula} = x; then
2340    { { echo "$as_me:$LINENO: error: Missing --with-bacula=PATH" >&5
2341 echo "$as_me: error: Missing --with-bacula=PATH" >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345
2346
2347
2348 #
2349 # Finally we set appropriate distribution specific
2350 #  variables and defaults
2351 #
2352 # PFILES are platform specific files
2353 PFILES=""
2354 WIN32=
2355 MACOSX=
2356 hostname=`uname -n | cut -d '.' -f 1`
2357 case "$DISTNAME" in
2358 aix)
2359         DISTVER=`uname -r`
2360   ;;
2361 alpha)
2362         DISTVER=`uname -r`
2363   ;;
2364 bsdi)
2365         DISTVER=`uname -a |awk '{print $3}'`
2366   ;;
2367 cygwin)
2368         DISTVER=`uname -a |awk '{print $3}'`
2369         WIN32=win32
2370   ;;
2371 darwin)
2372         DISTVER=`uname -r`
2373   ;;
2374 debian)
2375         DISTVER=`cat /etc/debian_version`
2376   ;;
2377 freebsd)
2378         DISTVER=`uname -a |awk '{print $3}'`
2379   ;;
2380 hpux)
2381         DISTVER=`uname -r`
2382   ;;
2383 irix)
2384         DISTVER=`uname -r`
2385   ;;
2386 netbsd)
2387         DISTVER=`uname -a |awk '{print $3}'`
2388   ;;
2389 openbsd)
2390         DISTVER=`uname -a |awk '{print $3}'`
2391   ;;
2392 redhat)
2393         if test -f /etc/whitebox-release ; then
2394            f=/etc/whitebox-release
2395         else
2396            f=/etc/redhat-release
2397         fi
2398         if test `cat $f | grep release |\
2399                    cut -f 3 -d ' '`x = "Enterprise"x ; then
2400            DISTVER="Enterprise "`cat $f | grep release |\
2401                     cut -f 6 -d ' '`
2402         else
2403             DISTVER=`cat /etc/redhat-release | grep release |\
2404                      cut -f 5 -d ' '`
2405         fi
2406         hostname=`hostname -s`
2407   ;;
2408 mandrake)
2409         DISTVER=`cat /etc/mandrake-release | grep release |\
2410            cut -f 5 -d ' '`
2411   ;;
2412 gentoo)
2413         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
2414   ;;
2415 slackware)
2416         DISTVER=`cat /etc/slackware-version`
2417   ;;
2418 solaris)
2419         DISTVER=`uname -r`
2420   ;;
2421 suse)
2422         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
2423             cut -f 3 -d ' '`
2424   ;;
2425 suse5)
2426         DISTNAME=suse
2427         DISTVER=5.x
2428   ;;
2429 unknown)
2430         DISTVER=unknown
2431   ;;
2432 *)
2433   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
2434   ;;
2435 esac
2436
2437
2438
2439
2440
2441
2442 MCOMMON=./autoconf/Make.common
2443
2444
2445
2446                                                                                           ac_config_files="$ac_config_files autoconf/Make.common Makefile linux/Makefile linux/cdrom/Makefile linux/cdrom/bacula/Makefile linux/cdrom/cdtree/boot/isolinux/boot.msg freebsd/Makefile solaris/Makefile $PFILES"
2447           ac_config_commands="$ac_config_commands default"
2448 cat >confcache <<\_ACEOF
2449 # This file is a shell script that caches the results of configure
2450 # tests run on this system so they can be shared between configure
2451 # scripts and configure runs, see configure's option --config-cache.
2452 # It is not useful on other systems.  If it contains results you don't
2453 # want to keep, you may remove or edit it.
2454 #
2455 # config.status only pays attention to the cache file if you give it
2456 # the --recheck option to rerun configure.
2457 #
2458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2460 # following values.
2461
2462 _ACEOF
2463
2464 # The following way of writing the cache mishandles newlines in values,
2465 # but we know of no workaround that is simple, portable, and efficient.
2466 # So, don't put newlines in cache variables' values.
2467 # Ultrix sh set writes to stderr and can't be redirected directly,
2468 # and sets the high bit in the cache file unless we assign to the vars.
2469 {
2470   (set) 2>&1 |
2471     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2472     *ac_space=\ *)
2473       # `set' does not quote correctly, so add quotes (double-quote
2474       # substitution turns \\\\ into \\, and sed turns \\ into \).
2475       sed -n \
2476         "s/'/'\\\\''/g;
2477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2478       ;;
2479     *)
2480       # `set' quotes correctly as required by POSIX, so do not add quotes.
2481       sed -n \
2482         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2483       ;;
2484     esac;
2485 } |
2486   sed '
2487      t clear
2488      : clear
2489      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2490      t end
2491      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2492      : end' >>confcache
2493 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2494   if test -w $cache_file; then
2495     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2496     cat confcache >$cache_file
2497   else
2498     echo "not updating unwritable cache $cache_file"
2499   fi
2500 fi
2501 rm -f confcache
2502
2503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2504 # Let make expand exec_prefix.
2505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2506
2507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2509 # trailing colons and then remove the whole line if VPATH becomes empty
2510 # (actually we leave an empty line to preserve line numbers).
2511 if test "x$srcdir" = x.; then
2512   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2513 s/:*\$(srcdir):*/:/;
2514 s/:*\${srcdir}:*/:/;
2515 s/:*@srcdir@:*/:/;
2516 s/^\([^=]*=[     ]*\):*/\1/;
2517 s/:*$//;
2518 s/^[^=]*=[       ]*$//;
2519 }'
2520 fi
2521
2522 # Transform confdefs.h into DEFS.
2523 # Protect against shell expansion while executing Makefile rules.
2524 # Protect against Makefile macro expansion.
2525 #
2526 # If the first sed substitution is executed (which looks for macros that
2527 # take arguments), then we branch to the quote section.  Otherwise,
2528 # look for a macro that doesn't take arguments.
2529 cat >confdef2opt.sed <<\_ACEOF
2530 t clear
2531 : clear
2532 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2533 t quote
2534 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2535 t quote
2536 d
2537 : quote
2538 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
2539 s,\[,\\&,g
2540 s,\],\\&,g
2541 s,\$,$$,g
2542 p
2543 _ACEOF
2544 # We use echo to avoid assuming a particular line-breaking character.
2545 # The extra dot is to prevent the shell from consuming trailing
2546 # line-breaks from the sub-command output.  A line-break within
2547 # single-quotes doesn't work because, if this script is created in a
2548 # platform that uses two characters for line-breaks (e.g., DOS), tr
2549 # would break.
2550 ac_LF_and_DOT=`echo; echo .`
2551 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2552 rm -f confdef2opt.sed
2553
2554
2555 ac_libobjs=
2556 ac_ltlibobjs=
2557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2558   # 1. Remove the extension, and $U if already installed.
2559   ac_i=`echo "$ac_i" |
2560          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2561   # 2. Add them.
2562   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2563   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2564 done
2565 LIBOBJS=$ac_libobjs
2566
2567 LTLIBOBJS=$ac_ltlibobjs
2568
2569
2570
2571 : ${CONFIG_STATUS=./config.status}
2572 ac_clean_files_save=$ac_clean_files
2573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2576 cat >$CONFIG_STATUS <<_ACEOF
2577 #! $SHELL
2578 # Generated by $as_me.
2579 # Run this file to recreate the current configuration.
2580 # Compiler output produced by configure, useful for debugging
2581 # configure, is in config.log if it exists.
2582
2583 debug=false
2584 ac_cs_recheck=false
2585 ac_cs_silent=false
2586 SHELL=\${CONFIG_SHELL-$SHELL}
2587 _ACEOF
2588
2589 cat >>$CONFIG_STATUS <<\_ACEOF
2590 ## --------------------- ##
2591 ## M4sh Initialization.  ##
2592 ## --------------------- ##
2593
2594 # Be Bourne compatible
2595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2596   emulate sh
2597   NULLCMD=:
2598   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2599   # is contrary to our usage.  Disable this feature.
2600   alias -g '${1+"$@"}'='"$@"'
2601 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2602   set -o posix
2603 fi
2604 DUALCASE=1; export DUALCASE # for MKS sh
2605
2606 # Support unset when possible.
2607 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2608   as_unset=unset
2609 else
2610   as_unset=false
2611 fi
2612
2613
2614 # Work around bugs in pre-3.0 UWIN ksh.
2615 $as_unset ENV MAIL MAILPATH
2616 PS1='$ '
2617 PS2='> '
2618 PS4='+ '
2619
2620 # NLS nuisances.
2621 for as_var in \
2622   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2623   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2624   LC_TELEPHONE LC_TIME
2625 do
2626   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2627     eval $as_var=C; export $as_var
2628   else
2629     $as_unset $as_var
2630   fi
2631 done
2632
2633 # Required to use basename.
2634 if expr a : '\(a\)' >/dev/null 2>&1; then
2635   as_expr=expr
2636 else
2637   as_expr=false
2638 fi
2639
2640 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2641   as_basename=basename
2642 else
2643   as_basename=false
2644 fi
2645
2646
2647 # Name of the executable.
2648 as_me=`$as_basename "$0" ||
2649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2650          X"$0" : 'X\(//\)$' \| \
2651          X"$0" : 'X\(/\)$' \| \
2652          .     : '\(.\)' 2>/dev/null ||
2653 echo X/"$0" |
2654     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2655           /^X\/\(\/\/\)$/{ s//\1/; q; }
2656           /^X\/\(\/\).*/{ s//\1/; q; }
2657           s/.*/./; q'`
2658
2659
2660 # PATH needs CR, and LINENO needs CR and PATH.
2661 # Avoid depending upon Character Ranges.
2662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2665 as_cr_digits='0123456789'
2666 as_cr_alnum=$as_cr_Letters$as_cr_digits
2667
2668 # The user is always right.
2669 if test "${PATH_SEPARATOR+set}" != set; then
2670   echo "#! /bin/sh" >conf$$.sh
2671   echo  "exit 0"   >>conf$$.sh
2672   chmod +x conf$$.sh
2673   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2674     PATH_SEPARATOR=';'
2675   else
2676     PATH_SEPARATOR=:
2677   fi
2678   rm -f conf$$.sh
2679 fi
2680
2681
2682   as_lineno_1=$LINENO
2683   as_lineno_2=$LINENO
2684   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2685   test "x$as_lineno_1" != "x$as_lineno_2" &&
2686   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2687   # Find who we are.  Look in the path if we contain no path at all
2688   # relative or not.
2689   case $0 in
2690     *[\\/]* ) as_myself=$0 ;;
2691     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2697 done
2698
2699        ;;
2700   esac
2701   # We did not find ourselves, most probably we were run as `sh COMMAND'
2702   # in which case we are not to be found in the path.
2703   if test "x$as_myself" = x; then
2704     as_myself=$0
2705   fi
2706   if test ! -f "$as_myself"; then
2707     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2708 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2709    { (exit 1); exit 1; }; }
2710   fi
2711   case $CONFIG_SHELL in
2712   '')
2713     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718   for as_base in sh bash ksh sh5; do
2719          case $as_dir in
2720          /*)
2721            if ("$as_dir/$as_base" -c '
2722   as_lineno_1=$LINENO
2723   as_lineno_2=$LINENO
2724   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2725   test "x$as_lineno_1" != "x$as_lineno_2" &&
2726   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2727              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2728              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2729              CONFIG_SHELL=$as_dir/$as_base
2730              export CONFIG_SHELL
2731              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2732            fi;;
2733          esac
2734        done
2735 done
2736 ;;
2737   esac
2738
2739   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2740   # uniformly replaced by the line number.  The first 'sed' inserts a
2741   # line-number line before each line; the second 'sed' does the real
2742   # work.  The second script uses 'N' to pair each line-number line
2743   # with the numbered line, and appends trailing '-' during
2744   # substitution so that $LINENO is not a special case at line end.
2745   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2746   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2747   sed '=' <$as_myself |
2748     sed '
2749       N
2750       s,$,-,
2751       : loop
2752       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2753       t loop
2754       s,-$,,
2755       s,^['$as_cr_digits']*\n,,
2756     ' >$as_me.lineno &&
2757   chmod +x $as_me.lineno ||
2758     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2759 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2760    { (exit 1); exit 1; }; }
2761
2762   # Don't try to exec as it changes $[0], causing all sort of problems
2763   # (the dirname of $[0] is not the place where we might find the
2764   # original and so on.  Autoconf is especially sensible to this).
2765   . ./$as_me.lineno
2766   # Exit status is that of the last command.
2767   exit
2768 }
2769
2770
2771 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2772   *c*,-n*) ECHO_N= ECHO_C='
2773 ' ECHO_T='      ' ;;
2774   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2775   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2776 esac
2777
2778 if expr a : '\(a\)' >/dev/null 2>&1; then
2779   as_expr=expr
2780 else
2781   as_expr=false
2782 fi
2783
2784 rm -f conf$$ conf$$.exe conf$$.file
2785 echo >conf$$.file
2786 if ln -s conf$$.file conf$$ 2>/dev/null; then
2787   # We could just check for DJGPP; but this test a) works b) is more generic
2788   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2789   if test -f conf$$.exe; then
2790     # Don't use ln at all; we don't have any links
2791     as_ln_s='cp -p'
2792   else
2793     as_ln_s='ln -s'
2794   fi
2795 elif ln conf$$.file conf$$ 2>/dev/null; then
2796   as_ln_s=ln
2797 else
2798   as_ln_s='cp -p'
2799 fi
2800 rm -f conf$$ conf$$.exe conf$$.file
2801
2802 if mkdir -p . 2>/dev/null; then
2803   as_mkdir_p=:
2804 else
2805   test -d ./-p && rmdir ./-p
2806   as_mkdir_p=false
2807 fi
2808
2809 as_executable_p="test -f"
2810
2811 # Sed expression to map a string onto a valid CPP name.
2812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2813
2814 # Sed expression to map a string onto a valid variable name.
2815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2816
2817
2818 # IFS
2819 # We need space, tab and new line, in precisely that order.
2820 as_nl='
2821 '
2822 IFS="   $as_nl"
2823
2824 # CDPATH.
2825 $as_unset CDPATH
2826
2827 exec 6>&1
2828
2829 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2830 # report actual input values of CONFIG_FILES etc. instead of their
2831 # values after options handling.  Logging --version etc. is OK.
2832 exec 5>>config.log
2833 {
2834   echo
2835   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2836 ## Running $as_me. ##
2837 _ASBOX
2838 } >&5
2839 cat >&5 <<_CSEOF
2840
2841 This file was extended by $as_me, which was
2842 generated by GNU Autoconf 2.59.  Invocation command line was
2843
2844   CONFIG_FILES    = $CONFIG_FILES
2845   CONFIG_HEADERS  = $CONFIG_HEADERS
2846   CONFIG_LINKS    = $CONFIG_LINKS
2847   CONFIG_COMMANDS = $CONFIG_COMMANDS
2848   $ $0 $@
2849
2850 _CSEOF
2851 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2852 echo >&5
2853 _ACEOF
2854
2855 # Files that config.status was made for.
2856 if test -n "$ac_config_files"; then
2857   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2858 fi
2859
2860 if test -n "$ac_config_headers"; then
2861   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2862 fi
2863
2864 if test -n "$ac_config_links"; then
2865   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2866 fi
2867
2868 if test -n "$ac_config_commands"; then
2869   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2870 fi
2871
2872 cat >>$CONFIG_STATUS <<\_ACEOF
2873
2874 ac_cs_usage="\
2875 \`$as_me' instantiates files from templates according to the
2876 current configuration.
2877
2878 Usage: $0 [OPTIONS] [FILE]...
2879
2880   -h, --help       print this help, then exit
2881   -V, --version    print version number, then exit
2882   -q, --quiet      do not print progress messages
2883   -d, --debug      don't remove temporary files
2884       --recheck    update $as_me by reconfiguring in the same conditions
2885   --file=FILE[:TEMPLATE]
2886                    instantiate the configuration file FILE
2887
2888 Configuration files:
2889 $config_files
2890
2891 Configuration commands:
2892 $config_commands
2893
2894 Report bugs to <bug-autoconf@gnu.org>."
2895 _ACEOF
2896
2897 cat >>$CONFIG_STATUS <<_ACEOF
2898 ac_cs_version="\\
2899 config.status
2900 configured by $0, generated by GNU Autoconf 2.59,
2901   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2902
2903 Copyright (C) 2003 Free Software Foundation, Inc.
2904 This config.status script is free software; the Free Software Foundation
2905 gives unlimited permission to copy, distribute and modify it."
2906 srcdir=$srcdir
2907 INSTALL="$INSTALL"
2908 _ACEOF
2909
2910 cat >>$CONFIG_STATUS <<\_ACEOF
2911 # If no file are specified by the user, then we need to provide default
2912 # value.  By we need to know if files were specified by the user.
2913 ac_need_defaults=:
2914 while test $# != 0
2915 do
2916   case $1 in
2917   --*=*)
2918     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2919     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2920     ac_shift=:
2921     ;;
2922   -*)
2923     ac_option=$1
2924     ac_optarg=$2
2925     ac_shift=shift
2926     ;;
2927   *) # This is not an option, so the user has probably given explicit
2928      # arguments.
2929      ac_option=$1
2930      ac_need_defaults=false;;
2931   esac
2932
2933   case $ac_option in
2934   # Handling of the options.
2935 _ACEOF
2936 cat >>$CONFIG_STATUS <<\_ACEOF
2937   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2938     ac_cs_recheck=: ;;
2939   --version | --vers* | -V )
2940     echo "$ac_cs_version"; exit 0 ;;
2941   --he | --h)
2942     # Conflict between --help and --header
2943     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2944 Try \`$0 --help' for more information." >&5
2945 echo "$as_me: error: ambiguous option: $1
2946 Try \`$0 --help' for more information." >&2;}
2947    { (exit 1); exit 1; }; };;
2948   --help | --hel | -h )
2949     echo "$ac_cs_usage"; exit 0 ;;
2950   --debug | --d* | -d )
2951     debug=: ;;
2952   --file | --fil | --fi | --f )
2953     $ac_shift
2954     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2955     ac_need_defaults=false;;
2956   --header | --heade | --head | --hea )
2957     $ac_shift
2958     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2959     ac_need_defaults=false;;
2960   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2961   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2962     ac_cs_silent=: ;;
2963
2964   # This is an error.
2965   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2966 Try \`$0 --help' for more information." >&5
2967 echo "$as_me: error: unrecognized option: $1
2968 Try \`$0 --help' for more information." >&2;}
2969    { (exit 1); exit 1; }; } ;;
2970
2971   *) ac_config_targets="$ac_config_targets $1" ;;
2972
2973   esac
2974   shift
2975 done
2976
2977 ac_configure_extra_args=
2978
2979 if $ac_cs_silent; then
2980   exec 6>/dev/null
2981   ac_configure_extra_args="$ac_configure_extra_args --silent"
2982 fi
2983
2984 _ACEOF
2985 cat >>$CONFIG_STATUS <<_ACEOF
2986 if \$ac_cs_recheck; then
2987   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2988   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2989 fi
2990
2991 _ACEOF
2992
2993
2994
2995
2996
2997 cat >>$CONFIG_STATUS <<\_ACEOF
2998 for ac_config_target in $ac_config_targets
2999 do
3000   case "$ac_config_target" in
3001   # Handling of arguments.
3002   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
3003   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3004   "linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/Makefile" ;;
3005   "linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/cdrom/Makefile" ;;
3006   "linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/cdrom/bacula/Makefile" ;;
3007   "linux/cdrom/cdtree/boot/isolinux/boot.msg" ) CONFIG_FILES="$CONFIG_FILES linux/cdrom/cdtree/boot/isolinux/boot.msg" ;;
3008   "freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;;
3009   "solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
3010   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
3011   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
3012   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3014    { (exit 1); exit 1; }; };;
3015   esac
3016 done
3017
3018 # If the user did not use the arguments to specify the items to instantiate,
3019 # then the envvar interface is used.  Set only those that are not.
3020 # We use the long form for the default assignment because of an extremely
3021 # bizarre bug on SunOS 4.1.3.
3022 if $ac_need_defaults; then
3023   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3024   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3025 fi
3026
3027 # Have a temporary directory for convenience.  Make it in the build tree
3028 # simply because there is no reason to put it here, and in addition,
3029 # creating and moving files from /tmp can sometimes cause problems.
3030 # Create a temporary directory, and hook for its removal unless debugging.
3031 $debug ||
3032 {
3033   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3034   trap '{ (exit 1); exit 1; }' 1 2 13 15
3035 }
3036
3037 # Create a (secure) tmp directory for tmp files.
3038
3039 {
3040   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3041   test -n "$tmp" && test -d "$tmp"
3042 }  ||
3043 {
3044   tmp=./confstat$$-$RANDOM
3045   (umask 077 && mkdir $tmp)
3046 } ||
3047 {
3048    echo "$me: cannot create a temporary directory in ." >&2
3049    { (exit 1); exit 1; }
3050 }
3051
3052 _ACEOF
3053
3054 cat >>$CONFIG_STATUS <<_ACEOF
3055
3056 #
3057 # CONFIG_FILES section.
3058 #
3059
3060 # No need to generate the scripts if there are no CONFIG_FILES.
3061 # This happens for instance when ./config.status config.h
3062 if test -n "\$CONFIG_FILES"; then
3063   # Protect against being on the right side of a sed subst in config.status.
3064   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3065    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3066 s,@SHELL@,$SHELL,;t t
3067 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3068 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3069 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3070 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3071 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3072 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3073 s,@exec_prefix@,$exec_prefix,;t t
3074 s,@prefix@,$prefix,;t t
3075 s,@program_transform_name@,$program_transform_name,;t t
3076 s,@bindir@,$bindir,;t t
3077 s,@sbindir@,$sbindir,;t t
3078 s,@libexecdir@,$libexecdir,;t t
3079 s,@datadir@,$datadir,;t t
3080 s,@sysconfdir@,$sysconfdir,;t t
3081 s,@sharedstatedir@,$sharedstatedir,;t t
3082 s,@localstatedir@,$localstatedir,;t t
3083 s,@libdir@,$libdir,;t t
3084 s,@includedir@,$includedir,;t t
3085 s,@oldincludedir@,$oldincludedir,;t t
3086 s,@infodir@,$infodir,;t t
3087 s,@mandir@,$mandir,;t t
3088 s,@build_alias@,$build_alias,;t t
3089 s,@host_alias@,$host_alias,;t t
3090 s,@target_alias@,$target_alias,;t t
3091 s,@DEFS@,$DEFS,;t t
3092 s,@ECHO_C@,$ECHO_C,;t t
3093 s,@ECHO_N@,$ECHO_N,;t t
3094 s,@ECHO_T@,$ECHO_T,;t t
3095 s,@LIBS@,$LIBS,;t t
3096 s,@BUILD_DIR@,$BUILD_DIR,;t t
3097 s,@TRUEPRG@,$TRUEPRG,;t t
3098 s,@FALSEPRG@,$FALSEPRG,;t t
3099 s,@AWK@,$AWK,;t t
3100 s,@VERSION@,$VERSION,;t t
3101 s,@DATE@,$DATE,;t t
3102 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3103 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3104 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3105 s,@MV@,$MV,;t t
3106 s,@RM@,$RM,;t t
3107 s,@CP@,$CP,;t t
3108 s,@ECHO@,$ECHO,;t t
3109 s,@AR@,$AR,;t t
3110 s,@CDRECORD@,$CDRECORD,;t t
3111 s,@build@,$build,;t t
3112 s,@build_cpu@,$build_cpu,;t t
3113 s,@build_vendor@,$build_vendor,;t t
3114 s,@build_os@,$build_os,;t t
3115 s,@host@,$host,;t t
3116 s,@host_cpu@,$host_cpu,;t t
3117 s,@host_vendor@,$host_vendor,;t t
3118 s,@host_os@,$host_os,;t t
3119 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
3120 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
3121 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
3122 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
3123 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
3124 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
3125 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
3126 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
3127 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
3128 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
3129 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
3130 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
3131 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
3132 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
3133 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
3134 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
3135 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
3136 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
3137 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
3138 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
3139 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
3140 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
3141 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
3142 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
3143 s,@CDSTL@,$CDSTL,;t t
3144 s,@STATIC_FD@,$STATIC_FD,;t t
3145 s,@iso@,$iso,;t t
3146 s,@where@,$where,;t t
3147 s,@type@,$type,;t t
3148 s,@bacula@,$bacula,;t t
3149 s,@hostname@,$hostname,;t t
3150 s,@DISTNAME@,$DISTNAME,;t t
3151 s,@DISTVER@,$DISTVER,;t t
3152 s,@LIBOBJS@,$LIBOBJS,;t t
3153 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3154 /@MCOMMON@/r $MCOMMON
3155 s,@MCOMMON@,,;t t
3156 CEOF
3157
3158 _ACEOF
3159
3160   cat >>$CONFIG_STATUS <<\_ACEOF
3161   # Split the substitutions into bite-sized pieces for seds with
3162   # small command number limits, like on Digital OSF/1 and HP-UX.
3163   ac_max_sed_lines=48
3164   ac_sed_frag=1 # Number of current file.
3165   ac_beg=1 # First line for current file.
3166   ac_end=$ac_max_sed_lines # Line after last line for current file.
3167   ac_more_lines=:
3168   ac_sed_cmds=
3169   while $ac_more_lines; do
3170     if test $ac_beg -gt 1; then
3171       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3172     else
3173       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3174     fi
3175     if test ! -s $tmp/subs.frag; then
3176       ac_more_lines=false
3177     else
3178       # The purpose of the label and of the branching condition is to
3179       # speed up the sed processing (if there are no `@' at all, there
3180       # is no need to browse any of the substitutions).
3181       # These are the two extra sed commands mentioned above.
3182       (echo ':t
3183   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3184       if test -z "$ac_sed_cmds"; then
3185         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3186       else
3187         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3188       fi
3189       ac_sed_frag=`expr $ac_sed_frag + 1`
3190       ac_beg=$ac_end
3191       ac_end=`expr $ac_end + $ac_max_sed_lines`
3192     fi
3193   done
3194   if test -z "$ac_sed_cmds"; then
3195     ac_sed_cmds=cat
3196   fi
3197 fi # test -n "$CONFIG_FILES"
3198
3199 _ACEOF
3200 cat >>$CONFIG_STATUS <<\_ACEOF
3201 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3202   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3203   case $ac_file in
3204   - | *:- | *:-:* ) # input from stdin
3205         cat >$tmp/stdin
3206         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3207         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3208   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3209         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3210   * )   ac_file_in=$ac_file.in ;;
3211   esac
3212
3213   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3214   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3216          X"$ac_file" : 'X\(//\)[^/]' \| \
3217          X"$ac_file" : 'X\(//\)$' \| \
3218          X"$ac_file" : 'X\(/\)' \| \
3219          .     : '\(.\)' 2>/dev/null ||
3220 echo X"$ac_file" |
3221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3222           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3223           /^X\(\/\/\)$/{ s//\1/; q; }
3224           /^X\(\/\).*/{ s//\1/; q; }
3225           s/.*/./; q'`
3226   { if $as_mkdir_p; then
3227     mkdir -p "$ac_dir"
3228   else
3229     as_dir="$ac_dir"
3230     as_dirs=
3231     while test ! -d "$as_dir"; do
3232       as_dirs="$as_dir $as_dirs"
3233       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3235          X"$as_dir" : 'X\(//\)[^/]' \| \
3236          X"$as_dir" : 'X\(//\)$' \| \
3237          X"$as_dir" : 'X\(/\)' \| \
3238          .     : '\(.\)' 2>/dev/null ||
3239 echo X"$as_dir" |
3240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3242           /^X\(\/\/\)$/{ s//\1/; q; }
3243           /^X\(\/\).*/{ s//\1/; q; }
3244           s/.*/./; q'`
3245     done
3246     test ! -n "$as_dirs" || mkdir $as_dirs
3247   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3248 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3249    { (exit 1); exit 1; }; }; }
3250
3251   ac_builddir=.
3252
3253 if test "$ac_dir" != .; then
3254   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3255   # A "../" for each directory in $ac_dir_suffix.
3256   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3257 else
3258   ac_dir_suffix= ac_top_builddir=
3259 fi
3260
3261 case $srcdir in
3262   .)  # No --srcdir option.  We are building in place.
3263     ac_srcdir=.
3264     if test -z "$ac_top_builddir"; then
3265        ac_top_srcdir=.
3266     else
3267        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3268     fi ;;
3269   [\\/]* | ?:[\\/]* )  # Absolute path.
3270     ac_srcdir=$srcdir$ac_dir_suffix;
3271     ac_top_srcdir=$srcdir ;;
3272   *) # Relative path.
3273     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3274     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3275 esac
3276
3277 # Do not use `cd foo && pwd` to compute absolute paths, because
3278 # the directories may not exist.
3279 case `pwd` in
3280 .) ac_abs_builddir="$ac_dir";;
3281 *)
3282   case "$ac_dir" in
3283   .) ac_abs_builddir=`pwd`;;
3284   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3285   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3286   esac;;
3287 esac
3288 case $ac_abs_builddir in
3289 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3290 *)
3291   case ${ac_top_builddir}. in
3292   .) ac_abs_top_builddir=$ac_abs_builddir;;
3293   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3294   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3295   esac;;
3296 esac
3297 case $ac_abs_builddir in
3298 .) ac_abs_srcdir=$ac_srcdir;;
3299 *)
3300   case $ac_srcdir in
3301   .) ac_abs_srcdir=$ac_abs_builddir;;
3302   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3303   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3304   esac;;
3305 esac
3306 case $ac_abs_builddir in
3307 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3308 *)
3309   case $ac_top_srcdir in
3310   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3311   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3312   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3313   esac;;
3314 esac
3315
3316
3317   case $INSTALL in
3318   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3319   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3320   esac
3321
3322   if test x"$ac_file" != x-; then
3323     { echo "$as_me:$LINENO: creating $ac_file" >&5
3324 echo "$as_me: creating $ac_file" >&6;}
3325     rm -f "$ac_file"
3326   fi
3327   # Let's still pretend it is `configure' which instantiates (i.e., don't
3328   # use $as_me), people would be surprised to read:
3329   #    /* config.h.  Generated by config.status.  */
3330   if test x"$ac_file" = x-; then
3331     configure_input=
3332   else
3333     configure_input="$ac_file.  "
3334   fi
3335   configure_input=$configure_input"Generated from `echo $ac_file_in |
3336                                      sed 's,.*/,,'` by configure."
3337
3338   # First look for the input files in the build tree, otherwise in the
3339   # src tree.
3340   ac_file_inputs=`IFS=:
3341     for f in $ac_file_in; do
3342       case $f in
3343       -) echo $tmp/stdin ;;
3344       [\\/$]*)
3345          # Absolute (can't be DOS-style, as IFS=:)
3346          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3347 echo "$as_me: error: cannot find input file: $f" >&2;}
3348    { (exit 1); exit 1; }; }
3349          echo "$f";;
3350       *) # Relative
3351          if test -f "$f"; then
3352            # Build tree
3353            echo "$f"
3354          elif test -f "$srcdir/$f"; then
3355            # Source tree
3356            echo "$srcdir/$f"
3357          else
3358            # /dev/null tree
3359            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3360 echo "$as_me: error: cannot find input file: $f" >&2;}
3361    { (exit 1); exit 1; }; }
3362          fi;;
3363       esac
3364     done` || { (exit 1); exit 1; }
3365 _ACEOF
3366 cat >>$CONFIG_STATUS <<_ACEOF
3367   sed "$ac_vpsub
3368 $extrasub
3369 _ACEOF
3370 cat >>$CONFIG_STATUS <<\_ACEOF
3371 :t
3372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3373 s,@configure_input@,$configure_input,;t t
3374 s,@srcdir@,$ac_srcdir,;t t
3375 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3376 s,@top_srcdir@,$ac_top_srcdir,;t t
3377 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3378 s,@builddir@,$ac_builddir,;t t
3379 s,@abs_builddir@,$ac_abs_builddir,;t t
3380 s,@top_builddir@,$ac_top_builddir,;t t
3381 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3382 s,@INSTALL@,$ac_INSTALL,;t t
3383 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3384   rm -f $tmp/stdin
3385   if test x"$ac_file" != x-; then
3386     mv $tmp/out $ac_file
3387   else
3388     cat $tmp/out
3389     rm -f $tmp/out
3390   fi
3391
3392 done
3393 _ACEOF
3394 cat >>$CONFIG_STATUS <<\_ACEOF
3395
3396 #
3397 # CONFIG_COMMANDS section.
3398 #
3399 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3400   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3401   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3402   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
3403 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3404          X"$ac_dest" : 'X\(//\)[^/]' \| \
3405          X"$ac_dest" : 'X\(//\)$' \| \
3406          X"$ac_dest" : 'X\(/\)' \| \
3407          .     : '\(.\)' 2>/dev/null ||
3408 echo X"$ac_dest" |
3409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3410           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3411           /^X\(\/\/\)$/{ s//\1/; q; }
3412           /^X\(\/\).*/{ s//\1/; q; }
3413           s/.*/./; q'`
3414   { if $as_mkdir_p; then
3415     mkdir -p "$ac_dir"
3416   else
3417     as_dir="$ac_dir"
3418     as_dirs=
3419     while test ! -d "$as_dir"; do
3420       as_dirs="$as_dir $as_dirs"
3421       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3423          X"$as_dir" : 'X\(//\)[^/]' \| \
3424          X"$as_dir" : 'X\(//\)$' \| \
3425          X"$as_dir" : 'X\(/\)' \| \
3426          .     : '\(.\)' 2>/dev/null ||
3427 echo X"$as_dir" |
3428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3429           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3430           /^X\(\/\/\)$/{ s//\1/; q; }
3431           /^X\(\/\).*/{ s//\1/; q; }
3432           s/.*/./; q'`
3433     done
3434     test ! -n "$as_dirs" || mkdir $as_dirs
3435   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3436 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3437    { (exit 1); exit 1; }; }; }
3438
3439   ac_builddir=.
3440
3441 if test "$ac_dir" != .; then
3442   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3443   # A "../" for each directory in $ac_dir_suffix.
3444   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3445 else
3446   ac_dir_suffix= ac_top_builddir=
3447 fi
3448
3449 case $srcdir in
3450   .)  # No --srcdir option.  We are building in place.
3451     ac_srcdir=.
3452     if test -z "$ac_top_builddir"; then
3453        ac_top_srcdir=.
3454     else
3455        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3456     fi ;;
3457   [\\/]* | ?:[\\/]* )  # Absolute path.
3458     ac_srcdir=$srcdir$ac_dir_suffix;
3459     ac_top_srcdir=$srcdir ;;
3460   *) # Relative path.
3461     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3462     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3463 esac
3464
3465 # Do not use `cd foo && pwd` to compute absolute paths, because
3466 # the directories may not exist.
3467 case `pwd` in
3468 .) ac_abs_builddir="$ac_dir";;
3469 *)
3470   case "$ac_dir" in
3471   .) ac_abs_builddir=`pwd`;;
3472   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3473   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3474   esac;;
3475 esac
3476 case $ac_abs_builddir in
3477 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3478 *)
3479   case ${ac_top_builddir}. in
3480   .) ac_abs_top_builddir=$ac_abs_builddir;;
3481   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3482   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3483   esac;;
3484 esac
3485 case $ac_abs_builddir in
3486 .) ac_abs_srcdir=$ac_srcdir;;
3487 *)
3488   case $ac_srcdir in
3489   .) ac_abs_srcdir=$ac_abs_builddir;;
3490   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3491   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3492   esac;;
3493 esac
3494 case $ac_abs_builddir in
3495 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3496 *)
3497   case $ac_top_srcdir in
3498   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3499   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3500   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3501   esac;;
3502 esac
3503
3504
3505   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
3506 echo "$as_me: executing $ac_dest commands" >&6;}
3507   case $ac_dest in
3508     default )
3509  ;;
3510   esac
3511 done
3512 _ACEOF
3513
3514 cat >>$CONFIG_STATUS <<\_ACEOF
3515
3516 { (exit 0); exit 0; }
3517 _ACEOF
3518 chmod +x $CONFIG_STATUS
3519 ac_clean_files=$ac_clean_files_save
3520
3521
3522 # configure is writing to config.log, and then calls config.status.
3523 # config.status does its own redirection, appending to config.log.
3524 # Unfortunately, on DOS this fails, as config.log is still kept open
3525 # by configure, so config.status won't be able to write to it; its
3526 # output is simply discarded.  So we exec the FD to /dev/null,
3527 # effectively closing config.log, so it can be properly (re)opened and
3528 # appended to by config.status.  When coming back to configure, we
3529 # need to make the FD available again.
3530 if test "$no_create" != yes; then
3531   ac_cs_success=:
3532   ac_config_status_args=
3533   test "$silent" = yes &&
3534     ac_config_status_args="$ac_config_status_args --quiet"
3535   exec 5>/dev/null
3536   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3537   exec 5>>config.log
3538   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3539   # would make configure fail if this is the last instruction.
3540   $ac_cs_success || { (exit 1); exit 1; }
3541 fi
3542
3543
3544
3545 echo "
3546 Configuration on `date`:
3547
3548   Host:                       $host -- ${DISTNAME} ${DISTVER}
3549   Rescue version:             ${VERSION} (${DATE})
3550   Source code location:       ${bacula}
3551   Rescue disk image type:     ${type}
3552   Rescue disk image location: ${where}
3553
3554
3555   " > config.out
3556
3557 cat config.out