summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2019-12-03 22:38:10 +0000
committerDmitry V. Levin <ldv@altlinux.org>2019-12-03 22:38:10 +0000
commit8ef7624c10fc0d70f653f2cde61971f1012d077e (patch)
tree1087183b5ede3ad36b91ea78676b109d57d03503 /m4
parent6c1d4cae68ab317cd41cf89ba57ec42778c564f5 (diff)
downloadstrace-8ef7624c10fc0d70f653f2cde61971f1012d077e.tar.gz
mpers.m4: use AC_LANG_PROGRAM instead of AC_LANG_SOURCE
AC_LANG_PROGRAM is a convenient wrapper around AC_LANG_SOURCE. * m4/mpers.m4 (st_MPERS): Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE.
Diffstat (limited to 'm4')
-rw-r--r--m4/mpers.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/mpers.m4 b/m4/mpers.m4
index 5dcc5f176..aec248060 100644
--- a/m4/mpers.m4
+++ b/m4/mpers.m4
@@ -105,15 +105,15 @@ case "$arch" in
CFLAGS="$CFLAGS MPERS_CFLAGS"
AC_CACHE_CHECK([for mpers_name personality compile support (using $CC $CPPFLAGS $CFLAGS)],
[st_cv_cc],
- [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
- int main(){return 0;}]])],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]],
+ [[return 0]])],
[st_cv_cc=yes],
[st_cv_cc=no])])
if test $st_cv_cc = yes; then
AC_CACHE_CHECK([for mpers_name personality runtime support],
[st_cv_runtime],
- [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
- int main(){return 0;}]])],
+ [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]],
+ [[return 0]])],
[st_cv_runtime=yes],
[st_cv_runtime=no],
[st_cv_runtime=no])])