-
Committer:
Ignacio Nin
-
Date:
2012-07-10 13:22:50 UTC
-
Revision ID:
ignacio.nin@percona.com-20120710132250-kd8fhjc2gq5z8590
Add a AC_CONFIG_AUX_DIR directive to HandlerSocket's configure.ac
Under certain circumstances, libtoolize would generate a broken libtool
script for the HandlerSocket/ subproject, resulting in make failing (in
particular in the libhsclient/ directory).
This was because libtoolize would find the top directory (mysql's)
configure.ac and ltmain.sh, using options from there and confusing some
paths.
A detailed description on why this made libtoolize fail would require
some debugging of libtoolize and/or autoconf, but it can be fixed via
forcing AC_CONFIG_AUX_DIR([.]) in the subproject's configure.ac, so
libtoolize doesn't try to go up in the directory structure looking for
ltmain.sh or other auxiliar files.
From http://www.gnu.org/software/automake/manual/html_node/Optional.html:
If AC_CONFIG_AUX_DIR is not given, the scripts are looked for in their
standard locations. For mdate-sh, texinfo.tex, and ylwrap, the
standard location is the source directory corresponding to the current
Makefile.am. For the rest, the standard location is the first one of
., .., or ../.. (relative to the top source directory) that provides
any one of the helper scripts. See Finding `configure' Input.
(../.. is the top mysql distribution dir)
Confirmed in gentoo linux (updated 2012-07-09) for the following:
host-triplet: x86_64-pc-linux-gnu
shell: /bin/bash
compiler: x86_64-pc-linux-gnu-gcc
compiler flags: -O2 -pipe
linker: /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64 (gnu? yes)
libtool: (GNU libtool) 2.4
automake: automake (GNU automake) 1.11.1
autoconf: autoconf (GNU Autoconf) 2.68