1*49cdfc7eSAndroid Build Coastguard Workerdnl SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Workerdnl Copyright (c) Linux Test Project, 2015 3*49cdfc7eSAndroid Build Coastguard Worker 4*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([LTP_CHECK_LINUXRANDOM],[ 5*49cdfc7eSAndroid Build Coastguard Worker AC_MSG_CHECKING([for linux/random.h]) 6*49cdfc7eSAndroid Build Coastguard Worker AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 7*49cdfc7eSAndroid Build Coastguard Worker 8*49cdfc7eSAndroid Build Coastguard Worker#include <linux/random.h> 9*49cdfc7eSAndroid Build Coastguard Workerint main(void) { 10*49cdfc7eSAndroid Build Coastguard Worker return 0; 11*49cdfc7eSAndroid Build Coastguard Worker}])],[has_linux_random_h="yes"]) 12*49cdfc7eSAndroid Build Coastguard Worker 13*49cdfc7eSAndroid Build Coastguard Workerif test "x$has_linux_random_h" = xyes; then 14*49cdfc7eSAndroid Build Coastguard Worker AC_DEFINE(HAVE_LINUX_RANDOM_H,1,[Define to 1 if having a valid linux/random.h]) 15*49cdfc7eSAndroid Build Coastguard Worker AC_MSG_RESULT(yes) 16*49cdfc7eSAndroid Build Coastguard Workerelse 17*49cdfc7eSAndroid Build Coastguard Worker AC_MSG_RESULT(no) 18*49cdfc7eSAndroid Build Coastguard Workerfi 19*49cdfc7eSAndroid Build Coastguard Worker]) 20