diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2019-12-03 22:38:10 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2019-12-03 22:38:10 +0000 |
commit | 8ef7624c10fc0d70f653f2cde61971f1012d077e (patch) | |
tree | 1087183b5ede3ad36b91ea78676b109d57d03503 /m4 | |
parent | 6c1d4cae68ab317cd41cf89ba57ec42778c564f5 (diff) | |
download | strace-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.m4 | 8 |
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])]) |