Fix:Core:Adding configure check to define HAVE_BYTESSWAP_H, ticket #239
authorsteven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 18 Oct 2008 21:50:38 +0000 (21:50 +0000)
committersteven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 18 Oct 2008 21:50:38 +0000 (21:50 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1502 ffa7fe5e-494d-0410-b361-a75ebd5db220

configure.in

index 9763c53..72663d8 100644 (file)
@@ -564,6 +564,15 @@ if test x$enable_nls = xyes; then
  done
 fi
 
+AC_CHECK_HEADER(
+       byteswap.h,
+       AC_DEFINE(
+               [HAVE_BYTESWAP_H],
+               [1],
+               [Define to 1 if you have byteswap.h],
+               )
+               ,
+)
 
 AC_SUBST(INTLIBS)
 AC_SUBST(MOFILES)
@@ -798,3 +807,4 @@ if  [ test x"$gtk2_pkgconfig" != xyes ] && [ test x"$sdl" != xyes ] && [ test x"
        echo "" 
        exit 1
 fi
+