Commit 6fbe8bb1 by Maarten L. Hekkelman

refactored config file, avoid clashes in defines by autoconf

parent 5f45fd9b
......@@ -5,7 +5,7 @@ obj/
.pc/
autom4te.cache/
GNUmakefile
include/cif++/Config.hpp
include/src/Config.hpp
tools/symop-map-generator
test/unit-test
libcifpp.pc
......
......@@ -1396,7 +1396,7 @@ Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-shared[=PKGS] build shared libraries [default=no]
--enable-static[=PKGS] build static libraries [default=yes]
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
......@@ -3913,7 +3913,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ac_config_headers="$ac_config_headers include/cif++/Config.hpp"
ac_config_headers="$ac_config_headers src/Config.hpp"
......@@ -8432,16 +8432,7 @@ func_stripname_cnf ()
# Set options
enable_dlopen=no
enable_win32_dll=no
# Check whether --enable-shared was given.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
enableval=$enable_shared; p=${PACKAGE-default}
case $enableval in
......@@ -8461,7 +8452,7 @@ if test "${enable_shared+set}" = set; then :
;;
esac
else
enable_shared=yes
enable_shared=no
fi
......@@ -8472,6 +8463,14 @@ fi
enable_dlopen=no
enable_win32_dll=no
# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
enableval=$enable_static; p=${PACKAGE-default}
......@@ -18321,7 +18320,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"include/cif++/Config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS include/cif++/Config.hpp" ;;
"src/Config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS src/Config.hpp" ;;
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
"libcifpp.pc") CONFIG_FILES="$CONFIG_FILES libcifpp.pc" ;;
......
......@@ -11,7 +11,7 @@ AX_CHECK_COMPILE_FLAG([-fstandalone-debug], [ CXXFLAGS="$CXXFLAGS -fstandalone-d
AC_CONFIG_SRCDIR([src/Cif++.cpp])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR([config/m4])
AC_CONFIG_HEADERS([include/cif++/Config.hpp])
AC_CONFIG_HEADERS([src/Config.hpp])
AC_PREFIX_DEFAULT(/usr/local)
......@@ -52,9 +52,9 @@ dnl AC_MSG_RESULT(ok)
AC_PROG_INSTALL
dnl Shared libraries are not convenient
dnl LT_INIT([disable-shared])
LT_INIT
dnl Shared libraries are not convenient, esp. on MacOS... sigh
dnl LT_INIT
LT_INIT([disable-shared])
AC_SUBST(LIBTOOL_DEPS)
dnl versioning, first for libtool
......
......@@ -32,8 +32,6 @@
#include <string>
#include <stdexcept>
#include "cif++/Config.hpp"
namespace mmcif
{
......
......@@ -26,8 +26,6 @@
#pragma once
#include "cif++/Config.hpp"
#include <string>
#include <regex>
......
......@@ -26,8 +26,6 @@
#pragma once
#include "cif++/Config.hpp"
#include <vector>
#include <set>
#include <cassert>
......
......@@ -32,8 +32,6 @@
#include <clipper/core/coords.h>
#endif
#include "cif++/Config.hpp"
#include <boost/math/quaternion.hpp>
namespace mmcif
......
......@@ -24,7 +24,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "cif++/Config.hpp"
#include "Config.hpp"
#include <tuple>
#include <iostream>
......
......@@ -24,7 +24,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "cif++/Config.hpp"
#include "Config.hpp"
#include <map>
#include <numeric>
......
......@@ -24,7 +24,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "cif++/Config.hpp"
#include "Config.hpp"
#include <map>
#include <set>
......
......@@ -24,7 +24,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "cif++/Config.hpp"
#include "Config.hpp"
#include "cif++/Cif++.hpp"
#include <map>
......
......@@ -26,7 +26,7 @@
// Calculate DSSP-like secondary structure information
#include "cif++/Config.hpp"
#include "Config.hpp"
#include <numeric>
#include <iomanip>
......
......@@ -36,7 +36,8 @@
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/format.hpp>
#include "cif++/Config.hpp"
#include "Config.hpp"
#include "cif++/PDB2Cif.hpp"
#include "cif++/CifParser.hpp"
#include "cif++/Cif2PDB.hpp"
......
......@@ -24,7 +24,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "cif++/Config.hpp"
#include "Config.hpp"
#include <atomic>
#include <mutex>
......
......@@ -24,7 +24,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "cif++/Config.hpp"
#include "Config.hpp"
#include <boost/algorithm/string.hpp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment