termux-packages/packages/usbmuxd/configure.ac.patch

21 lines
903 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@
PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.9)
PKG_CHECK_MODULES(libplist, libplist-2.0 >= 2.2.0)
PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.3.0, have_limd=yes, have_limd=no)
-AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build usbmuxd])])
+AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_NOTICE([libpthread is required to build usbmuxd])])
AC_ARG_WITH([preflight],
[AS_HELP_STRING([--without-preflight],
@@ -108,8 +108,6 @@
AC_SEARCH_LIBS([clock_gettime],[rt posix4])
# Checks for library functions.
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy])
AC_CHECK_FUNCS([ppoll clock_gettime localtime_r])