monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] library build


From: Jack Lloyd
Subject: Re: [Monotone-devel] library build
Date: Tue, 30 Sep 2008 15:14:50 -0400
User-agent: Mutt/1.5.16 (2007-06-09)

Hi Zack,

Thanks, this was very useful. I made these changes in
net.randombit.botan just after tagging 1.7.14:

On Tue, Sep 30, 2008 at 11:35:58AM -0700, Zack Weinberg wrote:

>   --no-foo -> --disable-foo, for all foo; also, accept --enable-foo
> for all foo, even if this has no effect
>   --debug -> --enable-debug (and accept --disable-debug)

Done: --(enable|disable)-(asm|autoconfig|shared|debug|modules)

>   --modules, --module-set=, --noauto   -> collapse into
> --(enable,disable)-modules

Renamed to --(enable|disable)-modules, but --module-set not yet combined.
And --noauto became --disable-autoconfig.

>   --build-dir=  -> --with-build-dir; also, if it doesn't already, this
> should default to the current working directory
>                        *even if* that's not the same as the directory
> containing configure.pl;

Renamed. It does support cwd, at least I think this is the behavior
you want?

(motoko ~/projects/botan)$ mkdir botan-build && cd botan-build
(motoko ~/projects/botan/botan-build)$ ../mainline/configure.pl
[snip configure output]

(motoko ~/projects/botan/botan-build)$ ls -l
total 56K
-rw------- 1 lloyd lloyd 50K Sep 30 15:10 Makefile
-rwxr-xr-x 1 lloyd lloyd 953 Sep 30 15:10 botan-config*
drwx------ 5 lloyd lloyd  57 Sep 30 15:09 build/

(motoko ~/projects/botan/botan-build)$ make check
<builds>

(motoko ~/projects/botan/botan-build)$ ls -l
total 9.6M
-rw------- 1 lloyd lloyd  50K Sep 30 15:10 Makefile
-rwxr-xr-x 1 lloyd lloyd  953 Sep 30 15:10 botan-config*
drwx------ 5 lloyd lloyd   57 Sep 30 15:09 build/
-rwx------ 1 lloyd lloyd 286K Sep 30 15:11 check*
-rw------- 1 lloyd lloyd 6.8M Sep 30 15:11 libbotan.a
-rwx------ 1 lloyd lloyd 2.5M Sep 30 15:11 libbotan-1.7.14.so*
lrwxrwxrwx 1 lloyd lloyd   18 Sep 30 15:11 libbotan.so -> libbotan-1.7.14.so*

> also, support --srcdir=

I'm not sure I understand the semantics of this option (of course all
I know is what is in Monotone configure's --help outpout "find the
sources in DIR [configure dir or `..']")

>   DESTDIR= support for "make install", if not already present

Supported, but the variable is named INSTALLROOT. Is DESTDIR the
canonical name for this?

>   --cc= -> CC environment variable and/or "CC=compiler" on the command line
>   --os, --cpu -> --host=<GNU configuration triplet>

Seems sane (but not yet done).

>   --endian=, --unaligned-mem=   should be spelled --with-endian,
> --with-unaligned-mem
>   --local-config= -> --with-local-config=

Done: renamed to --with-(endian|unaligned-mem|local-config)

>   also, it would be nice (but is not very important) to support
> --exec-prefix and as many of the --foodir installation options as
>   possible (accept them even if you don't have anything to put in that
> directory).

Added --exec-prefix and all of the --<blah>dirs that Monotone's
./configure --help printed under "Fine tuning..." - they are saved but
basically ignored (but some like includedir might make sense to use as
well).

> Note that you can include config.sub and config.guess in your
> project even if it doesn't use autoconf, and with no impact on
> licensing of anything else.  I don't know offhand what changes might
> be needed for the makefiles.

I did not know that. Thanks.

-Jack




reply via email to

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