1 | # -*- Autoconf -*- |
---|
2 | # Copyright © 2004-2009 Roger Leigh <rleigh@debian.org> |
---|
3 | # |
---|
4 | # schroot is free software: you can redistribute it and/or modify it |
---|
5 | # under the terms of the GNU General Public License as published by |
---|
6 | # the Free Software Foundation, either version 3 of the License, or |
---|
7 | # (at your option) any later version. |
---|
8 | # |
---|
9 | # schroot is distributed in the hope that it will be useful, but |
---|
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
12 | # General Public License for more details. |
---|
13 | # |
---|
14 | # You should have received a copy of the GNU General Public License |
---|
15 | # along with this program. If not, see |
---|
16 | # <http://www.gnu.org/licenses/>. |
---|
17 | # |
---|
18 | ##################################################################### |
---|
19 | # |
---|
20 | # Process this file with autoconf to produce a configure script. |
---|
21 | # |
---|
22 | ##################################################################### |
---|
23 | dnl MAKING RELEASES (a step-by-step guide!) |
---|
24 | dnl =============== |
---|
25 | dnl |
---|
26 | dnl Since the last release: |
---|
27 | dnl 1. if only source code (not the interface) has changed, set |
---|
28 | dnl SBUILD_MICRO_VERSION += 1; |
---|
29 | dnl SBUILD_INTERFACE_AGE += 1; |
---|
30 | dnl 2. if any functions have been added, removed, or changed, set |
---|
31 | dnl SBUILD_INTERFACE_AGE = 0; |
---|
32 | dnl SBUILD_CURRENT_INTERFACE += 1; |
---|
33 | dnl 3. if interfaces have been added, set |
---|
34 | dnl SBUILD_BINARY_AGE += 1; |
---|
35 | dnl 4. if interfaces have been removed, set |
---|
36 | dnl SBUILD_BINARY_AGE = 0; |
---|
37 | dnl |
---|
38 | dnl For more detailed information, see the libtool info documentation. |
---|
39 | dnl |
---|
40 | dnl m4 magic from Eric Blake <ebb9@byu.net>, prior to automake inclusion |
---|
41 | m4_define([sbuild_m4_chomp], |
---|
42 | [m4_format([[%.*s]], m4_bregexp(m4_translit([$1], [ |
---|
43 | ]]m4_dquote(_m4_defn([m4_cr_all]))[, [/]]m4_format([%255s], [])[), |
---|
44 | [/*$]), [$1])]) |
---|
45 | m4_define([sbuild_m4_esyscmd_s], |
---|
46 | [sbuild_m4_chomp(m4_esyscmd([$1]))]) |
---|
47 | AC_PREREQ(2.59) |
---|
48 | dnl Quoting the first argument results in a bizarrely corrupted package tarname |
---|
49 | AC_INIT(sbuild_m4_esyscmd_s([sed -ne '/^Package:/{s/Package:[[:space:]][[:space:]]*//p;q}' VERSION]), |
---|
50 | [sbuild_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION])], |
---|
51 | [buildd-tools-devel@lists.alioth.debian.org]) |
---|
52 | pushdef([SBUILD_CURRENT_INTERFACE], [1]) |
---|
53 | pushdef([SBUILD_INTERFACE_AGE], [0]) |
---|
54 | pushdef([SBUILD_BINARY_AGE], [0]) |
---|
55 | dnl For safety, check we are in the right directory by |
---|
56 | dnl checking for a known unique file. |
---|
57 | AC_CONFIG_SRCDIR([sbuild/sbuild-session.cc]) |
---|
58 | dnl Place auxilliary scripts here. |
---|
59 | AC_CONFIG_AUX_DIR([scripts]) |
---|
60 | dnl Add config headers. |
---|
61 | AC_CONFIG_HEADER([config.h]) |
---|
62 | AC_CONFIG_HEADER([sbuild/sbuild-config.h]) |
---|
63 | |
---|
64 | AC_COPYRIGHT( |
---|
65 | [ |
---|
66 | Copyright © 2004-2009 Roger Leigh <rleigh@debian.org> |
---|
67 | |
---|
68 | Parts of this configure script come from the 'configure.ac' file, and |
---|
69 | are not based on freely-redistributable m4 macros; you can |
---|
70 | redistribute it and/or modify it under the terms of the GNU General |
---|
71 | Public License as published by the Free Software Foundation, either |
---|
72 | version 3 of the License, or (at your option) any later version. |
---|
73 | |
---|
74 | This software is distributed in the hope that it will be useful, but |
---|
75 | WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
76 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
77 | General Public License for more details. |
---|
78 | |
---|
79 | You should have received a copy of the GNU General Public License |
---|
80 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
81 | ]) |
---|
82 | |
---|
83 | [SBUILD_CURRENT_INTERFACE]=SBUILD_CURRENT_INTERFACE |
---|
84 | [SBUILD_INTERFACE_AGE]=SBUILD_INTERFACE_AGE |
---|
85 | [SBUILD_BINARY_AGE]=SBUILD_BINARY_AGE |
---|
86 | popdef([SBUILD_CURRENT_INTERFACE]) |
---|
87 | popdef([SBUILD_INTERFACE_AGE]) |
---|
88 | popdef([SBUILD_BINARY_AGE]) |
---|
89 | |
---|
90 | AC_SUBST([SBUILD_CURRENT_INTERFACE]) |
---|
91 | AC_SUBST([SBUILD_INTERFACE_AGE]) |
---|
92 | AC_SUBST([SBUILD_BINARY_AGE]) |
---|
93 | |
---|
94 | dnl Initialise automake stuff. |
---|
95 | AM_INIT_AUTOMAKE([1.10 gnu check-news dist-bzip2 no-dist-gzip tar-pax silent-rules]) |
---|
96 | AM_MAINTAINER_MODE |
---|
97 | RELEASE_DATE='sbuild_m4_esyscmd_s(date --date='sbuild_m4_esyscmd_s([sed -ne '/^Release-Date:/{s/Release-Date:[[:space:]][[:space:]]*//p;q}' VERSION])' '+%s')' |
---|
98 | RELEASE_DATE_S='sbuild_m4_esyscmd_s([sed -ne '/^Release-Date:/{s/Release-Date:[[:space:]][[:space:]]*//p;q}' VERSION])' |
---|
99 | AC_DEFINE_UNQUOTED([RELEASE_DATE_S], ["$RELEASE_DATE_S"], [Package release date (string).]) |
---|
100 | AC_DEFINE_UNQUOTED([RELEASE_DATE], [$RELEASE_DATE], [Package release date (integer).]) |
---|
101 | AC_SUBST([RELEASE_DATE]) |
---|
102 | AC_SUBST([RELEASE_DATE_S]) |
---|
103 | |
---|
104 | AC_MSG_CHECKING([whether to enable dchroot compatibility]) |
---|
105 | AC_ARG_ENABLE([dchroot], [AS_HELP_STRING([--enable-dchroot], [Enable dchroot compatibility])], |
---|
106 | [ case "${enableval}" in |
---|
107 | yes) enable_dchroot_compat="yes" ;; |
---|
108 | no) enable_dchroot_compat="no" ;; |
---|
109 | *) AC_MSG_RESULT([unknown]) |
---|
110 | AC_MSG_ERROR([bad value ${enableval} for --enable-dchroot]) ;; |
---|
111 | esac ], |
---|
112 | [ enable_dchroot_compat="no" ]) |
---|
113 | AC_MSG_RESULT([$enable_dchroot_compat]) |
---|
114 | AM_CONDITIONAL([BUILD_DCHROOT], [test "$enable_dchroot_compat" = "yes"]) |
---|
115 | |
---|
116 | AC_MSG_CHECKING([whether to enable dchroot-dsa compatibility]) |
---|
117 | AC_ARG_ENABLE([dchroot-dsa], [AS_HELP_STRING([--enable-dchroot-dsa], [Enable dchroot-dsa compatibility])], |
---|
118 | [ case "${enableval}" in |
---|
119 | yes) enable_dchroot_dsa_compat="yes" ;; |
---|
120 | no) enable_dchroot_dsa_compat="no" ;; |
---|
121 | *) AC_MSG_RESULT([unknown]) |
---|
122 | AC_MSG_ERROR([bad value ${enableval} for --enable-dchroot-dsa]) ;; |
---|
123 | esac ], |
---|
124 | [ enable_dchroot_dsa_compat="no" ]) |
---|
125 | AC_MSG_RESULT([$enable_dchroot_dsa_compat]) |
---|
126 | AM_CONDITIONAL([BUILD_DCHROOT_DSA], [test "$enable_dchroot_dsa_compat" = "yes"]) |
---|
127 | AM_CONDITIONAL([BUILD_LIBDCHROOT], [test "$enable_dchroot_compat" = "yes" || test "$enable_dchroot_dsa_compat" = "yes"]) |
---|
128 | |
---|
129 | AC_MSG_CHECKING([whether to enable csbuild]) |
---|
130 | AC_ARG_ENABLE([csbuild], [AS_HELP_STRING([--enable-csbuild], [Enable csbuild])], |
---|
131 | [ case "${enableval}" in |
---|
132 | yes) enable_csbuild_compat="yes" ;; |
---|
133 | no) enable_csbuild_compat="no" ;; |
---|
134 | *) AC_MSG_RESULT([unknown]) |
---|
135 | AC_MSG_ERROR([bad value ${enableval} for --enable-csbuild]) ;; |
---|
136 | esac ], |
---|
137 | [ enable_csbuild_compat="no" ]) |
---|
138 | |
---|
139 | AC_MSG_RESULT([$enable_csbuild_compat]) |
---|
140 | AM_CONDITIONAL([BUILD_CSBUILD], [test "$enable_csbuild_compat" = "yes"]) |
---|
141 | |
---|
142 | AC_MSG_CHECKING([whether to enable debugging messages]) |
---|
143 | AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], [Enable debugging messages])], |
---|
144 | [ case "${enableval}" in |
---|
145 | yes) enable_debug="yes" ;; |
---|
146 | no) enable_debug="no" ;; |
---|
147 | *) AC_MSG_RESULT([unknown]) |
---|
148 | AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; |
---|
149 | esac ], |
---|
150 | [ enable_debug="no" ]) |
---|
151 | AC_MSG_RESULT([$enable_debug]) |
---|
152 | if test "$enable_debug" = "yes"; then |
---|
153 | AC_DEFINE_UNQUOTED([SBUILD_DEBUG], [1], [Enable debugging]) |
---|
154 | fi |
---|
155 | |
---|
156 | default_environment_filter='^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$' |
---|
157 | |
---|
158 | AC_MSG_CHECKING([whether to enable environment filtering regex]) |
---|
159 | AC_ARG_ENABLE([environment-filter], [AS_HELP_STRING([--enable-environment-filter], [Enable default environment filtering (regex)])], |
---|
160 | [ case "${enableval}" in |
---|
161 | yes) enable_environment_filter="$default_environment_filter" ;; |
---|
162 | no) enable_environment_filter="" ;; |
---|
163 | *) enable_environment_filter="${enableval}" ;; |
---|
164 | esac ], |
---|
165 | [ enable_environment_filter="$default_environment_filter" ]) |
---|
166 | AC_MSG_RESULT([$enable_environment_filter]) |
---|
167 | AH_TEMPLATE(SBUILD_DEFAULT_ENVIRONMENT_FILTER, [Default regular expression used to filter user environment]) |
---|
168 | AC_DEFINE_UNQUOTED([SBUILD_DEFAULT_ENVIRONMENT_FILTER], ["$enable_environment_filter"]) |
---|
169 | |
---|
170 | AC_MSG_CHECKING([whether to enable support for PAM authentication]) |
---|
171 | AC_ARG_ENABLE([pam], [AS_HELP_STRING([--enable-pam], [Enable support for PAM authentication (requires libpam)])], |
---|
172 | [ case "${enableval}" in |
---|
173 | yes) enable_pam="yes" ;; |
---|
174 | no) enable_pam="no" ;; |
---|
175 | *) AC_MSG_RESULT([unknown]) |
---|
176 | AC_MSG_ERROR([bad value ${enableval} for --enable-pam]) ;; |
---|
177 | esac], |
---|
178 | [enable_pam="auto"]) |
---|
179 | AC_MSG_RESULT([$enable_pam]) |
---|
180 | |
---|
181 | AC_MSG_CHECKING([whether to enable support for block devices]) |
---|
182 | AC_ARG_ENABLE([block-device], [AS_HELP_STRING([--enable-block-device], [Enable support for block devices (requires liblockdev)])], |
---|
183 | [ case "${enableval}" in |
---|
184 | yes) enable_blockdev="yes" ;; |
---|
185 | no) enable_blockdev="no" ;; |
---|
186 | *) AC_MSG_RESULT([unknown]) |
---|
187 | AC_MSG_ERROR([bad value ${enableval} for --enable-blockdev]) ;; |
---|
188 | esac], |
---|
189 | [enable_blockdev="auto"]) |
---|
190 | AC_MSG_RESULT([$enable_blockdev]) |
---|
191 | |
---|
192 | AC_MSG_CHECKING([whether to enable support for LVM snapshots]) |
---|
193 | AC_ARG_ENABLE([lvm-snapshot], [AS_HELP_STRING([--enable-lvm-snapshot], [Enable support for LVM snapshots (requires LVM and liblockdev)])], |
---|
194 | [ case "${enableval}" in |
---|
195 | yes) enable_lvmsnapshot="yes" |
---|
196 | enable_blockdev="yes" ;; |
---|
197 | no) enable_lvmsnapshot="no" ;; |
---|
198 | *) AC_MSG_RESULT([unknown]) |
---|
199 | AC_MSG_ERROR([bad value ${enableval} for --enable-lvm-snapshot]) ;; |
---|
200 | esac], |
---|
201 | [enable_lvmsnapshot="auto"]) |
---|
202 | AC_MSG_RESULT([$enable_lvmsnapshot]) |
---|
203 | |
---|
204 | AC_MSG_CHECKING([whether to enable support for loopback mounts]) |
---|
205 | AC_ARG_ENABLE([loopback], [AS_HELP_STRING([--enable-loopback], [Enable support for loopback mounts])], |
---|
206 | [ case "${enableval}" in |
---|
207 | yes) enable_loopback="yes" ;; |
---|
208 | no) enable_loopback="no" ;; |
---|
209 | *) AC_MSG_RESULT([unknown]) |
---|
210 | AC_MSG_ERROR([bad value ${enableval} for --enable-loopback]) ;; |
---|
211 | esac], |
---|
212 | [enable_loopback="auto"]) |
---|
213 | AC_MSG_RESULT([$enable_loopback]) |
---|
214 | |
---|
215 | AC_MSG_CHECKING([whether to enable support for UUIDs in session names]) |
---|
216 | AC_ARG_ENABLE([uuid], [AS_HELP_STRING([--enable-uuid], [Enable support for UUIDs])], |
---|
217 | [ case "${enableval}" in |
---|
218 | yes) enable_uuid="yes" ;; |
---|
219 | no) enable_uuid="no" ;; |
---|
220 | *) AC_MSG_RESULT([unknown]) |
---|
221 | AC_MSG_ERROR([bad value ${enableval} for --enable-uuid]) ;; |
---|
222 | esac], |
---|
223 | [enable_uuid="auto"]) |
---|
224 | AC_MSG_RESULT([$enable_uuid]) |
---|
225 | |
---|
226 | AC_MSG_CHECKING([whether to enable support for union mounts]) |
---|
227 | AC_ARG_ENABLE([union], [AS_HELP_STRING([--enable-union], [Enable support for union mounts])], |
---|
228 | [ case "${enableval}" in |
---|
229 | yes) enable_union="yes" ;; |
---|
230 | no) enable_union="no" ;; |
---|
231 | *) AC_MSG_RESULT([unknown]) |
---|
232 | AC_MSG_ERROR([bad value ${enableval} for --enable-union]) ;; |
---|
233 | esac], |
---|
234 | [enable_union="auto"]) |
---|
235 | AC_MSG_RESULT([$enable_union]) |
---|
236 | |
---|
237 | AC_MSG_CHECKING([whether to enable doxygen documentation]) |
---|
238 | AC_ARG_ENABLE([doxygen], [AS_HELP_STRING([--enable-doxygen], [Enable doxygen documentation])], |
---|
239 | [ case "${enableval}" in |
---|
240 | yes) enable_doxygen="yes" ;; |
---|
241 | no) enable_doxygen="no" ;; |
---|
242 | *) AC_MSG_RESULT([unknown]) |
---|
243 | AC_MSG_ERROR([bad value ${enableval} for --enable-doxygen]) ;; |
---|
244 | esac], |
---|
245 | [ enable_doxygen="no" ]) |
---|
246 | AC_MSG_RESULT([$enable_doxygen]) |
---|
247 | AM_CONDITIONAL([BUILD_DOXYGEN], [test "$enable_doxygen" = "yes"]) |
---|
248 | |
---|
249 | AC_MSG_CHECKING([for bash completion directory]) |
---|
250 | bashcompletiondir='${sysconfdir}/bash_completion.d' |
---|
251 | AC_ARG_WITH([bash-completion-dir], [AS_HELP_STRING([--with-bash-completion-dir], [bash shell completion directory])], |
---|
252 | [bashcompletiondir="${withval}"]) |
---|
253 | AC_MSG_RESULT([$bashcompletiondir]) |
---|
254 | AC_SUBST([bashcompletiondir]) |
---|
255 | |
---|
256 | # Checks for programs. |
---|
257 | AC_PROG_CXX |
---|
258 | AC_LANG([C++]) |
---|
259 | ACX_PTHREAD([], [AC_MSG_ERROR([POSIX thread support is required for correct std::tr1::shared_ptr operation])]) |
---|
260 | AC_DISABLE_SHARED |
---|
261 | AC_ENABLE_STATIC |
---|
262 | AC_PROG_LIBTOOL |
---|
263 | AM_GNU_GETTEXT_VERSION([0.16]) |
---|
264 | AM_GNU_GETTEXT([external]) |
---|
265 | AC_PATH_PROG([FIND], [find]) |
---|
266 | AC_PATH_PROG([XARGS], [xargs]) |
---|
267 | AC_PATH_PROG([DOXYGEN], [doxygen]) |
---|
268 | HAVE_LVM="yes" |
---|
269 | AC_PATH_PROG([LVCREATE], [lvcreate], [HAVE_LVM="no"], [$PATH:/sbin:/usr/sbin]) |
---|
270 | AC_PATH_PROG([LVREMOVE], [lvremove], [HAVE_LVM="no"], [$PATH:/sbin:/usr/sbin]) |
---|
271 | HAVE_LOOPBACK="yes" |
---|
272 | AC_PATH_PROG([LOSETUP], [losetup], [HAVE_LOOPBACK="no"], [$PATH:/sbin:/usr/sbin]) |
---|
273 | |
---|
274 | if test "$enable_doxygen" = "yes" && test -z "$DOXYGEN"; then |
---|
275 | AC_MSG_FAILURE([doxygen is not installed, but is required by schroot]) |
---|
276 | fi; |
---|
277 | AM_CONDITIONAL([BUILD_DOXYGEN], [test -n "$DOXYGEN" && test "$enable_doxygen" = "yes"]) |
---|
278 | |
---|
279 | # Checks for libraries. |
---|
280 | PKG_CHECK_MODULES([UUID], [uuid], |
---|
281 | [AC_DEFINE(HAVE_UUID) |
---|
282 | HAVE_UUID=yes], |
---|
283 | [HAVE_UUID=no]) |
---|
284 | |
---|
285 | AM_PATH_CPPUNIT([1.10.0], [HAVE_CPPUNIT=yes]) |
---|
286 | AM_CONDITIONAL([USE_UNIT_TESTS], [test -n "$HAVE_CPPUNIT"]) |
---|
287 | |
---|
288 | SCHROOT_CFLAGS="$UUID_CFLAGS" |
---|
289 | AC_SUBST([SCHROOT_CFLAGS]) |
---|
290 | |
---|
291 | # Checks for header files. |
---|
292 | AC_CHECK_HEADERS([tr1/memory]) |
---|
293 | |
---|
294 | AC_CHECK_HEADERS([boost/shared_ptr.hpp],, [ |
---|
295 | if test $ac_cv_header_tr1_memory = yes; then |
---|
296 | : |
---|
297 | else |
---|
298 | AC_MSG_ERROR([Boost.shared_ptr (Boost C++ Libraries) is not installed, but is required by schroot]) |
---|
299 | fi]) |
---|
300 | |
---|
301 | AC_CHECK_HEADERS([tr1/tuple]) |
---|
302 | |
---|
303 | AC_CHECK_HEADERS([boost/tuple/tuple.hpp],, [ |
---|
304 | if test $ac_cv_header_tr1_memory = yes; then |
---|
305 | : |
---|
306 | else |
---|
307 | AC_MSG_ERROR([Boost.Tuple (Boost C++ Libraries) is not installed, but is required by schroot]) |
---|
308 | fi]) |
---|
309 | |
---|
310 | AC_CHECK_HEADERS([boost/format.hpp],, [AC_MSG_ERROR([Boost.Format (Boost C++ Libraries) is not installed, but is required by schroot])]) |
---|
311 | AC_CHECK_HEADERS([boost/program_options.hpp],, [AC_MSG_ERROR([Boost.Program_options (Boost C++ Libraries) is not installed, but is required by schroot])]) |
---|
312 | AC_CHECK_HEADERS([boost/type_traits.hpp],, [AC_MSG_ERROR([Boost.TypeTraits (Boost C++ Libraries) is not installed, but is required by schroot])]) |
---|
313 | |
---|
314 | AC_CHECK_HEADERS([ext/stdio_filebuf.h],, [AC_MSG_ERROR([__gnu_cxx::stdio_filebuf (GNU libstdc++) is not installed, but is required by schroot])]) |
---|
315 | |
---|
316 | AC_CHECK_HEADERS([sys/personality.h], |
---|
317 | [PERSONALITY_HEADER="yes"], |
---|
318 | [PERSONALITY_HEADER="no"]) |
---|
319 | |
---|
320 | AC_CHECK_HEADERS([security/pam_appl.h], |
---|
321 | [PAM_HEADER="yes"], |
---|
322 | [PAM_HEADER="no"]) |
---|
323 | |
---|
324 | # Checks for typedefs, structures, and compiler characteristics. |
---|
325 | |
---|
326 | # Checks for library functions. |
---|
327 | AC_CHECK_LIB([pam], [pam_authenticate], |
---|
328 | [PAM_LIBS="-lpam" |
---|
329 | PAM_FUNC="yes"], |
---|
330 | [PAM_LIBS="" |
---|
331 | PAM_FUNC="no"]) |
---|
332 | AC_SUBST([PAM_LIBS]) |
---|
333 | |
---|
334 | AC_CHECK_LIB([lockdev], [dev_lock], |
---|
335 | [LOCKDEV_LIBS="-llockdev" |
---|
336 | HAVE_LOCKDEV="yes"], |
---|
337 | [LOCKDEV_LIBS="" |
---|
338 | HAVE_LOCKDEV="no"]) |
---|
339 | AC_SUBST([LOCKDEV_LIBS]) |
---|
340 | AH_TEMPLATE(SBUILD_FEATURE_DEVLOCK, [Set if the device locking with liblockdev is available]) |
---|
341 | if test "$HAVE_LOCKDEV" = "yes"; then |
---|
342 | AC_DEFINE(SBUILD_FEATURE_DEVLOCK, 1) |
---|
343 | fi |
---|
344 | |
---|
345 | AC_CHECK_FUNC([personality], |
---|
346 | [PERSONALITY_FUNC="yes"], |
---|
347 | [PERSONALITY_FUNC="no"]) |
---|
348 | |
---|
349 | # Determine which features to enable. |
---|
350 | AC_MSG_CHECKING([whether to build personality support]) |
---|
351 | BUILD_PERSONALITY="yes" |
---|
352 | if test "$PERSONALITY_HEADER" = "no"; then |
---|
353 | BUILD_PERSONALITY="no" |
---|
354 | fi |
---|
355 | if test "$PERSONALITY_FUNC" = "no"; then |
---|
356 | BUILD_PERSONALITY="no" |
---|
357 | fi |
---|
358 | AC_MSG_RESULT([$BUILD_PERSONALITY]) |
---|
359 | |
---|
360 | AM_CONDITIONAL([BUILD_PERSONALITY], [test "$BUILD_PERSONALITY" = "yes"]) |
---|
361 | AH_TEMPLATE(SBUILD_FEATURE_PERSONALITY, [Set if personality support is present]) |
---|
362 | if test "$BUILD_PERSONALITY" = "yes"; then |
---|
363 | AC_DEFINE(SBUILD_FEATURE_PERSONALITY, 1) |
---|
364 | fi |
---|
365 | |
---|
366 | AC_MSG_CHECKING([whether to build UUID support]) |
---|
367 | BUILD_UUID="yes" |
---|
368 | if test "$enable_uuid" = "yes"; then |
---|
369 | BUILD_UUID="no" |
---|
370 | fi |
---|
371 | if test "$HAVE_UUID" = "no"; then |
---|
372 | BUILD_UUID="no" |
---|
373 | fi |
---|
374 | AC_MSG_RESULT([$BUILD_UUID]) |
---|
375 | |
---|
376 | AH_TEMPLATE(HAVE_UUID, [Set if UUID support is available]) |
---|
377 | if test "$BUILD_UUID" = "yes"; then |
---|
378 | AC_DEFINE(HAVE_UUID, 1) |
---|
379 | fi |
---|
380 | |
---|
381 | AC_MSG_CHECKING([whether to build PAM support]) |
---|
382 | BUILD_PAM="yes" |
---|
383 | if test "$enable_pam" = "yes"; then |
---|
384 | if test "$PAM_HEADER" = "no"; then |
---|
385 | BUILD_PAM="no" |
---|
386 | AC_MSG_FAILURE([libpam (Linux-PAM) is not installed, but is required by schroot]) |
---|
387 | fi |
---|
388 | if test "$PAM_FUNC" = "no"; then |
---|
389 | BUILD_PAM="no" |
---|
390 | AC_MSG_FAILURE([libpam (Linux-PAM) is not installed, but is required by schroot]) |
---|
391 | fi |
---|
392 | elif test "$enable_pam" = "no"; then |
---|
393 | BUILD_PAM="no" |
---|
394 | elif test "$enable_pam" = "auto"; then |
---|
395 | if test "$PAM_HEADER" = "no"; then |
---|
396 | BUILD_PAM="no" |
---|
397 | fi |
---|
398 | if test "$PAM_FUNC" = "no"; then |
---|
399 | BUILD_PAM="no" |
---|
400 | fi |
---|
401 | fi |
---|
402 | AC_MSG_RESULT([$BUILD_PAM]) |
---|
403 | |
---|
404 | AM_CONDITIONAL([BUILD_PAM], [test "$BUILD_PAM" = "yes"]) |
---|
405 | AH_TEMPLATE(SBUILD_FEATURE_PAM, [Set if PAM support is available]) |
---|
406 | if test "$BUILD_PAM" = "yes"; then |
---|
407 | AC_DEFINE(SBUILD_FEATURE_PAM, 1) |
---|
408 | fi |
---|
409 | |
---|
410 | AC_MSG_CHECKING([whether to build block-device support]) |
---|
411 | BUILD_BLOCKDEV="yes" |
---|
412 | if test "$enable_blockdev" = "yes"; then |
---|
413 | if test "$HAVE_LOCKDEV" = "no"; then |
---|
414 | BUILD_BLOCKDEV="no" |
---|
415 | AC_MSG_FAILURE([liblockdev (lockdev) is not installed, but is required by schroot]) |
---|
416 | fi |
---|
417 | elif test "$enable_blockdev" = "no"; then |
---|
418 | BUILD_BLOCKDEV="no" |
---|
419 | elif test "$enable_blockdev" = "auto"; then |
---|
420 | if test "$HAVE_LOCKDEV" = "no"; then |
---|
421 | BUILD_BLOCKDEV="no" |
---|
422 | fi |
---|
423 | fi |
---|
424 | AC_MSG_RESULT([$BUILD_BLOCKDEV]) |
---|
425 | |
---|
426 | AM_CONDITIONAL([BUILD_BLOCKDEV], [test "$BUILD_BLOCKDEV" = "yes"]) |
---|
427 | AH_TEMPLATE(SBUILD_FEATURE_BLOCKDEV, [Set if the block-device chroot type is present]) |
---|
428 | if test "$BUILD_BLOCKDEV" = "yes"; then |
---|
429 | AC_DEFINE(SBUILD_FEATURE_BLOCKDEV, 1) |
---|
430 | fi |
---|
431 | |
---|
432 | AC_MSG_CHECKING([whether to build lvm-snapshot support]) |
---|
433 | BUILD_LVMSNAP="yes" |
---|
434 | if test "$enable_lvmsnapshot" = "yes"; then |
---|
435 | if test "$HAVE_LVM" = "no"; then |
---|
436 | BUILD_LVMSNAP="no" |
---|
437 | AC_MSG_FAILURE([LVM (lvm) is not installed, but is required by schroot]) |
---|
438 | fi |
---|
439 | elif test "$enable_lvmsnapshot" = "no"; then |
---|
440 | BUILD_LVMSNAP="no" |
---|
441 | elif test "$enable_lvmsnapshot" = "auto"; then |
---|
442 | if test "$HAVE_LOCKDEV" = "no"; then |
---|
443 | BUILD_LVMSNAP="no" |
---|
444 | fi |
---|
445 | if test "$HAVE_LVM" = "no"; then |
---|
446 | BUILD_LVMSNAP="no" |
---|
447 | fi |
---|
448 | fi |
---|
449 | AC_MSG_RESULT([$BUILD_LVMSNAP]) |
---|
450 | |
---|
451 | AM_CONDITIONAL([BUILD_LVMSNAP], [test "$BUILD_LVMSNAP" = "yes"]) |
---|
452 | AH_TEMPLATE(SBUILD_FEATURE_LVMSNAP, [Set if the lvm-snapshot chroot type is present]) |
---|
453 | if test "$BUILD_LVMSNAP" = "yes"; then |
---|
454 | AC_DEFINE(SBUILD_FEATURE_LVMSNAP, 1) |
---|
455 | fi |
---|
456 | |
---|
457 | AC_MSG_CHECKING([whether to build loopback support]) |
---|
458 | BUILD_LOOPBACK="yes" |
---|
459 | if test "$enable_loopbackshot" = "yes"; then |
---|
460 | if test "$HAVE_LOOPBACK" = "no"; then |
---|
461 | BUILD_LOOPBACK="no" |
---|
462 | AC_MSG_FAILURE([Loopback support is not avilable, but is required by schroot]) |
---|
463 | fi |
---|
464 | elif test "$enable_loopbackshot" = "no"; then |
---|
465 | BUILD_LOOPBACK="no" |
---|
466 | elif test "$enable_loopbackshot" = "auto"; then |
---|
467 | if test "$HAVE_LOOPBACK" = "no"; then |
---|
468 | BUILD_LOOPBACK="no" |
---|
469 | fi |
---|
470 | fi |
---|
471 | AC_MSG_RESULT([$BUILD_LOOPBACK]) |
---|
472 | |
---|
473 | AM_CONDITIONAL([BUILD_LOOPBACK], [test "$BUILD_LOOPBACK" = "yes"]) |
---|
474 | AH_TEMPLATE(SBUILD_FEATURE_LOOPBACK, [Set if the loopback chroot type is present]) |
---|
475 | if test "$BUILD_LOOPBACK" = "yes"; then |
---|
476 | AC_DEFINE(SBUILD_FEATURE_LOOPBACK, 1) |
---|
477 | fi |
---|
478 | |
---|
479 | AC_MSG_CHECKING([whether to build union support]) |
---|
480 | BUILD_UNION="yes" |
---|
481 | if test "$enable_union" = "yes"; then |
---|
482 | : |
---|
483 | elif test "$enable_union" = "no"; then |
---|
484 | BUILD_UNION="no" |
---|
485 | elif test "$enable_union" = "auto"; then |
---|
486 | BUILD_UNION="yes" |
---|
487 | fi |
---|
488 | AC_MSG_RESULT([$BUILD_UNION]) |
---|
489 | |
---|
490 | AM_CONDITIONAL([BUILD_UNION], [test "$BUILD_UNION" = "yes"]) |
---|
491 | AH_TEMPLATE(SBUILD_FEATURE_UNION, [Set if the union filesystem type is present]) |
---|
492 | if test "$BUILD_UNION" = "yes"; then |
---|
493 | AC_DEFINE(SBUILD_FEATURE_UNION, 1) |
---|
494 | fi |
---|
495 | |
---|
496 | AC_MSG_CHECKING([for boost::program_options::variables_map in -lboost_program_options]) |
---|
497 | saved_LIBS="${LIBS}" |
---|
498 | LIBS="${LIBS} -lboost_program_options" |
---|
499 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/program_options.hpp>], |
---|
500 | [boost::program_options::variables_map::variables_map dummy()])], |
---|
501 | [AC_MSG_RESULT([yes]) |
---|
502 | BOOST_LIBS="${BOOST_LIBS} -lboost_program_options"], |
---|
503 | [AC_MSG_RESULT([no]) |
---|
504 | AC_MSG_FAILURE([libboost_program_options (Boost C++ Libraries) is not installed, but is required by schroot])]) |
---|
505 | LIBS="${saved_LIBS}" |
---|
506 | |
---|
507 | AC_MSG_CHECKING([for boost::program_options::options_description::options() in -lboost_program_options]) |
---|
508 | saved_LIBS="${LIBS}" |
---|
509 | LIBS="${LIBS} -lboost_program_options" |
---|
510 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/program_options.hpp>], |
---|
511 | [boost::program_options::options_description testgrp("test group"); |
---|
512 | bool notused = testgrp.options().empty(); |
---|
513 | ])], |
---|
514 | [AC_MSG_RESULT([yes]) |
---|
515 | BOOST_PROGRAM_OPTIONS_DESCRIPTION_METHODS="current"], |
---|
516 | [AC_MSG_RESULT([no]) |
---|
517 | BOOST_PROGRAM_OPTIONS_DESCRIPTION_METHODS="old"]) |
---|
518 | LIBS="${saved_LIBS}" |
---|
519 | AH_TEMPLATE(BOOST_PROGRAM_OPTIONS_DESCRIPTION_OLD, [Set if boost::program_options::options_description::options() is not available]) |
---|
520 | if test "$BOOST_PROGRAM_OPTIONS_DESCRIPTION_METHODS" = "old"; then |
---|
521 | AC_DEFINE(BOOST_PROGRAM_OPTIONS_DESCRIPTION_OLD, 1) |
---|
522 | fi |
---|
523 | |
---|
524 | AC_MSG_CHECKING([for boost::regex in -lboost_regex]) |
---|
525 | saved_LIBS="${LIBS}" |
---|
526 | LIBS="${LIBS} -lboost_regex" |
---|
527 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/regex.hpp>], |
---|
528 | [boost::regex("^foo[bar]$")])], |
---|
529 | [AC_MSG_RESULT([yes]) |
---|
530 | BOOST_LIBS="${BOOST_LIBS} -lboost_regex"], |
---|
531 | [AC_MSG_RESULT([no]) |
---|
532 | AC_MSG_FAILURE([libboost_regex (Boost C++ Libraries) is not installed, but is required by schroot])]) |
---|
533 | LIBS="${saved_LIBS}" |
---|
534 | |
---|
535 | AC_MSG_CHECKING([for boost::filesystem in -lboost_filesystem]) |
---|
536 | saved_LIBS="${LIBS}" |
---|
537 | LIBS="${LIBS} -lboost_filesystem" |
---|
538 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/filesystem.hpp>], |
---|
539 | [boost::filesystem::is_directory("/")])], |
---|
540 | [AC_MSG_RESULT([yes]) |
---|
541 | BOOST_FILESYSTEM_LIBS="-lboost_filesystem"], |
---|
542 | [AC_MSG_RESULT([no]) |
---|
543 | AC_MSG_FAILURE([libboost_filesystem (Boost C++ Libraries) is not installed, but is required by schroot])]) |
---|
544 | LIBS="${saved_LIBS}" |
---|
545 | |
---|
546 | AC_SUBST([BOOST_LIBS]) |
---|
547 | AC_SUBST([BOOST_FILESYSTEM_LIBS]) |
---|
548 | |
---|
549 | AC_MSG_CHECKING([for __gnu_cxx::stdio_filebuf in libstdc++]) |
---|
550 | AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ext/stdio_filebuf.h> |
---|
551 | #include <unistd.h>], |
---|
552 | [__gnu_cxx::stdio_filebuf<char> fdbuf(STDOUT_FILENO, std::ios::out)])], |
---|
553 | [AC_MSG_RESULT([yes])], |
---|
554 | [AC_MSG_RESULT([no]) |
---|
555 | AC_MSG_FAILURE([__gnu_cxx::stdio_filebuf (GNU libstdc++) is not installed, but is required by schroot])]) |
---|
556 | |
---|
557 | dnl Set PACKAGE_LOCALE_DIR in config.h |
---|
558 | AH_TEMPLATE(PACKAGE_LOCALE_DIR, [Package locale directory]) |
---|
559 | if test "x${prefix}" = "xNONE"; then |
---|
560 | AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, ["${ac_default_prefix}/share/locale"]) |
---|
561 | else |
---|
562 | AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, ["${prefix}/share/locale"]) |
---|
563 | fi |
---|
564 | |
---|
565 | dnl Set PACKAGE_DATA_DIR in config.h. |
---|
566 | AH_TEMPLATE(PACKAGE_DATA_DIR, [Package data directory]) |
---|
567 | if test "x${datadir}" = 'x${prefix}/share' || test "x${datadir}" = 'x${datarootdir}'; then |
---|
568 | if test "x${prefix}" = "xNONE"; then |
---|
569 | PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" |
---|
570 | else |
---|
571 | PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" |
---|
572 | fi |
---|
573 | else |
---|
574 | PACKAGE_DATA_DIR="${datadir}/${PACKAGE}" |
---|
575 | fi |
---|
576 | |
---|
577 | AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${PACKAGE_DATA_DIR}") |
---|
578 | |
---|
579 | dnl Set PACKAGE_LIB_DIR in config.h. |
---|
580 | AH_TEMPLATE(PACKAGE_LIB_DIR, [Package lib directory]) |
---|
581 | if test "x${libdir}" = 'x${exec_prefix}/lib'; then |
---|
582 | if test "x${exec_prefix}" = "xNONE"; then |
---|
583 | if test "x${prefix}" = "xNONE"; then |
---|
584 | PACKAGE_LIB_DIR="${ac_default_prefix}/lib/${PACKAGE}" |
---|
585 | else |
---|
586 | PACKAGE_LIB_DIR="${prefix}/lib/${PACKAGE}" |
---|
587 | fi |
---|
588 | else |
---|
589 | PACKAGE_LIB_DIR="${exec_prefix}/lib/${PACKAGE}" |
---|
590 | fi |
---|
591 | else |
---|
592 | PACKAGE_LIB_DIR="${libdir}/${PACKAGE}" |
---|
593 | fi |
---|
594 | |
---|
595 | dnl Set PACKAGE_LIBEXEC_DIR in config.h. |
---|
596 | AH_TEMPLATE(PACKAGE_LIBEXEC_DIR, [Package libexec directory]) |
---|
597 | if test "x${libexecdir}" = 'x${exec_prefix}/libexec'; then |
---|
598 | if test "x${exec_prefix}" = "xNONE"; then |
---|
599 | if test "x${prefix}" = "xNONE"; then |
---|
600 | PACKAGE_LIBEXEC_DIR="${ac_default_prefix}/libexec/${PACKAGE}" |
---|
601 | else |
---|
602 | PACKAGE_LIBEXEC_DIR="${prefix}/libexec/${PACKAGE}" |
---|
603 | fi |
---|
604 | else |
---|
605 | PACKAGE_LIBEXEC_DIR="${exec_prefix}/libexec/${PACKAGE}" |
---|
606 | fi |
---|
607 | else |
---|
608 | PACKAGE_LIBEXEC_DIR="${libexecdir}/${PACKAGE}" |
---|
609 | fi |
---|
610 | |
---|
611 | SCHROOT_LIBEXEC_DIR="${PACKAGE_LIBEXEC_DIR}" |
---|
612 | AC_SUBST(SCHROOT_LIBEXEC_DIR) |
---|
613 | AH_TEMPLATE(SCHROOT_LIBEXEC_DIR, [Package libexec directory]) |
---|
614 | AC_DEFINE_UNQUOTED(SCHROOT_LIBEXEC_DIR, ["$SCHROOT_LIBEXEC_DIR"]) |
---|
615 | |
---|
616 | dnl Set PACKAGE_LOCALSTATE_DIR in config.h. |
---|
617 | AH_TEMPLATE(PACKAGE_LOCALSTATE_DIR, [Package localstate directory]) |
---|
618 | if test "x${localstatedir}" = 'x${prefix}/var'; then |
---|
619 | if test "x${prefix}" = "xNONE"; then |
---|
620 | if test "x${prefix}" = "xNONE"; then |
---|
621 | PACKAGE_LOCALSTATE_DIR="${ac_default_prefix}/var" |
---|
622 | else |
---|
623 | PACKAGE_LOCALSTATE_DIR="${prefix}/var" |
---|
624 | fi |
---|
625 | else |
---|
626 | PACKAGE_LOCALSTATE_DIR="${prefix}/var" |
---|
627 | fi |
---|
628 | else |
---|
629 | PACKAGE_LOCALSTATE_DIR="${localstatedir}" |
---|
630 | fi |
---|
631 | |
---|
632 | SCHROOT_MOUNT_DIR="${PACKAGE_LOCALSTATE_DIR}/lib/${PACKAGE}/mount" |
---|
633 | AC_SUBST([SCHROOT_MOUNT_DIR]) |
---|
634 | AH_TEMPLATE(SCHROOT_MOUNT_DIR, [schroot mount directory]) |
---|
635 | AC_DEFINE_UNQUOTED(SCHROOT_MOUNT_DIR, ["$SCHROOT_MOUNT_DIR"]) |
---|
636 | |
---|
637 | SCHROOT_SESSION_DIR="${PACKAGE_LOCALSTATE_DIR}/lib/${PACKAGE}/session" |
---|
638 | AC_SUBST([SCHROOT_SESSION_DIR]) |
---|
639 | AH_TEMPLATE(SCHROOT_SESSION_DIR, [schroot session directory]) |
---|
640 | AC_DEFINE_UNQUOTED(SCHROOT_SESSION_DIR, ["$SCHROOT_SESSION_DIR"]) |
---|
641 | |
---|
642 | SCHROOT_FILE_UNPACK_DIR="${PACKAGE_LOCALSTATE_DIR}/lib/${PACKAGE}/unpack" |
---|
643 | AC_SUBST([SCHROOT_FILE_UNPACK_DIR]) |
---|
644 | AH_TEMPLATE(SCHROOT_FILE_UNPACK_DIR, [schroot file unpack directory]) |
---|
645 | AC_DEFINE_UNQUOTED(SCHROOT_FILE_UNPACK_DIR, ["$SCHROOT_FILE_UNPACK_DIR"]) |
---|
646 | |
---|
647 | SCHROOT_OVERLAY_DIR="${PACKAGE_LOCALSTATE_DIR}/lib/${PACKAGE}/union/overlay" |
---|
648 | AC_SUBST([SCHROOT_OVERLAY_DIR]) |
---|
649 | AH_TEMPLATE(SCHROOT_OVERLAY_DIR, [schroot overlay directory]) |
---|
650 | AC_DEFINE_UNQUOTED(SCHROOT_OVERLAY_DIR, ["$SCHROOT_OVERLAY_DIR"]) |
---|
651 | |
---|
652 | SCHROOT_UNDERLAY_DIR="${PACKAGE_LOCALSTATE_DIR}/lib/${PACKAGE}/union/underlay" |
---|
653 | AC_SUBST([SCHROOT_UNDERLAY_DIR]) |
---|
654 | AH_TEMPLATE(SCHROOT_UNDERLAY_DIR, [schroot underlay directory]) |
---|
655 | AC_DEFINE_UNQUOTED(SCHROOT_UNDERLAY_DIR, ["$SCHROOT_UNDERLAY_DIR"]) |
---|
656 | |
---|
657 | dnl Set PACKAGE_SYSCONF_DIR in config.h. |
---|
658 | AH_TEMPLATE(PACKAGE_SYSCONF_DIR, [Package system configuration directory]) |
---|
659 | if test "x${sysconfdir}" = 'x${prefix}/etc'; then |
---|
660 | if test "x${prefix}" = "xNONE"; then |
---|
661 | PACKAGE_SYSCONF_DIR="${ac_default_prefix}/etc" |
---|
662 | else |
---|
663 | PACKAGE_SYSCONF_DIR="${prefix}/etc" |
---|
664 | fi |
---|
665 | else |
---|
666 | PACKAGE_SYSCONF_DIR="${sysconfdir}" |
---|
667 | fi |
---|
668 | PACKAGE_SYSCONF_DIR="${PACKAGE_SYSCONF_DIR}/schroot" |
---|
669 | AC_DEFINE_UNQUOTED([PACKAGE_SYSCONF_DIR], ["$PACKAGE_SYSCONF_DIR"]) |
---|
670 | AC_SUBST([PACKAGE_SYSCONF_DIR]) |
---|
671 | |
---|
672 | SCHROOT_CONF="${PACKAGE_SYSCONF_DIR}/schroot.conf" |
---|
673 | AC_SUBST([SCHROOT_CONF]) |
---|
674 | |
---|
675 | AH_TEMPLATE(SCHROOT_CONF, [schroot config file path]) |
---|
676 | AC_DEFINE_UNQUOTED(SCHROOT_CONF, ["$SCHROOT_CONF"]) |
---|
677 | |
---|
678 | SCHROOT_CONF_CHROOT_D="${PACKAGE_SYSCONF_DIR}/chroot.d" |
---|
679 | AC_SUBST([SCHROOT_CONF_CHROOT_D]) |
---|
680 | |
---|
681 | AH_TEMPLATE(SCHROOT_CONF_CHROOT_D, [schroot chroot directory]) |
---|
682 | AC_DEFINE_UNQUOTED(SCHROOT_CONF_CHROOT_D, ["$SCHROOT_CONF_CHROOT_D"]) |
---|
683 | |
---|
684 | SCHROOT_CONF_SETUP_D="${PACKAGE_SYSCONF_DIR}/setup.d" |
---|
685 | AC_SUBST([SCHROOT_CONF_SETUP_D]) |
---|
686 | |
---|
687 | AH_TEMPLATE(SCHROOT_CONF_SETUP_D, [schroot chroot setup directory]) |
---|
688 | AC_DEFINE_UNQUOTED(SCHROOT_CONF_SETUP_D, ["$SCHROOT_CONF_SETUP_D"]) |
---|
689 | |
---|
690 | AH_TEMPLATE(SCHROOT_DATADIR, [Package data directory]) |
---|
691 | SCHROOT_DATADIR="${PACKAGE_DATA_DIR}/${PACKAGE_VERSION}" |
---|
692 | AC_DEFINE_UNQUOTED(SCHROOT_DATADIR, ["$SCHROOT_DATADIR"]) |
---|
693 | |
---|
694 | AH_TEMPLATE(SCHROOT_MODULEDIR, [Package module directory]) |
---|
695 | SCHROOT_MODULEDIR="${PACKAGE_LIB_DIR}/${PACKAGE_VERSION}/modules" |
---|
696 | AC_DEFINE_UNQUOTED(SCHROOT_MODULEDIR, ["$SCHROOT_MODULEDIR"]) |
---|
697 | |
---|
698 | if test "x${sysconfdir}" = 'x${prefix}/etc'; then |
---|
699 | if test "x${prefix}" = "xNONE"; then |
---|
700 | DCHROOT_SYSCONF_DIR="${ac_default_prefix}/etc" |
---|
701 | else |
---|
702 | DCHROOT_SYSCONF_DIR="${prefix}/etc" |
---|
703 | fi |
---|
704 | else |
---|
705 | DCHROOT_SYSCONF_DIR="${sysconfdir}" |
---|
706 | fi |
---|
707 | |
---|
708 | DCHROOT_CONF="${DCHROOT_SYSCONF_DIR}/dchroot.conf" |
---|
709 | AC_SUBST([DCHROOT_CONF]) |
---|
710 | |
---|
711 | AH_TEMPLATE(DCHROOT_CONF, [dchroot config file path]) |
---|
712 | AC_DEFINE_UNQUOTED(DCHROOT_CONF, ["$DCHROOT_CONF"]) |
---|
713 | |
---|
714 | CSBUILD_CONF="${CSBUILD_SYSCONF_DIR}/csbuild.conf" |
---|
715 | AC_SUBST([CSBUILD_CONF]) |
---|
716 | |
---|
717 | AH_TEMPLATE(CSBUILD_CONF, [csbuild config file path]) |
---|
718 | AC_DEFINE_UNQUOTED(CSBUILD_CONF, ["$CSBUILD_CONF"]) |
---|
719 | |
---|
720 | dnl Configure which files to generate. |
---|
721 | AC_CONFIG_FILES([doc/Makefile]) |
---|
722 | AC_CONFIG_FILES([doc/sbuild.dox]) |
---|
723 | AC_CONFIG_FILES([doc/schroot.dox]) |
---|
724 | AC_CONFIG_FILES([po/Makefile.in]) |
---|
725 | AC_CONFIG_FILES([sbuild/Makefile]) |
---|
726 | AC_CONFIG_FILES([sbuild/sbuild.pc]) |
---|
727 | AC_CONFIG_FILES([bin/Makefile]) |
---|
728 | AC_CONFIG_FILES([bin/schroot-base/Makefile]) |
---|
729 | AC_CONFIG_FILES([bin/schroot/Makefile]) |
---|
730 | AC_CONFIG_FILES([bin/schroot-listmounts/Makefile]) |
---|
731 | AC_CONFIG_FILES([bin/schroot-mount/Makefile]) |
---|
732 | AC_CONFIG_FILES([bin/schroot-releaselock/Makefile]) |
---|
733 | AC_CONFIG_FILES([bin/dchroot/Makefile]) |
---|
734 | AC_CONFIG_FILES([bin/dchroot-dsa/Makefile]) |
---|
735 | AC_CONFIG_FILES([bin/csbuild/Makefile]) |
---|
736 | AC_CONFIG_FILES([etc/Makefile]) |
---|
737 | AC_CONFIG_FILES([etc/pam/Makefile]) |
---|
738 | AC_CONFIG_FILES([etc/setup.d/Makefile]) |
---|
739 | AC_CONFIG_FILES([etc/bash_completion/Makefile]) |
---|
740 | AC_CONFIG_FILES([man/Makefile]) |
---|
741 | AC_CONFIG_FILES([man/schroot.1]) |
---|
742 | AC_CONFIG_FILES([man/schroot-setup.5]) |
---|
743 | AC_CONFIG_FILES([man/schroot.conf.5]) |
---|
744 | AC_CONFIG_FILES([man/schroot-script-config.5]) |
---|
745 | AC_CONFIG_FILES([man/dchroot.1]) |
---|
746 | AC_CONFIG_FILES([man/dchroot-dsa.1]) |
---|
747 | AC_CONFIG_FILES([man/csbuild.1]) |
---|
748 | AC_CONFIG_FILES([scripts/po-notify]) |
---|
749 | AC_CONFIG_FILES([test/Makefile]) |
---|
750 | AC_CONFIG_FILES([Makefile]) |
---|
751 | dnl Output the generated config.status script. |
---|
752 | AC_OUTPUT |
---|