Blame SOURCES/autofs-5.0.7-configure-in-allow-cross-compilation.patch

304803
autofs-5.0.7 - configure.in: allow cross compilation
304803
304803
From: Chris Packham <chris.packham@alliedtelesis.co.nz>
304803
304803
The default behaviour of AC_RUN_IFELSE is to stop with an error if cross
304803
compiling. Avoid this by providing the optional 4th argument to set
304803
gcc_supports_pie=no if support for PIE cannot be detected.
304803
304803
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
304803
---
304803
304803
 CHANGELOG    |    1 +
304803
 configure.in |    2 +-
304803
 2 files changed, 2 insertions(+), 1 deletions(-)
304803
304803
304803
diff --git a/CHANGELOG b/CHANGELOG
304803
index 961e340..fe801e8 100644
304803
--- a/CHANGELOG
304803
+++ b/CHANGELOG
304803
@@ -9,6 +9,7 @@
304803
 - add timeout option description to man page.
304803
 - fix null map entry order handling.
304803
 - make description of default MOUNT_WAIT setting clear.
304803
+- configure.in: allow cross compilation.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
diff --git a/configure.in b/configure.in
304803
index 1a24e34..90bda62 100644
304803
--- a/configure.in
304803
+++ b/configure.in
304803
@@ -307,7 +307,7 @@ DAEMON_CFLAGS=
304803
 DAEMON_LDFLAGS=
304803
 AC_MSG_CHECKING([whether gcc -fPIE works])
304803
 AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
304803
-	      [gcc_supports_pie=yes], [gcc_supports_pie=no])
304803
+	      [gcc_supports_pie=yes], [gcc_supports_pie=no], [gcc_supports_pie=no])
304803
 AC_MSG_RESULT([$gcc_supports_pie])
304803
 if test $gcc_supports_pie = yes ; then
304803
 	DAEMON_CFLAGS="-fPIE"