* [meta-gplv2][PATCH] bison: fix builds with gettext 0.20.x
@ 2020-01-16 7:23 Changqing Li
2020-02-03 17:21 ` [yocto] " Alexander Kanavin
0 siblings, 1 reply; 2+ messages in thread
From: Changqing Li @ 2020-01-16 7:23 UTC (permalink / raw)
To: yocto
From: Changqing Li <changqing.li@windriver.com>
Fix configure error like:
error: possibly undefined macro: gl_AC_HEADER_STDINT_H
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
recipes-devtools/bison/bison/bison-2.3_m4.patch | 121 ++++++++++++------------
1 file changed, 61 insertions(+), 60 deletions(-)
diff --git a/recipes-devtools/bison/bison/bison-2.3_m4.patch b/recipes-devtools/bison/bison/bison-2.3_m4.patch
index 348ce1d..626bc42 100644
--- a/recipes-devtools/bison/bison/bison-2.3_m4.patch
+++ b/recipes-devtools/bison/bison/bison-2.3_m4.patch
@@ -76,34 +76,35 @@ Upstream-Status: Pending
+])
--- /dev/null
+++ bison-1.875/m4/uintmax_t.m4
-@@ -0,0 +1,29 @@
-+# uintmax_t.m4 serial 6 (gettext-0.11)
-+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
-+dnl This file is free software, distributed under the terms of the GNU
-+dnl General Public License. As a special exception to the GNU General
-+dnl Public License, this file may be distributed as part of a program
-+dnl that contains a configuration script generated by Autoconf, under
-+dnl the same distribution terms as the rest of that program.
+@@ -0,0 +1,30 @@
++# uintmax_t.m4 serial 12 (gettext-0.20.1)
++dnl Copyright (C) 1997-2004, 2007-2019 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
-+AC_PREREQ(2.13)
++AC_PREREQ([2.13])
+
-+# Define uintmax_t to `unsigned long' or `unsigned long long'
-+# if <inttypes.h> does not exist.
++# Define uintmax_t to 'unsigned long' or 'unsigned long long'
++# if it is not already defined in <stdint.h> or <inttypes.h>.
+
-+AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
++AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
+[
-+ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
-+ AC_REQUIRE([jm_AC_HEADER_STDINT_H])
-+ if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
-+ AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
-+ test $ac_cv_type_unsigned_long_long = yes \
++ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
++ AC_REQUIRE([gl_AC_HEADER_STDINT_H])
++ if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
++ AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
++ test $ac_cv_type_unsigned_long_long_int = yes \
+ && ac_type='unsigned long long' \
+ || ac_type='unsigned long'
-+ AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
-+ [Define to unsigned long or unsigned long long
-+ if <inttypes.h> and <stdint.h> don't define.])
++ AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
++ [Define to unsigned long or unsigned long long
++ if <stdint.h> and <inttypes.h> don't define.])
++ else
++ AC_DEFINE([HAVE_UINTMAX_T], [1],
++ [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
+ fi
+])
--- /dev/null
@@ -143,64 +144,64 @@ Upstream-Status: Pending
+)
--- /dev/null
+++ bison-1.875/m4/stdint_h.m4
-@@ -0,0 +1,28 @@
-+# stdint_h.m4 serial 2 (gettext-0.11.4)
-+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
-+dnl This file is free software, distributed under the terms of the GNU
-+dnl General Public License. As a special exception to the GNU General
-+dnl Public License, this file may be distributed as part of a program
-+dnl that contains a configuration script generated by Autoconf, under
-+dnl the same distribution terms as the rest of that program.
+@@ -0,0 +1,27 @@
++# stdint_h.m4 serial 9 (gettext-0.20.1)
++dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
+# doesn't clash with <sys/types.h>, and declares uintmax_t.
+
-+AC_DEFUN([jm_AC_HEADER_STDINT_H],
++AC_DEFUN([gl_AC_HEADER_STDINT_H],
+[
-+ AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
-+ [AC_TRY_COMPILE(
-+ [#include <sys/types.h>
-+#include <stdint.h>],
-+ [uintmax_t i = (uintmax_t) -1;],
-+ jm_ac_cv_header_stdint_h=yes,
-+ jm_ac_cv_header_stdint_h=no)])
-+ if test $jm_ac_cv_header_stdint_h = yes; then
-+ AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
-+[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
-+ and declares uintmax_t. ])
++ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h],
++ [AC_COMPILE_IFELSE(
++ [AC_LANG_PROGRAM(
++ [[#include <sys/types.h>
++ #include <stdint.h>]],
++ [[uintmax_t i = (uintmax_t) -1; return !i;]])],
++ [gl_cv_header_stdint_h=yes],
++ [gl_cv_header_stdint_h=no])])
++ if test $gl_cv_header_stdint_h = yes; then
++ AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1],
++ [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
++ and declares uintmax_t. ])
+ fi
+])
--- /dev/null
+++ bison-1.875/m4/inttypes_h.m4
-@@ -0,0 +1,28 @@
-+# inttypes_h.m4 serial 4 (gettext-0.11.4)
-+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
-+dnl This file is free software, distributed under the terms of the GNU
-+dnl General Public License. As a special exception to the GNU General
-+dnl Public License, this file may be distributed as part of a program
-+dnl that contains a configuration script generated by Autoconf, under
-+dnl the same distribution terms as the rest of that program.
+@@ -0,0 +1,29 @@
++# inttypes_h.m4 serial 10 (gettext-0.20.1)
++dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
+# doesn't clash with <sys/types.h>, and declares uintmax_t.
+
-+AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
++AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
+[
-+ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
-+ [AC_TRY_COMPILE(
-+ [#include <sys/types.h>
-+#include <inttypes.h>],
-+ [uintmax_t i = (uintmax_t) -1;],
-+ jm_ac_cv_header_inttypes_h=yes,
-+ jm_ac_cv_header_inttypes_h=no)])
-+ if test $jm_ac_cv_header_inttypes_h = yes; then
-+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
-+[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
-+ and declares uintmax_t. ])
++ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h],
++ [AC_COMPILE_IFELSE(
++ [AC_LANG_PROGRAM(
++ [[
++#include <sys/types.h>
++#include <inttypes.h>
++ ]],
++ [[uintmax_t i = (uintmax_t) -1; return !i;]])],
++ [gl_cv_header_inttypes_h=yes],
++ [gl_cv_header_inttypes_h=no])])
++ if test $gl_cv_header_inttypes_h = yes; then
++ AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1],
++ [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
++ and declares uintmax_t. ])
+ fi
+])
--- /dev/null
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [yocto] [meta-gplv2][PATCH] bison: fix builds with gettext 0.20.x
2020-01-16 7:23 [meta-gplv2][PATCH] bison: fix builds with gettext 0.20.x Changqing Li
@ 2020-02-03 17:21 ` Alexander Kanavin
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Kanavin @ 2020-02-03 17:21 UTC (permalink / raw)
To: Changqing Li; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 7914 bytes --]
Ping :)
Alex
On Thu, 16 Jan 2020 at 08:23, Changqing Li <changqing.li@windriver.com>
wrote:
> From: Changqing Li <changqing.li@windriver.com>
>
> Fix configure error like:
> error: possibly undefined macro: gl_AC_HEADER_STDINT_H
>
> Signed-off-by: Changqing Li <changqing.li@windriver.com>
> ---
> recipes-devtools/bison/bison/bison-2.3_m4.patch | 121
> ++++++++++++------------
> 1 file changed, 61 insertions(+), 60 deletions(-)
>
> diff --git a/recipes-devtools/bison/bison/bison-2.3_m4.patch
> b/recipes-devtools/bison/bison/bison-2.3_m4.patch
> index 348ce1d..626bc42 100644
> --- a/recipes-devtools/bison/bison/bison-2.3_m4.patch
> +++ b/recipes-devtools/bison/bison/bison-2.3_m4.patch
> @@ -76,34 +76,35 @@ Upstream-Status: Pending
> +])
> --- /dev/null
> +++ bison-1.875/m4/uintmax_t.m4
> -@@ -0,0 +1,29 @@
> -+# uintmax_t.m4 serial 6 (gettext-0.11)
> -+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
> -+dnl This file is free software, distributed under the terms of the GNU
> -+dnl General Public License. As a special exception to the GNU General
> -+dnl Public License, this file may be distributed as part of a program
> -+dnl that contains a configuration script generated by Autoconf, under
> -+dnl the same distribution terms as the rest of that program.
> +@@ -0,0 +1,30 @@
> ++# uintmax_t.m4 serial 12 (gettext-0.20.1)
> ++dnl Copyright (C) 1997-2004, 2007-2019 Free Software Foundation, Inc.
> ++dnl This file is free software; the Free Software Foundation
> ++dnl gives unlimited permission to copy and/or distribute it,
> ++dnl with or without modifications, as long as this notice is preserved.
> +
> +dnl From Paul Eggert.
> +
> -+AC_PREREQ(2.13)
> ++AC_PREREQ([2.13])
> +
> -+# Define uintmax_t to `unsigned long' or `unsigned long long'
> -+# if <inttypes.h> does not exist.
> ++# Define uintmax_t to 'unsigned long' or 'unsigned long long'
> ++# if it is not already defined in <stdint.h> or <inttypes.h>.
> +
> -+AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
> ++AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
> +[
> -+ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
> -+ AC_REQUIRE([jm_AC_HEADER_STDINT_H])
> -+ if test $jm_ac_cv_header_inttypes_h = no && test
> $jm_ac_cv_header_stdint_h = no; then
> -+ AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
> -+ test $ac_cv_type_unsigned_long_long = yes \
> ++ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
> ++ AC_REQUIRE([gl_AC_HEADER_STDINT_H])
> ++ if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h =
> no; then
> ++ AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
> ++ test $ac_cv_type_unsigned_long_long_int = yes \
> + && ac_type='unsigned long long' \
> + || ac_type='unsigned long'
> -+ AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
> -+ [Define to unsigned long or unsigned long long
> -+ if <inttypes.h> and <stdint.h> don't define.])
> ++ AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
> ++ [Define to unsigned long or unsigned long long
> ++ if <stdint.h> and <inttypes.h> don't define.])
> ++ else
> ++ AC_DEFINE([HAVE_UINTMAX_T], [1],
> ++ [Define if you have the 'uintmax_t' type in <stdint.h> or
> <inttypes.h>.])
> + fi
> +])
> --- /dev/null
> @@ -143,64 +144,64 @@ Upstream-Status: Pending
> +)
> --- /dev/null
> +++ bison-1.875/m4/stdint_h.m4
> -@@ -0,0 +1,28 @@
> -+# stdint_h.m4 serial 2 (gettext-0.11.4)
> -+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
> -+dnl This file is free software, distributed under the terms of the GNU
> -+dnl General Public License. As a special exception to the GNU General
> -+dnl Public License, this file may be distributed as part of a program
> -+dnl that contains a configuration script generated by Autoconf, under
> -+dnl the same distribution terms as the rest of that program.
> +@@ -0,0 +1,27 @@
> ++# stdint_h.m4 serial 9 (gettext-0.20.1)
> ++dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation,
> Inc.
> ++dnl This file is free software; the Free Software Foundation
> ++dnl gives unlimited permission to copy and/or distribute it,
> ++dnl with or without modifications, as long as this notice is preserved.
> +
> +dnl From Paul Eggert.
> +
> +# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
> +# doesn't clash with <sys/types.h>, and declares uintmax_t.
> +
> -+AC_DEFUN([jm_AC_HEADER_STDINT_H],
> ++AC_DEFUN([gl_AC_HEADER_STDINT_H],
> +[
> -+ AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
> -+ [AC_TRY_COMPILE(
> -+ [#include <sys/types.h>
> -+#include <stdint.h>],
> -+ [uintmax_t i = (uintmax_t) -1;],
> -+ jm_ac_cv_header_stdint_h=yes,
> -+ jm_ac_cv_header_stdint_h=no)])
> -+ if test $jm_ac_cv_header_stdint_h = yes; then
> -+ AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
> -+[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
> -+ and declares uintmax_t. ])
> ++ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h],
> ++ [AC_COMPILE_IFELSE(
> ++ [AC_LANG_PROGRAM(
> ++ [[#include <sys/types.h>
> ++ #include <stdint.h>]],
> ++ [[uintmax_t i = (uintmax_t) -1; return !i;]])],
> ++ [gl_cv_header_stdint_h=yes],
> ++ [gl_cv_header_stdint_h=no])])
> ++ if test $gl_cv_header_stdint_h = yes; then
> ++ AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1],
> ++ [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
> ++ and declares uintmax_t. ])
> + fi
> +])
> --- /dev/null
> +++ bison-1.875/m4/inttypes_h.m4
> -@@ -0,0 +1,28 @@
> -+# inttypes_h.m4 serial 4 (gettext-0.11.4)
> -+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
> -+dnl This file is free software, distributed under the terms of the GNU
> -+dnl General Public License. As a special exception to the GNU General
> -+dnl Public License, this file may be distributed as part of a program
> -+dnl that contains a configuration script generated by Autoconf, under
> -+dnl the same distribution terms as the rest of that program.
> +@@ -0,0 +1,29 @@
> ++# inttypes_h.m4 serial 10 (gettext-0.20.1)
> ++dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation,
> Inc.
> ++dnl This file is free software; the Free Software Foundation
> ++dnl gives unlimited permission to copy and/or distribute it,
> ++dnl with or without modifications, as long as this notice is preserved.
> +
> +dnl From Paul Eggert.
> +
> +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
> +# doesn't clash with <sys/types.h>, and declares uintmax_t.
> +
> -+AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
> ++AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
> +[
> -+ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
> -+ [AC_TRY_COMPILE(
> -+ [#include <sys/types.h>
> -+#include <inttypes.h>],
> -+ [uintmax_t i = (uintmax_t) -1;],
> -+ jm_ac_cv_header_inttypes_h=yes,
> -+ jm_ac_cv_header_inttypes_h=no)])
> -+ if test $jm_ac_cv_header_inttypes_h = yes; then
> -+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
> -+[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
> -+ and declares uintmax_t. ])
> ++ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h],
> ++ [AC_COMPILE_IFELSE(
> ++ [AC_LANG_PROGRAM(
> ++ [[
> ++#include <sys/types.h>
> ++#include <inttypes.h>
> ++ ]],
> ++ [[uintmax_t i = (uintmax_t) -1; return !i;]])],
> ++ [gl_cv_header_inttypes_h=yes],
> ++ [gl_cv_header_inttypes_h=no])])
> ++ if test $gl_cv_header_inttypes_h = yes; then
> ++ AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1],
> ++ [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
> ++ and declares uintmax_t. ])
> + fi
> +])
> --- /dev/null
> --
> 2.7.4
>
>
>
[-- Attachment #2: Type: text/html, Size: 9213 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-03 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 7:23 [meta-gplv2][PATCH] bison: fix builds with gettext 0.20.x Changqing Li
2020-02-03 17:21 ` [yocto] " Alexander Kanavin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.