libFLAC.m4, libFLAC++.m4: fix -Wstrict-prototypes (#521)

This commit is contained in:
Sam James 2022-11-28 21:13:26 +00:00 committed by GitHub
parent c42d4467d5
commit 7844578995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 13 deletions

View File

@ -51,19 +51,16 @@ dnl
dnl Now check if the installed libFLAC++ is sufficiently new. dnl Now check if the installed libFLAC++ is sufficiently new.
dnl dnl
rm -f conf.libFLAC++test rm -f conf.libFLAC++test
AC_TRY_RUN([ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <FLAC++/decoder.h> #include <FLAC++/decoder.h>
]],[[
int main ()
{
system("touch conf.libFLAC++test"); system("touch conf.libFLAC++test");
return 0; return 0;
} ]])],[],[no_libFLACPP=yes],[echo $ac_n "cross compiling; assumed OK... $ac_c"])
],, no_libFLACPP=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS" CFLAGS="$ac_save_CFLAGS"
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"

View File

@ -52,19 +52,15 @@ dnl
dnl Now check if the installed libFLAC is sufficiently new. dnl Now check if the installed libFLAC is sufficiently new.
dnl dnl
rm -f conf.libFLACtest rm -f conf.libFLACtest
AC_TRY_RUN([ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <FLAC/format.h> #include <FLAC/format.h>
]],[[
int main ()
{
system("touch conf.libFLACtest"); system("touch conf.libFLACtest");
return 0; return 0;
} ]])],[],[no_libFLAC=yes],[echo $ac_n "cross compiling; assumed OK... $ac_c"])
],, no_libFLAC=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS" CFLAGS="$ac_save_CFLAGS"
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"