diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2011-03-16 17:43:41 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2011-03-16 17:43:41 +0000 |
commit | de15ea94618495ad54ae04dc1a47f33134422335 (patch) | |
tree | 8c0b98e69bbab7e8194a9de3a259a31660aa7d7f /libgfortran/configure.ac | |
parent | 6261ab0ee61da61460b541fd877d741f3b8dbd05 (diff) | |
download | gcc-de15ea94618495ad54ae04dc1a47f33134422335.zip gcc-de15ea94618495ad54ae04dc1a47f33134422335.tar.gz gcc-de15ea94618495ad54ae04dc1a47f33134422335.tar.bz2 |
re PR libfortran/47883 (libgfortran configuration should use AC_LINK_IFELSE instead of AC_TRY_LINK)
PR libfortran/47883
* acinclude.m4: Don't use AC_TRY_ macros.
* configure.ac: Likewise.
* configure: Regenerate.
From-SVN: r171056
Diffstat (limited to 'libgfortran/configure.ac')
-rw-r--r-- | libgfortran/configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index 66468db..522d5ac 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -151,7 +151,7 @@ FOO_1.0 { global: *foo*; bar; local: *; }; EOF -AC_TRY_LINK([int foo;],[],[gfortran_use_symver=gnu],[gfortran_use_symver=no]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([[int foo;]],[[]])],[gfortran_use_symver=gnu],[gfortran_use_symver=no]) if test x$gfortran_use_symver = xno; then case "$target_os" in solaris2*) @@ -163,7 +163,7 @@ FOO_1.0 { global: foo; local: *; }; EOF - AC_TRY_LINK([int foo;],[],[gfortran_use_symver=sun],[gfortran_use_symver=no]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[int foo;]],[[]])],[gfortran_use_symver=sun],[gfortran_use_symver=no]) ;; esac fi @@ -181,7 +181,7 @@ ac_save_CFLAGS="$CFLAGS" # Check for -ffunction-sections -fdata-sections AC_MSG_CHECKING([for gcc that supports -ffunction-sections -fdata-sections]) CFLAGS='-Werror -ffunction-sections -fdata-sections' -AC_TRY_COMPILE(, [int foo;], [ac_fdsections=yes], [ac_fdsections=no]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int foo;]])], [ac_fdsections=yes], [ac_fdsections=no]) if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" else |