1dnl 2dnl Copyright (c) Linux Test Project, 2015 3dnl 4dnl This program is free software; you can redistribute it and/or modify 5dnl it under the terms of the GNU General Public License as published by 6dnl the Free Software Foundation; either version 2 of the License, or 7dnl (at your option) any later version. 8dnl 9dnl This program is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 12dnl the GNU General Public License for more details. 13dnl 14 15dnl 16dnl LTP_CHECK_LINUXRANDOM 17dnl ---------------------------- 18dnl 19 20AC_DEFUN([LTP_CHECK_LINUXRANDOM],[dnl 21 AC_MSG_CHECKING([for linux/random.h]) 22 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 23 24#include <linux/random.h> 25int main(void) { 26 return 0; 27}])],[has_linux_random_h="yes"]) 28 29if test "x$has_linux_random_h" = xyes; then 30 AC_DEFINE(HAVE_LINUX_RANDOM_H,1,[Define to 1 if having a valid linux/random.h]) 31 AC_MSG_RESULT(yes) 32else 33 AC_MSG_RESULT(no) 34fi 35]) 36