3 dnl# Process this file with autoconf to produce a configure script.
5 AC_INIT(autoconf/configure.in)
11 AC_CONFIG_AUX_DIR(${BUILD_DIR}/autoconf)
13 dnl require a recent autoconf
18 # ------------------------------------------
19 # Where to get Bacula source
20 # ------------------------------------------
22 [ --with-bacula=PATH specify path to Bacula source],
24 if test "x$withval" != "xno" ; then
31 if test "x$bacula" = "x" ; then
32 AC_MSG_ERROR(The Bacula source directory must be specified. Use --with-bacula=<path>)
36 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${bacula}/src/version.h`
37 DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' ${bacula}/src/version.h`
40 if test "x$VERSION" = "x" ; then
41 AC_MSG_ERROR(Bacula version not found)
43 echo "configuring for Bacula $VERSION ($DATE)"
45 dnl -------------------------------------------------------
46 dnl# Check for programs.
47 dnl ------------------------------------------------------
48 AC_PATH_PROGS(TRUEPRG, true, :)
49 AC_PATH_PROGS(FALSEPRG, false, :)
51 AC_PATH_PROG(MV, mv, mv)
52 AC_PATH_PROG(RM, rm, rm)
53 AC_PATH_PROG(CP, cp, cp)
54 AC_PATH_PROG(ECHO, echo, echo)
55 AC_PATH_PROG(AR, ar, ar)
57 # Some AWK programs fail, so test it and warn the user
58 if echo xfoo | $AWK 'BEGIN { prog=ARGV[1]; ARGC=1 }
59 { if ((prog == $2) || (("(" prog ")") == $2) ||
60 (("[" prog "]") == $2) ||
61 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
63 AC_MSG_ERROR([!!!!!!!!! WARNING !!!!!!!!!!!!!!
64 The regex engine of $AWK is too broken to be used you
65 might want to install GNU AWK.
66 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!])
69 AC_PATH_PROG(AWK, $THE_AWK, $THE_AWK)
71 # -------------------------------------------------------------------------
72 # If the user has not set --exec-prefix, we default to ${prefix}
73 # -------------------------------------------------------------------------
74 if test x${exec_prefix} = xNONE ; then
79 dnl# --------------------------------------------------------------------------
80 dnl# CHECKING COMMAND LINE OPTIONS
81 dnl# --------------------------------------------------------------------------
85 dnl# common parts of the Makefile
86 MCOMMON=./autoconf/Make.common
87 AC_SUBST_FILE(MCOMMON)
91 autoconf/Make.common \
93 manuals/de/catalog/Makefile \
94 manuals/de/catalog/update_version \
95 manuals/de/catalog/version.tex \
96 manuals/de/concepts/Makefile \
97 manuals/de/concepts/update_version \
98 manuals/de/concepts/version.tex \
99 manuals/de/console/Makefile \
100 manuals/de/console/update_version \
101 manuals/de/console/version.tex \
102 manuals/de/developers/Makefile \
103 manuals/de/developers/update_version \
104 manuals/de/developers/version.tex \
105 manuals/de/install/Makefile \
106 manuals/de/install/update_version \
107 manuals/de/install/version.tex \
108 manuals/de/problems/Makefile \
109 manuals/de/problems/update_version \
110 manuals/de/problems/version.tex \
111 manuals/de/utility/Makefile \
112 manuals/de/utility/update_version \
113 manuals/de/utility/version.tex \
114 manuals/en/catalog/Makefile \
115 manuals/en/catalog/update_version \
116 manuals/en/catalog/version.tex \
117 manuals/en/concepts/Makefile \
118 manuals/en/concepts/update_version \
119 manuals/en/concepts/version.tex \
120 manuals/en/console/Makefile \
121 manuals/en/console/update_version \
122 manuals/en/console/version.tex \
123 manuals/en/developers/Makefile \
124 manuals/en/developers/update_version \
125 manuals/en/developers/version.tex \
126 manuals/en/install/Makefile \
127 manuals/en/install/update_version \
128 manuals/en/install/version.tex \
129 manuals/en/problems/Makefile \
130 manuals/en/problems/update_version \
131 manuals/en/problems/version.tex \
132 manuals/en/utility/Makefile \
133 manuals/en/utility/update_version \
134 manuals/en/utility/version.tex \
135 manuals/fr/catalog/Makefile \
136 manuals/fr/catalog/update_version \
137 manuals/fr/catalog/version.tex \
138 manuals/fr/concepts/Makefile \
139 manuals/fr/concepts/update_version \
140 manuals/fr/concepts/version.tex \
141 manuals/fr/console/Makefile \
142 manuals/fr/console/update_version \
143 manuals/fr/console/version.tex \
144 manuals/fr/developers/Makefile \
145 manuals/fr/developers/update_version \
146 manuals/fr/developers/version.tex \
147 manuals/fr/install/Makefile \
148 manuals/fr/install/update_version \
149 manuals/fr/install/version.tex \
150 manuals/fr/problems/Makefile \
151 manuals/fr/problems/update_version \
152 manuals/fr/problems/version.tex \
153 manuals/fr/utility/Makefile \
154 manuals/fr/utility/update_version \
155 manuals/fr/utility/version.tex \
156 bacula-web/Makefile \
157 bacula-web/version.tex \
162 chmod 766 manuals/de/catalog/update_version
163 chmod 766 manuals/de/concepts/update_version
164 chmod 766 manuals/de/console/update_version
165 chmod 766 manuals/de/developers/update_version
166 chmod 766 manuals/de/install/update_version
167 chmod 766 manuals/de/problems/update_version
168 chmod 766 manuals/de/utility/update_version
169 chmod 766 manuals/en/catalog/update_version
170 chmod 766 manuals/en/concepts/update_version
171 chmod 766 manuals/en/console/update_version
172 chmod 766 manuals/en/developers/update_version
173 chmod 766 manuals/en/install/update_version
174 chmod 766 manuals/en/problems/update_version
175 chmod 766 manuals/en/utility/update_version
176 chmod 766 manuals/fr/catalog/update_version
177 chmod 766 manuals/fr/concepts/update_version
178 chmod 766 manuals/fr/console/update_version
179 chmod 766 manuals/fr/developers/update_version
180 chmod 766 manuals/fr/install/update_version
181 chmod 766 manuals/fr/problems/update_version
182 chmod 766 manuals/fr/utility/update_version
185 Configuration on `date`:
187 Bacula version: ${VERSION} (${DATE})
188 Bacula source code: ${bacula}