diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/bison/bison_3.7.6.bb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-devtools/bison/bison_3.7.6.bb b/meta/recipes-devtools/bison/bison_3.7.6.bb index a7f01c3299..a8d57f2742 100644 --- a/meta/recipes-devtools/bison/bison_3.7.6.bb +++ b/meta/recipes-devtools/bison/bison_3.7.6.bb | |||
@@ -15,10 +15,25 @@ SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \ | |||
15 | " | 15 | " |
16 | SRC_URI[sha256sum] = "67d68ce1e22192050525643fc0a7a22297576682bef6a5c51446903f5aeef3cf" | 16 | SRC_URI[sha256sum] = "67d68ce1e22192050525643fc0a7a22297576682bef6a5c51446903f5aeef3cf" |
17 | 17 | ||
18 | inherit autotools gettext texinfo | ||
19 | |||
18 | # No point in hardcoding path to m4, just use PATH | 20 | # No point in hardcoding path to m4, just use PATH |
19 | EXTRA_OECONF += "M4=m4" | 21 | CACHED_CONFIGUREVARS = "ac_cv_path_M4=m4" |
20 | 22 | ||
21 | inherit autotools gettext texinfo | 23 | PACKAGECONFIG ??= "readline ${@ 'textstyle' if d.getVar('USE_NLS') == 'yes' else ''}" |
24 | PACKAGECONFIG_class-native ??= "" | ||
25 | |||
26 | # Make readline and textstyle optional. There are recipie for these, but leave them | ||
27 | # disabled for the native recipe. This prevents host contamination of the native tool. | ||
28 | PACKAGECONFIG[readline] = "--with-libreadline-prefix,--without-libreadline-prefix,readline" | ||
29 | PACKAGECONFIG[textstyle] = "--with-libtextstyle-prefix,--without-libtextstyle-prefix,gettext" | ||
30 | |||
31 | # Include the cached configure variables, configure is really good at finding | ||
32 | # libreadline, even if we don't want it. | ||
33 | CACHED_CONFIGUREVARS += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', ' \ | ||
34 | ac_cv_header_readline_history_h=no \ | ||
35 | ac_cv_header_readline_readline_h=no \ | ||
36 | gl_cv_lib_readline=no', d)}" | ||
22 | 37 | ||
23 | # The automatic m4 path detection gets confused, so force the right value | 38 | # The automatic m4 path detection gets confused, so force the right value |
24 | acpaths = "-I ./m4" | 39 | acpaths = "-I ./m4" |