From ea598bf07c3477fc4d2daee35ce174363cbdcdc7 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 3 May 2017 21:55:30 +0200 Subject: [PATCH] Fix cross-compilation Currently if "x${DISTRO}" isn't set to "Linux", unsafe header/library path for cross-compilation such as '-I/usr/local/include' are used. As a result, motion can't be cross-compiled, so change "x${DISTRO}" to "${DISTRO}" as it seems that this was the intended use. Signed-off-by: Fabrice Fontaine --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b52f0f66..6bfeba0b 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,7 @@ if test "${DISTRO}" = "Darwin"; then TEMP_LDFLAGS="${LDFLAGS} -L/sw/lib" TEMP_LIBS="-L/sw/lib" else - if test "x${DISTRO}" != "Linux"; then + if test "${DISTRO}" != "Linux"; then TEMP_CFLAGS="${CFLAGS} -I/usr/local/include" TEMP_CPPFLAGS="${CPPFLAGS} -I/usr/local/include" TEMP_LDFLAGS="${LDFLAGS} -L/usr/local/lib"