Nice-to-have fix for autogen.sh

Xiaofan Chen xiaofanc at gmail.com
Wed Feb 1 09:07:16 EST 2012


On Wed, Feb 1, 2012 at 9:47 PM, Pete Batard <pete at akeo.ie> wrote:
> On 2012.02.01 13:02, Xiaofan Chen wrote:
>>
>> I hate to run
>> "autogen.sh" and then
>> "./configure --enable-maintainer-mode  --enable-examples-build".
>
>
> I believe the following should work:
>
> ./autogen.sh --disable-debug-log
>
> Last configure option should always have precedence, so it should disable
> whatever was previously enabled.

Yes this works. Thanks.

>>>> Probably it is good to leave out this line and that is
>>>> usually the case for other projects.
>>>
>>>
>>> Do you have some examples?
>>
>>
>> One example is OpenOCD where it is called
>> bootstrap.
>>
>> http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob_plain;f=bootstrap;hb=HEAD
>>
>> It goes on to suggest the configure command but
>> not run the configure itself.
>>
>>    echo "Bootstrap complete. Quick build instructions:"
>>    echo "./configure --enable-maintainer-mode ...."
>>
>> Of course there are other projects which go and
>> run configure as well (e.g.: usbutils and urjtag).
>>
>> It is probably a personal preference. In any case,
>> I would like to have at least "--enable-debug-log"
>> removed from autogen.sh.
>
>
> I will have to vote otherwise.
>
> I very much want --enable-debug-log to stay (at least until we have
> toggleable logging -- after that I don't really care).
> I also suspect I am a more heavy user of the libusb(x) autogen.sh than
> people who recompile openocd...
>
> Besides, once we have libusbx releases, OpenOCD should probably
> use those rather than git, so the use case seems a bit limited.

I think you misunderstood my OpenOCD example. I mean
OpenOCD's "bootstrap" is one example that you do not
run configure after running the auto-tools.

But since your suggestion works. I do not have a strong opinions
about this any more.

On the other hand, I also like your toggle able logging option.
I considered this as a bug of libusb-1.0 since  libusb_set_debug()
does not seem to work without --enable-debug-log but Daniel
dismissed it last time I checked with him.

Reference:
http://libusb.6.n5.nabble.com/does-libusb-set-debug-work-td7638.html

-- 
Xiaofan



More information about the libusbx mailing list