summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/bison/bison/m4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/bison/bison/m4.patch')
-rw-r--r--meta/recipes-devtools/bison/bison/m4.patch131
1 files changed, 0 insertions, 131 deletions
diff --git a/meta/recipes-devtools/bison/bison/m4.patch b/meta/recipes-devtools/bison/bison/m4.patch
index 0754a90dcd..d139da5e79 100644
--- a/meta/recipes-devtools/bison/bison/m4.patch
+++ b/meta/recipes-devtools/bison/bison/m4.patch
@@ -75,109 +75,6 @@ Index: bison-2.4.2/m4/uintmax_t.m4
75+ if <inttypes.h> and <stdint.h> don't define.]) 75+ if <inttypes.h> and <stdint.h> don't define.])
76+ fi 76+ fi
77+]) 77+])
78Index: bison-2.4.2/m4/glibc21.m4
79===================================================================
80--- /dev/null
81+++ bison-2.4.2/m4/glibc21.m4
82@@ -0,0 +1,32 @@
83+# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
84+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
85+dnl This file is free software, distributed under the terms of the GNU
86+dnl General Public License. As a special exception to the GNU General
87+dnl Public License, this file may be distributed as part of a program
88+dnl that contains a configuration script generated by Autoconf, under
89+dnl the same distribution terms as the rest of that program.
90+
91+# Test for the GNU C Library, version 2.1 or newer.
92+# From Bruno Haible.
93+
94+AC_DEFUN([jm_GLIBC21],
95+ [
96+ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
97+ ac_cv_gnu_library_2_1,
98+ [AC_EGREP_CPP([Lucky GNU user],
99+ [
100+#include <features.h>
101+#ifdef __GNU_LIBRARY__
102+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
103+ Lucky GNU user
104+ #endif
105+#endif
106+ ],
107+ ac_cv_gnu_library_2_1=yes,
108+ ac_cv_gnu_library_2_1=no)
109+ ]
110+ )
111+ AC_SUBST(GLIBC21)
112+ GLIBC21="$ac_cv_gnu_library_2_1"
113+ ]
114+)
115Index: bison-2.4.2/m4/stdint_h.m4
116===================================================================
117--- /dev/null
118+++ bison-2.4.2/m4/stdint_h.m4
119@@ -0,0 +1,28 @@
120+# stdint_h.m4 serial 2 (gettext-0.11.4)
121+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
122+dnl This file is free software, distributed under the terms of the GNU
123+dnl General Public License. As a special exception to the GNU General
124+dnl Public License, this file may be distributed as part of a program
125+dnl that contains a configuration script generated by Autoconf, under
126+dnl the same distribution terms as the rest of that program.
127+
128+dnl From Paul Eggert.
129+
130+# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
131+# doesn't clash with <sys/types.h>, and declares uintmax_t.
132+
133+AC_DEFUN([jm_AC_HEADER_STDINT_H],
134+[
135+ AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
136+ [AC_TRY_COMPILE(
137+ [#include <sys/types.h>
138+#include <stdint.h>],
139+ [uintmax_t i = (uintmax_t) -1;],
140+ jm_ac_cv_header_stdint_h=yes,
141+ jm_ac_cv_header_stdint_h=no)])
142+ if test $jm_ac_cv_header_stdint_h = yes; then
143+ AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
144+[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
145+ and declares uintmax_t. ])
146+ fi
147+])
148Index: bison-2.4.2/m4/inttypes_h.m4
149===================================================================
150--- /dev/null
151+++ bison-2.4.2/m4/inttypes_h.m4
152@@ -0,0 +1,28 @@
153+# inttypes_h.m4 serial 4 (gettext-0.11.4)
154+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
155+dnl This file is free software, distributed under the terms of the GNU
156+dnl General Public License. As a special exception to the GNU General
157+dnl Public License, this file may be distributed as part of a program
158+dnl that contains a configuration script generated by Autoconf, under
159+dnl the same distribution terms as the rest of that program.
160+
161+dnl From Paul Eggert.
162+
163+# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
164+# doesn't clash with <sys/types.h>, and declares uintmax_t.
165+
166+AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
167+[
168+ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
169+ [AC_TRY_COMPILE(
170+ [#include <sys/types.h>
171+#include <inttypes.h>],
172+ [uintmax_t i = (uintmax_t) -1;],
173+ jm_ac_cv_header_inttypes_h=yes,
174+ jm_ac_cv_header_inttypes_h=no)])
175+ if test $jm_ac_cv_header_inttypes_h = yes; then
176+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
177+[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
178+ and declares uintmax_t. ])
179+ fi
180+])
181Index: bison-2.4.2/m4/ulonglong.m4 78Index: bison-2.4.2/m4/ulonglong.m4
182=================================================================== 79===================================================================
183--- /dev/null 80--- /dev/null
@@ -206,34 +103,6 @@ Index: bison-2.4.2/m4/ulonglong.m4
206+ [Define if you have the unsigned long long type.]) 103+ [Define if you have the unsigned long long type.])
207+ fi 104+ fi
208+]) 105+])
209Index: bison-2.4.2/m4/codeset.m4
210===================================================================
211--- /dev/null
212+++ bison-2.4.2/m4/codeset.m4
213@@ -0,0 +1,23 @@
214+# codeset.m4 serial AM1 (gettext-0.10.40)
215+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
216+dnl This file is free software, distributed under the terms of the GNU
217+dnl General Public License. As a special exception to the GNU General
218+dnl Public License, this file may be distributed as part of a program
219+dnl that contains a configuration script generated by Autoconf, under
220+dnl the same distribution terms as the rest of that program.
221+
222+dnl From Bruno Haible.
223+
224+AC_DEFUN([AM_LANGINFO_CODESET],
225+[
226+ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
227+ [AC_TRY_LINK([#include <langinfo.h>],
228+ [char* cs = nl_langinfo(CODESET);],
229+ am_cv_langinfo_codeset=yes,
230+ am_cv_langinfo_codeset=no)
231+ ])
232+ if test $am_cv_langinfo_codeset = yes; then
233+ AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
234+ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
235+ fi
236+])
237Index: bison-2.4.2/m4/intdiv0.m4 106Index: bison-2.4.2/m4/intdiv0.m4
238=================================================================== 107===================================================================
239--- /dev/null 108--- /dev/null