1From 20bd8946a5c73290d961df151e82033171639c0d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Tue, 19 Dec 2017 16:55:13 +0100
4Subject: [PATCH 2/7] CMakeLists.txt: remove CHECK_C_SOURCE_RUNS check
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9* TRY_RUN: does not work for OE
10* HAVE_LKSTRFTIME is set by recipe as configure option
11
12Upstream-Status: Inappropriate [Cross-compile specific]
13Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
14---
15 CMakeLists.txt | 23 -----------------------
16 1 file changed, 23 deletions(-)
17
18diff --git a/CMakeLists.txt b/CMakeLists.txt
19index ed99904..9a2e99f 100644
20--- a/CMakeLists.txt
21+++ b/CMakeLists.txt
22@@ -579,29 +579,6 @@ CHECK_C_SOURCE_COMPILES("#include <langinfo.h>
23 CHECK_C_SOURCE_COMPILES("#include <langinfo.h>
24 			int main(void) { char *detail = nl_langinfo (_NL_ADDRESS_COUNTRY_AB2); return 0; }" HAVE__NL_ADDRESS_COUNTRY_AB2)
25
26-# *******************************************************
27-# Check to see if strftime supports the use of %l and %k
28-# *******************************************************
29-
30-CHECK_C_SOURCE_RUNS("
31-	#include <stdlib.h>
32-	#include <string.h>
33-	#include <time.h>
34-	int main(int argc, char **argv)	{
35-	char buf[10];
36-	time_t rawtime;
37-	struct tm *timeinfo;
38-
39-	time(&rawtime);
40-	timeinfo=localtime(&rawtime);
41-	buf[0] = 0;
42-	strftime(buf, 10, \"%lx%k\", timeinfo);
43-
44-	if (!buf[0] || buf[0] == 'x' || strstr(buf, \"l\") || strstr(buf, \"k\"))
45-		return 1;
46-	return 0;
47-	}" HAVE_LKSTRFTIME)
48-
49 # ******************************
50 # system mail stuff
51 # ******************************
52--
532.21.0
54
55