]> granicus.if.org Git - llvm/commitdiff
Check for sysconf(3).
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 29 Sep 2016 21:18:05 +0000 (21:18 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 29 Sep 2016 21:18:05 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282772 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/config-ix.cmake
include/llvm/Config/config.h.cmake

index 90e83070b9c0115e65a6a72b61885fe8ba987c1d..5c34fd044539841599c082d7ae132742c845622a 100755 (executable)
@@ -148,6 +148,7 @@ check_symbol_exists(arc4random "stdlib.h" HAVE_DECL_ARC4RANDOM)
 check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
 check_symbol_exists(_Unwind_Backtrace "unwind.h" HAVE__UNWIND_BACKTRACE)
 check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
+check_symbol_exists(sysconf unistd.h HAVE_SYSCONF)
 check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
 check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)
 check_symbol_exists(isatty unistd.h HAVE_ISATTY)
index 5f65aa37d11e5e17f79ef3c52881391b82ccfec0..42cb01b110b89977621f337584a4b895fffc6363 100644 (file)
 #cmakedefine HAVE_STRTOQ ${HAVE_STRTOQ}
 
 /* Define to 1 if you have the `sysconf' function. */
-#undef HAVE_SYSCONF
+#cmakedefine HAVE_SYSCONF ${HAVE_SYSCONF}
 
 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
    */