Expose the sanity.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 4 Dec 2006 20:28:07 +0000 (20:28 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 4 Dec 2006 20:28:07 +0000 (20:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32193 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/m4/sanity_check.m4

index 4c9dce6cb1449b63230a753e5771f8050f857b40..64cb4243c7a7cf5f0898ccb8dc659495ea18f737 100644 (file)
@@ -14,6 +14,7 @@ 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
@@ -21,6 +22,7 @@ if test "$?" -eq 0 -a -x "$sanity_path" ; then
     fi
   else
     AC_MSG_RESULT([yes])
+    sanity="1"
   fi
 else
   AC_MSG_RESULT([not found])