1
0
Fork 0

configure.ac: Add -lpthread to .pc file if needed

This commit is contained in:
Hugo Beauzée-Luyssen 2020-03-25 15:48:11 +01:00 committed by Jean-Baptiste Kempf
parent c6d9784a07
commit 4efd8acf4b
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ AS_IF([test "${SYS}" != "mingw32"], [
[AC_MSG_ERROR([pthread required])])
AC_SEARCH_LIBS([pthread_create], [pthread], ,
[AC_MSG_ERROR([pthread required])])
PTHREAD_LIBS="$ac_cv_search_pthread_create"
AS_IF([test x"$PTHREAD_LIBS" != x"none required"],
[EXTRA_LIBS="$EXTRA_LIBS $PTHREAD_LIBS"])
AC_SEARCH_LIBS([dlopen], [dl])
DLOPEN_LIBS="$ac_cv_search_dlopen"
AS_CASE([$DLOPEN_LIBS],