diff options
Diffstat (limited to 'sysdeps/s390')
-rw-r--r-- | sysdeps/s390/configure | 5 | ||||
-rw-r--r-- | sysdeps/s390/configure.ac | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/s390/configure b/sysdeps/s390/configure index 7eaefbabcf..431088acad 100644 --- a/sysdeps/s390/configure +++ b/sysdeps/s390/configure @@ -301,6 +301,7 @@ then fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc on s390x" >&5 $as_echo_n "checking if $CC is sufficient to build libc on s390x... " >&6; } if ${libc_cv_compiler_ok_on_s390x+:} false; then : @@ -322,12 +323,12 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO"; then : libc_cv_compiler_ok_on_s390x=yes else libc_cv_compiler_ok_on_s390x=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok_on_s390x" >&5 $as_echo "$libc_cv_compiler_ok_on_s390x" >&6; } diff --git a/sysdeps/s390/configure.ac b/sysdeps/s390/configure.ac index e6df624919..14948c81ed 100644 --- a/sysdeps/s390/configure.ac +++ b/sysdeps/s390/configure.ac @@ -222,11 +222,11 @@ dnl overflow dnl (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98269) AC_CACHE_CHECK([if $CC is sufficient to build libc on s390x], libc_cv_compiler_ok_on_s390x, [ -AC_TRY_COMPILE([], [ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[]], [[ #if !defined __GNUC__ || __GNUC__ < 7 || (__GNUC__ == 7 && __GNUC_MINOR__ < 1) #error insufficient compiler for building on s390x #endif -], +]])], [libc_cv_compiler_ok_on_s390x=yes], [libc_cv_compiler_ok_on_s390x=no])]) if test "$libc_cv_compiler_ok_on_s390x" != yes; then |