diff options
author | Larry Hastings <larry@hastings.org> | 2015-04-13 21:48:40 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-04-13 21:48:40 (GMT) |
commit | a6cc551502aac1fd011009abe40686f4647ba6b0 (patch) | |
tree | f6709fe9bd9475607b37557f803237b7d7970aad /configure.ac | |
parent | d827be8ff1e74b35191aa51e7b66acb8a13b9db9 (diff) | |
download | cpython-a6cc551502aac1fd011009abe40686f4647ba6b0.zip cpython-a6cc551502aac1fd011009abe40686f4647ba6b0.tar.gz cpython-a6cc551502aac1fd011009abe40686f4647ba6b0.tar.bz2 |
Issue #22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES.
Patch courtesy of Joe Jevnik.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 69f7b7d..d15f264 100644 --- a/configure.ac +++ b/configure.ac @@ -2876,6 +2876,16 @@ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then fi fi +AC_MSG_CHECKING(for CAN_RAW_FD_FRAMES) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ /* CAN_RAW_FD_FRAMES available check */ +#include <linux/can/raw.h>]], +[[int can_raw_fd_frames = CAN_RAW_FD_FRAMES;]])],[ + AC_DEFINE(HAVE_LINUX_CAN_RAW_FD_FRAMES, 1, [Define if compiling using Linux 3.6 or later.]) + AC_MSG_RESULT(yes) +],[ + AC_MSG_RESULT(no) +]) + AC_MSG_CHECKING(for OSX 10.5 SDK or later) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include <Carbon/Carbon.h>]], [[FSIORefNum fRef = 0]]) |