Skip to content

Instantly share code, notes, and snippets.

@linse
Created November 2, 2012 20:37
Show Gist options
  • Save linse/4004161 to your computer and use it in GitHub Desktop.
Save linse/4004161 to your computer and use it in GitHub Desktop.
"syntax error near unexpected token" when executing ./configure
The ``syntax error near unexpected token`` means a m4 macro (for me: PKG_CHECK_MODULES) could not be expanded.
This can be a problem of autotoos / aclocal on OSX using homebrew. The tool aclocal is very oldschool and uses m4 macros. These .m4 macros for aclocal are expected to be in ``/usr/share/aclocal``, but homebrew puts them in ``/usr/local/share/aclocal`` without telling aclocal so.
Solution is adding a line ``/usr/local/share/aclocal`` in a ``/usr/share/aclocal/dirlist`` file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment