summaryrefslogtreecommitdiff
blob: 16493e1fd1dc4b583345a05ab00fc8536f7a0e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/configure.in
+++ b/configure.in
@@ -468,11 +468,11 @@
 
 AC_DEFUN([AC_CHECK_GCC_ARG],
  [if test -n "$GCC"; then
-   AC_CACHE_CHECK([whether gcc accepts [$2]],
+   AC_CACHE_CHECK([whether [$CC] accepts [$2]],
      ac_cv_gcc_accepts_[$1],
     [rm -rf conftest.$ac_ext
      touch conftest.$ac_ext
-     if ( ( gcc -c [$2] conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
+     if ( ( $CC -c [$2] conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
           grep unrecognized >/dev/null ); then
        ac_cv_gcc_accepts_[$1]=no
      else