Statistics
| Branch: | Tag: | Revision:

root / configure.ac @ 2f31098c

History | View | Annotate | Download (1.6 kB)

1 a5d17f9f Michael Hanselmann
# Configure script for Ganeti
2 a8083063 Iustin Pop
AC_PREREQ(2.59)
3 7c18ef8e Michael Hanselmann
AC_INIT(ganeti, 1.2b2, 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 68dccc07 Guido Trotter
    [directory to use by default for instance image exports (default is /srv/ganeti/export)]
21 68dccc07 Guido Trotter
  )],
22 68dccc07 Guido Trotter
  [export_dir="$withval"],
23 68dccc07 Guido Trotter
  [export_dir="/srv/ganeti/export"])
24 68dccc07 Guido Trotter
AC_SUBST(EXPORT_DIR, $export_dir)
25 68dccc07 Guido Trotter
26 7c3d51d4 Guido Trotter
# --with-os-search-path=...
27 7c3d51d4 Guido Trotter
# do a bit of black sed magic to for quoting of the strings in the list
28 7c3d51d4 Guido Trotter
AC_ARG_WITH([os-search-path],
29 7c3d51d4 Guido Trotter
  [AS_HELP_STRING([--with-os-search-path=LIST],
30 7c3d51d4 Guido Trotter
    [comma separated list of directories to search for OS images (default is /srv/ganeti/os)]
31 7c3d51d4 Guido Trotter
  )],
32 7c3d51d4 Guido Trotter
  [os_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`],
33 7c3d51d4 Guido Trotter
  [os_search_path="'/srv/ganeti/os'"])
34 7c3d51d4 Guido Trotter
AC_SUBST(OS_SEARCH_PATH, $os_search_path)
35 7c3d51d4 Guido Trotter
36 a5d17f9f Michael Hanselmann
# Check common programs
37 a8083063 Iustin Pop
AC_PROG_INSTALL
38 9ff7e35c Michael Hanselmann
AC_PROG_LN_S
39 a8083063 Iustin Pop
40 a5d17f9f Michael Hanselmann
# Check for Python
41 a8083063 Iustin Pop
AM_PATH_PYTHON(2.4)
42 a8083063 Iustin Pop
43 a5d17f9f Michael Hanselmann
# Check for docbook2man
44 a5d17f9f Michael Hanselmann
found_docbook2man=
45 a5d17f9f Michael Hanselmann
AC_CHECK_PROG(found_docbook2man, [docbook2man], [yes])
46 a5d17f9f Michael Hanselmann
if test "$found_docbook2man" != "yes"
47 a5d17f9f Michael Hanselmann
then
48 a5d17f9f Michael Hanselmann
  AC_MSG_WARN([docbook2man not found.])
49 a5d17f9f Michael Hanselmann
fi
50 a8083063 Iustin Pop
51 2ec08468 Michael Hanselmann
AC_CONFIG_FILES([
52 2ec08468 Michael Hanselmann
  Makefile
53 2ec08468 Michael Hanselmann
  daemons/Makefile
54 2ec08468 Michael Hanselmann
  doc/Makefile
55 2ec08468 Michael Hanselmann
  doc/examples/Makefile
56 2ec08468 Michael Hanselmann
  lib/Makefile
57 2ec08468 Michael Hanselmann
  man/Makefile
58 44c23fa6 Michael Hanselmann
  qa/Makefile
59 2ec08468 Michael Hanselmann
  scripts/Makefile
60 4e5e8bfc Michael Hanselmann
  test/Makefile
61 2ec08468 Michael Hanselmann
  tools/Makefile
62 2ec08468 Michael Hanselmann
])
63 3571f686 Iustin Pop
64 a8083063 Iustin Pop
AC_OUTPUT