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
fb9264fe
Commit
fb9264fe
authored
Sep 23, 2020
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better check for libcif++
parent
014eaf6d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
GNUmakefile.in
+7
-7
configure
+0
-0
configure.ac
+12
-9
No files found.
GNUmakefile.in
View file @
fb9264fe
...
...
@@ -25,9 +25,10 @@
firstTarget
:
all
CXX
=
@CXX@
CXXFLAGS
=
@CXXFLAGS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @PTHREAD_CFLAGS@
CXXFLAGS
=
@CXXFLAGS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @PTHREAD_CFLAGS@
@CIFPP_CFLAGS@
LDFLAGS
=
@LDFLAGS@ @BOOST_LDFLAGS@ @PTHREAD_CFLAGS@
LIBS
=
@LIBS@
\
@CIFPP_LIBS@
\
@BOOST_IOSTREAMS_LIB@
\
@BOOST_PROGRAM_OPTIONS_LIB@
\
@BOOST_DATE_TIME_LIB@
...
...
@@ -72,7 +73,6 @@ endif
MRC
=
@MRC@
USE_RSRC
=
@USE_RSRC@
CIFPP_RSRC
=
$(DATADIR)
# targets
...
...
@@ -97,7 +97,7 @@ COMMON_OBJECTS = pr-main.o
$(OBJDIR)/pr-main.o
:
src/revision.hpp
ifneq
"$(USE_RSRC)"
"0"
COMMON_RSRC
=
@CIFPP_RSRC@
/dictionaries
COMMON_RSRC
=
$(DATADIR)
/dictionaries
endif
# The program rules
...
...
@@ -144,12 +144,12 @@ REVISION_FILE = version-info-$(REVISION).txt
$(REVISION_FILE)
:
$(OBJDIR) src
rm
-f
version-info-
*
.txt
git describe
--match
=
build
--dirty
>
$@
git log
--pretty
=
medium
--date
=
iso8601
-1
>>
$@
@
git log
--pretty
=
medium
--date
=
iso8601
-1
>>
$@
src/revision.hpp
:
$(REVISION_FILE)
echo
'const char kRevision[] = R"('
>
$@
cat
$?
>>
$@
echo
')";'
>>
$@
@
echo
'const char kRevision[] = R"('
>
$@
@
cat
$?
>>
$@
@
echo
')";'
>>
$@
rsrc
:
@
mkdir
-p
$@
...
...
configure
View file @
fb9264fe
This diff is collapsed.
Click to expand it.
configure.ac
View file @
fb9264fe
...
...
@@ -74,17 +74,20 @@ AC_ARG_WITH([cif++],
AS_HELP_STRING([--with-cif++=@<:@location@:>@],
[Use the cif++ library as specified.]),
[
CPPFLAGS="$CPPFLAGS -I ${withval}/include"
CXXFLAGS="$CXXFLAGS -I ${withval}/include"
LDFLAGS="$LDFLAGS -L${withval}/.libs"
LIBS="$LIBS -lcif++"
AC_SUBST([CIFPP_RSRC], [${withval}/rsrc])
AC_SUBST([CIFPP_LIB], [${withval}/.libs/libcif++.la])
dnl AC_SUBST([CIFPP_CFLAGS], ["-I ${withval}/include"])
dnl AC_SUBST([CIFPP_LIBS], ["-L${withval}/.libs -lcif++"])
CIFPP_CFLAGS="-I ${withval}/include"
CIFPP_LIBS="-L${withval}/.libs -lcif++"
AC_SUBST([CIFPP_CFLAGS], [$CIFPP_CFLAGS])
AC_SUBST([CIFPP_LIBS], [$CIFPP_LIBS])
])
AX_CHECK_LIBRARY([LIBCIFPP], [cif++/Config.hpp], [cif++],
[],
[AC_MSG_ERROR([libcif++ not found - cannot continue])])
AS_IF([test "x$CIFPP_LIBS" = "x"], [
AC_PATH_PROG([PKG_CONFIG], [pkg-config])
AX_PKG_CHECK_MODULES([CIFPP], [libcif++], [], [], [AC_MSG_ERROR([the required package libcif++ is not installed])])
])
AX_CHECK_LIBRARY([LIBZ], [zlib.h], [z],
[ LIBS="$LIBS -lz" ],
...
...
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