On Fri, Feb 10, 2006 at 03:34:47PM -0800, Claudio Fontana wrote: > my goal is to portably check for socklen_t in > configure.ac. > > What I do now is: > > AC_CHECK_TYPE([socklen_t],,[int], [ > #ifdef HAVE_SYS_SOCKET_H > > #include <sys/socket.h> > > #endif > > ]) > > with prior header checks for sys/socket.h, and in the > code I use socklen_t. > Is this correct (and portable to most unices)? See m4/socklen.m4 from the gnulib project. -- albert chin (china@xxxxxxxxxxxxxxxxxx) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf