Maybe pari could use libtool to build the shared library (not just on aix, but on every system). That would allow simplifying the build process, and I think libtool is already available on every system that pari supports.