diff mbox series

[ovs-dev,1/4] configure.ac: More enhanced check for pthread library.

Message ID 20181210170523.2279-2-i.maximets@samsung.com
State Accepted
Headers show
Series Various build/test fixes. | expand

Commit Message

Ilya Maximets Dec. 10, 2018, 5:05 p.m. UTC
FreeBSD 12 supports 'pthread_rwlock_tryrdlock' without 'pthread'
library. Let's add check for more rare function.
OTOH, Travis-CI environment supports 'pthread_rwlockattr_destroy',
but does not support 'pthread_rwlock_tryrdlock' without 'pthread'.
So, both checks needed.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

Comments

Ben Pfaff Dec. 10, 2018, 5:50 p.m. UTC | #1
On Mon, Dec 10, 2018 at 08:05:20PM +0300, Ilya Maximets wrote:
> FreeBSD 12 supports 'pthread_rwlock_tryrdlock' without 'pthread'
> library. Let's add check for more rare function.
> OTOH, Travis-CI environment supports 'pthread_rwlockattr_destroy',
> but does not support 'pthread_rwlock_tryrdlock' without 'pthread'.
> So, both checks needed.
> 
> Signed-off-by: Ilya Maximets <i.maximets@samsung.com>

Applied to master, thanks!
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 3e97a750c..71ca90782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,7 @@  AC_SEARCH_LIBS([pow], [m])
 AC_SEARCH_LIBS([clock_gettime], [rt])
 AC_SEARCH_LIBS([timer_create], [rt])
 AC_SEARCH_LIBS([pthread_rwlock_tryrdlock], [pthread])
+AC_SEARCH_LIBS([pthread_rwlockattr_destroy], [pthread])
 AC_FUNC_STRERROR_R
 
 OVS_CHECK_ESX