summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-11 18:05:52 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-11 18:05:52 +0000
commit01746745f1287effa1772ef51b973988afcea699 (patch)
treea0b36215c048f45698f1ecbef044953e0f3e37cc /cmake
parent5c8274b5e3034c1cfae02426c68f353abfbf506f (diff)
downloadllvm-01746745f1287effa1772ef51b973988afcea699.tar.gz
llvm-01746745f1287effa1772ef51b973988afcea699.tar.bz2
llvm-01746745f1287effa1772ef51b973988afcea699.tar.xz
Add terminal width detection to llvm::sys::Process. This is needed to
fix Clang PRs 4148 and 4183. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 0d61f1e213..7e4016fb34 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -26,6 +26,7 @@ check_include_file(stdlib.h HAVE_STDLIB_H)
check_include_file(string.h HAVE_STRING_H)
check_include_file(sys/dir.h HAVE_SYS_DIR_H)
check_include_file(sys/dl.h HAVE_SYS_DL_H)
+check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
check_include_file(sys/ndir.h HAVE_SYS_NDIR_H)
check_include_file(sys/param.h HAVE_SYS_PARAM_H)
@@ -43,9 +44,11 @@ check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
# function checks
include(CheckSymbolExists)
+include(CheckFunctionExists)
check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)
+check_function_exists(isatty HAVE_ISATTY)
check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH)
check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H)
check_symbol_exists(isnan cmath HAVE_ISNAN_IN_CMATH)