Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / configure.ac @ bc9d337a

History | View | Annotate | Download (1.1 kB)

1 d46fb573 Nikos Skalkotos
AC_PREREQ(2.59)
2 1a16b855 Nikos Skalkotos
AC_INIT(snf-image-helper, 0.3.6, synnefo@lists.grnet.gr)
3 d46fb573 Nikos Skalkotos
4 d46fb573 Nikos Skalkotos
AC_CONFIG_AUX_DIR(autotools)
5 d46fb573 Nikos Skalkotos
AC_CONFIG_SRCDIR(configure)
6 d46fb573 Nikos Skalkotos
7 d46fb573 Nikos Skalkotos
AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability])
8 d46fb573 Nikos Skalkotos
AM_INIT_AUTOMAKE([subdir-objects])
9 d46fb573 Nikos Skalkotos
10 d46fb573 Nikos Skalkotos
# Check common programs
11 d46fb573 Nikos Skalkotos
AC_PROG_INSTALL
12 d46fb573 Nikos Skalkotos
AC_PROG_LN_S
13 d46fb573 Nikos Skalkotos
AC_PROG_AWK
14 d46fb573 Nikos Skalkotos
AC_PROG_MKDIR_P
15 d46fb573 Nikos Skalkotos
16 d46fb573 Nikos Skalkotos
AC_PATH_PROG(XMLSTARLET, [xmlstarlet], [], [$PATH:/usr/sbin:/sbin])
17 d46fb573 Nikos Skalkotos
if test -z "$XMLSTARLET" ; then
18 d46fb573 Nikos Skalkotos
  AC_MSG_ERROR([xmlstarlet not found in $PATH])
19 d46fb573 Nikos Skalkotos
fi
20 d46fb573 Nikos Skalkotos
21 d46fb573 Nikos Skalkotos
AC_PATH_PROG(RESIZE2FS, [resize2fs], [], [$PATH:/usr/sbin:/sbin])
22 d46fb573 Nikos Skalkotos
if test -z "$RESIZE2FS" ; then
23 d46fb573 Nikos Skalkotos
  AC_MSG_ERROR([resize2fs not found in $PATH])
24 d46fb573 Nikos Skalkotos
fi
25 d46fb573 Nikos Skalkotos
26 ccd8f3a0 Nikos Skalkotos
AC_PATH_PROG(PARTED, [parted], [], [$PATH:/usr/sbin:/sbin])
27 ccd8f3a0 Nikos Skalkotos
if test -z "$PARTED" ; then
28 ccd8f3a0 Nikos Skalkotos
  AC_MSG_ERROR([parted not found in $PATH])
29 ccd8f3a0 Nikos Skalkotos
fi
30 ccd8f3a0 Nikos Skalkotos
31 ec728294 Nikos Skalkotos
AC_PATH_PROG(REGLOOKUP, [reglookup], [], [$PATH:/usr/sbin:/sbin])
32 ec728294 Nikos Skalkotos
if test -z "$REGLOOKUP" ; then
33 ec728294 Nikos Skalkotos
  AC_MSG_ERROR([reglookup not found in $PATH])
34 ec728294 Nikos Skalkotos
fi
35 ec728294 Nikos Skalkotos
36 ec728294 Nikos Skalkotos
AC_PATH_PROG(CHNTPW, [chntpw], [], [$PATH:/usr/sbin:/sbin])
37 ec728294 Nikos Skalkotos
if test -z "$CHNTPW" ; then
38 ec728294 Nikos Skalkotos
  AC_MSG_ERROR([chntpw not found in $PATH])
39 ec728294 Nikos Skalkotos
fi
40 ec728294 Nikos Skalkotos
41 d46fb573 Nikos Skalkotos
AC_CONFIG_FILES([
42 d46fb573 Nikos Skalkotos
    Makefile
43 d46fb573 Nikos Skalkotos
    tasks/Makefile
44 d46fb573 Nikos Skalkotos
])
45 d46fb573 Nikos Skalkotos
AC_OUTPUT
46 d46fb573 Nikos Skalkotos
47 d46fb573 Nikos Skalkotos
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :