Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
dssp
Commits
637ad65e
Unverified
Commit
637ad65e
authored
Feb 17, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated for locating data directories
parent
9577f427
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
36 deletions
+33
-36
GNUmakefile.in
+11
-18
configure
+0
-0
configure.ac
+22
-18
No files found.
GNUmakefile.in
View file @
637ad65e
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
firstTarget
:
all
firstTarget
:
all
CXX
=
@CXX@
CXX
=
@CXX@
CXXFLAGS
=
@CXXFLAGS@ @CPPFLAGS@ @PTHREAD_CFLAGS@ @CIFPP_CFLAGS@
@ZEEP_CFLAGS@
CXXFLAGS
=
@CXXFLAGS@ @CPPFLAGS@ @PTHREAD_CFLAGS@ @CIFPP_CFLAGS@
LDFLAGS
=
@LDFLAGS@ @PTHREAD_CFLAGS@
LDFLAGS
=
@LDFLAGS@ @PTHREAD_CFLAGS@
LIBS
=
@CIFPP_LIBS@
\
LIBS
=
@CIFPP_LIBS@
\
@BOOST_IOSTREAMS_LIB@
\
@BOOST_IOSTREAMS_LIB@
\
...
@@ -60,14 +60,7 @@ DEFINES += VERSION='"$(VERSION)"'
...
@@ -60,14 +60,7 @@ DEFINES += VERSION='"$(VERSION)"'
CXXFLAGS
+=
-Wall
-Wno-multichar
CXXFLAGS
+=
-Wall
-Wno-multichar
CIFPP_RSRC
=
@CIFPP_RSRC@
LIBCIFPP_DATA_DIR
=
@LIBCIFPP_DATA_DIR@
ifneq
"$(CIFPP_RSRC)"
""
DATADIR
=
$(CIFPP_RSRC)
else
DATADIR
=
$(datadir)
/libcifpp
endif
DEFINES
+=
DATADIR
=
'"
$(DATADIR)
"'
# Use the DEBUG flag to build debug versions of the code
# Use the DEBUG flag to build debug versions of the code
DEBUG
=
@DEBUG@
DEBUG
=
@DEBUG@
...
@@ -133,10 +126,7 @@ endif
...
@@ -133,10 +126,7 @@ endif
ifneq
"$(USE_RSRC)"
"0"
ifneq
"$(USE_RSRC)"
"0"
rsrc
:
rsrc/version.txt
:
$(REVISION_FILE)
@
mkdir
-p
$@
rsrc/version.txt
:
$(REVISION_FILE) | rsrc
cp
$?
$@
cp
$?
$@
endif
endif
...
@@ -148,16 +138,19 @@ OBJECTS = \
...
@@ -148,16 +138,19 @@ OBJECTS = \
ifneq
"$(USE_RSRC)"
"0"
ifneq
"$(USE_RSRC)"
"0"
rsrc/%.dic
:
$(DATADIR)/%.dic.gz | rsrc
OBJECTS
+=
$(OBJDIR)
/dssp_rsrc.o
rsrc
:
@
mkdir
-p
$@
rsrc/%.dic
:
$(LIBCIFPP_DATA_DIR)/%.dic.gz | rsrc
gzcat
$^
>
$@
gzcat
$^
>
$@
rsrc/%.dic
:
$(
DATA
DIR)/%.dic | rsrc
rsrc/%.dic
:
$(
LIBCIFPP_DATA_
DIR)/%.dic | rsrc
ln
-fs
$^
$@
ln
-fs
$^
$@
$OBJECTS
+=
dssp_rsrc.o
$(OBJDIR)/dssp_rsrc.o
:
rsrc/mmcif_pdbx_v50.dic
$(OBJDIR)/dssp_rsrc.o
:
rsrc/mmcif_pdbx_v50.dic
$(MRC)
-o
$
$
@
$
$
^
$(MRC)
-o
$
@
$^
endif
endif
...
...
configure
View file @
637ad65e
This diff is collapsed.
Click to expand it.
configure.ac
View file @
637ad65e
...
@@ -52,9 +52,9 @@ AC_DEFINE_UNQUOTED([USE_RSRC], [$USE_RSRC], [Use mrc to store resources])
...
@@ -52,9 +52,9 @@ AC_DEFINE_UNQUOTED([USE_RSRC], [$USE_RSRC], [Use mrc to store resources])
dnl revision numbering is something used internally at the NKI
dnl revision numbering is something used internally at the NKI
AC_ARG_ENABLE(
AC_ARG_ENABLE(
revision,
revision,
[AS_HELP_STRING([--
en
able-revision], [Create a build number as revision])])
[AS_HELP_STRING([--
dis
able-revision], [Create a build number as revision])])
AS_IF([test "x$enable_revision"
= "xyes
" ], [
AS_IF([test "x$enable_revision"
!= "xno
" ], [
UPDATE_REVISION=1
UPDATE_REVISION=1
])
])
...
@@ -90,6 +90,8 @@ AX_BOOST_REGEX
...
@@ -90,6 +90,8 @@ AX_BOOST_REGEX
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
dnl Check for libcifpp
AC_ARG_WITH([cif++],
AC_ARG_WITH([cif++],
AS_HELP_STRING([--with-cif++=@<:@location@:>@],
AS_HELP_STRING([--with-cif++=@<:@location@:>@],
[Use the cif++ library as specified.]),
[Use the cif++ library as specified.]),
...
@@ -98,22 +100,21 @@ AC_ARG_WITH([cif++],
...
@@ -98,22 +100,21 @@ AC_ARG_WITH([cif++],
AC_MSG_ERROR(['${withval}'' is not a valid directory for --with-cif++])
AC_MSG_ERROR(['${withval}'' is not a valid directory for --with-cif++])
])
])
dnl AC_SUBST([CIFPP_CFLAGS], ["-I ${withval}/include"])
dnl AC_SUBST([CIFPP_CFLAGS], ["-I ${withval}/include"])
dnl AC_SUBST([CIFPP_LIBS], ["-L${withval}/.libs -lcif
pp
"])
dnl AC_SUBST([CIFPP_LIBS], ["-L${withval}/.libs -lcif
++
"])
CIFPP_CFLAGS="-I ${withval}/include"
CIFPP_CFLAGS="-I ${withval}/include"
CIFPP_LIBS="-L${withval}/.libs -lcifpp"
CIFPP_LIBS="-L${withval}/.libs -lcifpp"
CIFPP_RSRC
="${withval}/rsrc"
LIBCIFPP_DATA_DIR
="${withval}/rsrc"
AC_SUBST([CIFPP_CFLAGS], [$CIFPP_CFLAGS])
AC_SUBST([CIFPP_CFLAGS], [$CIFPP_CFLAGS])
AC_SUBST([CIFPP_LIBS], [$CIFPP_LIBS])
AC_SUBST([CIFPP_LIBS], [$CIFPP_LIBS])
])
])
AC_SUBST([CIFPP_RSRC], [$CIFPP_RSRC])
AS_IF([test "x$CIFPP_LIBS" = "x"], [
AS_IF([test "x$CIFPP_LIBS" = "x"], [
if test -x "$PKG_CONFIG"
if test -x "$PKG_CONFIG"
then
then
AX_PKG_CHECK_MODULES([CIFPP], [libcifpp], [], [], [AC_MSG_ERROR([the required package libcifpp is not installed])])
AX_PKG_CHECK_MODULES([CIFPP], [libcifpp], [], [], [AC_MSG_ERROR([the required package libcif++ is not installed])])
LIBCIFPP_DATA_DIR=$(pkg-config --variable=datalibdir libcifpp)
else
else
AC_CHECK_HEADER(
AC_CHECK_HEADER(
[cif++/Cif++.hpp],
[cif++/Cif++.hpp],
...
@@ -125,23 +126,26 @@ Can't find the libcif++ header, Config.hpp. Make sure that it
...
@@ -125,23 +126,26 @@ Can't find the libcif++ header, Config.hpp. Make sure that it
is installed, and either use the --with-cif++ option or install
is installed, and either use the --with-cif++ option or install
pkg-config.])])
pkg-config.])])
AX_CHECK_LIBRARY([CIFPP], [cif++/Cif++.hpp], [cifpp],
AX_CHECK_LIBRARY([CIFPP], [cif++/Cif++.hpp], [cifpp],
[
[
LIBS="-lcifpp $LIBS"
LIBS="-lcifpp $LIBS"
],
],
[AC_MSG_ERROR([libcif++ not found])])
[AC_MSG_ERROR([libcif++ not found])])
AS_IF([ test -f /usr/local/share/libcifpp/mmcif_pdbx_v50.dic.gz ], [LIBCIFPP_DATA_DIR=/usr/local/share/libcifpp/ ])
CIFPP_RSRC="\$(datadir)/libcifpp"
AS_IF([ test -f /var/cache/libcifpp/mmcif_pdbx_v50.dic.gz ], [LIBCIFPP_DATA_DIR=/var/cache/libcifpp ])
fi
fi
])
])
AC_ARG_VAR([LIBCIFPP_DATA_DIR], [Directory containing mmcif_pdbx_v50.dic file])
AC_SUBST([LIBCIFPP_DATA_DIR], [$LIBCIFPP_DATA_DIR])
dnl These are still needed outside the Debian environment
dnl These are still needed outside the Debian environment
AX_CHECK_LIBRARY([LIBZ], [zlib.h], [z],
AX_CHECK_LIBRARY([LIBZ], [zlib.h], [z],
[ LIBS="$LIBS -lz" ],
[ LIBS="$LIBS -lz" ],
[AC_MSG_ERROR([libz not found - compressed files not supported])])
[AC_MSG_ERROR([libz not found - compressed files not supported])])
AX_CHECK_LIBRARY([LIBBZ2], [bzlib.h], [bz2],
AX_CHECK_LIBRARY([LIBBZ2], [bzlib.h], [bz2],
[ LIBS="$LIBS -lbz2"],
[ LIBS="$LIBS -lbz2"],
[AC_MSG_ERROR([libbz2 not found - compressed files not supported])])
[AC_MSG_ERROR([libbz2 not found - compressed files not supported])])
AC_SUBST([LIBS], [$LIBS])
AC_SUBST([LIBS], [$LIBS])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment