fixes to support condor better

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@575 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2002-08-18 23:18:18 +00:00
parent 9e38e88084
commit b575ec7202
8 changed files with 3448 additions and 7108 deletions

View File

@ -290,11 +290,15 @@ unix_upd_stream_info (StreamDesc * s)
int filedes; /* visualc */ int filedes; /* visualc */
filedes = YP_fileno (s->u.file.file); filedes = YP_fileno (s->u.file.file);
if (isatty (filedes)) { if (isatty (filedes)) {
#if HAVE_TTYNAME
char *ttys = ttyname(filedes); char *ttys = ttyname(filedes);
if (ttys == NULL) if (ttys == NULL)
s->u.file.name = LookupAtom("tty"); s->u.file.name = LookupAtom("tty");
else else
s->u.file.name = LookupAtom(ttys); s->u.file.name = LookupAtom(ttys);
#else
s->u.file.name = LookupAtom("tty");
#endif
s->status |= Tty_Stream_f|Reset_Eof_Stream_f|Promptable_Stream_f; s->status |= Tty_Stream_f|Reset_Eof_Stream_f|Promptable_Stream_f;
return; return;
} }

View File

@ -817,6 +817,7 @@ p_srandom (void)
srandom(current_seed); srandom(current_seed);
#elif HAVE_RAND #elif HAVE_RAND
srand(current_seed); srand(current_seed);
#endif #endif
return (TRUE); return (TRUE);
} }
@ -2015,6 +2016,9 @@ p_alarm(void)
return(unify(ARG2,tout)); return(unify(ARG2,tout));
} }
#else #else
/* not actually trying to set the alarm */
if (IntegerOfTerm(t) == 0)
return(TRUE);
Error(SYSTEM_ERROR, TermNil, Error(SYSTEM_ERROR, TermNil,
"alarm not available in this configuration"); "alarm not available in this configuration");
return(FALSE); return(FALSE);

View File

@ -34,24 +34,9 @@
#undef NO_DYN #undef NO_DYN
#endif /* __AIX */ #endif /* __AIX */
#ifdef __linux__ #if HAVE_DLOPEN
#ifndef __LCC__
#undef NO_DYN
#define LOAD_DL 1 #define LOAD_DL 1
#endif #endif /* LOAD_DL */
#endif /* __linux__ */
#ifdef __osf__
#ifdef NO_DYN
#undef NO_DYN
#define LOAD_DL 1
#endif
#endif
#ifdef sgi
#undef NO_DYN
#define LOAD_DL 1
#endif
#if defined(sparc) || defined(__sparc) #if defined(sparc) || defined(__sparc)
#undef NO_DYN #undef NO_DYN
@ -66,15 +51,6 @@
#endif #endif
#endif #endif
#if (defined(__svr4__) || defined(__SVR4))
#ifndef SIMICS
#ifdef NO_DYN
#undef NO_DYN
#define LOAD_DL 1
#endif
#endif
#endif
#ifdef _WIN32 #ifdef _WIN32
#ifdef NO_DYN #ifdef NO_DYN
#undef NO_DYN #undef NO_DYN
@ -82,24 +58,6 @@
#endif #endif
#endif #endif
#ifdef __ELF__
#ifdef NO_DYN
#undef NO_DYN
#endif
#ifndef LOAD_DL
#define LOAD_DL 1
#endif
#endif
#ifdef __NetBSD__
#ifdef NO_DYN
#undef NO_DYN
#endif
#ifndef LOAD_DL
#define A_OUT 1
#endif
#endif
#ifdef __hpux #ifdef __hpux
#ifdef NO_DYN #ifdef NO_DYN
#undef NO_DYN #undef NO_DYN

View File

@ -16,6 +16,8 @@
<h2>Yap-4.3.23:</h2> <h2>Yap-4.3.23:</h2>
<ul> <ul>
<li>NEW: hide_predicate/2. (request from Paulo Moura)</li>
<li>NEW: support condor.</li>
<li>FIXED: bug in waking up attached variables (summer@mail.sc.cninfo.net).</li> <li>FIXED: bug in waking up attached variables (summer@mail.sc.cninfo.net).</li>
<li>FIXED: extra manual bugs (Maleeha Qazi).</li> <li>FIXED: extra manual bugs (Maleeha Qazi).</li>
<li>UPDATE: updated <code>configure.in</code> for smooth YAP compilation on MacOS X 10.2.</li> <li>UPDATE: updated <code>configure.in</code> for smooth YAP compilation on MacOS X 10.2.</li>

