PATH=/usr/ccs/bin:$PATH # to add the correct "ar" # autotools does not seem to know when the configuration was changed, this is just a safety measure gmake clean CC=/opt/SUNWspro/bin/cc CFLAGS="-KPIC -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xarch=generic64" ./configure --prefix=/home/corion/lib --enable-shared gmake all # this one might not compile the C++ checks, if you don't have the SUN C++ compiler installed gmake check gmake install #### # Update LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/corion/lib #### unless ( check_lib( # fill in what you prompted the user for here #lib => [qw(expat)], header => ['expat.h'], debug => 1, incpath => $expat_incpath, # Ugly hack here ($expat_libpath? (libpath => "$expat_libpath -lexpat"):()), )) { #### perl Makefile.PL EXPATLIBPATH=/home/corion/lib/lib EXPATINCPATH=/home/corion/lib/include -lexpat gmake gmake test gmake install