On 12-04-07 12:33 AM, Alan Coopersmith wrote:
> Signed-off-by: Alan Coopersmith <[email protected]>
> ---
>  configure.ac |    1 +
>  src/driver.c |    3 +++
>  2 files changed, 4 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index aa4ae9f..ddec78e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -78,6 +78,7 @@ AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test 
> "$HAVE_XEXTPROTO_71" = "yes" ])
>  
>  # Checks for header files.
>  AC_HEADER_STDC
> +AC_ALLOCA
AC_ALLOCA is obsolete and replaced with AC_FUNC_ALLOCA (used by libdrm).
The Xt library uses AC_CHECK_HEADER([alloca.h] which is probably not as
complete as AC_FUNC_ALLOCA.

http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Particular-Functions.html#AC_FUNC_ALLOCA

>  
>  PKG_CHECK_MODULES(DRM, [libdrm >= 2.2])
>  PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.10])
> diff --git a/src/driver.c b/src/driver.c
> index 87431ff..514c423 100644
> --- a/src/driver.c
> +++ b/src/driver.c
> @@ -33,6 +33,9 @@
>  #include "config.h"
>  #endif
>  
> +#ifdef HAVE_ALLOCA_H
> +# include <alloca.h>
> +#endif
>  #include <unistd.h>
>  #include <fcntl.h>
>  #include "xf86.h"

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to