All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>
Subject: [PATCH 1/3] tools: Check for abi-compliance-checker in ./configure
Date: Mon, 1 Mar 2021 17:00:42 +0000	[thread overview]
Message-ID: <20210301170044.23295-2-andrew.cooper3@citrix.com> (raw)
In-Reply-To: <20210301170044.23295-1-andrew.cooper3@citrix.com>

This will be optional.  No functional change

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Ian Jackson <iwj@xenproject.org>
CC: Wei Liu <wl@xen.org>
---
 config/Tools.mk.in |  1 +
 tools/configure    | 41 +++++++++++++++++++++++++++++++++++++++++
 tools/configure.ac |  1 +
 3 files changed, 43 insertions(+)

diff --git a/config/Tools.mk.in b/config/Tools.mk.in
index d47936686b..8e2268da3e 100644
--- a/config/Tools.mk.in
+++ b/config/Tools.mk.in
@@ -20,6 +20,7 @@ IASL                := @IASL@
 AWK                 := @AWK@
 FETCHER             := @FETCHER@
 ABI_DUMPER          := @ABI_DUMPER@
+ABI_COMPLIANCE_CHECKER := @ABI_COMPLIANCE_CHECKER@
 
 # Extra folder for libs/includes
 PREPEND_INCLUDES    := @PREPEND_INCLUDES@
diff --git a/tools/configure b/tools/configure
index bb5acf9d43..f77bf6f66d 100755
--- a/tools/configure
+++ b/tools/configure
@@ -682,6 +682,7 @@ OCAMLOPT
 OCAMLLIB
 OCAMLVERSION
 OCAMLC
+ABI_COMPLIANCE_CHECKER
 ABI_DUMPER
 INSTALL_DATA
 INSTALL_SCRIPT
@@ -5483,6 +5484,46 @@ $as_echo "no" >&6; }
 fi
 
 
+# Extract the first word of "abi-compliance-checker", so it can be a program name with args.
+set dummy abi-compliance-checker; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_ABI_COMPLIANCE_CHECKER+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $ABI_COMPLIANCE_CHECKER in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_ABI_COMPLIANCE_CHECKER="$ABI_COMPLIANCE_CHECKER" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_ABI_COMPLIANCE_CHECKER="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+ABI_COMPLIANCE_CHECKER=$ac_cv_path_ABI_COMPLIANCE_CHECKER
+if test -n "$ABI_COMPLIANCE_CHECKER"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABI_COMPLIANCE_CHECKER" >&5
+$as_echo "$ABI_COMPLIANCE_CHECKER" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
diff --git a/tools/configure.ac b/tools/configure.ac
index 636e7077be..d84f2edcdc 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -311,6 +311,7 @@ AC_PROG_MAKE_SET
 AC_PROG_INSTALL
 AC_PATH_PROG([FLEX], [flex])
 AC_PATH_PROG([ABI_DUMPER], [abi-dumper])
+AC_PATH_PROG([ABI_COMPLIANCE_CHECKER], [abi-compliance-checker])
 AX_PATH_PROG_OR_FAIL([PERL], [perl])
 AX_PATH_PROG_OR_FAIL([AWK], [awk])
 
-- 
2.11.0



  reply	other threads:[~2021-03-01 17:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-01 17:00 [PATCH for-4.15 0/3] tools: ABI checking Andrew Cooper
2021-03-01 17:00 ` Andrew Cooper [this message]
2021-03-01 17:17   ` [PATCH 1/3] tools: Check for abi-compliance-checker in ./configure Ian Jackson
2021-03-01 17:00 ` [PATCH 2/3] tools/libs: Stash the 4.14 API/ABIs for the stable libraries Andrew Cooper
2021-03-01 17:18   ` Ian Jackson
2021-03-02 10:45   ` Jürgen Groß
2021-03-02 11:17     ` Andrew Cooper
2021-03-02 11:21       ` Jan Beulich
2021-03-02 11:26         ` Andrew Cooper
2021-03-02 11:38           ` Jan Beulich
2021-03-01 17:00 ` [PATCH 3/3] tools/libs: Check ABI # DO NOT APPLY YET Andrew Cooper
2021-03-01 17:30 ` [PATCH for-4.15 0/3] tools: ABI checking Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210301170044.23295-2-andrew.cooper3@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.