root / configure.ac @ e3bdb1c2
History | View | Annotate | Download (5.7 kB)
1 | a5d17f9f | Michael Hanselmann | # Configure script for Ganeti |
---|---|---|---|
2 | 5e29d733 | Michael Hanselmann | m4_define([gnt_version_major], [2]) |
3 | b03ee906 | Michael Hanselmann | m4_define([gnt_version_minor], [1]) |
4 | b03ee906 | Michael Hanselmann | m4_define([gnt_version_revision], [0]) |
5 | 62066d05 | Michael Hanselmann | m4_define([gnt_version_suffix], [~beta2]) |
6 | d5fd92ed | Michael Hanselmann | m4_define([gnt_version_full], |
7 | d5fd92ed | Michael Hanselmann | m4_format([%d.%d.%d%s], |
8 | d5fd92ed | Michael Hanselmann | gnt_version_major, gnt_version_minor, |
9 | d5fd92ed | Michael Hanselmann | gnt_version_revision, gnt_version_suffix)) |
10 | d5fd92ed | Michael Hanselmann | |
11 | a8083063 | Iustin Pop | AC_PREREQ(2.59) |
12 | d5fd92ed | Michael Hanselmann | AC_INIT(ganeti, gnt_version_full, ganeti@googlegroups.com) |
13 | 16ebf761 | Iustin Pop | AC_CONFIG_AUX_DIR(autotools) |
14 | 9ff7e35c | Michael Hanselmann | AC_CONFIG_SRCDIR(configure) |
15 | e70f1b7c | Michael Hanselmann | AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability]) |
16 | a8083063 | Iustin Pop | |
17 | d5fd92ed | Michael Hanselmann | AC_SUBST([VERSION_MAJOR], gnt_version_major) |
18 | d5fd92ed | Michael Hanselmann | AC_SUBST([VERSION_MINOR], gnt_version_minor) |
19 | d5fd92ed | Michael Hanselmann | AC_SUBST([VERSION_REVISION], gnt_version_revision) |
20 | d5fd92ed | Michael Hanselmann | AC_SUBST([VERSION_SUFFIX], gnt_version_suffix) |
21 | d5fd92ed | Michael Hanselmann | AC_SUBST([VERSION_FULL], gnt_version_full) |
22 | d5fd92ed | Michael Hanselmann | |
23 | c6b8baba | Michael Hanselmann | # --with-ssh-initscript=... |
24 | c6b8baba | Michael Hanselmann | AC_ARG_WITH([ssh-initscript], |
25 | 8f106515 | Guido Trotter | [AS_HELP_STRING([--with-ssh-initscript=SCRIPT], |
26 | c6b8baba | Michael Hanselmann | [SSH init script to use (default is /etc/init.d/ssh)] |
27 | c6b8baba | Michael Hanselmann | )], |
28 | f491c3a8 | Michael Hanselmann | [ssh_initd_script="$withval"], |
29 | f491c3a8 | Michael Hanselmann | [ssh_initd_script="/etc/init.d/ssh"]) |
30 | f491c3a8 | Michael Hanselmann | AC_SUBST(SSH_INITD_SCRIPT, $ssh_initd_script) |
31 | c6b8baba | Michael Hanselmann | |
32 | 68dccc07 | Guido Trotter | # --with-export-dir=... |
33 | 68dccc07 | Guido Trotter | AC_ARG_WITH([export-dir], |
34 | 68dccc07 | Guido Trotter | [AS_HELP_STRING([--with-export-dir=DIR], |
35 | f00b46bc | Michael Hanselmann | [directory to use by default for instance image] |
36 | f00b46bc | Michael Hanselmann | [ exports (default is /srv/ganeti/export)] |
37 | 68dccc07 | Guido Trotter | )], |
38 | 68dccc07 | Guido Trotter | [export_dir="$withval"], |
39 | 68dccc07 | Guido Trotter | [export_dir="/srv/ganeti/export"]) |
40 | 68dccc07 | Guido Trotter | AC_SUBST(EXPORT_DIR, $export_dir) |
41 | 68dccc07 | Guido Trotter | |
42 | 7c3d51d4 | Guido Trotter | # --with-os-search-path=... |
43 | 7c3d51d4 | Guido Trotter | # do a bit of black sed magic to for quoting of the strings in the list |
44 | 7c3d51d4 | Guido Trotter | AC_ARG_WITH([os-search-path], |
45 | 7c3d51d4 | Guido Trotter | [AS_HELP_STRING([--with-os-search-path=LIST], |
46 | f00b46bc | Michael Hanselmann | [comma separated list of directories to] |
47 | f00b46bc | Michael Hanselmann | [ search for OS images (default is /srv/ganeti/os)] |
48 | 7c3d51d4 | Guido Trotter | )], |
49 | 7c3d51d4 | Guido Trotter | [os_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`], |
50 | 7c3d51d4 | Guido Trotter | [os_search_path="'/srv/ganeti/os'"]) |
51 | 7c3d51d4 | Guido Trotter | AC_SUBST(OS_SEARCH_PATH, $os_search_path) |
52 | 7c3d51d4 | Guido Trotter | |
53 | 298fe380 | Iustin Pop | # --with-iallocator-search-path=... |
54 | 298fe380 | Iustin Pop | # do a bit of black sed magic to for quoting of the strings in the list |
55 | 298fe380 | Iustin Pop | AC_ARG_WITH([iallocator-search-path], |
56 | 298fe380 | Iustin Pop | [AS_HELP_STRING([--with-iallocator-search-path=LIST], |
57 | 298fe380 | Iustin Pop | [comma separated list of directories to] |
58 | 298fe380 | Iustin Pop | [ search for instance allocators (default is $libdir/ganeti/iallocators)] |
59 | 298fe380 | Iustin Pop | )], |
60 | 298fe380 | Iustin Pop | [iallocator_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`], |
61 | 298fe380 | Iustin Pop | [iallocator_search_path="'$libdir/$PACKAGE_NAME/iallocators'"]) |
62 | 298fe380 | Iustin Pop | AC_SUBST(IALLOCATOR_SEARCH_PATH, $iallocator_search_path) |
63 | 298fe380 | Iustin Pop | |
64 | 2f2dbb4b | Jun Futagawa | # --with-xen-bootloader=... |
65 | 2f2dbb4b | Jun Futagawa | AC_ARG_WITH([xen-bootloader], |
66 | 2f2dbb4b | Jun Futagawa | [AS_HELP_STRING([--with-xen-bootloader=PATH], |
67 | 2f2dbb4b | Jun Futagawa | [bootloader for Xen hypervisor (default is empty)] |
68 | 2f2dbb4b | Jun Futagawa | )], |
69 | 2f2dbb4b | Jun Futagawa | [xen_bootloader="$withval"], |
70 | 2f2dbb4b | Jun Futagawa | [xen_bootloader=]) |
71 | 2f2dbb4b | Jun Futagawa | AC_SUBST(XEN_BOOTLOADER, $xen_bootloader) |
72 | 2f2dbb4b | Jun Futagawa | |
73 | f00b46bc | Michael Hanselmann | # --with-xen-kernel=... |
74 | f00b46bc | Michael Hanselmann | AC_ARG_WITH([xen-kernel], |
75 | f00b46bc | Michael Hanselmann | [AS_HELP_STRING([--with-xen-kernel=PATH], |
76 | f00b46bc | Michael Hanselmann | [DomU kernel image for Xen hypervisor (default is /boot/vmlinuz-2.6-xenU)] |
77 | f00b46bc | Michael Hanselmann | )], |
78 | f00b46bc | Michael Hanselmann | [xen_kernel="$withval"], |
79 | f00b46bc | Michael Hanselmann | [xen_kernel="/boot/vmlinuz-2.6-xenU"]) |
80 | f00b46bc | Michael Hanselmann | AC_SUBST(XEN_KERNEL, $xen_kernel) |
81 | f00b46bc | Michael Hanselmann | |
82 | f00b46bc | Michael Hanselmann | # --with-xen-initrd=... |
83 | f00b46bc | Michael Hanselmann | AC_ARG_WITH([xen-initrd], |
84 | f00b46bc | Michael Hanselmann | [AS_HELP_STRING([--with-xen-initrd=PATH], |
85 | f00b46bc | Michael Hanselmann | [DomU initrd image for Xen hypervisor (default is /boot/initrd-2.6-xenU)] |
86 | f00b46bc | Michael Hanselmann | )], |
87 | f00b46bc | Michael Hanselmann | [xen_initrd="$withval"], |
88 | f00b46bc | Michael Hanselmann | [xen_initrd="/boot/initrd-2.6-xenU"]) |
89 | f00b46bc | Michael Hanselmann | AC_SUBST(XEN_INITRD, $xen_initrd) |
90 | f00b46bc | Michael Hanselmann | |
91 | 22c734bc | Manuel Franceschini | # --with-file-storage-dir=... |
92 | 22c734bc | Manuel Franceschini | AC_ARG_WITH([file-storage-dir], |
93 | 22c734bc | Manuel Franceschini | [AS_HELP_STRING([--with-file-storage-dir=PATH], |
94 | 22c734bc | Manuel Franceschini | [directory to store files for file-based backend] |
95 | 22c734bc | Manuel Franceschini | [ (default is /srv/ganeti/file-storage)] |
96 | 22c734bc | Manuel Franceschini | )], |
97 | 22c734bc | Manuel Franceschini | [file_storage_dir="$withval"], |
98 | 22c734bc | Manuel Franceschini | [file_storage_dir="/srv/ganeti/file-storage"]) |
99 | 22c734bc | Manuel Franceschini | AC_SUBST(FILE_STORAGE_DIR, $file_storage_dir) |
100 | 22c734bc | Manuel Franceschini | |
101 | 7e2c5b9e | Guido Trotter | # --with-kvm-path=... |
102 | 7e2c5b9e | Guido Trotter | AC_ARG_WITH([kvm-path], |
103 | 7e2c5b9e | Guido Trotter | [AS_HELP_STRING([--with-kvm-path=PATH], |
104 | 7e2c5b9e | Guido Trotter | [absolute path to the kvm binary] |
105 | 7e2c5b9e | Guido Trotter | [ (default is /usr/bin/kvm)] |
106 | 7e2c5b9e | Guido Trotter | )], |
107 | 7e2c5b9e | Guido Trotter | [kvm_path="$withval"], |
108 | 7e2c5b9e | Guido Trotter | [kvm_path="/usr/bin/kvm"]) |
109 | 7e2c5b9e | Guido Trotter | AC_SUBST(KVM_PATH, $kvm_path) |
110 | 7e2c5b9e | Guido Trotter | |
111 | 30e42c4e | Guido Trotter | # --with-kvm-migration-port=... |
112 | 30e42c4e | Guido Trotter | AC_ARG_WITH([kvm-migration-port], |
113 | 30e42c4e | Guido Trotter | [AS_HELP_STRING([--with-kvm-migration-port=PORT], |
114 | 30e42c4e | Guido Trotter | [tcp port used for kvm instance live migration] |
115 | 30e42c4e | Guido Trotter | [ (default is 8102)] |
116 | 30e42c4e | Guido Trotter | )], |
117 | 30e42c4e | Guido Trotter | [kvm_migration_port="$withval"], |
118 | 30e42c4e | Guido Trotter | [kvm_migration_port="8102"]) |
119 | 30e42c4e | Guido Trotter | AC_SUBST(KVM_MIGRATION_PORT, $kvm_migration_port) |
120 | 30e42c4e | Guido Trotter | |
121 | 14aa53cb | Guido Trotter | # --with-socat-path=... |
122 | 14aa53cb | Guido Trotter | AC_ARG_WITH([socat-path], |
123 | 14aa53cb | Guido Trotter | [AS_HELP_STRING([--with-socat-path=PATH], |
124 | 14aa53cb | Guido Trotter | [absolute path to the socat binary] |
125 | e3bdb1c2 | Iustin Pop | [ (default is /usr/bin/socat)] |
126 | 14aa53cb | Guido Trotter | )], |
127 | e3bdb1c2 | Iustin Pop | [socat_path="$withval"], |
128 | e3bdb1c2 | Iustin Pop | [socat_path="/usr/bin/socat"]) |
129 | e3bdb1c2 | Iustin Pop | AC_SUBST(SOCAT_PATH, $socat_path) |
130 | 14aa53cb | Guido Trotter | |
131 | 3736cb6b | Iustin Pop | # ---with-lvm-stripecount=... |
132 | 3736cb6b | Iustin Pop | AC_ARG_WITH([lvm-stripecount], |
133 | 3736cb6b | Iustin Pop | [AS_HELP_STRING([--with-lvm-stripecount=NUM], |
134 | 3736cb6b | Iustin Pop | [the number of stripes to use for LVM volumes] |
135 | 7b3ac94d | Iustin Pop | [ (default is 1)] |
136 | 3736cb6b | Iustin Pop | )], |
137 | 3736cb6b | Iustin Pop | [lvm_stripecount="$withval"], |
138 | 7b3ac94d | Iustin Pop | [lvm_stripecount="1"]) |
139 | 3736cb6b | Iustin Pop | AC_SUBST(LVM_STRIPECOUNT, $lvm_stripecount) |
140 | 3736cb6b | Iustin Pop | |
141 | a5d17f9f | Michael Hanselmann | # Check common programs |
142 | a8083063 | Iustin Pop | AC_PROG_INSTALL |
143 | 9ff7e35c | Michael Hanselmann | AC_PROG_LN_S |
144 | a8083063 | Iustin Pop | |
145 | 1efbe18e | Michael Hanselmann | # Check for docbook programs |
146 | 1efbe18e | Michael Hanselmann | AC_ARG_VAR(DOCBOOK2MAN, [docbook2man path]) |
147 | 1efbe18e | Michael Hanselmann | AC_PATH_PROG(DOCBOOK2MAN, [docbook2man], []) |
148 | 1efbe18e | Michael Hanselmann | if test -z "$DOCBOOK2MAN" |
149 | 1efbe18e | Michael Hanselmann | then |
150 | 2ab2b9f5 | Iustin Pop | AC_MSG_WARN([docbook2man not found, man pages rebuild will not be possible]) |
151 | 1efbe18e | Michael Hanselmann | fi |
152 | 1efbe18e | Michael Hanselmann | |
153 | 1efbe18e | Michael Hanselmann | AC_ARG_VAR(DOCBOOK2HTML, [docbook2html path]) |
154 | 1efbe18e | Michael Hanselmann | AC_PATH_PROG(DOCBOOK2HTML, [docbook2html], []) |
155 | 1efbe18e | Michael Hanselmann | if test -z "$DOCBOOK2HTML" |
156 | 1efbe18e | Michael Hanselmann | then |
157 | 2ab2b9f5 | Iustin Pop | AC_MSG_WARN([docbook2html not found, man pages rebuild will not be possible]) |
158 | 1efbe18e | Michael Hanselmann | fi |
159 | 1efbe18e | Michael Hanselmann | |
160 | d17e74b4 | Iustin Pop | # Check for python-sphinx |
161 | d17e74b4 | Iustin Pop | AC_ARG_VAR(SPHINX, [sphinx-build path]) |
162 | d17e74b4 | Iustin Pop | AC_PATH_PROG(SPHINX, [sphinx-build], []) |
163 | d17e74b4 | Iustin Pop | if test -z "$SPHINX" |
164 | f05c99f3 | Michael Hanselmann | then |
165 | d17e74b4 | Iustin Pop | AC_MSG_WARN([sphinx-build not found, documentation rebuild will not be possible]) |
166 | f05c99f3 | Michael Hanselmann | fi |
167 | f05c99f3 | Michael Hanselmann | |
168 | f86e82ef | Iustin Pop | # Check for graphviz (dot) |
169 | f86e82ef | Iustin Pop | AC_ARG_VAR(DOT, [dot path]) |
170 | f86e82ef | Iustin Pop | AC_PATH_PROG(DOT, [dot], []) |
171 | f86e82ef | Iustin Pop | if test -z "$DOT" |
172 | f86e82ef | Iustin Pop | then |
173 | 2ab2b9f5 | Iustin Pop | AC_MSG_WARN([dot (from the graphviz suite) not found, documentation rebuild not possible]) |
174 | f86e82ef | Iustin Pop | fi |
175 | f86e82ef | Iustin Pop | |
176 | a5d17f9f | Michael Hanselmann | # Check for Python |
177 | a8083063 | Iustin Pop | AM_PATH_PYTHON(2.4) |
178 | a8083063 | Iustin Pop | |
179 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(OpenSSL, t) |
180 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(simplejson, t) |
181 | 6e06b36c | Iustin Pop | AC_PYTHON_MODULE(pyparsing, t) |
182 | 0f18ee6d | Guido Trotter | AC_PYTHON_MODULE(pyinotify, t) |
183 | 6e06b36c | Iustin Pop | |
184 | e8230860 | Michael Hanselmann | AC_CONFIG_FILES([ Makefile ]) |
185 | 3571f686 | Iustin Pop | |
186 | a8083063 | Iustin Pop | AC_OUTPUT |