summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index cd33497fb8..756b67b04b 100755
--- a/configure
+++ b/configure
@@ -3008,6 +3008,21 @@ fi
echores "$_alloca"
+echocheck "byteswap.h"
+cat > $TMPC << EOF
+#include <byteswap.h>
+int main(void) { bswap_16(0); return 0; }
+EOF
+_byteswap_h=no
+cc_check && _byteswap_h=yes
+if cc_check ; then
+ _def_byteswap_h='#define HAVE_BYTESWAP_H 1'
+else
+ _def_byteswap_h='#undef HAVE_BYTESWAP_H'
+fi
+echores "$_byteswap_h"
+
+
echocheck "mman.h"
cat > $TMPC << EOF
#include <sys/types.h>
@@ -8024,6 +8039,9 @@ $_def_asmalign_pot
/* Define this if your system has the "alloca.h" header file */
$_def_alloca
+/* Define this if your system has the "byteswap.h" header file */
+$_def_byteswap_h
+
/* Define this if your system has the "sys/mman.h" header file */
$_def_mman
$_def_mman_has_map_failed