summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorjcorgan2008-06-23 00:25:56 +0000
committerjcorgan2008-06-23 00:25:56 +0000
commitc1ff40ad50fd29ff64c8c3991d7b5f69b43c661d (patch)
tree39fc0417c2363b65f85973a1e540e66f9f2be284 /configure.ac
parent1adf4453962da0c2ebda1a8833ef3b5b849754e3 (diff)
downloadgnuradio-c1ff40ad50fd29ff64c8c3991d7b5f69b43c661d.tar.gz
gnuradio-c1ff40ad50fd29ff64c8c3991d7b5f69b43c661d.tar.bz2
gnuradio-c1ff40ad50fd29ff64c8c3991d7b5f69b43c661d.zip
Use system byteswap implementations where available.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8658 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 529d91e77..4dc4e1873 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,7 +128,13 @@ AC_CHECK_HEADERS(linux/ppdev.h dev/ppbus/ppi.h sys/mman.h sys/select.h sys/types
AC_CHECK_HEADERS(sys/resource.h stdint.h sched.h signal.h sys/syscall.h)
AC_CHECK_HEADERS(netinet/in.h)
AC_CHECK_HEADERS(windows.h)
+
+dnl Allow creating autoconf independent header files for bytesex routines
+AC_CHECK_HEADER(arpa/inet.h, [GR_HAVE_ARPA_INET=1],[GR_HAVE_ARPA_INET=0])
+AC_CHECK_HEADER(netinet/in.h, [GR_HAVE_NETINET_IN=1],[GR_HAVE_NETINET_IN=0])
AC_CHECK_HEADER(byteswap.h, [GR_HAVE_BYTESWAP=1],[GR_HAVE_BYTESWAP=0])
+AC_SUBST(GR_HAVE_ARPA_INET)
+AC_SUBST(GR_HAVE_NETINET_IN)
AC_SUBST(GR_HAVE_BYTESWAP)
dnl Checks for typedefs, structures, and compiler characteristics.