[Xcb] XCB install on free BSD

Dickson Patton pattond at cecs.pdx.edu
Fri Jul 8 11:32:25 EST 2005


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





More information about the xcb mailing list