root / configure.ac @ de47cf8f
History | View | Annotate | Download (2.4 kB)
1 | a5d17f9f | Michael Hanselmann | # Configure script for Ganeti |
---|---|---|---|
2 | a8083063 | Iustin Pop | AC_PREREQ(2.59) |
3 | 31b9055c | Iustin Pop | AC_INIT(ganeti, 1.2.1, ganeti@googlegroups.com) |
4 | 16ebf761 | Iustin Pop | AC_CONFIG_AUX_DIR(autotools) |
5 | 9ff7e35c | Michael Hanselmann | AC_CONFIG_SRCDIR(configure) |
6 | 8e587e52 | Michael Hanselmann | AM_INIT_AUTOMAKE([foreign tar-ustar]) |
7 | a8083063 | Iustin Pop | |
8 | c6b8baba | Michael Hanselmann | # --with-ssh-initscript=... |
9 | c6b8baba | Michael Hanselmann | AC_ARG_WITH([ssh-initscript], |
10 | 8f106515 | Guido Trotter | [AS_HELP_STRING([--with-ssh-initscript=SCRIPT], |
11 | c6b8baba | Michael Hanselmann | [SSH init script to use (default is /etc/init.d/ssh)] |
12 | c6b8baba | Michael Hanselmann | )], |
13 | f491c3a8 | Michael Hanselmann | [ssh_initd_script="$withval"], |
14 | f491c3a8 | Michael Hanselmann | [ssh_initd_script="/etc/init.d/ssh"]) |
15 | f491c3a8 | Michael Hanselmann | AC_SUBST(SSH_INITD_SCRIPT, $ssh_initd_script) |
16 | c6b8baba | Michael Hanselmann | |
17 | 68dccc07 | Guido Trotter | # --with-export-dir=... |
18 | 68dccc07 | Guido Trotter | AC_ARG_WITH([export-dir], |
19 | 68dccc07 | Guido Trotter | [AS_HELP_STRING([--with-export-dir=DIR], |
20 | f00b46bc | Michael Hanselmann | [directory to use by default for instance image] |
21 | f00b46bc | Michael Hanselmann | [ exports (default is /srv/ganeti/export)] |
22 | 68dccc07 | Guido Trotter | )], |
23 | 68dccc07 | Guido Trotter | [export_dir="$withval"], |
24 | 68dccc07 | Guido Trotter | [export_dir="/srv/ganeti/export"]) |
25 | 68dccc07 | Guido Trotter | AC_SUBST(EXPORT_DIR, $export_dir) |
26 | 68dccc07 | Guido Trotter | |
27 | 7c3d51d4 | Guido Trotter | # --with-os-search-path=... |
28 | 7c3d51d4 | Guido Trotter | # do a bit of black sed magic to for quoting of the strings in the list |
29 | 7c3d51d4 | Guido Trotter | AC_ARG_WITH([os-search-path], |
30 | 7c3d51d4 | Guido Trotter | [AS_HELP_STRING([--with-os-search-path=LIST], |
31 | f00b46bc | Michael Hanselmann | [comma separated list of directories to] |
32 | f00b46bc | Michael Hanselmann | [ search for OS images (default is /srv/ganeti/os)] |
33 | 7c3d51d4 | Guido Trotter | )], |
34 | 7c3d51d4 | Guido Trotter | [os_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`], |
35 | 7c3d51d4 | Guido Trotter | [os_search_path="'/srv/ganeti/os'"]) |
36 | 7c3d51d4 | Guido Trotter | AC_SUBST(OS_SEARCH_PATH, $os_search_path) |
37 | 7c3d51d4 | Guido Trotter | |
38 | f00b46bc | Michael Hanselmann | # --with-xen-kernel=... |
39 | f00b46bc | Michael Hanselmann | AC_ARG_WITH([xen-kernel], |
40 | f00b46bc | Michael Hanselmann | [AS_HELP_STRING([--with-xen-kernel=PATH], |
41 | f00b46bc | Michael Hanselmann | [DomU kernel image for Xen hypervisor (default is /boot/vmlinuz-2.6-xenU)] |
42 | f00b46bc | Michael Hanselmann | )], |
43 | f00b46bc | Michael Hanselmann | [xen_kernel="$withval"], |
44 | f00b46bc | Michael Hanselmann | [xen_kernel="/boot/vmlinuz-2.6-xenU"]) |
45 | f00b46bc | Michael Hanselmann | AC_SUBST(XEN_KERNEL, $xen_kernel) |
46 | f00b46bc | Michael Hanselmann | |
47 | f00b46bc | Michael Hanselmann | # --with-xen-initrd=... |
48 | f00b46bc | Michael Hanselmann | AC_ARG_WITH([xen-initrd], |
49 | f00b46bc | Michael Hanselmann | [AS_HELP_STRING([--with-xen-initrd=PATH], |
50 | f00b46bc | Michael Hanselmann | [DomU initrd image for Xen hypervisor (default is /boot/initrd-2.6-xenU)] |
51 | f00b46bc | Michael Hanselmann | )], |
52 | f00b46bc | Michael Hanselmann | [xen_initrd="$withval"], |
53 | f00b46bc | Michael Hanselmann | [xen_initrd="/boot/initrd-2.6-xenU"]) |
54 | f00b46bc | Michael Hanselmann | AC_SUBST(XEN_INITRD, $xen_initrd) |
55 | f00b46bc | Michael Hanselmann | |
56 | a5d17f9f | Michael Hanselmann | # Check common programs |
57 | a8083063 | Iustin Pop | AC_PROG_INSTALL |
58 | 9ff7e35c | Michael Hanselmann | AC_PROG_LN_S |
59 | a8083063 | Iustin Pop | |
60 | a5d17f9f | Michael Hanselmann | # Check for Python |
61 | a8083063 | Iustin Pop | AM_PATH_PYTHON(2.4) |
62 | a8083063 | Iustin Pop | |
63 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(twisted.internet, t) |
64 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(twisted.cred, t) |
65 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(twisted.spread, t) |
66 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(OpenSSL, t) |
67 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(simplejson, t) |
68 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(pyparsing, t) |
69 | 6e06b36c | Iustin Pop | |
70 | a5d17f9f | Michael Hanselmann | # Check for docbook2man |
71 | a5d17f9f | Michael Hanselmann | found_docbook2man= |
72 | a5d17f9f | Michael Hanselmann | AC_CHECK_PROG(found_docbook2man, [docbook2man], [yes]) |
73 | a5d17f9f | Michael Hanselmann | if test "$found_docbook2man" != "yes" |
74 | a5d17f9f | Michael Hanselmann | then |
75 | a5d17f9f | Michael Hanselmann | AC_MSG_WARN([docbook2man not found.]) |
76 | a5d17f9f | Michael Hanselmann | fi |
77 | a8083063 | Iustin Pop | |
78 | 2ec08468 | Michael Hanselmann | AC_CONFIG_FILES([ |
79 | 2ec08468 | Michael Hanselmann | Makefile |
80 | 2ec08468 | Michael Hanselmann | daemons/Makefile |
81 | 2ec08468 | Michael Hanselmann | doc/Makefile |
82 | 2ec08468 | Michael Hanselmann | doc/examples/Makefile |
83 | 2ec08468 | Michael Hanselmann | lib/Makefile |
84 | 2ec08468 | Michael Hanselmann | man/Makefile |
85 | 44c23fa6 | Michael Hanselmann | qa/Makefile |
86 | 663ed0ce | Michael Hanselmann | qa/hooks/Makefile |
87 | 2ec08468 | Michael Hanselmann | scripts/Makefile |
88 | 4e5e8bfc | Michael Hanselmann | test/Makefile |
89 | 2ec08468 | Michael Hanselmann | tools/Makefile |
90 | 2ec08468 | Michael Hanselmann | ]) |
91 | 3571f686 | Iustin Pop | |
92 | a8083063 | Iustin Pop | AC_OUTPUT |