summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2014-07-14 14:34:15 +0200
committerMark Wielaard <mjw@redhat.com>2014-07-14 14:34:15 +0200
commite7b2a92bbc10f1f0e31777591fd697e344fbacad (patch)
treeb38f0c9fc30b35cb8561b5f382edd1abef74a883 /m4
parentAdd ppc64le ELFv2 abi support to backends and elflint. (diff)
downloadelfutils-e7b2a92bbc10f1f0e31777591fd697e344fbacad.tar.gz
elfutils-e7b2a92bbc10f1f0e31777591fd697e344fbacad.tar.bz2
elfutils-e7b2a92bbc10f1f0e31777591fd697e344fbacad.tar.xz
m4: Handle cross-compile situations in biarch.m4 tests.
Reported-by: Leonard Crestez <lcrestez@ixiacom.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog5
-rw-r--r--m4/biarch.m42
2 files changed, 6 insertions, 1 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index c950e54b..163ee734 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
12014-07-14 Mark Wielaard <mjw@redhat.com>
2
3 * biarch.m4 (utrace_BIARCH): Set biarch-no for cross-compile using
4 AC_RUN_IFELSE extra argument.
5
12013-12-02 Jan Kratochvil <jan.kratochvil@redhat.com> 62013-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2 7
3 * biarch.m4 (utrace_BIARCH): Call AC_MSG_WARN if !BIARCH. 8 * biarch.m4 (utrace_BIARCH): Call AC_MSG_WARN if !BIARCH.
diff --git a/m4/biarch.m4 b/m4/biarch.m4
index 04c8dbab..c238d8d1 100644
--- a/m4/biarch.m4
+++ b/m4/biarch.m4
@@ -40,7 +40,7 @@ AC_CACHE_CHECK([whether $biarch_CC makes executables we can run],
40save_CC="$CC" 40save_CC="$CC"
41CC="$biarch_CC" 41CC="$biarch_CC"
42AC_RUN_IFELSE([AC_LANG_PROGRAM([], [])], 42AC_RUN_IFELSE([AC_LANG_PROGRAM([], [])],
43 utrace_cv_cc_biarch=yes, utrace_cv_cc_biarch=no) 43 utrace_cv_cc_biarch=yes, utrace_cv_cc_biarch=no, utrace_cv_cc_biarch=no)
44CC="$save_CC"])], [utrace_cv_cc_biarch=no]) 44CC="$save_CC"])], [utrace_cv_cc_biarch=no])
45AS_IF([test $utrace_cv_cc_biarch != yes], [dnl 45AS_IF([test $utrace_cv_cc_biarch != yes], [dnl
46AC_MSG_WARN([not running biarch tests, $biarch_CC does not work])])]) 46AC_MSG_WARN([not running biarch tests, $biarch_CC does not work])])])