X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=72136cf39a928da11d0ed757d67db1b010dcf3f3;hb=6bc0b37303f26faf6fbdcbbee444c227e83a329c;hp=f445683000547d6b89f7c71ffecf857ebd46212b;hpb=d8de2c7c2a9b8bf59c8f1fcece5faed0b6cbf6f4;p=free-sw%2Fxcb%2Flibxcb diff --git a/configure.ac b/configure.ac index f445683..72136cf 100644 --- a/configure.ac +++ b/configure.ac @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT([libXCB], - 0.9, +AC_INIT([libxcb], + 0.9.92, [xcb@lists.freedesktop.org]) AC_CONFIG_SRCDIR([xcb.pc.in]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) @@ -34,8 +34,7 @@ fi AC_SUBST(HTML_CHECK_RESULT) # Checks for pkg-config packages -PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 0.9) -PKG_CHECK_MODULES(XPROTO, xproto) +PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 0.9.92) PKG_CHECK_MODULES(XAU, xau) PKG_CHECK_MODULES(XDMCP, xdmcp, @@ -59,7 +58,7 @@ AC_HEADER_STDC AC_SEARCH_LIBS(gethostbyname, nsl) AC_SEARCH_LIBS(connect, socket) -xcbincludedir='${includedir}/X11/XCB' +xcbincludedir='${includedir}/xcb' AC_SUBST(xcbincludedir) AC_ARG_WITH(opt, @@ -106,13 +105,20 @@ AC_HELP_STRING([--without-debug], [compile without debugging]), AC_CACHE_CHECK([what debugging options to apply], [CDEBUGFLAGS], [CDEBUGFLAGS="-g"]) AC_SUBST(CDEBUGFLAGS) -CWARNFLAGS="-Wall -pedantic -Wpointer-arith \ - -Wstrict-prototypes -Wmissing-declarations -Wnested-externs" +if test "x$GCC" = xyes ; then + CWARNFLAGS="-Wall -pedantic -Wpointer-arith \ + -Wstrict-prototypes -Wmissing-declarations -Wnested-externs" +else + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) + if test "x$SUNCC" = "xyes"; then + CWARNFLAGS="-v" + fi +fi AC_SUBST(CWARNFLAGS) GCC_CHECK_VISIBILITY() AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile]) -AC_CONFIG_FILES([xcb.pc]) +AC_CONFIG_FILES([xcb.pc xcb-xlib.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xprint.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc]) AC_OUTPUT