problems with bsd.autotools.mk
Radim Kolar
hsn at filez.com
Tue Mar 20 14:11:58 UTC 2012
I have following problems with automake in ports makefile
use case:
source to be configured is in $WRKSRC/native-src subdirectory
configure_wrksrc = $wrksrc/native-src
use_autotools = aclocal libtool autoconf automake
Problems:
1. LIBTOOLFILES must be set by hand to subdirectory/aclocal.m4 (this
should be automatic) otherwise it will not find file in wrksrc subdirectory
2. AClocal do not include shared path with .m4 files. needs to be set by
hand to
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
3. AUTOMAKE_ARGS must include --add-missing to install missing files if
they are not supplied by source distribution
4. automake (and other tools too) should be executed in
$configure_wrksrc directory because currently it leads to cryptic errors
like:
===> Configuring for hornetq-2.2.5
configure.ac:5: required directory ./build-aux does not exist
configure.ac:66: Omit leading `./' from config file names such as
`./src/Makefile',
configure.ac:66: as not all make implementations treat `file' and
`./file' equally.
configure.ac:48: installing `build-aux/config.guess'; error while making
link: No such file or directory
configure.ac:48: installing `build-aux/config.sub'; error while making
link: No such file or directory
configure.ac:7: installing `build-aux/install-sh'; error while making
link: No such file or directory
configure.ac:48: required file `build-aux/ltmain.sh' not found
configure.ac:7: installing `build-aux/missing'; error while making link:
No such file or directory
./src/Makefile.am: installing `build-aux/depcomp'; error while making
link: No such file or directory
configure.ac:13: required file `config.in' not found
*** Error code 1
More information about the freebsd-ports
mailing list