Building Anti-Grain Geometry without SDL

A short post about an annoying problem while building AGG 2.4:
If you don’t have SDL installed, the build fails because of

aclocal:configure.in:103: warning: macro `AM_PATH_SDL' not found in library
configure.in:103: error: possibly undefined macro: AM_PATH_SDL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

Installing SDL solves this problem, but if you want to skip this, here’s a shorter workaround:

$ echo “AC_DEFUN([AM_PATH_SDL])” > acinclude.m4

Continue as usual with

$ source .autogen.sh
$ ./configure
$ make
$ sudo make install

Leave a Reply