summaryrefslogtreecommitdiffstats
path: root/projects/sample/autoconf/m4/sanity_check.m4
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-04-23 16:57:46 -0700
committerStephen Hines <srhines@google.com>2014-04-24 15:53:16 -0700
commit36b56886974eae4f9c5ebc96befd3e7bfe5de338 (patch)
treee6cfb69fbbd937f450eeb83bfb83b9da3b01275a /projects/sample/autoconf/m4/sanity_check.m4
parent69a8640022b04415ae9fac62f8ab090601d8f889 (diff)
downloadexternal_llvm-36b56886974eae4f9c5ebc96befd3e7bfe5de338.zip
external_llvm-36b56886974eae4f9c5ebc96befd3e7bfe5de338.tar.gz
external_llvm-36b56886974eae4f9c5ebc96befd3e7bfe5de338.tar.bz2
Update to LLVM 3.5a.
Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
Diffstat (limited to 'projects/sample/autoconf/m4/sanity_check.m4')
-rw-r--r--projects/sample/autoconf/m4/sanity_check.m431
1 files changed, 0 insertions, 31 deletions
diff --git a/projects/sample/autoconf/m4/sanity_check.m4 b/projects/sample/autoconf/m4/sanity_check.m4
deleted file mode 100644
index 639fccc..0000000
--- a/projects/sample/autoconf/m4/sanity_check.m4
+++ /dev/null
@@ -1,31 +0,0 @@
-dnl Check a program for version sanity. The test runs a program, passes it an
-dnl argument to make it print out some identification string, and filters that
-dnl output with a regular expression. If the output is non-empty, the program
-dnl passes the sanity check.
-dnl $1 - Name or full path of the program to run
-dnl $2 - Argument to pass to print out identification string
-dnl $3 - grep RE to match identification string
-dnl $4 - set to 1 to make errors only a warning
-AC_DEFUN([CHECK_PROGRAM_SANITY],
-[
-AC_MSG_CHECKING([sanity for program ]$1)
-sanity="0"
-sanity_path=`which $1 2>/dev/null`
-if test "$?" -eq 0 -a -x "$sanity_path" ; then
- sanity=`$1 $2 2>&1 | grep "$3"`
- if test -z "$sanity" ; then
- AC_MSG_RESULT([no])
- sanity="0"
- if test "$4" -eq 1 ; then
- AC_MSG_WARN([Program ]$1[ failed to pass sanity check.])
- else
- AC_MSG_ERROR([Program ]$1[ failed to pass sanity check.])
- fi
- else
- AC_MSG_RESULT([yes])
- sanity="1"
- fi
-else
- AC_MSG_RESULT([not found])
-fi
-])