1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

Update: Improved check for crypt(), crypt_r()

This commit is contained in:
Philipp Schafft 2023-02-21 09:22:26 +00:00
parent c1748ac7fa
commit f5a807a456

View File

@ -100,6 +100,7 @@ AC_CHECK_HEADERS([sys/timeb.h])
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([pwd.h grp.h])
AC_CHECK_HEADERS([sys/resource.h])
AC_CHECK_HEADERS([crypt.h])
AC_C_BIGENDIAN
@ -123,11 +124,11 @@ AC_CHECK_FUNCS([ftime])
AC_CHECK_FUNCS([getrlimit])
dnl check for crypt():
AC_CHECK_FUNCS([crypt_r], [], [
AC_CHECK_LIB(crypt, crypt_r, [], [
AC_CHECK_FUNCS([crypt], [], [
AC_CHECK_LIB(crypt, crypt)
])
AC_SEARCH_LIBS([crypt_r], [crypt], [
AC_DEFINE([HAVE_CRYPT_R], [1], [Define if you have crypt_r])
], [
AC_SEARCH_LIBS([crypt], [crypt], [
AC_DEFINE([HAVE_CRYPT], [1], [Define if you have crypt])
])
])