X11R6 references in autotools

Kris Kennaway kris at obsecurity.org
Sun May 6 20:36:44 UTC 2007


Hi ade,

I am trying to debug some problems with autotools related to the merge
into /usr/local.  There is one problem I have confirmed and another I
need some help with;

1) Some autotools (e.g. automake14) hard-wire the X11BASE into their
files at build time.  e.g. on an xorg 6.9 system aclocal14 has:

$acdir_x11 = '/usr/X11R6/share/aclocal';

This appears to be confusing some ports during the upgrade (when X11R6
is still present as a separate hierarchy but mostly empty).  The fix
is for the automake port revusion to be bumped so it gets the new
X11BASE.  I am trying to confirm which auto* ports require this.

2) After a full auto* rebuild with X11BASE=LOCALBASE there are still
some references to /usr/X11R6 in auto* files.  e.g.

autoconf213/autoconf.m4f:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf213/autoconf.m4f:    /usr/X11R6/include        \
autoconf213/autoconf.m4f:    /usr/include/X11R6        \
autoconf213/autoconf.m4f:    /usr/local/X11R6/include  \
autoconf213/autoconf.m4f:    /usr/local/include/X11R6  \
autoconf213/autoconf.m4f:    /usr/X11R6/lib        \
autoconf213/autoconf.m4f:    /usr/lib/X11R6        \
autoconf213/autoconf.m4f:    /usr/local/X11R6/lib  \
autoconf213/autoconf.m4f:    /usr/local/lib/X11R6  \
autoconf213/autoheader.m4f:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf213/autoheader.m4f:    /usr/X11R6/include        \
autoconf213/autoheader.m4f:    /usr/include/X11R6        \
autoconf213/autoheader.m4f:    /usr/local/X11R6/include  \
autoconf213/autoheader.m4f:    /usr/local/include/X11R6  \
autoconf213/autoheader.m4f:    /usr/X11R6/lib        \
autoconf213/autoheader.m4f:    /usr/lib/X11R6        \
autoconf213/autoheader.m4f:    /usr/local/X11R6/lib  \
autoconf213/autoheader.m4f:    /usr/local/lib/X11R6  \
autoconf213/acspecific.m4:    /usr/X11R6/include        \
autoconf213/acspecific.m4:    /usr/include/X11R6        \
autoconf213/acspecific.m4:    /usr/local/X11R6/include  \
autoconf213/acspecific.m4:    /usr/local/include/X11R6  \
autoconf213/acspecific.m4:    /usr/X11R6/lib        \
autoconf213/acspecific.m4:    /usr/lib/X11R6        \
autoconf213/acspecific.m4:    /usr/local/X11R6/lib  \
autoconf213/acspecific.m4:    /usr/local/lib/X11R6  \
autoconf213/acspecific.m4:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf253/autoconf/libs.m4:/usr/X11R6/include
autoconf253/autoconf/libs.m4:/usr/include/X11R6
autoconf253/autoconf/libs.m4:/usr/local/X11R6/include
autoconf253/autoconf/libs.m4:/usr/local/include/X11R6
autoconf253/autoconf/libs.m4:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf253/autoconf/autoconf.m4f:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf253/autoconf/autoconf.m4f:/usr/X11R6/include
autoconf253/autoconf/autoconf.m4f:/usr/include/X11R6
autoconf253/autoconf/autoconf.m4f:/usr/local/X11R6/include
autoconf253/autoconf/autoconf.m4f:/usr/local/include/X11R6
autoconf259/autoconf/libs.m4:/usr/X11R6/include
autoconf259/autoconf/libs.m4:/usr/include/X11R6
autoconf259/autoconf/libs.m4:/usr/local/X11R6/include
autoconf259/autoconf/libs.m4:/usr/local/include/X11R6
autoconf259/autoconf/libs.m4:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf259/autoconf/autoconf.m4f:  # Check for libraries that X11R6 Xt/Xaw programs need.
autoconf259/autoconf/autoconf.m4f:/usr/X11R6/include
autoconf259/autoconf/autoconf.m4f:/usr/include/X11R6
autoconf259/autoconf/autoconf.m4f:/usr/local/X11R6/include
autoconf259/autoconf/autoconf.m4f:/usr/local/include/X11R6

(note: not a complete list).

These look like search paths, but they don't include the new "correct"
location (${X11BASE}/include, which evaluates to /usr/local/include).
I suspect these should be patched too.

Kris


More information about the freebsd-x11 mailing list