[Mono-dev] Running autogen.sh from outside of source tree?

Chris Morgan chmorgan at gmail.com
Thu May 22 00:20:32 UTC 2014


I don't see any mention of NOCONFIGURE=1 in README.md.

If it were possible to run autogen.sh from outside of tree it would
make building under Yocto a little bit cleaner. Yocto is very
particular about separating source from build from installed files so
they can automate package generation, check for misbehaving packages

What is interesting is that a good portion of autogen.sh is ok with
being run out of the source directory.

Is it feasible to continue to improve autogen.sh to be run from
outside of the source directory? If so, I can hack on it a bit
tomorrow and see how I make out.


On Wed, May 21, 2014 at 4:39 PM, Miguel de Icaza <miguel at xamarin.com> wrote:
> Hello,
> To build Mono with a different prefix, you need to use a tarball package,
> that has all of the bits that are not typically checked into git.
> That said, if you want to use git, you need to at least run this:
> NOCONFIGURE=1 ./autogen.sh
> On the directory where you did your checkout, and then you can run configure
> from a separate directory.
> On Wed, May 21, 2014 at 3:32 PM, Chris Morgan <chmorgan at gmail.com> wrote:
>> Hello.
>> I'm trying to build mono under Yocto. Recently (so I've heard) there
>> were some changes such that the autotools scripts are being run from
>> outside of the source tree.
>> I presume this is something like:
>> cd mono
>> mkdir monobuild
>> cd monobuild
>> ../autogen.sh
>> [cmorgan at localhost monobuild]$ ../autogen.sh
>> --prefix=/home/cmorgan/mono-prefix
>> grep: configure.in: No such file or directory
>> ../autogen.sh: line 125: mono/mini/Makefile.am: No such file or directory
>> ../autogen.sh: line 126: mono/metadata/Makefile.am: No such file or
>> directory
>> Running aclocal -I m4 -I .  ...
>> aclocal: error: 'configure.ac' is required
>> **Error**: aclocal failed. This may mean that you have not
>> installed all of the packages you need, or you may need to
>> set ACLOCAL_FLAGS to include "-I $prefix/share/aclocal"
>> for the prefix where you installed the packages whose
>> macros were not found
>> This doesn't appear to work because several things in autogen.sh
>> assume that the files are present in the current working directory.
>> Some other steps however do use $srcdir.
>> My question is whether it seems like a reasonable idea to correct
>> autogen.sh to remove the assumption that builddir == sourcedir. If so
>> then I'll go down this route and send a patch. If not then I'll use a
>> Yocto work around for projects that don't/can't support doing that.
>> I'm not big on papering over issues so I do prefer the first option
>> but I didn't want to start work if it turns out that it may be a
>> nearly impossible task.
>> Chris
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list