Branch: Tag:

2008-06-29

2008-06-29 11:20:06 by Marcus Agehall <agehall@gmail.com>

Building external modules normally doesn't require anything but the
location of the Pike C headers. This patch tries to save the header
location in the master and provides a pike -x cflags command to
extract the compiler flags for using them.

Rev: bin/install.pike:1.187
Rev: lib/master.pike.in:1.448
Rev: lib/modules/Tools.pmod/Standalone.pmod/cflags.pike:1.1
Rev: src/Makefile.in:1.466
Rev: src/configure.in:1.1057

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.447 2008/06/29 10:49:16 nilsson Exp $ + // $Id: master.pike.in,v 1.448 2008/06/29 11:20:05 agehall Exp $      #pike __REAL_VERSION__   //#pragma strict_types
1890:      enum bool { false=0, true=1 };    - //! Prefix for Pike-related C header files. + //! Prefix for Pike-related Pike header files.   string include_prefix;      //! Prefix for autodoc files.   string doc_prefix;    -  + //! Flags suitable for use when compiling Pike C modules + string cflags;    -  + //! Flags suitable for use when linking Pike C modules + string ldflags; +    //! @decl int strlen(string|multiset|array|mapping|object thing)   //! @appears strlen   //! Alias for @[sizeof].
1960:    doc_prefix = "¤doc_prefix¤";   #endif    +  cflags = "¤cflags¤"; +  ldflags = "¤ldflags¤"; +    #if constant(__embedded_resource_directory)    // for use with embedded interpreters    // add path for architecture-dependant files