summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/bison/bison
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-devtools/bison/bison
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/bison/bison')
-rw-r--r--meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch18
-rw-r--r--meta/recipes-devtools/bison/bison/m4.patch544
2 files changed, 562 insertions, 0 deletions
diff --git a/meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch b/meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch
new file mode 100644
index 0000000000..850ec06aa7
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch
@@ -0,0 +1,18 @@
1help2man is looking at the generated binary for help output. This does not work for cross compilations. So taking out the local PREPATH (../src) directory from path so that help2 man can find the native version of the bison in the native sysroot directory.
2
3Date: 2010/06/28
4Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
5
6Index: bison-2.4.2/doc/Makefile.am
7===================================================================
8--- bison-2.4.2.orig/doc/Makefile.am
9+++ bison-2.4.2/doc/Makefile.am
10@@ -77,7 +77,7 @@ PREPATH = $(top_builddir)/src
11 (cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
12 done
13 @echo "Updating man page $@"
14- PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH"; \
15+# PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH";
16 export PATH; \
17 $(HELP2MAN) \
18 --include=$*.x \
diff --git a/meta/recipes-devtools/bison/bison/m4.patch b/meta/recipes-devtools/bison/bison/m4.patch
new file mode 100644
index 0000000000..9332354b50
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/m4.patch
@@ -0,0 +1,544 @@
1
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6Index: bison-2.4.2/m4/lcmessage.m4
7===================================================================
8--- /dev/null
9+++ bison-2.4.2/m4/lcmessage.m4
10@@ -0,0 +1,32 @@
11+# lcmessage.m4 serial 3 (gettext-0.11.3)
12+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
13+dnl This file is free software, distributed under the terms of the GNU
14+dnl General Public License. As a special exception to the GNU General
15+dnl Public License, this file may be distributed as part of a program
16+dnl that contains a configuration script generated by Autoconf, under
17+dnl the same distribution terms as the rest of that program.
18+dnl
19+dnl This file can can be used in projects which are not available under
20+dnl the GNU General Public License or the GNU Library General Public
21+dnl License but which still want to provide support for the GNU gettext
22+dnl functionality.
23+dnl Please note that the actual code of the GNU gettext library is covered
24+dnl by the GNU Library General Public License, and the rest of the GNU
25+dnl gettext package package is covered by the GNU General Public License.
26+dnl They are *not* in the public domain.
27+
28+dnl Authors:
29+dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
30+
31+# Check whether LC_MESSAGES is available in <locale.h>.
32+
33+AC_DEFUN([AM_LC_MESSAGES],
34+[
35+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
36+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
37+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
38+ if test $am_cv_val_LC_MESSAGES = yes; then
39+ AC_DEFINE(HAVE_LC_MESSAGES, 1,
40+ [Define if your <locale.h> file defines LC_MESSAGES.])
41+ fi
42+])
43Index: bison-2.4.2/m4/uintmax_t.m4
44===================================================================
45--- /dev/null
46+++ bison-2.4.2/m4/uintmax_t.m4
47@@ -0,0 +1,29 @@
48+# uintmax_t.m4 serial 6 (gettext-0.11)
49+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
50+dnl This file is free software, distributed under the terms of the GNU
51+dnl General Public License. As a special exception to the GNU General
52+dnl Public License, this file may be distributed as part of a program
53+dnl that contains a configuration script generated by Autoconf, under
54+dnl the same distribution terms as the rest of that program.
55+
56+dnl From Paul Eggert.
57+
58+AC_PREREQ(2.13)
59+
60+# Define uintmax_t to `unsigned long' or `unsigned long long'
61+# if <inttypes.h> does not exist.
62+
63+AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
64+[
65+ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
66+ AC_REQUIRE([jm_AC_HEADER_STDINT_H])
67+ if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
68+ AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
69+ test $ac_cv_type_unsigned_long_long = yes \
70+ && ac_type='unsigned long long' \
71+ || ac_type='unsigned long'
72+ AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
73+ [Define to unsigned long or unsigned long long
74+ if <inttypes.h> and <stdint.h> don't define.])
75+ fi
76+])
77Index: bison-2.4.2/m4/glibc21.m4
78===================================================================
79--- /dev/null
80+++ bison-2.4.2/m4/glibc21.m4
81@@ -0,0 +1,32 @@
82+# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
83+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
84+dnl This file is free software, distributed under the terms of the GNU
85+dnl General Public License. As a special exception to the GNU General
86+dnl Public License, this file may be distributed as part of a program
87+dnl that contains a configuration script generated by Autoconf, under
88+dnl the same distribution terms as the rest of that program.
89+
90+# Test for the GNU C Library, version 2.1 or newer.
91+# From Bruno Haible.
92+
93+AC_DEFUN([jm_GLIBC21],
94+ [
95+ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
96+ ac_cv_gnu_library_2_1,
97+ [AC_EGREP_CPP([Lucky GNU user],
98+ [
99+#include <features.h>
100+#ifdef __GNU_LIBRARY__
101+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
102+ Lucky GNU user
103+ #endif
104+#endif
105+ ],
106+ ac_cv_gnu_library_2_1=yes,
107+ ac_cv_gnu_library_2_1=no)
108+ ]
109+ )
110+ AC_SUBST(GLIBC21)
111+ GLIBC21="$ac_cv_gnu_library_2_1"
112+ ]
113+)
114Index: bison-2.4.2/m4/stdint_h.m4
115===================================================================
116--- /dev/null
117+++ bison-2.4.2/m4/stdint_h.m4
118@@ -0,0 +1,28 @@
119+# stdint_h.m4 serial 2 (gettext-0.11.4)
120+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
121+dnl This file is free software, distributed under the terms of the GNU
122+dnl General Public License. As a special exception to the GNU General
123+dnl Public License, this file may be distributed as part of a program
124+dnl that contains a configuration script generated by Autoconf, under
125+dnl the same distribution terms as the rest of that program.
126+
127+dnl From Paul Eggert.
128+
129+# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
130+# doesn't clash with <sys/types.h>, and declares uintmax_t.
131+
132+AC_DEFUN([jm_AC_HEADER_STDINT_H],
133+[
134+ AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
135+ [AC_TRY_COMPILE(
136+ [#include <sys/types.h>
137+#include <stdint.h>],
138+ [uintmax_t i = (uintmax_t) -1;],
139+ jm_ac_cv_header_stdint_h=yes,
140+ jm_ac_cv_header_stdint_h=no)])
141+ if test $jm_ac_cv_header_stdint_h = yes; then
142+ AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
143+[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
144+ and declares uintmax_t. ])
145+ fi
146+])
147Index: bison-2.4.2/m4/inttypes_h.m4
148===================================================================
149--- /dev/null
150+++ bison-2.4.2/m4/inttypes_h.m4
151@@ -0,0 +1,28 @@
152+# inttypes_h.m4 serial 4 (gettext-0.11.4)
153+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
154+dnl This file is free software, distributed under the terms of the GNU
155+dnl General Public License. As a special exception to the GNU General
156+dnl Public License, this file may be distributed as part of a program
157+dnl that contains a configuration script generated by Autoconf, under
158+dnl the same distribution terms as the rest of that program.
159+
160+dnl From Paul Eggert.
161+
162+# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
163+# doesn't clash with <sys/types.h>, and declares uintmax_t.
164+
165+AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
166+[
167+ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
168+ [AC_TRY_COMPILE(
169+ [#include <sys/types.h>
170+#include <inttypes.h>],
171+ [uintmax_t i = (uintmax_t) -1;],
172+ jm_ac_cv_header_inttypes_h=yes,
173+ jm_ac_cv_header_inttypes_h=no)])
174+ if test $jm_ac_cv_header_inttypes_h = yes; then
175+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
176+[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
177+ and declares uintmax_t. ])
178+ fi
179+])
180Index: bison-2.4.2/m4/ulonglong.m4
181===================================================================
182--- /dev/null
183+++ bison-2.4.2/m4/ulonglong.m4
184@@ -0,0 +1,23 @@
185+# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
186+dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
187+dnl This file is free software, distributed under the terms of the GNU
188+dnl General Public License. As a special exception to the GNU General
189+dnl Public License, this file may be distributed as part of a program
190+dnl that contains a configuration script generated by Autoconf, under
191+dnl the same distribution terms as the rest of that program.
192+
193+dnl From Paul Eggert.
194+
195+AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
196+[
197+ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
198+ [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
199+ [unsigned long long ullmax = (unsigned long long) -1;
200+ return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
201+ ac_cv_type_unsigned_long_long=yes,
202+ ac_cv_type_unsigned_long_long=no)])
203+ if test $ac_cv_type_unsigned_long_long = yes; then
204+ AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
205+ [Define if you have the unsigned long long type.])
206+ fi
207+])
208Index: bison-2.4.2/m4/codeset.m4
209===================================================================
210--- /dev/null
211+++ bison-2.4.2/m4/codeset.m4
212@@ -0,0 +1,23 @@
213+# codeset.m4 serial AM1 (gettext-0.10.40)
214+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
215+dnl This file is free software, distributed under the terms of the GNU
216+dnl General Public License. As a special exception to the GNU General
217+dnl Public License, this file may be distributed as part of a program
218+dnl that contains a configuration script generated by Autoconf, under
219+dnl the same distribution terms as the rest of that program.
220+
221+dnl From Bruno Haible.
222+
223+AC_DEFUN([AM_LANGINFO_CODESET],
224+[
225+ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
226+ [AC_TRY_LINK([#include <langinfo.h>],
227+ [char* cs = nl_langinfo(CODESET);],
228+ am_cv_langinfo_codeset=yes,
229+ am_cv_langinfo_codeset=no)
230+ ])
231+ if test $am_cv_langinfo_codeset = yes; then
232+ AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
233+ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
234+ fi
235+])
236Index: bison-2.4.2/m4/intdiv0.m4
237===================================================================
238--- /dev/null
239+++ bison-2.4.2/m4/intdiv0.m4
240@@ -0,0 +1,72 @@
241+# intdiv0.m4 serial 1 (gettext-0.11.3)
242+dnl Copyright (C) 2002 Free Software Foundation, Inc.
243+dnl This file is free software, distributed under the terms of the GNU
244+dnl General Public License. As a special exception to the GNU General
245+dnl Public License, this file may be distributed as part of a program
246+dnl that contains a configuration script generated by Autoconf, under
247+dnl the same distribution terms as the rest of that program.
248+
249+dnl From Bruno Haible.
250+
251+AC_DEFUN([gt_INTDIV0],
252+[
253+ AC_REQUIRE([AC_PROG_CC])dnl
254+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
255+
256+ AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
257+ gt_cv_int_divbyzero_sigfpe,
258+ [
259+ AC_TRY_RUN([
260+#include <stdlib.h>
261+#include <signal.h>
262+
263+static void
264+#ifdef __cplusplus
265+sigfpe_handler (int sig)
266+#else
267+sigfpe_handler (sig) int sig;
268+#endif
269+{
270+ /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
271+ exit (sig != SIGFPE);
272+}
273+
274+int x = 1;
275+int y = 0;
276+int z;
277+int nan;
278+
279+int main ()
280+{
281+ signal (SIGFPE, sigfpe_handler);
282+/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
283+#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
284+ signal (SIGTRAP, sigfpe_handler);
285+#endif
286+/* Linux/SPARC yields signal SIGILL. */
287+#if defined (__sparc__) && defined (__linux__)
288+ signal (SIGILL, sigfpe_handler);
289+#endif
290+
291+ z = x / y;
292+ nan = y / y;
293+ exit (1);
294+}
295+], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
296+ [
297+ # Guess based on the CPU.
298+ case "$host_cpu" in
299+ alpha* | i[34567]86 | m68k | s390*)
300+ gt_cv_int_divbyzero_sigfpe="guessing yes";;
301+ *)
302+ gt_cv_int_divbyzero_sigfpe="guessing no";;
303+ esac
304+ ])
305+ ])
306+ case "$gt_cv_int_divbyzero_sigfpe" in
307+ *yes) value=1;;
308+ *) value=0;;
309+ esac
310+ AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
311+ [Define if integer division by zero raises signal SIGFPE.])
312+])
313Index: bison-2.4.2/m4/glib.m4
314===================================================================
315--- /dev/null
316+++ bison-2.4.2/m4/glib.m4
317@@ -0,0 +1,196 @@
318+# Configure paths for GLIB
319+# Owen Taylor 97-11-3
320+
321+dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
322+dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
323+dnl gthread is specified in MODULES, pass to glib-config
324+dnl
325+AC_DEFUN(AM_PATH_GLIB,
326+[dnl
327+dnl Get the cflags and libraries from the glib-config script
328+dnl
329+AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)],
330+ glib_config_prefix="$withval", glib_config_prefix="")
331+AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)],
332+ glib_config_exec_prefix="$withval", glib_config_exec_prefix="")
333+AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program],
334+ , enable_glibtest=yes)
335+
336+ if test x$glib_config_exec_prefix != x ; then
337+ glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
338+ if test x${GLIB_CONFIG+set} != xset ; then
339+ GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
340+ fi
341+ fi
342+ if test x$glib_config_prefix != x ; then
343+ glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
344+ if test x${GLIB_CONFIG+set} != xset ; then
345+ GLIB_CONFIG=$glib_config_prefix/bin/glib-config
346+ fi
347+ fi
348+
349+ for module in . $4
350+ do
351+ case "$module" in
352+ gmodule)
353+ glib_config_args="$glib_config_args gmodule"
354+ ;;
355+ gthread)
356+ glib_config_args="$glib_config_args gthread"
357+ ;;
358+ esac
359+ done
360+
361+ AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
362+ min_glib_version=ifelse([$1], ,0.99.7,$1)
363+ AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
364+ no_glib=""
365+ if test "$GLIB_CONFIG" = "no" ; then
366+ no_glib=yes
367+ else
368+ GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
369+ GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
370+ glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
371+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
372+ glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
373+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
374+ glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
375+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
376+ if test "x$enable_glibtest" = "xyes" ; then
377+ ac_save_CFLAGS="$CFLAGS"
378+ ac_save_LIBS="$LIBS"
379+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
380+ LIBS="$GLIB_LIBS $LIBS"
381+dnl
382+dnl Now check if the installed GLIB is sufficiently new. (Also sanity
383+dnl checks the results of glib-config to some extent
384+dnl
385+ rm -f conf.glibtest
386+ AC_TRY_RUN([
387+#include <glib.h>
388+#include <stdio.h>
389+#include <stdlib.h>
390+
391+int
392+main ()
393+{
394+ int major, minor, micro;
395+ char *tmp_version;
396+
397+ system ("touch conf.glibtest");
398+
399+ /* HP/UX 9 (%@#!) writes to sscanf strings */
400+ tmp_version = g_strdup("$min_glib_version");
401+ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
402+ printf("%s, bad version string\n", "$min_glib_version");
403+ exit(1);
404+ }
405+
406+ if ((glib_major_version != $glib_config_major_version) ||
407+ (glib_minor_version != $glib_config_minor_version) ||
408+ (glib_micro_version != $glib_config_micro_version))
409+ {
410+ printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
411+ $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
412+ glib_major_version, glib_minor_version, glib_micro_version);
413+ printf ("*** was found! If glib-config was correct, then it is best\n");
414+ printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
415+ printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
416+ printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
417+ printf("*** required on your system.\n");
418+ printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
419+ printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
420+ printf("*** before re-running configure\n");
421+ }
422+ else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
423+ (glib_minor_version != GLIB_MINOR_VERSION) ||
424+ (glib_micro_version != GLIB_MICRO_VERSION))
425+ {
426+ printf("*** GLIB header files (version %d.%d.%d) do not match\n",
427+ GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
428+ printf("*** library (version %d.%d.%d)\n",
429+ glib_major_version, glib_minor_version, glib_micro_version);
430+ }
431+ else
432+ {
433+ if ((glib_major_version > major) ||
434+ ((glib_major_version == major) && (glib_minor_version > minor)) ||
435+ ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
436+ {
437+ return 0;
438+ }
439+ else
440+ {
441+ printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
442+ glib_major_version, glib_minor_version, glib_micro_version);
443+ printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
444+ major, minor, micro);
445+ printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
446+ printf("***\n");
447+ printf("*** If you have already installed a sufficiently new version, this error\n");
448+ printf("*** probably means that the wrong copy of the glib-config shell script is\n");
449+ printf("*** being found. The easiest way to fix this is to remove the old version\n");
450+ printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
451+ printf("*** correct copy of glib-config. (In this case, you will have to\n");
452+ printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
453+ printf("*** so that the correct libraries are found at run-time))\n");
454+ }
455+ }
456+ return 1;
457+}
458+],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
459+ CFLAGS="$ac_save_CFLAGS"
460+ LIBS="$ac_save_LIBS"
461+ fi
462+ fi
463+ if test "x$no_glib" = x ; then
464+ AC_MSG_RESULT(yes)
465+ ifelse([$2], , :, [$2])
466+ else
467+ AC_MSG_RESULT(no)
468+ if test "$GLIB_CONFIG" = "no" ; then
469+ echo "*** The glib-config script installed by GLIB could not be found"
470+ echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
471+ echo "*** your path, or set the GLIB_CONFIG environment variable to the"
472+ echo "*** full path to glib-config."
473+ else
474+ if test -f conf.glibtest ; then
475+ :
476+ else
477+ echo "*** Could not run GLIB test program, checking why..."
478+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
479+ LIBS="$LIBS $GLIB_LIBS"
480+ AC_TRY_LINK([
481+#include <glib.h>
482+#include <stdio.h>
483+], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
484+ [ echo "*** The test program compiled, but did not run. This usually means"
485+ echo "*** that the run-time linker is not finding GLIB or finding the wrong"
486+ echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
487+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
488+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
489+ echo "*** is required on your system"
490+ echo "***"
491+ echo "*** If you have an old version installed, it is best to remove it, although"
492+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
493+ echo "***"
494+ echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
495+ echo "*** came with the system with the command"
496+ echo "***"
497+ echo "*** rpm --erase --nodeps gtk gtk-devel" ],
498+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
499+ echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
500+ echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
501+ echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
502+ CFLAGS="$ac_save_CFLAGS"
503+ LIBS="$ac_save_LIBS"
504+ fi
505+ fi
506+ GLIB_CFLAGS=""
507+ GLIB_LIBS=""
508+ ifelse([$3], , :, [$3])
509+ fi
510+ AC_SUBST(GLIB_CFLAGS)
511+ AC_SUBST(GLIB_LIBS)
512+ rm -f conf.glibtest
513+])
514Index: bison-2.4.2/m4/isc-posix.m4
515===================================================================
516--- /dev/null
517+++ bison-2.4.2/m4/isc-posix.m4
518@@ -0,0 +1,26 @@
519+# isc-posix.m4 serial 2 (gettext-0.11.2)
520+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
521+dnl This file is free software, distributed under the terms of the GNU
522+dnl General Public License. As a special exception to the GNU General
523+dnl Public License, this file may be distributed as part of a program
524+dnl that contains a configuration script generated by Autoconf, under
525+dnl the same distribution terms as the rest of that program.
526+
527+# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
528+
529+# This test replaces the one in autoconf.
530+# Currently this macro should have the same name as the autoconf macro
531+# because gettext's gettext.m4 (distributed in the automake package)
532+# still uses it. Otherwise, the use in gettext.m4 makes autoheader
533+# give these diagnostics:
534+# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
535+# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
536+
537+undefine([AC_ISC_POSIX])
538+
539+AC_DEFUN([AC_ISC_POSIX],
540+ [
541+ dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
542+ AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
543+ ]
544+)