mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-13 17:18:45 +00:00
build deps are converted to checks
avoid quit if missing: this facilitates dependency definition in debian package
This commit is contained in:
parent
461b50b930
commit
e1ba5a4b4b
23
configure.ac
23
configure.ac
@ -66,24 +66,21 @@ dnl Checks for reguired programs.
|
|||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
dnl ---------------------------------------------------------------
|
||||||
|
dnl Checks for external programs.
|
||||||
|
|
||||||
|
dnl none of these will fail with error if missing since technically
|
||||||
|
dnl these are not *build* dependencies, but *runtime* dependencies.
|
||||||
|
|
||||||
|
dnl Mandatory
|
||||||
AC_CHECK_PROG(have_zsh,zsh,yes,no)
|
AC_CHECK_PROG(have_zsh,zsh,yes,no)
|
||||||
if test "x$have_zsh" = "xno"; then
|
|
||||||
AC_MSG_ERROR([*** zsh required!])
|
|
||||||
fi
|
|
||||||
AC_CHECK_PROG(have_cryptsetup,cryptsetup,yes,no)
|
AC_CHECK_PROG(have_cryptsetup,cryptsetup,yes,no)
|
||||||
if test "x$have_cryptosetup" = "xno"; then
|
|
||||||
AC_MSG_ERROR([*** cryptosetup required!])
|
|
||||||
fi
|
|
||||||
AC_CHECK_PROG(have_pinentry,pinentry,yes,no)
|
AC_CHECK_PROG(have_pinentry,pinentry,yes,no)
|
||||||
if test "x$have_pinentry" = "xno"; then
|
AC_CHECK_PROG(have_sudo,sudo,yes,no)
|
||||||
AC_MSG_ERROR([*** pinentry required!])
|
dnl Optional
|
||||||
fi
|
|
||||||
AC_CHECK_PROG(have_wipe,wipe,yes,no)
|
AC_CHECK_PROG(have_wipe,wipe,yes,no)
|
||||||
AC_CHECK_PROG(have_dcfldd,dcfldd,yes,no)
|
AC_CHECK_PROG(have_dcfldd,dcfldd,yes,no)
|
||||||
AC_CHECK_PROG(have_sudo,sudo,yes,no)
|
dnl ---------------------------------------------------------------
|
||||||
if test "x$have_sudo" = "xno"; then
|
|
||||||
AC_MSG_ERROR([*** sudo required!])
|
|
||||||
fi
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.16], :,
|
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.16], :,
|
||||||
AC_MSG_ERROR([*** Gtk+2 >=2.16 development files not found!]))
|
AC_MSG_ERROR([*** Gtk+2 >=2.16 development files not found!]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user