root / configure.ac @ 97a37b3f
History | View | Annotate | Download (1.6 kB)
1 |
# Configure script for Ganeti |
---|---|
2 |
|
3 |
AC_PREREQ(2.59) |
4 |
AC_INIT(ganeti, 1.2b2, ganeti@googlegroups.com) |
5 |
AC_CONFIG_AUX_DIR(autotools) |
6 |
AM_INIT_AUTOMAKE([foreign tar-ustar]) |
7 |
|
8 |
# --with-ssh-initscript=... |
9 |
AC_ARG_WITH([ssh-initscript], |
10 |
[AS_HELP_STRING([--with-ssh-initscript=SCRIPT], |
11 |
[SSH init script to use (default is /etc/init.d/ssh)] |
12 |
)], |
13 |
[ssh_initd_script="$withval"], |
14 |
[ssh_initd_script="/etc/init.d/ssh"]) |
15 |
AC_SUBST(SSH_INITD_SCRIPT, $ssh_initd_script) |
16 |
|
17 |
# --with-export-dir=... |
18 |
AC_ARG_WITH([export-dir], |
19 |
[AS_HELP_STRING([--with-export-dir=DIR], |
20 |
[directory to use by default for instance image exports (default is /srv/ganeti/export)] |
21 |
)], |
22 |
[export_dir="$withval"], |
23 |
[export_dir="/srv/ganeti/export"]) |
24 |
AC_SUBST(EXPORT_DIR, $export_dir) |
25 |
|
26 |
# --with-os-search-path=... |
27 |
# do a bit of black sed magic to for quoting of the strings in the list |
28 |
AC_ARG_WITH([os-search-path], |
29 |
[AS_HELP_STRING([--with-os-search-path=LIST], |
30 |
[comma separated list of directories to search for OS images (default is /srv/ganeti/os)] |
31 |
)], |
32 |
[os_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`], |
33 |
[os_search_path="'/srv/ganeti/os'"]) |
34 |
AC_SUBST(OS_SEARCH_PATH, $os_search_path) |
35 |
|
36 |
# Check common programs |
37 |
AC_PROG_INSTALL |
38 |
|
39 |
# Check for Python |
40 |
AM_PATH_PYTHON(2.4) |
41 |
|
42 |
# Check for docbook2man |
43 |
found_docbook2man= |
44 |
AC_CHECK_PROG(found_docbook2man, [docbook2man], [yes]) |
45 |
if test "$found_docbook2man" != "yes" |
46 |
then |
47 |
AC_MSG_WARN([docbook2man not found.]) |
48 |
fi |
49 |
|
50 |
AC_CONFIG_FILES([ |
51 |
Makefile |
52 |
daemons/Makefile |
53 |
doc/Makefile |
54 |
doc/examples/Makefile |
55 |
lib/Makefile |
56 |
man/Makefile |
57 |
qa/Makefile |
58 |
scripts/Makefile |
59 |
test/Makefile |
60 |
tools/Makefile |
61 |
]) |
62 |
|
63 |
AC_OUTPUT |