diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-19 19:49:37 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-19 19:49:37 -0200 |
commit | 58d299e54e1198bfa64c39e49c2c0020f9f62b98 (patch) | |
tree | ac7c6a04f1ad44dca02adf18943bb16b152631a5 /configure.ac | |
parent | b04819d129a9a74ab2f17c4a6f9cceabf3aa18d2 (diff) |
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
make distcheck and all gcc 4.3 and sparse warnings.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index aa0a897..af9985a 100644 --- a/configure.ac +++ b/configure.ac @@ -6,10 +6,14 @@ AC_INIT([xcompmgr], [1.1.4], [xorg@freedesktop.org]) AC_CONFIG_SRCDIR([xcompmgr.c]) AM_INIT_AUTOMAKE([dist-bzip2 foreign]) AM_MAINTAINER_MODE +# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.2) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC +XORG_CWARNFLAGS # Checks for header files. AC_HEADER_STDC @@ -24,6 +28,10 @@ AC_FUNC_MALLOC AC_CHECK_FUNCS([gettimeofday localtime_r]) PKG_CHECK_MODULES(XCOMPMGR, xcomposite xfixes xdamage xrender) +XCOMPMGR_CFLAGS="$CWARNFLAGS $XCOMPMGR_CFLAGS" +AC_SUBST(XCOMPMGR_CFLAGS) +AC_SUBST(XCOMPMGR_LIBS) -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT +XORG_CHANGELOG + +AC_OUTPUT([Makefile]) |