AddingMarieToBuildSystem

From MARIEWiki

Jump to: navigation, search

Autotools Build System

To add MARIE detection and variable substitutions to your autotools build system you could add the following to your configure.ac :

dnl Check for marie
PKG_CHECK_MODULES(MARIE,[marie >= 0.5], MARIE_FOUND="yes", MARIE_FOUND="")

if test "$MARIE_FOUND" = "yes"; then
   
   MARIE_INCLUDES=$MARIE_CFLAGS
   AC_SUBST(MARIE_INCLUDES)
   AC_SUBST(MARIE_LIBS)
else
   echo 
   echo "error : marie not found. Is marie.pc in your pkg-config search path ?"
   exit
fi

In your Makefiles.am you could add the folowing to get the MARIE includes:

INCLUDES = $(MARIE_INCLUDES)

And the following to link with MARIE libs :

yourBinaryName_LDADD = $(MARIE_LIBS) 


To use this you need to have pkg-config installed.


If you plan to create behaviors for the aabehaviors see here


Personal tools