summaryrefslogtreecommitdiff
path: root/m4/add_cxxflags.m4
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2021-12-30 18:33:02 +0100
committerMartijn van Beurden <mvanb1@gmail.com>2022-04-15 09:36:15 +0200
commitd94a43d5c3a6203f6adbbc937424a4d9549eaf05 (patch)
treecc6b9ddee6a5fbe937497dbb5fba454f8fbabbda /m4/add_cxxflags.m4
parent144075a114d308545aee573d0dbaf93144fe7c52 (diff)
downloadflac-d94a43d5c3a6203f6adbbc937424a4d9549eaf05.tar.gz
Update configure.ac and m4 files with autoupdate 2.60
Starting with autoconf 2.70, obsolescence warnings are output by default. To keep the script as compatible as possible, I build autoconf 2.60 and ran the autoupdate that came with it on configure.ac and all m4 files.
Diffstat (limited to 'm4/add_cxxflags.m4')
-rw-r--r--m4/add_cxxflags.m411
1 files changed, 4 insertions, 7 deletions
diff --git a/m4/add_cxxflags.m4 b/m4/add_cxxflags.m4
index 8197dc2d..b76e710f 100644
--- a/m4/add_cxxflags.m4
+++ b/m4/add_cxxflags.m4
@@ -7,13 +7,10 @@ AC_DEFUN([XIPH_ADD_CXXFLAGS],
AC_LANG_ASSERT([C++])
ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
CXXFLAGS="$1"
- AC_TRY_LINK([
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <cstdio>
- ],
- [puts("Hello, World!"); return 0;],
- AC_MSG_RESULT([yes])
- CXXFLAGS="$ac_add_cxxflags__old_cxxflags $1",
- AC_MSG_RESULT([no])
+ ]], [[puts("Hello, World!"); return 0;]])],[AC_MSG_RESULT(yes)
+ CXXFLAGS="$ac_add_cxxflags__old_cxxflags $1"],[AC_MSG_RESULT(no)
CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
- )
+ ])
])# XIPH_ADD_CXXFLAGS