qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] configure: make source tree build more robust


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] configure: make source tree build more robust
Date: Mon, 28 Apr 2014 14:24:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Il 28/04/2014 14:21, Michael S. Tsirkin ha scritto:

A more practical way is when make runs configure automatically:

1. cd <firstpath>/; ./configure
    SRC_PATH=<firstpath>/ is written into config_host.mak
2. cd <secondpath>/; touch configure; make
    make now runs <firstpath>/configure, so configure
    assumes it's an out of tree build

When this happens configure overwrites parts of
the current tree with symlinks.

Make the test more robust: create a canary file under
the build tree, then look for it in the source tree.
If there - we know it's a source build!

Can it just do "test -f ./configure"? If it's there it's a source build. At least that's what autoconf does.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]