Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 132 additions & 154 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 6 additions & 14 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3022,22 +3022,14 @@ AC_HEADER_DIRENT
AC_HEADER_MAJOR

# On Linux, stropts.h may be empty
AC_MSG_CHECKING([for stropts.h])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
AC_CHECK_DECL([I_PUSH], [
AC_DEFINE([HAVE_STROPTS_H], [1], [Define to 1 if you have the <stropts.h> header file.])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please properly wrap the calls. E.g., use the 2-space indents for inner blocks. Have a look at https://github.com/python/cpython/pull/142380/files#r2615800453 and the code I commented.

], [], [
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <stropts.h>
]], [[
#if !defined(I_PUSH)
#error I_PUSH
#endif
]]
)],
[
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_STROPTS_H], [1], [Define to 1 if you have the <stropts.h> header file.])
],
[AC_MSG_RESULT([no])])
#include <stropts.h>
])

# bluetooth/bluetooth.h has been known to not compile with -std=c99.
# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
Expand Down
Loading