Package: dssp / 4.0.0-2

configure-patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: Fix man page for mkdssp
Author: Maarten L. Hekkelman <maarten@hekkelman.com>
Last-Update: Tue, 24 Nov 2020 14:17:09 +0100
Forwarded: yes

--- a/configure.ac
+++ b/configure.ac
@@ -23,15 +23,28 @@
 
 AC_ARG_VAR([MRC], [Specify a location for the mrc executable])
 
-dnl We would like to use mrc
+USE_RSRC=0
+
 if test "x$MRC" = "x"; then
 	AC_PATH_PROG([MRC], [mrc])
 fi
 
 if test "x$MRC" = "x"; then
-	AC_MSG_ERROR([mrc not found, the application will be built without resources])
+	AC_MSG_WARN([The mrc application was not found, not using resources.])
+else
+	AC_ARG_ENABLE(
+		resources,
+		[AS_HELP_STRING([--disable-resources], [Do not use mrc to store data in resources])])
+
+	AS_IF([test "x$enable_resources" != "xno" ], [
+		USE_RSRC=1
+	])
 fi
 
+AC_SUBST([USE_RSRC], [$USE_RSRC])
+
+AC_DEFINE_UNQUOTED([USE_RSRC], [$USE_RSRC], [Use mrc to store resources])
+
 dnl revision numbering is something used internally at the NKI
 AC_ARG_ENABLE(
 	revision,
@@ -69,7 +82,6 @@
 AX_BOOST_BASE([1.65.1], [], [AC_MSG_ERROR([Could not find a recent version of boost])])
 AX_BOOST_IOSTREAMS
 AX_BOOST_PROGRAM_OPTIONS
-AX_BOOST_DATE_TIME
 
 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"