root / configure.ac @ ab712029
History | View | Annotate | Download (1.4 kB)
1 | 79224631 | Lance Albertson | AC_PREREQ(2.59) |
---|---|---|---|
2 | 8d0132dc | Lance Albertson | AC_INIT(ganeti-instance-image, 0.1, lance@osuosl.org) |
3 | 79224631 | Lance Albertson | |
4 | 79224631 | Lance Albertson | AC_CONFIG_AUX_DIR(autotools) |
5 | 79224631 | Lance Albertson | AC_CONFIG_SRCDIR(configure) |
6 | 79224631 | Lance Albertson | |
7 | 79224631 | Lance Albertson | AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability]) |
8 | 79224631 | Lance Albertson | |
9 | 79224631 | Lance Albertson | # --with-os-dir=... |
10 | 79224631 | Lance Albertson | AC_ARG_WITH([os-dir], |
11 | 79224631 | Lance Albertson | [AS_HELP_STRING([--with-os-dir=DIR], |
12 | 79224631 | Lance Albertson | [top-level OS directory under which to install] |
13 | 79224631 | Lance Albertson | [ (default is $datadir/ganeti/os)] |
14 | 79224631 | Lance Albertson | )], |
15 | 79224631 | Lance Albertson | [os_dir="$withval"], |
16 | 79224631 | Lance Albertson | [os_dir="$datadir/ganeti/os"]) |
17 | 79224631 | Lance Albertson | AC_SUBST(OS_DIR, $os_dir) |
18 | 79224631 | Lance Albertson | |
19 | c4661256 | Lance Albertson | # --with-defaults-dir=... |
20 | c4661256 | Lance Albertson | AC_ARG_WITH([defaults-dir], |
21 | c4661256 | Lance Albertson | [AS_HELP_STRING([--with-defaults-dir=DIR], |
22 | c4661256 | Lance Albertson | [top-level defaults config directory under which to install] |
23 | c4661256 | Lance Albertson | [ (default is $sysconfdif/defaults)] |
24 | c4661256 | Lance Albertson | )], |
25 | c4661256 | Lance Albertson | [defaults_dir="$withval"], |
26 | c4661256 | Lance Albertson | [defaults_dir="$sysconfdir/defaults"]) |
27 | c4661256 | Lance Albertson | AC_SUBST(DEFAULTS_DIR, $defaults_dir) |
28 | c4661256 | Lance Albertson | |
29 | 79224631 | Lance Albertson | # Check common programs |
30 | 79224631 | Lance Albertson | AC_PROG_INSTALL |
31 | 79224631 | Lance Albertson | AC_PROG_LN_S |
32 | 8d0132dc | Lance Albertson | AC_PROG_AWK |
33 | 8d0132dc | Lance Albertson | AC_PROG_MKDIR_P |
34 | 79224631 | Lance Albertson | |
35 | 8d0132dc | Lance Albertson | AC_PATH_PROG(DUMP, [dump]) |
36 | 8d0132dc | Lance Albertson | if test -z "$DUMP" ; then |
37 | 8d0132dc | Lance Albertson | AC_MSG_ERROR([dump not found in $PATH]) |
38 | 8d0132dc | Lance Albertson | fi |
39 | 8d0132dc | Lance Albertson | |
40 | 8d0132dc | Lance Albertson | AC_PATH_PROG(LOSETUP, [losetup]) |
41 | 8d0132dc | Lance Albertson | if test -z "$LOSETUP" ; then |
42 | 8d0132dc | Lance Albertson | AC_MSG_ERROR([losetup not found in $PATH]) |
43 | 8d0132dc | Lance Albertson | fi |
44 | 8d0132dc | Lance Albertson | |
45 | 8d0132dc | Lance Albertson | AC_PATH_PROG(KPARTX, [kpartx]) |
46 | 8d0132dc | Lance Albertson | if test -z "$KPARTX" ; then |
47 | 8d0132dc | Lance Albertson | AC_MSG_ERROR([kpartx not found in $PATH]) |
48 | 8d0132dc | Lance Albertson | fi |
49 | 8d0132dc | Lance Albertson | |
50 | 8d0132dc | Lance Albertson | AC_PATH_PROG(SFDISK, [sfdisk]) |
51 | 8d0132dc | Lance Albertson | if test -z "$SFDISK" ; then |
52 | 8d0132dc | Lance Albertson | AC_MSG_ERROR([sfdisk not found in $PATH]) |
53 | 8d0132dc | Lance Albertson | fi |
54 | 8d0132dc | Lance Albertson | |
55 | ab712029 | Lance Albertson | AC_PATH_PROG(QEMU_IMG, [qemu-img]) |
56 | ab712029 | Lance Albertson | if test -z "$QEMU_IMG" ; then |
57 | ab712029 | Lance Albertson | AC_MSG_ERROR([qemu-img not found in $PATH]) |
58 | ab712029 | Lance Albertson | fi |
59 | ab712029 | Lance Albertson | |
60 | 8d0132dc | Lance Albertson | AC_CONFIG_FILES([ |
61 | 8d0132dc | Lance Albertson | Makefile |
62 | 8d0132dc | Lance Albertson | common.sh |
63 | 8d0132dc | Lance Albertson | ]) |
64 | 79224631 | Lance Albertson | |
65 | 79224631 | Lance Albertson | AC_OUTPUT |