Next: , Previous: Creating distdir, Up: Integrating Autodist


2.2 Configuring Autodist

After the Autodist has been integrated into the software by creating the 'distdir', the 'autodist.conf' configuration file was added to the 'distdir' also. Usually software projects will want to modify some of the 'autodist.conf' options, mainly specifying the distdef prefix.

The 'autodist.conf' is a text file. The following options are available in 'autodist.conf':

     DISTPREFIX=""

By default the distdef prefix is '_DIST_'. To add own software package specific prefix the 'DISTPREFIX' can be defined.

Example:

     DISTPREFIX="SILC"

Will set the distdef prefix as 'SILC_DIST_'.

     DISTDEFS="distdefs.h"

The 'DISTDEFS' option specifies the file name of the distdef header file which Autodist will create. The software project should '#include' the header file in order for the preprocessor to respect the distdef conditionals (see Distdefines). By default the file name is 'distdefs.h' and is created at the root of source tree. Other location may be specified if needed.

Example:

     DISTDEFS="include/distdefs.h"
     ACLOCAL="aclocal"

The 'ACLOCAL' specifies the location of the 'aclocal' tool. If Autodist should not run 'aclocal' this option may be removed or set to empty value. User need to then run it manually.

     AUTOHEADER="autoheader"

The 'AUTOHEADER' specifies the location of the 'autoheader' tool. If Autodist should not run 'autoheader' this option may be removed or set to empty value. User need to then run it manually.

     AUTOCONF="autoconf"

The 'AUTOCONF' specifies the location of the 'autoconf' tool. If Autodist should not run 'autoconf' this option may be removed or set to empty value. User need to then run it manually.

     AUTOMAKE="automake -a -c"

The 'AUTOMAKE' specifies the location of the 'automake' tool. If Autodist should not run 'automake' this option may be removed or set to empty value. User need to then run it manually. By default, the '-a' and '-c' options are given to 'automake' to add any missing required files.

     LIBTOOLIZE="libtoolize --automake -c"

The 'LIBTOOLIZE' specifies the location of the 'libtoolize' tool. This option should be removed or ste to empty value if 'libtool' is not used in the source tree.

     MAKE=make

The 'MAKE' specifies the location of the 'make' program. This option must be set to valid value in order to create distributions.