Statistics
| Branch: | Tag: | Revision:

root / configure.ac @ 68dccc07

History | View | Annotate | Download (1.2 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
# Check common programs
27
AC_PROG_INSTALL
28

    
29
# Check for Python
30
AM_PATH_PYTHON(2.4)
31

    
32
# Check for docbook2man
33
found_docbook2man=
34
AC_CHECK_PROG(found_docbook2man, [docbook2man], [yes])
35
if test "$found_docbook2man" != "yes"
36
then
37
  AC_MSG_WARN([docbook2man not found.])
38
fi
39

    
40
AC_CONFIG_FILES([
41
  Makefile
42
  daemons/Makefile
43
  doc/Makefile
44
  doc/examples/Makefile
45
  lib/Makefile
46
  man/Makefile
47
  qa/Makefile
48
  scripts/Makefile
49
  test/Makefile
50
  tools/Makefile
51
])
52

    
53
AC_OUTPUT