> On FreeBSD using AC_SEARCH_LIBS is not sufficient for finding the 
> linker flags for linking with a pthread library.
> Add macro ax_pthread.m4 from GNU autoconf macro archive and use
> macro AX_PTHREAD.
> 
> Signed-off-by: Kevin Lo <kevlo at FreeBSD.org>
> ---
> 
> diff --git a/configure.ac b/configure.ac
> index 8d47eb9..531a1f0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -84,6 +84,11 @@ AC_SEARCH_LIBS([timer_create], [rt])
>  AC_SEARCH_LIBS([pthread_sigmask], [pthread])

i guess AC_SEARCH_LIBS for potentially-in-libpthread stuffs
should be after the AX_PTHREAD check.

YAMAMOTO Takashi

>  AC_FUNC_STRERROR_R
>  
> +AX_PTHREAD([
> +  LIBS="$PTHREAD_LIBS $LIBS"
> +  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
> +  CC="$PTHREAD_CC"], AC_MSG_ERROR([Missing POSIX threads support.]))
> +
>  OVS_CHECK_ESX
>  OVS_CHECK_WIN32
>  OVS_CHECK_VISUAL_STUDIO_DDK
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to