NSPR build system

View: New views
3 Messages — Rating Filter:   Alert me  

NSPR build system

by Jon Leighton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All -

I'm looking for some help understanding NSPR's build system.  I've been
reading up on autoconf and automake, since I haven't used them before,
but building NSPR is clearly more complex than a vanilla build using
configure.in and Makefile.am files.  Is there any documentation covering
(for example), the files used to generate the configure script?  I
haven't yet found any up-to-date information on NSPR's build system.
Any help would be greatly appreciated.

Regards
Jon
_______________________________________________
dev-tech-nspr mailing list
dev-tech-nspr@...
https://lists.mozilla.org/listinfo/dev-tech-nspr

Re: NSPR build system

by Benjamin Smedberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jon wrote:

> I'm looking for some help understanding NSPR's build system.  I've been
> reading up on autoconf and automake, since I haven't used them before,
> but building NSPR is clearly more complex than a vanilla build using
> configure.in and Makefile.am files.  Is there any documentation covering

NSPR uses autoconf (version 2.13) but it does not use automake.

The NSPR build system was created long before automake existed, and has many
of the same features as automake. A rough summary of the build system goes
like this:

* configure.in is an M4 script which defines configuration options. It is
tranformed into the configure shell script using "autoconf-2.13".


* Makefile.in files are in each build directory. When configure is run, they
are transformed into Makefile by substituting @VARNAMES@. They typically
include the following sections:

include $(DEPTH)/config/autoconf.mk - this file contains the build
configuration variables set during configure

include $(topsrcdir)/config/config.mk - this file sets up makefile variables

set variables such as CRSCS and HEADERS

include $(topsrcdir)/config/rules.mk - this file sets the makefile rules for
compiling files, installing headers, etc

--BDS
_______________________________________________
dev-tech-nspr mailing list
dev-tech-nspr@...
https://lists.mozilla.org/listinfo/dev-tech-nspr

Re: NSPR build system

by Wan-Teh Chang-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jun 13, 2008 at 6:54 AM, Benjamin Smedberg
<benjamin@...> wrote:

>
> NSPR uses autoconf (version 2.13) but it does not use automake.
>
> The NSPR build system was created long before automake existed, and has many
> of the same features as automake. A rough summary of the build system goes
> like this:
>
> * configure.in is an M4 script which defines configuration options. It is
> tranformed into the configure shell script using "autoconf-2.13".
>
>
> * Makefile.in files are in each build directory. When configure is run, they
> are transformed into Makefile by substituting @VARNAMES@. They typically
> include the following sections:
>
> include $(DEPTH)/config/autoconf.mk - this file contains the build
> configuration variables set during configure
>
> include $(topsrcdir)/config/config.mk - this file sets up makefile variables
>
> set variables such as CRSCS and HEADERS
>
> include $(topsrcdir)/config/rules.mk - this file sets the makefile rules for
> compiling files, installing headers, etc

Benjamin's reply is very complete.  Thanks!

I just wanted to add that the current NSPR build instructions are at
http://developer.mozilla.org/en/docs/NSPR_build_instructions
(I know build instructions are not the same as documentation of
the build system.)

Wan-Teh
_______________________________________________
dev-tech-nspr mailing list
dev-tech-nspr@...
https://lists.mozilla.org/listinfo/dev-tech-nspr
LightInTheBox - Buy quality products at wholesale price!