summaryrefslogtreecommitdiff
path: root/packages/openntpd/files/autofoo.patch
blob: 605558e6fd0e4bdefd0e9e04ff55dc636d56320e (plain)
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
47
48
49
50
51
52

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- openntpd-3.6.1p1/configure.ac~autofoo
+++ openntpd-3.6.1p1/configure.ac
@@ -500,8 +500,11 @@
 	[
 		AC_MSG_RESULT(not found)
 		AC_MSG_ERROR(OpenSSL version header not found.)
-	]
-)
+	],[
+		AC_MSG_RESULT(unknown)
+		AC_MSG_WARN(Skipping OpenSSL header version check due to crosscompilation.)
+	
+])
 
 # Determine OpenSSL library version
 AC_MSG_CHECKING([OpenSSL library version])
@@ -533,6 +536,9 @@
 	[
 		AC_MSG_RESULT(not found)
 		AC_MSG_ERROR(OpenSSL library not found.)
+	],[
+		AC_MSG_RESULT(unknown)
+		AC_MSG_WARN(Skipping OpenSSL library version check due to crosscompilation.)
 	]
 )
 
@@ -552,6 +558,9 @@
 		AC_MSG_ERROR([Your OpenSSL headers do not match your library.
 Check config.log for details.
 Also see contrib/findssl.sh for help identifying header/library mismatches.])
+	],[
+		AC_MSG_RESULT(unknown)
+		AC_MSG_WARN(Skipping OpenSSL version comparison due to crosscompilation.)
 	]
 )
 
@@ -572,6 +581,10 @@
 	[
 		AC_MSG_RESULT(no)
 		AC_MSG_ERROR(OpenNTPd requires a self-seeding OpenSSL)
+	],
+	[
+		AC_MSG_RESULT(cross, assuming yes)
+		OPENSSL_SEEDS_ITSELF=yes
 	]
 )
 fi