← Back to team overview

dolfin team mailing list archive

dolfin-config --> pkg-config

 

I have updated configure.ac (one line) so that a file dolfin.pc is now
automatically generated from dolfin.pc.in.

This file serves the same purpose as our script dolfin-config. This
script was modelled after gtk-config, but that was a while ago and
since then GTK, GNOME etc have moved to pkg-config, which is the
standard.

Here's how it works:

    dolfin-config --cflags   -->   pkg-config dolfin --cflags
    dolfin-config --libs     -->   pkg-config dolfin --libs

I have updated the Makefile in src/demo/pde/poisson, so please try it
out and see how it works. For this to work, you need to do

    export PKG_CONFIG_PATH=`pwd`

in the build directory. We'll need to fix so that dolfin-config gets
installed to the right location during make install.

Some things to consider:

1. pkg-config does not have any --compiler and --linker flags, but
maybe we can just replace these with g++ in the example Makefiles?

2. We need to make this work with the build of PyDOLFIN. Johan, can
you see what might be missing?

3. What is our long-term plan for the build system? To continue with
autotools? Or should we move to Scons? I have suggested Scons earlier,
but I'm not as convinced as I used to be. I have seen Scons in use up
close in another project here at Simula and Scons seems to be able to
generate just as much headache as autotools.

/Anders


Follow ups