mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
* Fail if prerequisites are missing.
This commit is contained in:
parent
03f1d1ecb5
commit
bf3863b546
1 changed files with 14 additions and 11 deletions
25
configure.ac
25
configure.ac
|
@ -42,19 +42,22 @@ AC_LANG_PUSH(C++)
|
||||||
AC_CHECK_HEADERS([locale])
|
AC_CHECK_HEADERS([locale])
|
||||||
AC_LANG_POP(C++)
|
AC_LANG_POP(C++)
|
||||||
|
|
||||||
AC_PATH_PROG(curl, curl)
|
AC_DEFUN([NEED_PROG],
|
||||||
AC_PATH_PROG(bzip2, bzip2)
|
[AC_PATH_PROG($1, $2)
|
||||||
AC_PATH_PROG(bunzip2, bunzip2)
|
if test -z "$$1"; then
|
||||||
AC_PATH_PROG(shell, sh)
|
AC_MSG_ERROR([$1 is required])
|
||||||
AC_PATH_PROG(xmllint, xmllint)
|
fi
|
||||||
AC_PATH_PROG(xsltproc, xsltproc)
|
])
|
||||||
|
|
||||||
|
NEED_PROG(curl, curl)
|
||||||
|
NEED_PROG(bzip2, bzip2)
|
||||||
|
NEED_PROG(bunzip2, bunzip2)
|
||||||
|
NEED_PROG(shell, sh)
|
||||||
|
AC_PATH_PROG(xmllint, xmllint, false)
|
||||||
|
AC_PATH_PROG(xsltproc, xsltproc, false)
|
||||||
AC_PATH_PROG(flex, flex, false)
|
AC_PATH_PROG(flex, flex, false)
|
||||||
AC_PATH_PROG(bison, bison, false)
|
AC_PATH_PROG(bison, bison, false)
|
||||||
AC_PATH_PROG(perl, perl)
|
NEED_PROG(perl, perl)
|
||||||
if test -z "$perl"; then
|
|
||||||
echo "Perl is required for Nix."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(docbook-catalog, AC_HELP_STRING([--with-docbook-catalog=PATH],
|
AC_ARG_WITH(docbook-catalog, AC_HELP_STRING([--with-docbook-catalog=PATH],
|
||||||
[path of the DocBook XML DTD]),
|
[path of the DocBook XML DTD]),
|
||||||
|
|
Loading…
Reference in a new issue