| 1 |
# Check whether any of the mandatory modules are not present, and |
| 2 |
# print error messages in case. The mandatory list is built using |
| 3 |
# --with-* arguments when invoking configure. |
| 4 |
|
| 5 |
AC_DEFUN([AST_CHECK_MANDATORY], |
| 6 |
[ |
| 7 |
AC_MSG_CHECKING([for mandatory modules: ${ac_mandatory_list}]) |
| 8 |
err=0; |
| 9 |
for i in ${ac_mandatory_list}; do |
| 10 |
eval "a=\${PBX_$i}" |
| 11 |
if test "x${a}" = "x1" ; then continue; fi |
| 12 |
if test ${err} = "0" ; then AC_MSG_RESULT(fail) ; fi |
| 13 |
AC_MSG_RESULT() |
| 14 |
eval "a=\${${i}_OPTION}" |
| 15 |
AC_MSG_NOTICE([***]) |
| 16 |
AC_MSG_NOTICE([*** The $i installation appears to be missing or broken.]) |
| 17 |
AC_MSG_NOTICE([*** Either correct the installation, or run configure]) |
| 18 |
AC_MSG_NOTICE([*** including --without-${a}.]) |
| 19 |
err=1 |
| 20 |
done |
| 21 |
if test $err = 1 ; then exit 1; fi |
| 22 |
AC_MSG_RESULT(ok) |
| 23 |
]) |