[Xcb] [Xcb-commit] configure.ac (fwd)

Vincent Torri vtorri at univ-evry.fr
Fri Mar 4 15:02:42 PST 2011



On Fri, 4 Mar 2011, Alan Coopersmith wrote:

> On 03/ 4/11 01:00 PM, Vincent Torri wrote:
>> Also, if I'm not mistaken, Windows does not have poll(), so case is not good.
>> Again, using AC_COMPILE_IFELSE is better to check the availability of poll()
>
> Doesn't Windows go down to the *) case that uses AC_CHECK_FUNC?   Seems correct
> to me:

oh, right, i misread. and AC_CHECK_FUNC is sufficient. Though 
AC_CHECK_FUNCS is better as it defines for you a macro

Vincent

>
>>> +    darwin@<:@789@:>@*|darwin10*) ;;
>>> +    darwin*)
>>> +        _ac_xorg_macosx_version_min=""
>>> +        if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
>>> +            _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed
>>> 's/^.*-mmacosx-version-min=\(@<:@^ @:>@*\).*$/\1/'`
>>> +        else
>>> +            _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
>>> +        fi
>>> +        case $_ac_xorg_macosx_version_min in
>>> +            10.@<:@0123456@:>@|10.@<:@0123456@:>@.*) ;;
>>> +            *)
>>> +                AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function
>>> is available])], )
>>> +            ;;
>>> +        esac
>>> +        unset _ac_xorg_macosx_version_min
>>> +        ;;
>>>     *)
>>>         AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is
>>> available])], )
>>>     ;;
>
>
> --
> 	-Alan Coopersmith-        alan.coopersmith at oracle.com
> 	 Oracle Solaris Platform Engineering: X Window System
>
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
>
>


More information about the Xcb mailing list