[openafs_cv_gcc_supports_march],
[save_CFLAGS="$CFLAGS"
CFLAGS="-MARCH=pentium"
- AC_TRY_COMPILE([],
- [int x;],
- [openafs_cv_gcc_supports_march=yes],
- [openafs_cv_gcc_supports_march=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x;]])],[openafs_cv_gcc_supports_march=yes],[openafs_cv_gcc_supports_march=no])
CFLAGS="$save_CFLAGS"
])
AS_IF([test x$openafs_cv_gcc_supports_march = xyes],
[openafs_cv_gcc_needs_no_strict_aliasing],
[save_CFLAGS="$CFLAGS"
CFLAGS="-fno-strict-aliasing"
- AC_TRY_COMPILE([],
- [int x;],
- [openafs_cv_gcc_needs_no_strict_aliasing=yes],
- [openafs_cv_gcc_needs_no_strict_aliasing=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x;]])],[openafs_cv_gcc_needs_no_strict_aliasing=yes],[openafs_cv_gcc_needs_no_strict_aliasing=no])
CFLAGS="$save_CFLAGS"
])
AS_IF([test x$openafs_cv_gcc_needs_no_strict_aliasing = xyes],
[openafs_cv_gcc_needs_no_strength_reduce],
[save_CFLAGS="$CFLAGS"
CFLAGS="-fno-strength-reduce"
- AC_TRY_COMPILE([],
- [int x;],
- [openafs_cv_gcc_needs_no_strength_reduce=yes],
- [openafs_cv_gcc_needs_no_strength_reduce=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x;]])],[openafs_cv_gcc_needs_no_strength_reduce=yes],[openafs_cv_gcc_needs_no_strength_reduce=no])
+ CFLAGS="$save_CFLAGS"
])
AS_IF([test x$openafs_cv_gcc_needs_no_strength_reduce = xyes],
[LINUX_GCC_KOPTS="$LINUX_GCC_KOPTS -fno-strength-reduce"])
[openafs_cv_gcc_supports_no_common],
[save_CFLAGS="$CFLAGS"
CFLAGS="-fno-common"
- AC_TRY_COMPILE([],
- [int x;],
- [openafs_cv_gcc_supports_no_common=yes],
- [openafs_cv_gcc_supports_no_common=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x;]])],[openafs_cv_gcc_supports_no_common=yes],[openafs_cv_gcc_supports_no_common=no])
CFLAGS="$save_CFLAGS"
])
[openafs_cv_gcc_supports_pipe],
[save_CFLAGS="$CFLAGS"
CFLAGS="-pipe"
- AC_TRY_COMPILE([],
- [int x;],
- [openafs_cv_gcc_supports_pipe=yes],
- [openafs_cv_gcc_supports_pipe=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x;]])],[openafs_cv_gcc_supports_pipe=yes],[openafs_cv_gcc_supports_pipe=no])
CFLAGS="$save_CFLAGS"
])
AS_IF([test x$openafs_cv_gcc_supports_pipe = xyes],