1 Define missing LIBC_TRY_CC_OPTION macro
3 diff --git a/aclocal.m4 b/aclocal.m4
4 index 86c07f7..32e9266 100644
7 @@ -88,6 +88,12 @@ else
11 +dnl Test a compiler option or options with an empty input file.
12 +dnl LIBC_TRY_CC_OPTION([options], [action-if-true], [action-if-false])
13 +AC_DEFUN([LIBC_TRY_CC_OPTION],
14 +[AS_IF([AC_TRY_COMMAND([${CC-cc} $1 -xc /dev/null -S -o /dev/null])],
17 AC_DEFUN([LIBC_PROG_BINUTILS],
18 [# Was a --with-binutils option given?
19 if test -n "$path_binutils"; then
20 diff --git a/configure b/configure
21 index fc6abe6..196a214 100755
24 @@ -7698,7 +7698,14 @@ if test "${libc_cv_cc_nofma+set}" = set; then
27 for opt in -ffp-contract=off -mno-fused-madd; do
28 - LIBC_TRY_CC_OPTION($opt, libc_cv_cc_nofma=$opt; break)
29 + if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
30 + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34 + test $ac_status = 0; }; }; then :
35 + libc_cv_cc_nofma=$opt; break
39 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_nofma" >&5
40 diff --git a/configure.in b/configure.in
41 index 09cbeea..7ccc802 100644
44 @@ -2216,10 +2216,9 @@ if test -n "$submachine"; then
45 libc_cv_cc_submachine, [dnl
46 libc_cv_cc_submachine=no
47 for opt in "-march=$submachine" "-mcpu=$submachine"; do
48 - if AC_TRY_COMMAND([${CC-cc} $opt -xc /dev/null -S -o /dev/null]); then
49 + LIBC_TRY_CC_OPTION([$opt], [
50 libc_cv_cc_submachine="$opt"
55 if test "x$libc_cv_cc_submachine" = xno; then
56 AC_MSG_ERROR([${CC-cc} does not support $submachine])