View File

@ -32,7 +32,6 @@
#define HAVE_MPE 0 #define HAVE_MPE 0
#endif #endif
/* does the compiler support inline ? */ /* does the compiler support inline ? */
#undef inline #undef inline
@ -141,6 +140,7 @@
#undef HAVE_ASINH #undef HAVE_ASINH
#undef HAVE_ATANH #undef HAVE_ATANH
#undef HAVE_CHDIR #undef HAVE_CHDIR
#undef HAVE_DLOPEN
#undef HAVE_DUP2 #undef HAVE_DUP2
#undef HAVE_FESETTRAPENABLE #undef HAVE_FESETTRAPENABLE
#undef HAVE_FETESTEXCEPT #undef HAVE_FETESTEXCEPT
@ -200,6 +200,7 @@
#undef HAVE_TIME #undef HAVE_TIME
#undef HAVE_TIMES #undef HAVE_TIMES
#undef HAVE_TMPNAM #undef HAVE_TMPNAM
#undef HAVE_TTYNAME
#undef HAVE_USLEEP #undef HAVE_USLEEP
#undef HAVE_VSNPRINTF #undef HAVE_VSNPRINTF
#undef HAVE_WAITPID #undef HAVE_WAITPID

10286
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -51,12 +51,15 @@ AC_ARG_ENABLE(dynamic_loading,
AC_ARG_ENABLE(use_malloc, AC_ARG_ENABLE(use_malloc,
[ --enable-use-malloc use malloc to allocate memory ], [ --enable-use-malloc use malloc to allocate memory ],
use_malloc="$enableval", use_malloc=no) use_malloc="$enableval", use_malloc=no)
AC_ARG_ENABLE(condor,
[ --enable-condor allow Yap to be used from condor ],
use_condor="$enableval", use_condor=no)
AC_ARG_WITH(gmp, AC_ARG_WITH(gmp,
[ --with-gmp[=DIR] use GNU Multiple Precision in DIR], [ --with-gmp[=DIR] use GNU Multiple Precision in DIR],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_gmp=yes yap_cv_gmp=yes
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_gmp=no yap_cv_gmp=no
else else
yap_cv_gmp=$with_gmp yap_cv_gmp=$with_gmp
@ -67,9 +70,9 @@ AC_ARG_WITH(gmp,
AC_ARG_WITH(readline, AC_ARG_WITH(readline,
[ --with-readline[=DIR] use GNU Readline Library in DIR], [ --with-readline[=DIR] use GNU Readline Library in DIR],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_readline=yes yap_cv_readline=yes
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_readline=no yap_cv_readline=no
else else
yap_cv_readline=$with_readline yap_cv_readline=$with_readline
@ -80,9 +83,9 @@ AC_ARG_WITH(readline,
AC_ARG_WITH(mpi, AC_ARG_WITH(mpi,
[ --with-mpi[=DIR] use MPI library in DIR], [ --with-mpi[=DIR] use MPI library in DIR],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_mpi=yes yap_cv_mpi=yes
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_mpi=no yap_cv_mpi=no
else else
yap_cv_mpi=$with_mpi yap_cv_mpi=$with_mpi
@ -93,9 +96,9 @@ AC_ARG_WITH(mpi,
AC_ARG_WITH(mpe, AC_ARG_WITH(mpe,
[ --with-mpe[=DIR] use MPE library in DIR], [ --with-mpe[=DIR] use MPE library in DIR],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_mpe=yes yap_cv_mpe=yes
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_mpe=no yap_cv_mpe=no
else else
yap_cv_mpe=$with_mpe yap_cv_mpe=$with_mpe
@ -106,9 +109,9 @@ AC_ARG_WITH(mpe,
AC_ARG_WITH(heap-space, AC_ARG_WITH(heap-space,
[ --with-heap-space[=space] default heap size in Kbytes], [ --with-heap-space[=space] default heap size in Kbytes],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_heap_space=0 yap_cv_heap_space=0
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_heap_space=0 yap_cv_heap_space=0
else else
yap_cv_heap_space=$withval yap_cv_heap_space=$withval
@ -117,9 +120,9 @@ AC_ARG_WITH(heap-space,
AC_ARG_WITH(stack-space, AC_ARG_WITH(stack-space,
[ --with-stack-space[=space] default stack size in Kbytes], [ --with-stack-space[=space] default stack size in Kbytes],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_stack_space=0 yap_cv_stack_space=0
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_stack_space=0 yap_cv_stack_space=0
else else
yap_cv_stack_space=$withval yap_cv_stack_space=$withval
@ -128,16 +131,16 @@ AC_ARG_WITH(stack-space,
AC_ARG_WITH(trail-space, AC_ARG_WITH(trail-space,
[ --with-trail-space[=space] default trail size in Kbytes], [ --with-trail-space[=space] default trail size in Kbytes],
if test $withval = yes; then if test "$withval" = yes; then
yap_cv_trail_space=0 yap_cv_trail_space=0
elif test $withval = no; then elif test "$withval" = no; then
yap_cv_trail_space=0 yap_cv_trail_space=0
else else
yap_cv_trail_space=$withval yap_cv_trail_space=$withval
fi, fi,
[yap_cv_trail_space=0]) [yap_cv_trail_space=0])
if test $tabling = yes -o $orparallelism = yes if test "$tabling" = yes -o "$orparallelism" = yes
then then
AC_DEFINE(MinHeapSpace, (400*SIZEOF_INT_P)) AC_DEFINE(MinHeapSpace, (400*SIZEOF_INT_P))
AC_DEFINE(MinStackSpace,(300*SIZEOF_INT_P)) AC_DEFINE(MinStackSpace,(300*SIZEOF_INT_P))
@ -156,6 +159,13 @@ AC_CANONICAL_SYSTEM
AC_DEFINE_UNQUOTED(HOST_ALIAS,"${host}") AC_DEFINE_UNQUOTED(HOST_ALIAS,"${host}")
dnl condor does not like dynamic linking on Linux, DEC, and HP-UX platforms.
if test "$use_condor" = yes
then
use_malloc="yes"
CC="condor_compile $CC"
fi
dnl Compilation Flags dnl Compilation Flags
if test "$GCC" = "yes" if test "$GCC" = "yes"
then then
@ -275,12 +285,8 @@ else
have_nsl=yes have_nsl=yes
, ,
have_nsl=no) have_nsl=no)
AC_CHECK_LIB(dl,dlopen,
dnl Linux has both elf and a.out, in this case we found elf
have_dl=yes
,
have_dl=no)
fi fi
if test "$yap_cv_readline" != "no" if test "$yap_cv_readline" != "no"
then then
AC_CHECK_LIB(termcap,tgetent) AC_CHECK_LIB(termcap,tgetent)
@ -389,40 +395,47 @@ else
YAPLIB="libYap.a" YAPLIB="libYap.a"
fi fi
case $target_os in case "$target_os" in
*linux*) *linux*)
if test $have_dl = yes if test "$use_condor" = "no"
then then
SHLIB_SUFFIX=".so" AC_CHECK_LIB(dl,dlopen,
SHLIB_LD="ld -shared" have_dl=yes
DO_SECOND_LD="" ,
LIBS="$LIBS -ldl" have_dl=no)
case $host_cpu in if test "$have_dl" = "yes"
alpha*) then
LDFLAGS="-export-dynamic $LDFLAGS" SHLIB_SUFFIX=".so"
;; SHLIB_LD="ld -shared"
*) DO_SECOND_LD=""
if test "$CC" != "lcc" LIBS="$LIBS -ldl"
then case "$host_cpu" in
LDFLAGS="-rdynamic $LDFLAGS" alpha*)
fi LDFLAGS="-export-dynamic $LDFLAGS"
;; ;;
esac *)
if test "$CC" != "lcc"
then
LDFLAGS="-rdynamic $LDFLAGS"
fi
;;
esac
fi
if test "$CC" = gcc
then
SHLIB_CFLAGS="-shared -fPIC"
INSTALL_DLLS=""
fi
fi fi
if test $have_nsl = yes if test "$have_nsl" = yes
then then
LIBS="$LIBS -lnsl" LIBS="$LIBS -lnsl"
fi fi
if test $CC = gcc
then
SHLIB_CFLAGS="-shared -fPIC"
INSTALL_DLLS=""
fi
;; ;;
*sunos4*) *sunos4*)
M4="/usr/5bin/m4" M4="/usr/5bin/m4"
LDFLAGS="$LDFLAGS -N" LDFLAGS="$LDFLAGS -N"
if test $have_nsl = yes if test "$have_nsl" = yes
then then
LIBS="$LIBS -lnsl" LIBS="$LIBS -lnsl"
fi fi
@ -433,24 +446,27 @@ case $target_os in
#do not use the first memory quadrant #do not use the first memory quadrant
AC_DEFINE(FORCE_SECOND_QUADRANT) AC_DEFINE(FORCE_SECOND_QUADRANT)
M4="/usr/bin/m4" M4="/usr/bin/m4"
SHLIB_INTERFACE="load_shl.o" if test ${use_condor} = no
if test $CC = cc -o $CC = c89 then
then SHLIB_INTERFACE="load_shl.o"
#this tells ld to export all non-static symbols, if test "$CC" = cc -o "$CC" = c89
#otherwise no external predicates. then
SHLIB_LD="ld -b -E ${LDFLAGS}" #this tells ld to export all non-static symbols,
DO_SECOND_LD="" #otherwise no external predicates.
SHLIB_SUFFIX=".sl" SHLIB_LD="ld -b -E ${LDFLAGS}"
SHLIB_CFLAGS="+z" DO_SECOND_LD=""
INSTALL_DLLS="" SHLIB_SUFFIX=".sl"
# If the xnet library was found, turn on X/Open networking SHLIB_CFLAGS="+z"
if test $ac_cv_lib_xnet_getsockname = yes INSTALL_DLLS=""
then # If the xnet library was found, turn on X/Open networking
AC_DEFINE(_XOPEN_SOURCE) if test "$ac_cv_lib_xnet_getsockname" = yes
AC_DEFINE(_XOPEN_SOURCE_EXTENDED,1) then
fi AC_DEFINE(_XOPEN_SOURCE)
else AC_DEFINE(_XOPEN_SOURCE_EXTENDED,1)
INSTALL_DLLS="#" fi
else
INSTALL_DLLS="#"
fi
fi fi
;; ;;
*aix*) *aix*)
@ -462,9 +478,17 @@ case $target_os in
#INSTALL_DLLS="" #INSTALL_DLLS=""
;; ;;
*osf*) *osf*)
SHLIB_SUFFIX=".so" if ${use_condor} = no
SHLIB_LD="ld -shared -expect_unresolved '*'" then
DO_SECOND_LD="" AC_CHECK_LIB(dl,dlopen,
dnl Linux has both elf and a.out, in this case we found elf
have_dl=yes
,
have_dl=no)
SHLIB_SUFFIX=".so"
SHLIB_LD="ld -shared -expect_unresolved '*'"
DO_SECOND_LD=""
fi
;; ;;
*irix6*) *irix6*)
SHLIB_CFLAGS="" SHLIB_CFLAGS=""
@ -506,17 +530,21 @@ case $target_os in
C_PARSER_FLAGS="$C_INTERF_FLAGS" C_PARSER_FLAGS="$C_INTERF_FLAGS"
;; ;;
*) *)
if test $have_dl = yes AC_CHECK_LIB(dl,dlopen,
have_dl=yes
,
have_dl=no)
if test "$have_dl" = yes
then then
SHLIB_SUFFIX=".o" SHLIB_SUFFIX=".o"
LIBS="$LIBS -ldl" LIBS="$LIBS -ldl"
INSTALL_DLLS="" INSTALL_DLLS=""
if test $CC = gcc if test "$CC" = gcc
then then
SHLIB_CFLAGS="-fPIC" SHLIB_CFLAGS="-fPIC"
fi fi
fi fi
if test $have_nsl = yes if test "$have_nsl" = yes
then then
LIBS="$LIBS -lnsl" LIBS="$LIBS -lnsl"
fi fi
@ -630,7 +658,7 @@ AC_TRY_RUN(
, ,
yap_cv_malloct=char,yap_cv_malloct=void,yap_cv_malloct=void)]) yap_cv_malloct=char,yap_cv_malloct=void,yap_cv_malloct=void)])
AC_MSG_RESULT($yap_cv_malloct *) AC_MSG_RESULT($yap_cv_malloct *)
if test $yap_cv_malloct = void if test "$yap_cv_malloct" = void
then AC_DEFINE(MALLOC_T,void *) then AC_DEFINE(MALLOC_T,void *)
else AC_DEFINE(MALLOC_T,char *) else AC_DEFINE(MALLOC_T,char *)
fi fi
@ -646,7 +674,7 @@ AC_TRY_RUN(
, ,
yap_cv_gcc=yes,yap_cv_gcc=no,yap_cv_gcc=yes)]) yap_cv_gcc=yes,yap_cv_gcc=no,yap_cv_gcc=yes)])
AC_MSG_RESULT($yap_cv_gcc) AC_MSG_RESULT($yap_cv_gcc)
if test $yap_cv_gcc = yes if test "$yap_cv_gcc" = yes
then then
M4GENHDRS=m4/gcc_genhdrs.m4 M4GENHDRS=m4/gcc_genhdrs.m4
AC_DEFINE(HAVE_GCC,1) AC_DEFINE(HAVE_GCC,1)
@ -670,7 +698,7 @@ AC_TRY_RUN(
, ,
yap_cv_threaded_code=yes,yap_cv_threaded_code=no,yap_cv_threaded_code=yes)]) yap_cv_threaded_code=yes,yap_cv_threaded_code=no,yap_cv_threaded_code=yes)])
AC_MSG_RESULT($yap_cv_threaded_code) AC_MSG_RESULT($yap_cv_threaded_code)
if test $yap_cv_threaded_code = yes && test $yap_cv_gcc = yes if test "$yap_cv_threaded_code" = yes && test "$yap_cv_gcc" = yes
then then
AC_DEFINE(USE_THREADED_CODE,1) AC_DEFINE(USE_THREADED_CODE,1)
M4GENABSMI=gen_gcc.m4 M4GENABSMI=gen_gcc.m4
@ -695,7 +723,7 @@ AC_TRY_RUN(
, ,
yap_cv_ffieee=yes,yap_cv_ffieee=no,yap_cv_ffieee=yes)]) yap_cv_ffieee=yes,yap_cv_ffieee=no,yap_cv_ffieee=yes)])
AC_MSG_RESULT($yap_cv_ffieee) AC_MSG_RESULT($yap_cv_ffieee)
if test $yap_cv_ffieee = yes if test "$yap_cv_ffieee" = yes
then then
AC_DEFINE(FFIEEE,1) AC_DEFINE(FFIEEE,1)
else else
@ -714,7 +742,7 @@ AC_TRY_COMPILE(
, ,
yap_sigsetjmp=yes,yap_sigsetjmp=no)]) yap_sigsetjmp=yes,yap_sigsetjmp=no)])
AC_MSG_RESULT($yap_sigsetjmp) AC_MSG_RESULT($yap_sigsetjmp)
if test $yap_sigsetjmp = yes if test "$yap_sigsetjmp" = yes
then then
AC_DEFINE(HAVE_SIGSETJMP,1) AC_DEFINE(HAVE_SIGSETJMP,1)
else else
@ -732,7 +760,7 @@ AC_TRY_COMPILE(
, ,
yap_sigsegv=yes,yap_sigsegv=no)]) yap_sigsegv=yes,yap_sigsegv=no)])
AC_MSG_RESULT($yap_sigsegv) AC_MSG_RESULT($yap_sigsegv)
if test $yap_sigsegv = yes if test "$yap_sigsegv" = yes
then then
AC_DEFINE(HAVE_SIGSEGV,1) AC_DEFINE(HAVE_SIGSEGV,1)
else else
@ -750,7 +778,7 @@ AC_TRY_COMPILE(
, ,
yap_siginfo=yes,yap_siginfo=no)]) yap_siginfo=yes,yap_siginfo=no)])
AC_MSG_RESULT($yap_siginfo) AC_MSG_RESULT($yap_siginfo)
if test $yap_siginfo = yes if test "$yap_siginfo" = yes
then then
AC_DEFINE(HAVE_SIGINFO,1) AC_DEFINE(HAVE_SIGINFO,1)
else else
@ -768,7 +796,7 @@ WIFEXITED(x); /* Generates compiler error if WIFEXITED
* uses an int. */ * uses an int. */
], union_wait_ok=yes, union_wait_ok=no) ], union_wait_ok=yes, union_wait_ok=no)
AC_MSG_RESULT($union_wait_ok) AC_MSG_RESULT($union_wait_ok)
if test $union_wait_ok = no; then if test "$union_wait_ok" = no; then
AC_DEFINE(NO_UNION_WAIT) AC_DEFINE(NO_UNION_WAIT)
fi fi
@ -778,27 +806,32 @@ AC_TRY_LINK([], [
extern char **environ; extern char **environ;
], environ_ok=yes, environ_ok=no) ], environ_ok=yes, environ_ok=no)
AC_MSG_RESULT($environ_ok) AC_MSG_RESULT($environ_ok)
if test $environ_ok = yes; then if test "$environ_ok" = yes; then
AC_DEFINE(HAVE_ENVIRON) AC_DEFINE(HAVE_ENVIRON)
fi fi
dnl Checks for library functions. dnl Checks for library functions.
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_CHECK_FUNCS(acosh alarm asinh atanh chdir dup2) AC_CHECK_FUNCS(acosh asinh atanh chdir dlopen dup2)
AC_CHECK_FUNCS(fesettrapenable fetestexcept finite getcwd getenv) AC_CHECK_FUNCS(fesettrapenable fetestexcept finite getcwd getenv)
AC_CHECK_FUNCS(gethostbyname gethostid gethostname) AC_CHECK_FUNCS(gethostbyname gethostid gethostname)
AC_CHECK_FUNCS(gethrtime getpwnam getrusage gettimeofday getwd) AC_CHECK_FUNCS(gethrtime getpwnam getrusage gettimeofday getwd)
AC_CHECK_FUNCS(isatty isnan kill labs link localtime lstat) AC_CHECK_FUNCS(isatty isnan kill labs link localtime lstat)
AC_CHECK_FUNCS(memcpy memmove mkstemp mktemp mmap opendir) AC_CHECK_FUNCS(memcpy memmove mkstemp mktemp opendir)
AC_CHECK_FUNCS(popen putenv rand random readlink regexec) AC_CHECK_FUNCS(putenv rand random readlink regexec)
AC_CHECK_FUNCS(rename rl_set_prompt sbrk select) AC_CHECK_FUNCS(rename rl_set_prompt sbrk select)
AC_CHECK_FUNCS(setbuf setlinebuf shmat sigaction siggetmask siginterrupt) AC_CHECK_FUNCS(setbuf setlinebuf sigaction siggetmask siginterrupt)
AC_CHECK_FUNCS(signal sigprocmask sleep snprintf socket stat) AC_CHECK_FUNCS(signal sigprocmask snprintf socket stat)
AC_CHECK_FUNCS(strchr strerror strncat strncpy strtod system) AC_CHECK_FUNCS(strchr strerror strncat strncpy strtod)
AC_CHECK_FUNCS(time times tmpnam usleep vsnprintf waitpid) AC_CHECK_FUNCS(time times tmpnam usleep vsnprintf)
AC_CHECK_FUNC(regexec, [NO_BUILTIN_REGEXP="#"], [NO_BUILTIN_REGEXP=""]) AC_CHECK_FUNC(regexec, [NO_BUILTIN_REGEXP="#"], [NO_BUILTIN_REGEXP=""])
if test "$use_condor" = "no"
then
AC_CHECK_FUNCS(alarm mmap popen shmat sleep system ttyname waitpid)
fi
dnl check for mpz_xor dnl check for mpz_xor
AC_MSG_CHECKING(for mpz_xor) AC_MSG_CHECKING(for mpz_xor)
AC_CACHE_VAL(yap_mpz_xor,[ AC_CACHE_VAL(yap_mpz_xor,[
@ -811,7 +844,7 @@ AC_TRY_LINK(
, ,
yap_mpz_xor=yes,yap_mpz_xor=no)]) yap_mpz_xor=yes,yap_mpz_xor=no)])
AC_MSG_RESULT($yap_mpz_xor) AC_MSG_RESULT($yap_mpz_xor)
if test $yap_mpz_xor = yes if test "$yap_mpz_xor" = yes
then then
AC_DEFINE(HAVE_MPZ_XOR,1) AC_DEFINE(HAVE_MPZ_XOR,1)
else else
@ -875,7 +908,7 @@ else
fi fi
dnl disable smart memory management dnl disable smart memory management
if test $use_malloc = yes if test "$use_malloc" = yes
then then
AC_DEFINE(USE_MALLOC,1) AC_DEFINE(USE_MALLOC,1)
fi fi

View File

@ -552,6 +552,10 @@ application, but results in performance loss.
instructions. This is useful when developing YAP, should not be so instructions. This is useful when developing YAP, should not be so
useful for normal users. useful for normal users.
@item @code{--enable-condor=yes} allows using the Condor system that
support High Throughput Computing (HTC) on large collections of
distributively owned computing resources.
@item @code{--enable-tabling=@{local,batched@}} allows one of the two @item @code{--enable-tabling=@{local,batched@}} allows one of the two
forms of tabling. This option is still experimental. forms of tabling. This option is still experimental.