Snap and autotools plugin

I suppose you’ve wrongly referenced $SNAP in the build recipe, note that the environment variable only has proper value during the runtime of the snap application.

Set installation prefix to /snap/$SNAPCRAFT_PROJECT_NAME/current instead, refer Environment variables that Snapcraft exposes for more details.