Solaris/Illumos don't have direntry->d_type.
Feature test added for direntry->d_type.
Illumos has libnss3.so and companions in /lib/usr/mps.
gcc 4.4 from Illumos does not know how to handle ssp, it needs -lssp_nonshared -lssp in LDFLAGS.
/bin/sh in Solaris/Illumos is a link to ksh93.
ksh93 don't know 'local' used in configure.ac.
If /bin/sh is used the feature checks for compiler options fails silsntly and returns always "yes".
With
export CONFIG_SHELL=/usr/gnu/bin/sh
libtool uses bash and the feature test works as it should.
With bash CFLAGS and LDFLAGS can be set before configure and are used in configure.