[Mesa-dev] [PATCH] configure.ac: Do not check for rt on Mac OS X.
Michel Dänzer
michel at daenzer.net
Fri Feb 8 01:20:47 PST 2013
On Fre, 2013-02-08 at 08:11 +0100, Vinson Lee wrote:
> There is no rt library on Mac OS X.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58872
> ---
> configure.ac | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 9cc5c4a..39ad85a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -499,10 +499,16 @@ AC_CHECK_FUNC([dlopen], [DEFINES="$DEFINES -DHAVE_DLOPEN"],
> [DEFINES="$DEFINES -DHAVE_DLOPEN"; DLOPEN_LIBS="-ldl"])])
> AC_SUBST([DLOPEN_LIBS])
>
> -AC_CHECK_FUNCS([clock_gettime], [CLOCK_LIB=],
> - [AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt],
> - [AC_MSG_ERROR([Couldn't find clock_gettime])])])
> -AC_SUBST([CLOCK_LIB])
> +case "$host_os" in
> +darwin*)
> + ;;
> +*)
> + AC_CHECK_FUNCS([clock_gettime], [CLOCK_LIB=],
> + [AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt],
> + [AC_MSG_ERROR([Couldn't find clock_gettime])])])
> + AC_SUBST([CLOCK_LIB])
> + ;;
> +esac
Couldn't you just remove the AC_MSG_ERROR stanza? It seems weird to
avoid the check for librt because 'there is no librt'. :)
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the mesa-dev
mailing list