configure.ac: Use AC_LANG_PROGRAM for AC_LINK_IFELSE -gz=none check
authorMark Wielaard <mark@klomp.org>
Fri, 27 Jan 2023 16:03:33 +0000 (17:03 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 27 Jan 2023 16:05:29 +0000 (17:05 +0100)
We do need a real AC_LANG_PROGRAM instead of just AC_LANG_SOURCE since
commit 73652f configure.ac: Use AC_LINK_IFELSE for -gz=none check

Otherwise the check always fails because it will not have a main ().

Signed-off-by: Mark Wielaard <mark@klomp.org>
configure.ac

index 1d77e993eac24927a0362d86299703eeeceb8f99..6704dc080ef0d5aeec56cd14efc238d9b06dce6a 100644 (file)
@@ -125,7 +125,7 @@ AC_SUBST([DWARF_5_DEBUGLINE])
 AC_CACHE_CHECK([whether gcc supports -gz=none], ac_cv_gz_none, [dnl
 save_CFLAGS="$CFLAGS"
 CFLAGS="-gz=none"
-AC_LINK_IFELSE([AC_LANG_SOURCE()], ac_cv_gz_none=yes, ac_cv_gz_none=no)
+AC_LINK_IFELSE([AC_LANG_PROGRAM()], ac_cv_gz_none=yes, ac_cv_gz_none=no)
 CFLAGS="$save_CFLAGS"
 ])
 if test "$ac_cv_gz_none" = "yes"; then
This page took 0.054697 seconds and 5 git commands to generate.