[Xcb] Re: xcb Digest, Vol 16, Issue 4
Dale Anderson
dale_anderson at paradise.net.nz
Sat Jul 9 08:56:19 EST 2005
Bear in mind freebsd autofoo is heavily broken when building outside of
ports as it is patched to work with the ports build method .
Cheers
Dale.
On Fri, 2005-07-08 at 12:00 -0700, xcb-request at lists.freedesktop.org
wrote:
> Send xcb mailing list submissions to
> xcb at lists.freedesktop.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freedesktop.org/mailman/listinfo/xcb
> or, via email, send a message with subject or body 'help' to
> xcb-request at lists.freedesktop.org
>
> You can reach the person managing the list at
> xcb-owner at lists.freedesktop.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of xcb digest..."
>
>
> Today's Topics:
>
> 1. XCB install on free BSD (Dickson Patton)
> 2. Re: XCB install on free BSD (Jeremy A. Kolb)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 07 Jul 2005 18:32:25 -0700
> From: Dickson Patton <pattond at cecs.pdx.edu>
> Subject: [Xcb] XCB install on free BSD
> To: xcb at lists.freedesktop.org
> Message-ID: <42CDD7A9.9010109 at cecs.pdx.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> All,
>
> I checked out xcb as instructed on the website and tried to install it.
> My autoconf.sh gives the following output:
>
> autoreconf: Entering directory `.'
> autoreconf: configure.ac: not using Gettext
> autoreconf: running: aclocal
> /usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of
> AM_PATH_GTK
> run info '(automake)Extending aclocal'
> or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
> aclocal:configure.ac:16: warning: macro `AM_PATH_CHECK' not found in library
> autoreconf: configure.ac: tracing
> autoreconf: configure.ac: not using Libtool
> autoreconf: running: /usr/local/bin/autoconf
> autoreconf: running: /usr/local/bin/autoheader
> autoreconf: running: automake --add-missing --copy --no-force
> src/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
> src/Makefile.am:1:
> src/Makefile.am:1: The usual way to define `LIBTOOL' is to add
> `AC_PROG_LIBTOOL'
> src/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
> autoreconf: automake failed with exit status: 1
>
>
> I checked that AC_PROG_LIBTOOL is in configure.ac, and tried re-running
> aclocal, autoconf and then autogen.sh as the directions indicated, but
> got the same result.
>
>
>
> my path is :
>
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:
> /usr/X11R6/bin:/home/pattond/bin:/usr/local/share:.:
> /usr/local/libexec/automake19/:.:/usr/local/libexec/automake19/
> :/usr/local/lib:.
>
>
>
> I also added 4 m4_pattern_allow statements to my configure.ac,
> on the advice of configure's error messages. My configure.ac is now:
>
> # -*- Autoconf -*-
> # Process this file with autoconf to produce a configure script.
>
> m4_pattern_allow([AM_INIT_AUTOMAKE])
> m4_pattern_allow([AM_PATH_CHECK])
> m4_pattern_allow([AM_CONDITIONAL])
> m4_pattern_allow([AC_PROG_LIBTOOL])
>
> AC_PREREQ(2.57)
> AC_INIT([libXCB],
> 0.9,
> [xcb at lists.freedesktop.org])
> AC_CONFIG_SRCDIR([xcb.pc.in])
> AM_INIT_AUTOMAKE([foreign dist-bzip2])
>
> AM_PATH_CHECK(0.8.2, [HAVE_CHECK=true], [HAVE_CHECK=false])
> AM_CONDITIONAL(HAVE_CHECK, test x$HAVE_CHECK != xfalse)
>
> AC_CONFIG_HEADERS([src/config.h])
>
> AC_PROG_LIBTOOL
> AC_PROG_CC
> AC_PATH_PROG(XSLTPROC, xsltproc, no)
> if test "$XSLTPROC" = "no"; then
> AC_MSG_ERROR([XCB requires xsltproc.])
> fi
>
> # Checks for pkg-config packages
> PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 0.9)
> PKG_CHECK_MODULES(XPROTO, xproto)
> PKG_CHECK_MODULES(XAU, xau)
>
> # Find the xcb-proto protocol descriptions
> AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
> XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
> AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
> AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
>
> AC_HEADER_STDC
> AC_SEARCH_LIBS(gethostbyname, nsl)
> AC_SEARCH_LIBS(connect, socket)
>
> xcbincludedir='${includedir}/X11/XCB'
> AC_SUBST(xcbincludedir)
>
> AC_ARG_WITH(opt,
> AC_HELP_STRING([--with-opt], [compile with reasonable optimizations])
> AC_HELP_STRING([--with-opt=FLAGS], [compile with specified FLAGS])
> AC_HELP_STRING([--with-opt=small], [compile for smallest code])
> AC_HELP_STRING([--with-opt=debug], [compile for debugging (default)]),
> [
> case "$withval" in
> yes)
> optflags="-O3"
> ;;
> small)
> optflags="-Os -fomit-frame-pointer -DNDEBUG"
> ;;
> no|debug)
> optflags="-g"
> ;;
> *)
> optflags="$withval"
> ;;
> esac
> ])
> AC_CACHE_CHECK([what compiler optimizations to apply], [optflags],
> [optflags="-g"])
> AC_DEFINE(_XOPEN_SOURCE, 500, [Conform to Single Unix Specification.])
> CDEBUGFLAGS="$optflags -Wall -pedantic -Wpointer-arith \
> -Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
> AC_SUBST(CDEBUGFLAGS)
>
> AC_OUTPUT([Makefile src/Makefile xcb.pc])
>
>
> I loaded my BSD from the latest web distribution (5.4) about a week ago,
> and manually downloaded and installed the latest GNU automake, autoconf
> and libtool.
>
>
> What can I try next?
>
>
> Thanks,
>
> Dickson
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 7 Jul 2005 22:32:04 -0400 (EDT)
> From: "Jeremy A. Kolb" <jkolb at brandeis.edu>
> Subject: Re: [Xcb] XCB install on free BSD
> To: Dickson Patton <pattond at cecs.pdx.edu>
> Cc: xcb at lists.freedesktop.org
> Message-ID:
> <Pine.LNX.4.44.0507072231190.3110-100000 at diane.unet.brandeis.edu>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
> >From that first warning it looks like you may not have 'check' installed
> (or at least in your PKG_CONFIG_PATH).
>
> Jeremy
>
> On Thu, 7 Jul 2005, Dickson Patton wrote:
>
> > All,
> >
> > I checked out xcb as instructed on the website and tried to install it.
> > My autoconf.sh gives the following output:
> >
> > autoreconf: Entering directory `.'
> > autoreconf: configure.ac: not using Gettext
> > autoreconf: running: aclocal
> > /usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of
> > AM_PATH_GTK
> > run info '(automake)Extending aclocal'
> > or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
> > aclocal:configure.ac:16: warning: macro `AM_PATH_CHECK' not found in library
> > autoreconf: configure.ac: tracing
> > autoreconf: configure.ac: not using Libtool
> > autoreconf: running: /usr/local/bin/autoconf
> > autoreconf: running: /usr/local/bin/autoheader
> > autoreconf: running: automake --add-missing --copy --no-force
> > src/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
> > src/Makefile.am:1:
> > src/Makefile.am:1: The usual way to define `LIBTOOL' is to add
> > `AC_PROG_LIBTOOL'
> > src/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
> > autoreconf: automake failed with exit status: 1
> >
> >
> > I checked that AC_PROG_LIBTOOL is in configure.ac, and tried re-running
> > aclocal, autoconf and then autogen.sh as the directions indicated, but
> > got the same result.
> >
> >
> >
> > my path is :
> >
> > /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:
> > /usr/X11R6/bin:/home/pattond/bin:/usr/local/share:.:
> > /usr/local/libexec/automake19/:.:/usr/local/libexec/automake19/
> > :/usr/local/lib:.
> >
> >
> >
> > I also added 4 m4_pattern_allow statements to my configure.ac,
> > on the advice of configure's error messages. My configure.ac is now:
> >
> > # -*- Autoconf -*-
> > # Process this file with autoconf to produce a configure script.
> >
> > m4_pattern_allow([AM_INIT_AUTOMAKE])
> > m4_pattern_allow([AM_PATH_CHECK])
> > m4_pattern_allow([AM_CONDITIONAL])
> > m4_pattern_allow([AC_PROG_LIBTOOL])
> >
> > AC_PREREQ(2.57)
> > AC_INIT([libXCB],
> > 0.9,
> > [xcb at lists.freedesktop.org])
> > AC_CONFIG_SRCDIR([xcb.pc.in])
> > AM_INIT_AUTOMAKE([foreign dist-bzip2])
> >
> > AM_PATH_CHECK(0.8.2, [HAVE_CHECK=true], [HAVE_CHECK=false])
> > AM_CONDITIONAL(HAVE_CHECK, test x$HAVE_CHECK != xfalse)
> >
> > AC_CONFIG_HEADERS([src/config.h])
> >
> > AC_PROG_LIBTOOL
> > AC_PROG_CC
> > AC_PATH_PROG(XSLTPROC, xsltproc, no)
> > if test "$XSLTPROC" = "no"; then
> > AC_MSG_ERROR([XCB requires xsltproc.])
> > fi
> >
> > # Checks for pkg-config packages
> > PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 0.9)
> > PKG_CHECK_MODULES(XPROTO, xproto)
> > PKG_CHECK_MODULES(XAU, xau)
> >
> > # Find the xcb-proto protocol descriptions
> > AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
> > XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
> > AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
> > AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
> >
> > AC_HEADER_STDC
> > AC_SEARCH_LIBS(gethostbyname, nsl)
> > AC_SEARCH_LIBS(connect, socket)
> >
> > xcbincludedir='${includedir}/X11/XCB'
> > AC_SUBST(xcbincludedir)
> >
> > AC_ARG_WITH(opt,
> > AC_HELP_STRING([--with-opt], [compile with reasonable optimizations])
> > AC_HELP_STRING([--with-opt=FLAGS], [compile with specified FLAGS])
> > AC_HELP_STRING([--with-opt=small], [compile for smallest code])
> > AC_HELP_STRING([--with-opt=debug], [compile for debugging (default)]),
> > [
> > case "$withval" in
> > yes)
> > optflags="-O3"
> > ;;
> > small)
> > optflags="-Os -fomit-frame-pointer -DNDEBUG"
> > ;;
> > no|debug)
> > optflags="-g"
> > ;;
> > *)
> > optflags="$withval"
> > ;;
> > esac
> > ])
> > AC_CACHE_CHECK([what compiler optimizations to apply], [optflags],
> > [optflags="-g"])
> > AC_DEFINE(_XOPEN_SOURCE, 500, [Conform to Single Unix Specification.])
> > CDEBUGFLAGS="$optflags -Wall -pedantic -Wpointer-arith \
> > -Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
> > AC_SUBST(CDEBUGFLAGS)
> >
> > AC_OUTPUT([Makefile src/Makefile xcb.pc])
> >
> >
> > I loaded my BSD from the latest web distribution (5.4) about a week ago,
> > and manually downloaded and installed the latest GNU automake, autoconf
> > and libtool.
> >
> >
> > What can I try next?
> >
> >
> > Thanks,
> >
> > Dickson
> >
> >
> >
> > _______________________________________________
> > xcb mailing list
> > xcb at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/xcb
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> xcb mailing list
> xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
>
>
> End of xcb Digest, Vol 16, Issue 4
> **********************************
>
More information about the xcb
mailing list