+dnl Prerequisites.
+
+dnl Instead of giving an error about each prerequisite as we encounter it,
+dnl group them all together at the end of the run, to be user-friendly.
+AC_DEFUN([PSPP_REQUIRED_PREREQ], [pspp_required_prereqs="$pspp_required_prereqs
+ $1"])
+AC_DEFUN([PSPP_OPTIONAL_PREREQ], [pspp_optional_prereqs="$pspp_optional_prereqs
+ $1"])
+AC_DEFUN([PSPP_CHECK_PREREQS],
+[
+ if test "$pspp_optional_prereqs" != ""; then
+ AC_MSG_WARN([The following optional prerequisites are not installed.
+You may wish to install them to obtain additional functionality:$pspp_optional_prereqs])
+fi
+ if test "$pspp_required_prereqs" != ""; then
+ AC_MSG_ERROR([The following required prerequisites are not installed.
+You must install them before PSPP can be built:$pspp_required_prereqs])
+fi
+])
+
+