From af4537cd8a1308a1c783519fccd71e08392ea66c Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Thu, 27 Oct 2011 12:10:49 +0700 Subject: [PATCH] maint: add autobuild prerequisite only if autobuild.m4 is absent. * bootstrap (func_require_autobuild_buildreq): Skip if autobuild.m4 is already present. * bootstrap.conf (require_autobuild_bulidreq): No need to set this specially any more. Signed-off-by: Gary V. Vaughan --- bootstrap | 6 +++++- bootstrap.conf | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bootstrap b/bootstrap index 120ba94ad..ecfa39b72 100755 --- a/bootstrap +++ b/bootstrap @@ -1248,7 +1248,11 @@ func_require_autobuild_buildreq () { $debug_cmd - printf '%s\n' "$buildreq" |func_grep_q '^[ ]*autobuild' || { + $require_macro_dir + + test -f "$macro_dir/autobuild.m4" \ + || printf '%s\n' "$buildreq" |func_grep_q '^[ ]*autobuild' \ + || { $require_configure_ac func_extract_trace AB_INIT diff --git a/bootstrap.conf b/bootstrap.conf index db4ab88d0..116023c19 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -438,9 +438,6 @@ func_add_hook func_fini libtool_cleanup_empty_dirs ## Resource management. ## ## -------------------- ## -# Although autobuild is awesome, libtool will bootstrap without it. -require_autobuild_buildreq=: - # require_package_url # ------------------- # Ensure that package_url has a sensible default. -- 2.47.2