| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ce0eacb commit a25f3c4
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -822,6 +822,7 @@ regen-grammar: regen-token | |||
| 822 | 822 | ||
| 823 | 823 | .PHONY: regen-pegen | |
| 824 | 824 | regen-pegen: | |
| 825 | + @$(MKDIR_P) -p $(srcdir)/Parser/pegen | ||
| 825 | 826 | PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -c -q $(srcdir)/Grammar/python.gram \ | |
| 826 | 827 | -o $(srcdir)/Parser/pegen/parse.new.c | |
| 827 | 828 | $(UPDATE_FILE) $(srcdir)/Parser/pegen/parse.c $(srcdir)/Parser/pegen/parse.new.c | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | - # generated automatically by aclocal 1.15 -*- Autoconf -*- | ||
| 1 | + # generated automatically by aclocal 1.16.2 -*- Autoconf -*- | ||
| 2 | 2 | ||
| 3 | - # Copyright (C) 1996-2014 Free Software Foundation, Inc. | ||
| 3 | + # Copyright (C) 1996-2020 Free Software Foundation, Inc. | ||
| 4 | 4 | ||
| 5 | 5 | # This file is free software; the Free Software Foundation | |
| 6 | 6 | # gives unlimited permission to copy and/or distribute it, | |
@@ -12,9 +12,9 @@ | |||
| 12 | 12 | # PARTICULAR PURPOSE. | |
| 13 | 13 | ||
| 14 | 14 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
| 15 | - dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | ||
| 16 | - dnl serial 11 (pkg-config-0.29.1) | ||
| 17 | - dnl | ||
| 15 | + # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | ||
| 16 | + # serial 11 (pkg-config-0.29.1) | ||
| 17 | + | ||
| 18 | 18 | dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
| 19 | 19 | dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> | |
| 20 | 20 | dnl | |
@@ -288,5 +288,73 @@ AS_VAR_COPY([$1], [pkg_cv_][$1]) | |||
| 288 | 288 | AS_VAR_IF([$1], [""], [$5], [$4])dnl | |
| 289 | 289 | ])dnl PKG_CHECK_VAR | |
| 290 | 290 | ||
| 291 | + dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, | ||
| 292 | + dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], | ||
| 293 | + dnl [DESCRIPTION], [DEFAULT]) | ||
| 294 | + dnl ------------------------------------------ | ||
| 295 | + dnl | ||
| 296 | + dnl Prepare a "--with-" configure option using the lowercase | ||
| 297 | + dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and | ||
| 298 | + dnl PKG_CHECK_MODULES in a single macro. | ||
| 299 | + AC_DEFUN([PKG_WITH_MODULES], | ||
| 300 | + [ | ||
| 301 | + m4_pushdef([with_arg], m4_tolower([$1])) | ||
| 302 | + | ||
| 303 | + m4_pushdef([description], | ||
| 304 | + [m4_default([$5], [build with ]with_arg[ support])]) | ||
| 305 | + | ||
| 306 | + m4_pushdef([def_arg], [m4_default([$6], [auto])]) | ||
| 307 | + m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) | ||
| 308 | + m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) | ||
| 309 | + | ||
| 310 | + m4_case(def_arg, | ||
| 311 | + [yes],[m4_pushdef([with_without], [--without-]with_arg)], | ||
| 312 | + [m4_pushdef([with_without],[--with-]with_arg)]) | ||
| 313 | + | ||
| 314 | + AC_ARG_WITH(with_arg, | ||
| 315 | + AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, | ||
| 316 | + [AS_TR_SH([with_]with_arg)=def_arg]) | ||
| 317 | + | ||
| 318 | + AS_CASE([$AS_TR_SH([with_]with_arg)], | ||
| 319 | + [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], | ||
| 320 | + [auto],[PKG_CHECK_MODULES([$1],[$2], | ||
| 321 | + [m4_n([def_action_if_found]) $3], | ||
| 322 | + [m4_n([def_action_if_not_found]) $4])]) | ||
| 323 | + | ||
| 324 | + m4_popdef([with_arg]) | ||
| 325 | + m4_popdef([description]) | ||
| 326 | + m4_popdef([def_arg]) | ||
| 327 | + | ||
| 328 | + ])dnl PKG_WITH_MODULES | ||
| 329 | + | ||
| 330 | + dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, | ||
| 331 | + dnl [DESCRIPTION], [DEFAULT]) | ||
| 332 | + dnl ----------------------------------------------- | ||
| 333 | + dnl | ||
| 334 | + dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES | ||
| 335 | + dnl check._[VARIABLE-PREFIX] is exported as make variable. | ||
| 336 | + AC_DEFUN([PKG_HAVE_WITH_MODULES], | ||
| 337 | + [ | ||
| 338 | + PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) | ||
| 339 | + | ||
| 340 | + AM_CONDITIONAL([HAVE_][$1], | ||
| 341 | + [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) | ||
| 342 | + ])dnl PKG_HAVE_WITH_MODULES | ||
| 343 | + | ||
| 344 | + dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, | ||
| 345 | + dnl [DESCRIPTION], [DEFAULT]) | ||
| 346 | + dnl ------------------------------------------------------ | ||
| 347 | + dnl | ||
| 348 | + dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after | ||
| 349 | + dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make | ||
| 350 | + dnl and preprocessor variable. | ||
| 351 | + AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], | ||
| 352 | + [ | ||
| 353 | + PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) | ||
| 354 | + | ||
| 355 | + AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], | ||
| 356 | + [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) | ||
| 357 | + ])dnl PKG_HAVE_DEFINE_WITH_MODULES | ||
| 358 | + | ||
| 291 | 359 | m4_include([m4/ax_c_float_words_bigendian.m4]) | |
| 292 | 360 | m4_include([m4/ax_check_openssl.m4]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16746,7 +16746,7 @@ do | |||
| 16746 | 16746 | done | |
| 16747 | 16747 | ||
| 16748 | 16748 | ||
| 16749 | - SRCDIRS="Parser Objects Python Modules Modules/_io Programs" | ||
| 16749 | + SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs" | ||
| 16750 | 16750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | |
| 16751 | 16751 | $as_echo_n "checking for build directories... " >&6; } | |
| 16752 | 16752 | for dir in $SRCDIRS; do | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5397,7 +5397,7 @@ do | |||
| 5397 | 5397 | done | |
| 5398 | 5398 | ||
| 5399 | 5399 | AC_SUBST(SRCDIRS) | |
| 5400 | - SRCDIRS="Parser Objects Python Modules Modules/_io Programs" | ||
| 5400 | + SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs" | ||
| 5401 | 5401 | AC_MSG_CHECKING(for build directories) | |
| 5402 | 5402 | for dir in $SRCDIRS; do | |
| 5403 | 5403 | if test ! -d $dir; then | |
| Back | FazBrowse Home | New Git URL |
0 commit comments