in reply to compiling perl in solaris SPARC

To me it sounds like the variable @am_AUTOM4TE@ has not been substituted during the configure stage of installing automake and it's still in these files somewhere bugging them like undigested food. It's like a template variable which is usually exists in *.in files (the template files) which normally is replaced during installation by local system-specific information, e.g. with a call to AC_SUBST([am_AUTOM4TE], ["path-to-autom4te-whatever"]) during configure (of automake).

Now if that diagnosis is correct then you need to properly install automake again. *OR* a quick hack is to search for all @am_AUTOM4TE@ instances (find /export/home/Repo/automake-1.15 -type f -exec grep -H 'am_AUTOM4TE' \{\} \; and replace them with the full path to autom4te executable (just replace @am_AUTOM4TE@ with the path, leave it quoted if it is quoted).

or try the configure recipe in this post https://stackoverflow.com/questions/29483667/how-to-tell-automake-to-find-my-version-of-aclocal-when-recompiling-hunspell

bw, bliako