mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-12 13:04:57 +00:00
avoid autoconf warning
Autoconf warned about this: configure.ac:72: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE\ call detected in body That's warning about the use via AC_COMPILE_IFELSE without specifying a language. The easiest way to work around that is to avoid the use of CC altogether and instead to use the preprocessor. * configure.ac (cc_supports_flag): Use AC_PREPROC_IFELSE in place of AC_COMPILE_IFELSE (and CPPFLAGS in place of CFLAGS). Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
9c467cb150
commit
8ac48bac1b
@ -67,9 +67,9 @@ AM_CONDITIONAL(HAVE_SPLINT, test -n "${SPLINT}")
|
||||
# this function checks if CC support options passed as
|
||||
# args. Global CFLAGS are ignored during this test.
|
||||
cc_supports_flag() {
|
||||
local CFLAGS="$@"
|
||||
local CPPFLAGS="$CPPFLAGS $@"
|
||||
AC_MSG_CHECKING([whether $CC supports "$@"])
|
||||
AC_COMPILE_IFELSE([int main(){return 0;}] ,
|
||||
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([])],
|
||||
[RC=0; AC_MSG_RESULT([yes])],
|
||||
[RC=1; AC_MSG_RESULT([no])])
|
||||
return $RC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user