aboutsummaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/eds/evolution-data-server/0002-CMakeLists.txt-remove-CHECK_C_SOURCE_RUNS-check.patch
blob: c8dc7e12c6cef776c1a1a548ed68c449dd3bda1a (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
53
From 210b204d9edd71202454ff04013cc52b23c598e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Tue, 19 Dec 2017 16:55:13 +0100
Subject: [PATCH] CMakeLists.txt: remove CHECK_C_SOURCE_RUNS check
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* TRY_RUN: does not work for OE
* HAVE_LKSTRFTIME is set by recipe as configure option

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 CMakeLists.txt | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2396f2..f3b271b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -573,29 +573,6 @@ CHECK_C_SOURCE_COMPILES("#include <langinfo.h>
 CHECK_C_SOURCE_COMPILES("#include <langinfo.h>
 			int main(void) { char *detail = nl_langinfo (_NL_ADDRESS_COUNTRY_AB2); return 0; }" HAVE__NL_ADDRESS_COUNTRY_AB2)
 
-# *******************************************************
-# Check to see if strftime supports the use of %l and %k
-# *******************************************************
-
-CHECK_C_SOURCE_RUNS("
-	#include <stdlib.h>
-	#include <string.h>
-	#include <time.h>
-	int main(int argc, char **argv)	{
-	char buf[10];
-	time_t rawtime;
-	struct tm *timeinfo;
-
-	time(&rawtime);
-	timeinfo=localtime(&rawtime);
-	buf[0] = 0;
-	strftime(buf, 10, \"%lx%k\", timeinfo);
-
-	if (!buf[0] || buf[0] == 'x' || strstr(buf, \"l\") || strstr(buf, \"k\"))
-		return 1;
-	return 0;
-	}" HAVE_LKSTRFTIME)
-
 # ******************************
 # system mail stuff
 # ******************************
-- 
2.14.3