mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
restore accidentally deleted check
This commit is contained in:
parent
4515e4a28b
commit
dc688a1586
2 changed files with 46 additions and 0 deletions
45
configure
vendored
45
configure
vendored
|
@ -9370,6 +9370,51 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
|
||||||
|
$as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
|
||||||
|
if ${ac_cv_lib_zstd_ZSTD_compress+:} 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_compress ();
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return ZSTD_compress ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
ac_cv_lib_zstd_ZSTD_compress=yes
|
||||||
|
else
|
||||||
|
ac_cv_lib_zstd_ZSTD_compress=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_compress" >&5
|
||||||
|
$as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
|
||||||
|
if test "x$ac_cv_lib_zstd_ZSTD_compress" = 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 "$as_me:${as_lineno-$LINENO}: checking for dyn_string_append in -liberty" >&5
|
||||||
$as_echo_n "checking for dyn_string_append in -liberty... " >&6; }
|
$as_echo_n "checking for dyn_string_append in -liberty... " >&6; }
|
||||||
if ${ac_cv_lib_iberty_dyn_string_append+:} false; then :
|
if ${ac_cv_lib_iberty_dyn_string_append+:} false; then :
|
||||||
|
|
|
@ -2451,6 +2451,7 @@ fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS(bfd.h)
|
AC_CHECK_HEADERS(bfd.h)
|
||||||
AC_CHECK_LIB(intl, libintl_fprintf)
|
AC_CHECK_LIB(intl, libintl_fprintf)
|
||||||
|
AC_CHECK_LIB(zstd, ZSTD_compress)
|
||||||
AC_CHECK_LIB(iberty, dyn_string_append)
|
AC_CHECK_LIB(iberty, dyn_string_append)
|
||||||
AC_CHECK_LIB(z, gzseek)
|
AC_CHECK_LIB(z, gzseek)
|
||||||
AC_CHECK_LIB(sframe, sframe_decode)
|
AC_CHECK_LIB(sframe, sframe_decode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue