Skip to content

Commit

Permalink
Revert "build: support a system CUDD installation (#48)"
Browse files Browse the repository at this point in the history
This reverts commit 47f2a14.
  • Loading branch information
kiwifb committed Oct 1, 2020
1 parent d4dead9 commit 67a0ce7
Show file tree
Hide file tree
Showing 27 changed files with 76 additions and 52 deletions.
10 changes: 4 additions & 6 deletions Makefile.am
@@ -1,15 +1,13 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS =
if !EXTERNAL_CUDD
SUBDIRS += cudd
endif
SUBDIRS += libbrial . groebner tests
SUBDIRS = cudd libbrial . groebner tests

lib_LTLIBRARIES = libbrial.la

libbrial_la_SOURCES =
libbrial_la_LIBADD = libbrial/src/libbrial_base.la ${CUDD_LIBS}
libbrial_la_LIBADD = \
cudd/libcudd.la \
libbrial/src/libbrial_base.la
libbrial_la_LDFLAGS = -no-undefined $(AM_LDFLAGS) -version-info @LT_CURRENT@:@LT_REVISION@:@LT_AGE@

EXTRA_DIST = \
Expand Down
3 changes: 1 addition & 2 deletions common.mk
@@ -1,8 +1,7 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/groebner/include \
-I$(top_builddir)/libbrial/include \
-I$(top_srcdir)/libbrial/include \
${CUDD_CPPFLAGS}
-I$(top_srcdir)/libbrial/include

AM_CXXFLAGS = -ftemplate-depth-100

Expand Down
18 changes: 0 additions & 18 deletions configure.ac
Expand Up @@ -95,24 +95,6 @@ else
fi
fi

EXTERNAL_CUDD=""
AC_ARG_WITH([external-cudd],
[AS_HELP_STRING([--with-external-cudd], [Utilize a system-installed CUDD library])],
[
CUDD_CPPFLAGS="-DPBORI_USE_ORIGINAL_CUDD"
AC_CHECK_HEADERS([cudd/cuddInt.h], [], [AC_MSG_ERROR([Requested system CUDD but cannot resolve <cudd/cuddInt.h>])])
CUDD_LIBS="-lcudd"
EXTERNAL_CUDD=1
],
[
CUDD_CPPFLAGS='-I${top_srcdir}/libbrial/include/polybori'
CUDD_LIBS='${top_builddir}/cudd/libcudd.la'
]
)
AM_CONDITIONAL([EXTERNAL_CUDD], [test -n "$EXTERNAL_CUDD"])
AC_SUBST([CUDD_CPPFLAGS])
AC_SUBST([CUDD_LIBS])

