--- a/gsl.m4~	Wed Aug 21 10:08:00 2019
+++ b/gsl.m4	Wed Aug 21 11:06:41 2019
@@ -55,7 +55,7 @@
       LIBS="$LIBS $GSL_LIBS"
 
       rm -f conf.gsltest
-      AC_TRY_RUN([
+      AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -108,7 +108,7 @@
      }
 }
 
-],, no_gsl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+]])],[],[no_gsl=yes],[echo $ac_n "cross compiling; assumed OK... $ac_c"])
        CFLAGS="$ac_save_CFLAGS"
        LIBS="$ac_save_LIBS"
      fi
@@ -130,9 +130,9 @@
           echo "*** Could not run GSL test program, checking why..."
           CFLAGS="$CFLAGS $GSL_CFLAGS"
           LIBS="$LIBS $GSL_LIBS"
-          AC_TRY_LINK([
+          AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <stdio.h>
-],      [ return 0; ],
+]],     [[ return 0;]])],
         [ echo "*** The test program compiled, but did not run. This usually means"
           echo "*** that the run-time linker is not finding GSL or finding the wrong"
           echo "*** version of GSL. If it is not finding GSL, you'll need to set your"
