There is a problem using bakefile and configure for a component when
it's out of the wxCode tree, eg. a tar.gz source package.
[john@amd2600 a]$ ../configure
--prefix=/home/john/cvs/a/wxCode/components/wxstedit/a
checking for the --enable-debug option... will be automatically detected
...
checking for the --with-wxshared option... will be automatically detected
configure: error: cannot run /bin/sh build/config.sub
The problem is that the path to look for config.sub is wrong. In the
configure generated by acregen.sh you have this
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
which means that it looks in
ac_aux_dir=
for ac_dir in ../../../build/autoconf build
$srcdir/../../../build/autoconf build; do
...
What we really want is for it to look into $srcdir/build where you
should have copied all all appropriate scripts.
==============
Here's where the problem is
wxCode/build/autoconf/wxcode.m4
AC_DEFUN([AM_WXCODE_INIT],
[
AC_PREREQ([2.57])
AC_CONFIG_AUX_DIR([../../../build/autoconf build])
m4_include(../../../build/autoconf/wxpresets.m4)
AC_LANG(C++)
])
I don't think that having two paths is standard. You can see that only
the first dir gets prepended with $srcdir which is why you cannot run
configure out of the wxCode tree.
I am going to replace the line
AC_CONFIG_AUX_DIR([../../../build/autoconf build])
with just this
AC_CONFIG_AUX_DIR(build)
which means that you have to have all the appropriate scripts in your
build dir which is what you'd need to build out of the tree anyway.
Regards,
John Labenski
|