autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_CHECK_TYPE for socklen_t


From: Albert Chin
Subject: Re: AC_CHECK_TYPE for socklen_t
Date: Fri, 17 Feb 2006 12:21:28 -0600
User-agent: Mutt/1.5.6i

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 (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]