d6a06fe092
as possible.
33 lines
743 B
Plaintext
33 lines
743 B
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(install-sh)
|
|
AC_PREREQ([2.50])
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
AC_SUBST(PL)
|
|
AC_SUBST(PLBASE)
|
|
AC_SUBST(PLARCH)
|
|
|
|
# Do not cache this, it changes too often in many configurations
|
|
unset ac_cv_prog_PL
|
|
|
|
if test -z "$PLINCL"; then
|
|
plcandidates="swi-prolog swipl pl"
|
|
AC_CHECK_PROGS(PL, $plcandidates, "none")
|
|
if test $PL = "none"; then
|
|
AC_ERROR("Cannot find SWI-Prolog. SWI-Prolog must be installed first")
|
|
else
|
|
AC_CHECKING("Running $PL -dump-runtime-variables")
|
|
eval `$PL -dump-runtime-variables`
|
|
fi
|
|
AC_MSG_RESULT(" PLBASE=$PLBASE")
|
|
AC_MSG_RESULT(" PLARCH=$PLARCH")
|
|
else
|
|
PL=../../pl.sh
|
|
fi
|
|
|
|
AC_CHECK_PROGS(MAKE, gmake make, "make")
|
|
AC_PROG_INSTALL
|
|
|
|
AC_OUTPUT(Makefile)
|