fix cudd support.
This commit is contained in:
parent
bc8c9a423a
commit
d78a55ca83
@ -51,6 +51,10 @@
|
|||||||
#undef HAVE_CTYPE_H
|
#undef HAVE_CTYPE_H
|
||||||
#undef HAVE_CRYPT_H
|
#undef HAVE_CRYPT_H
|
||||||
#undef HAVE_CUDD_H
|
#undef HAVE_CUDD_H
|
||||||
|
#undef HAVE_CUDDINT_H
|
||||||
|
#undef HAVE_CUDD_CUDD_H
|
||||||
|
#undef HAVE_CUDD_CUDDINT_H
|
||||||
|
#undef HAVE_CUDD_UTIL_H
|
||||||
#undef HAVE_DIRECT_H
|
#undef HAVE_DIRECT_H
|
||||||
#undef HAVE_DIRENT_H
|
#undef HAVE_DIRENT_H
|
||||||
#undef HAVE_DLFCN_H
|
#undef HAVE_DLFCN_H
|
||||||
@ -105,6 +109,7 @@
|
|||||||
#undef HAVE_TIME_H
|
#undef HAVE_TIME_H
|
||||||
#undef HAVE_UNISTD_H
|
#undef HAVE_UNISTD_H
|
||||||
#undef HAVE_UTIME_H
|
#undef HAVE_UTIME_H
|
||||||
|
#undef HAVE_UTIL_H
|
||||||
#undef HAVE_WCTYPE_H
|
#undef HAVE_WCTYPE_H
|
||||||
#undef HAVE_WINSOCK_H
|
#undef HAVE_WINSOCK_H
|
||||||
#undef HAVE_WINSOCK2_H
|
#undef HAVE_WINSOCK2_H
|
||||||
|
24
configure.in
24
configure.in
@ -855,28 +855,20 @@ fi
|
|||||||
if test "$yap_cv_cudd" != no; then
|
if test "$yap_cv_cudd" != no; then
|
||||||
oldlibs="$LIBS"
|
oldlibs="$LIBS"
|
||||||
if test "$yap_cv_cudd" != "NONE"; then
|
if test "$yap_cv_cudd" != "NONE"; then
|
||||||
if test -d "$yap_cv_cudd"/include/cudd; then
|
|
||||||
CUDD_CPPFLAGS="-I $yap_cv_cudd/include/cudd"
|
|
||||||
else
|
|
||||||
CUDD_CPPFLAGS="-I $yap_cv_cudd/include"
|
CUDD_CPPFLAGS="-I $yap_cv_cudd/include"
|
||||||
fi
|
|
||||||
cudd_dir="$yap_cv_cudd"
|
|
||||||
elif test -e /usr/include/cudd; then
|
|
||||||
CUDD_CPPFLAGS="-I /usr/include/cudd"
|
|
||||||
cudd_dir="$yap_cv_cudd"
|
cudd_dir="$yap_cv_cudd"
|
||||||
elif test "$prefix" != "NONE"; then
|
elif test "$prefix" != "NONE"; then
|
||||||
if test -d "$prefix"/include/cudd; then
|
|
||||||
CUDD_CPPFLAGS="-I $prefix/include/cudd"
|
|
||||||
else
|
|
||||||
CUDD_CPPFLAGS="-I $prefix/include"
|
CUDD_CPPFLAGS="-I $prefix/include"
|
||||||
fi
|
|
||||||
cudd_dir="$prefix"
|
cudd_dir="$prefix"
|
||||||
else
|
else
|
||||||
if test -d /usr/local/include/cudd; then
|
CUDD_CPPFLAGS="-I /usr/local/include"
|
||||||
CUDD_CPPFLAGS="-I /usr/local/include/cudd"
|
|
||||||
fi
|
|
||||||
cudd_dir=/usr/local
|
cudd_dir=/usr/local
|
||||||
fi
|
fi
|
||||||
|
OLD_CFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $CUDD_CPPFLAGS"
|
||||||
|
CPPFLAGS="$OLD_CFLAGS"
|
||||||
|
AC_CHECK_HEADERS(util.h cudd/util.h cudd.h cudd/cudd.h)
|
||||||
|
AC_CHECK_HEADERS(cuddInt.h cudd/cuddInt.h)
|
||||||
dnl cudd can be most everywhere
|
dnl cudd can be most everywhere
|
||||||
if test -d "$cudd_dir/lib64/cudd" -a "$YAP_TARGET" = amd64; then
|
if test -d "$cudd_dir/lib64/cudd" -a "$YAP_TARGET" = amd64; then
|
||||||
LIBS="$LIBS -L $cudd_dir/lib64/cudd"
|
LIBS="$LIBS -L $cudd_dir/lib64/cudd"
|
||||||
@ -1668,10 +1660,6 @@ if test "$yap_cv_gmp" != "no"
|
|||||||
then
|
then
|
||||||
AC_CHECK_HEADERS(gmp.h)
|
AC_CHECK_HEADERS(gmp.h)
|
||||||
fi
|
fi
|
||||||
if test "$yap_cv_cudd" != "no"
|
|
||||||
then
|
|
||||||
AC_CHECK_HEADERS(cudd.h)
|
|
||||||
fi
|
|
||||||
if test "$yap_cv_myddas" != "no"
|
if test "$yap_cv_myddas" != "no"
|
||||||
then
|
then
|
||||||
AC_CHECK_HEADERS(mysql/mysql.h)
|
AC_CHECK_HEADERS(mysql/mysql.h)
|
||||||
|
@ -192,9 +192,25 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "util.h"
|
#include "../../../config.h"
|
||||||
|
#if HAVE_UTIL_H
|
||||||
|
#include <util.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_UTIL_H
|
||||||
|
#include <cudd/util.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_H
|
||||||
#include "cudd.h"
|
#include "cudd.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_CUDD_H
|
||||||
|
#include "cudd/cudd.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDDINT_H
|
||||||
#include "cuddInt.h"
|
#include "cuddInt.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_CUDDINT_H
|
||||||
|
#include "cudd/cuddInt.h"
|
||||||
|
#endif
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
|
||||||
#define IsHigh(manager, node) HIGH(manager) == node
|
#define IsHigh(manager, node) HIGH(manager) == node
|
||||||
|
@ -191,9 +191,25 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "pqueue.h"
|
#include "pqueue.h"
|
||||||
#include "util.h"
|
#include "../../../config.h"
|
||||||
|
#if HAVE_UTIL_H
|
||||||
|
#include <util.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_UTIL_H
|
||||||
|
#include <cudd/util.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_H
|
||||||
#include "cudd.h"
|
#include "cudd.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_CUDD_H
|
||||||
|
#include "cudd/cudd.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDDINT_H
|
||||||
#include "cuddInt.h"
|
#include "cuddInt.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_CUDDINT_H
|
||||||
|
#include "cudd/cuddInt.h"
|
||||||
|
#endif
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
|
||||||
#define IsHigh(manager, node) HIGH(manager) == node
|
#define IsHigh(manager, node) HIGH(manager) == node
|
||||||
|
@ -1,10 +1,21 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "YapInterface.h"
|
#include "YapInterface.h"
|
||||||
|
|
||||||
#include "util.h"
|
#if HAVE_UTIL_H
|
||||||
|
#include <util.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_UTIL_H
|
||||||
|
#include <cudd/util.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_H
|
||||||
#include "cudd.h"
|
#include "cudd.h"
|
||||||
|
#endif
|
||||||
|
#if HAVE_CUDD_CUDD_H
|
||||||
|
#include "cudd/cudd.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
static YAP_Functor FunctorDollarVar,
|
static YAP_Functor FunctorDollarVar,
|
||||||
FunctorCudd,
|
FunctorCudd,
|
||||||
|
Reference in New Issue
Block a user