Make get_image_name static
[deliverable/binutils-gdb.git] / gdb / sanitize.m4
index 979f6461c0dea488d66f0cc9f825027370f814ec..f898bd2ca78b2ea6e05922cb10cd746e32f85afc 100644 (file)
@@ -1,5 +1,5 @@
 dnl Sanitization-related configure macro for GDB
-dnl Copyright (C) 2018 Free Software Foundation, Inc.
+dnl Copyright (C) 2018-2021 Free Software Foundation, Inc.
 dnl
 dnl This file is part of GDB.
 dnl
@@ -34,7 +34,11 @@ if test "x$enable_ubsan" = xyes; then
   dnl A link check is required because it is possible to install gcc
   dnl without libubsan, leading to link failures when compiling with
   dnl -fsanitize=undefined.
-  AC_TRY_LINK([],[],enable_ubsan=yes,enable_ubsan=no)
+  AC_LINK_IFELSE(
+    [AC_LANG_PROGRAM([], [])],
+    [enable_ubsan=yes],
+    [enable_ubsan=no]
+  )
   CXXFLAGS="$saved_CXXFLAGS"
   AC_MSG_RESULT($enable_ubsan)
   if test "x$enable_ubsan" = xyes; then
This page took 0.026418 seconds and 4 git commands to generate.