summaryrefslogtreecommitdiff
path: root/recipes/xfce-base/exo/configure.patch
blob: 2ccfcfc9944e909bc8a8aa642492e05086334507 (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
--- exo-0.3.4/configure.in~	2007-12-02 10:37:06.000000000 -0200
+++ exo-0.3.4/configure.in	2008-06-05 17:21:42.000000000 -0300
@@ -127,22 +127,24 @@
 dnl ***************************************
 dnl *** Check for strftime() extensions ***
 dnl ***************************************
-AC_TRY_RUN([
-  #include <string.h>
-  #include <time.h>
-  int
-  main (int argc, char **argv)
-  {
-    struct tm tm;
-    char      buffer[16];
-    tm.tm_year = 81;
-    if (strftime (buffer, 16, "%EY", &tm) == 4 && strcmp (buffer, "1981") == 0)
-      return 0;
-    return 1;
-  }
-], [
-  AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.])
-])
+dnl grrrr...  this doesn't work for cross compiling, define it for OE
+AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.])
+dnl AC_TRY_RUN([
+dnl   #include <string.h>
+dnl   #include <time.h>
+dnl   int
+dnl   main (int argc, char **argv)
+dnl   {
+dnl     struct tm tm;
+dnl     char      buffer[16];
+dnl     tm.tm_year = 81;
+dnl     if (strftime (buffer, 16, "%EY", &tm) == 4 && strcmp (buffer, "1981") == 0)
+dnl       return 0;
+dnl     return 1;
+dnl   }
+dnl ], [
+dnl   AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.])
+dnl ])
 
 dnl ******************************
 dnl *** Check for i18n support ***