Made a common function for the required-program checks in configure.ac
This commit is contained in:
parent
16df6a1774
commit
7ba4392b49
22
configure.ac
22
configure.ac
|
@ -21,16 +21,20 @@ if test "x$ac_cv_prog_cc_c99" = "xno"; then
|
||||||
ccsp_kroc_available=false
|
ccsp_kroc_available=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Check that they have alex, GHC, kroc, svn and the CCSP headers:
|
#AC_NEED_PROG(progname,progvar)
|
||||||
AC_CHECK_PROG([HAVE_GHC],[ghc],[true],[false])
|
AC_DEFUN([AC_NEED_PROG],
|
||||||
if test "x$HAVE_GHC" = "xfalse"; then
|
[
|
||||||
AC_MSG_ERROR([ghc not found])
|
AC_CHECK_PROG($2,$1,[true],[false])
|
||||||
fi
|
if test x$$2 = "xfalse"; then
|
||||||
|
AC_MSG_ERROR([$1 not found])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
AC_CHECK_PROG([HAVE_ALEX],[alex],[true],[false])
|
#Check that they have alex, GHC, kroc, svn and the CCSP headers:
|
||||||
if test "x$HAVE_ALEX" = "xfalse"; then
|
|
||||||
AC_MSG_ERROR([alex not found])
|
AC_NEED_PROG(ghc,HAVE_ghc)
|
||||||
fi
|
AC_NEED_PROG(ghc-pkg,HAVE_ghcpkg)
|
||||||
|
AC_NEED_PROG(alex,HAVE_alex)
|
||||||
|
|
||||||
AC_CHECK_PROG([HAVE_KROC],[kroc],[true],[false])
|
AC_CHECK_PROG([HAVE_KROC],[kroc],[true],[false])
|
||||||
if test "x$HAVE_KROC" = "xfalse"; then
|
if test "x$HAVE_KROC" = "xfalse"; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user