libsframe needed on some systems

This commit is contained in:
rfm 2024-04-14 14:14:55 +01:00
parent 509a29cc5b
commit 4515e4a28b
2 changed files with 46 additions and 46 deletions

90
configure vendored
View file

@ -9370,51 +9370,6 @@ _ACEOF
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_versionNumber in -lzstd" >&5
$as_echo_n "checking for ZSTD_versionNumber in -lzstd... " >&6; }
if ${ac_cv_lib_zstd_ZSTD_versionNumber+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lzstd $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char ZSTD_versionNumber ();
int
main ()
{
return ZSTD_versionNumber ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_zstd_ZSTD_versionNumber=yes
else
ac_cv_lib_zstd_ZSTD_versionNumber=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_versionNumber" >&5
$as_echo "$ac_cv_lib_zstd_ZSTD_versionNumber" >&6; }
if test "x$ac_cv_lib_zstd_ZSTD_versionNumber" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBZSTD 1
_ACEOF
LIBS="-lzstd $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyn_string_append in -liberty" >&5
$as_echo_n "checking for dyn_string_append in -liberty... " >&6; }
if ${ac_cv_lib_iberty_dyn_string_append+:} false; then :
@ -9505,6 +9460,51 @@ _ACEOF
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sframe_decode in -lsframe" >&5
$as_echo_n "checking for sframe_decode in -lsframe... " >&6; }
if ${ac_cv_lib_sframe_sframe_decode+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lsframe $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char sframe_decode ();
int
main ()
{
return sframe_decode ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_sframe_sframe_decode=yes
else
ac_cv_lib_sframe_sframe_decode=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sframe_sframe_decode" >&5
$as_echo "$ac_cv_lib_sframe_sframe_decode" >&6; }
if test "x$ac_cv_lib_sframe_sframe_decode" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSFRAME 1
_ACEOF
LIBS="-lsframe $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
$as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
if ${ac_cv_lib_bfd_bfd_openr+:} false; then :

View file

@ -2451,9 +2451,9 @@ fi
AC_CHECK_HEADERS(bfd.h)
AC_CHECK_LIB(intl, libintl_fprintf)
AC_CHECK_LIB(zstd, ZSTD_versionNumber)
AC_CHECK_LIB(iberty, dyn_string_append)
AC_CHECK_LIB(z, gzseek)
AC_CHECK_LIB(sframe, sframe_decode)
AC_CHECK_LIB(bfd, bfd_openr)
AC_TRY_COMPILE([