Add two new checks for use in LLVM configuration files:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 17 Jul 2005 00:50:40 +0000 (00:50 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 17 Jul 2005 00:50:40 +0000 (00:50 +0000)
commita5e26077edb9611a0ea366c9f098a6e080f6da6b
tree22dfbd952b3e98f714bf4014f53976d281688446
parent0589523525a156e096baf975c5e6e7e4112cb673
Add two new checks for use in LLVM configuration files:
* FIND_STD_PROGRAM will find a program in the path or using --with options
  and verify that the path/bin/program is executable. Also allows checking
  for include files and libraries. If found, USE_PROGRAM is set, otherwise
  its not set. Also sets PROGRAM_BIN (bin directory), and PROGRAM_DIR (top
  level directory). If headers are found, sets PROGRAM_INC. If libraries
  are found, sets PROGRAM_LIB.
* CHECK_PROGRAM_SANITY can be used to run a program with some option that
  only produces information output and requires no input. If the output
  matches a regular expression, the program passes the sanity check.
  Otherwise, an error occurs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22458 91177308-0d34-0410-b5e6-96231b3b80d8
autoconf/m4/find_std_program.m4 [new file with mode: 0644]
autoconf/m4/sanity_check.m4 [new file with mode: 0644]