--- configure.in.org 2006-08-07 17:02:45.000000000 +0200 +++ configure.in 2006-08-07 17:03:37.000000000 +0200 @@ -50,6 +50,11 @@ AC_PROG_INTLTOOL([0.27.2]) AM_GLIB_GNU_GETTEXT +dnl +dnl Make sha1.c happy on big endian systems +dnl +AC_C_BIGENDIAN + AC_ARG_WITH(distro, AC_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, arch or slackware])) if test "z$with_distro" = "z"; then AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat") --- libnm-util/sha1.c 2007-04-18 20:13:09.000000000 +0200 +++ libnm-util/sha1.c 2007-08-16 23:58:46.000000000 +0200 @@ -12,6 +12,10 @@ * See README and COPYING for more details. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include