AC_CONFIG_HEADERS([config_dummy.h libbrial/include/polybori/config.h])
AC_CONFIG_FILES([
Makefile
Expand Down
2 changes: 1 addition & 1 deletion cudd/cudd.h
Expand Up @@ -72,7 +72,7 @@

#else
#include <polybori/config.h>
#include <polybori/cuddaux/prefix.h>
#include <polybori/cudd/prefix.h>

#ifndef CUDD_ASSERT

Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddAPI.c
Expand Up @@ -213,7 +213,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddCache.c
Expand Up @@ -67,7 +67,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddInit.c
Expand Up @@ -60,7 +60,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddInt.h
Expand Up @@ -92,7 +92,7 @@
#include "st.h"

#else
#include <polybori/cuddaux/prefix.h>
#include <polybori/cudd/prefix.h>
#endif

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddLCache.c
Expand Up @@ -79,7 +79,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddRef.c
Expand Up @@ -69,7 +69,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddTable.c
Expand Up @@ -85,7 +85,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddZddFuncs.c
Expand Up @@ -79,7 +79,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/cuddZddSetop.c
Expand Up @@ -77,7 +77,7 @@
#include "cuddInt.h"

#ifndef PBORI_FORCE_ORIGINAL_CUDD
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/prefix_internal.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion cudd/util.h
Expand Up @@ -8,7 +8,7 @@
#ifndef polybori_cuddy_util_h_
#define polybori_cuddy_util_h_

#include <polybori/cuddaux/prefix.h>
#include <polybori/cudd/prefix.h>
#ifdef __cplusplus

#include <ctime>
Expand Down
8 changes: 6 additions & 2 deletions libbrial/include/Makefile.am
Expand Up @@ -21,8 +21,8 @@ nobase_include_HEADERS = \
polybori/common/traits.h \
polybori/common/TransformedSequence.h \
polybori/config.h \
polybori/cuddaux/prefix.h \
polybori/cuddaux/prefix_internal.h \
polybori/cudd/prefix.h \
polybori/cudd/prefix_internal.h \
polybori/DegLexOrder.h \
polybori/DegRevLexAscOrder.h \
polybori/diagram/CApplyNodeFacade.h \
Expand Down Expand Up @@ -81,3 +81,7 @@ nobase_include_HEADERS = \
polybori/routines/pbori_routines_misc.h \
polybori/routines/pbori_routines_order.h \
polybori.h

noinst_HEADERS = \
polybori/cudd/cudd.h \
polybori/cudd/cuddInt.h
1 change: 0 additions & 1 deletion libbrial/include/polybori/common/traits.h
Expand Up @@ -22,7 +22,6 @@
// include basic definitions
#include <polybori/pbori_defs.h>
#include <polybori/common/tags.h>
#include <polybori/cuddaux/prefix.h>

#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
Expand Down
22 changes: 22 additions & 0 deletions libbrial/include/polybori/cudd/cudd.h
@@ -0,0 +1,22 @@
// -*- c++ -*-
//*****************************************************************************
/** @file cudd.h
*
* @author Alexander Dreyer
* @date 2001-07-13
*
* Forwarding header for cudd.h
* (PolyBoRi needs a specific version of Cudd.)
*
* @par Copyright:
* (c) 2011 by The PolyBoRi Team
*
**/
//*****************************************************************************

#ifndef polybori_cudd_cudd_h_
#define polybori_cudd_cudd_h_

#include "../../../../cudd/cudd.h"

#endif
22 changes: 22 additions & 0 deletions libbrial/include/polybori/cudd/cuddInt.h
@@ -0,0 +1,22 @@
// -*- c++ -*-
//*****************************************************************************
/** @file cudd.h
*
* @author Alexander Dreyer
* @date 2001-07-13
*
* Forwarding header for cuddInt.h
* (PolyBoRi needs a specific version of Cudd.)
*
* @par Copyright:
* (c) 2011 by The PolyBoRi Team
*
**/
//*****************************************************************************

#ifndef polybori_cudd_cuddInt_h_
#define polybori_cudd_cuddInt_h_

#include "../../../../cudd/cuddInt.h"

#endif
File renamed without changes.
4 changes: 2 additions & 2 deletions libbrial/include/polybori/diagram/CCuddDDFacade.h
Expand Up @@ -19,8 +19,8 @@
// include basic definitions
#include <polybori/pbori_defs.h>

#include <cudd/cudd.h>
#include <polybori/cuddaux/prefix.h>
#include <polybori/cudd/cudd.h>
#include <polybori/cudd/prefix.h>
#include "CApplyNodeFacade.h"
#include "CNodeCounter.h"

Expand Down
2 changes: 1 addition & 1 deletion libbrial/include/polybori/diagram/CDDOperations.h
Expand Up @@ -19,7 +19,7 @@
#include <polybori/pbori_defs.h>

// Get Cudd definitions
#include <cudd/cudd.h>
#include <polybori/cudd/cudd.h>

#include <polybori/routines/pbori_routines.h>
#include <polybori/cache/CCacheManagement.h>
Expand Down
2 changes: 1 addition & 1 deletion libbrial/include/polybori/pbori_defs.h
Expand Up @@ -24,7 +24,7 @@
#include <iostream>

/// @note PolyBoRi comes with a special copy of Cudd
#include <cudd/cudd.h>
#include <polybori/cudd/cudd.h>

#include "config.h"

Expand Down
5 changes: 2 additions & 3 deletions libbrial/include/polybori/ring/CCuddInterface.h
Expand Up @@ -19,9 +19,8 @@
// include basic definitions
#include <polybori/pbori_defs.h>

#include <cudd/cudd.h>
#include <cudd/cuddInt.h>
#include <polybori/cuddaux/prefix.h>
#include <polybori/cudd/cudd.h>
#include <polybori/cudd/cuddInt.h>

#include <polybori/routines/pbori_func.h> // handle_error
#include "CCallbackWrapper.h"
Expand Down
3 changes: 1 addition & 2 deletions libbrial/include/polybori/routines/pbori_algo.h
Expand Up @@ -27,8 +27,7 @@
#include <polybori/common/traits.h>

// temporarily
#include <cudd/cudd.h>
#include <polybori/cuddaux/prefix.h>
#include <polybori/cudd/cudd.h>
#include <polybori/ring/CCuddInterface.h>

BEGIN_NAMESPACE_PBORI
Expand Down
2 changes: 1 addition & 1 deletion libbrial/include/polybori/routines/pbori_algo_int.h
Expand Up @@ -22,7 +22,7 @@
// get polybori's functionals
#include "pbori_func.h"
#include <polybori/iterators/CCuddNavigator.h>
#include <cudd/cudd.h>
#include <polybori/cudd/cudd.h>

BEGIN_NAMESPACE_PBORI

Expand Down
4 changes: 2 additions & 2 deletions libbrial/src/pbori_routines.cc
Expand Up @@ -15,8 +15,8 @@
// include basic definitions
#include <polybori/pbori_defs.h>

#include <cudd/cudd.h>
#include <polybori/cuddaux/prefix_internal.h>
#include <polybori/cudd/cudd.h>
#include <polybori/cudd/prefix_internal.h>

BEGIN_NAMESPACE_PBORI

Expand Down

2 comments on commit 67a0ce7

@jengelh
Copy link
Contributor

@jengelh jengelh commented on 67a0ce7 Oct 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reason for the revert in the commit message should have been provided.

@kiwifb
Copy link
Member Author

@kiwifb kiwifb commented on 67a0ce7 Oct 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.