Ignore:
Timestamp:
Mar 25, 2008 1:53:16 PM (17 years ago)
Author:
bennylp
Message:

Fixed autoconf configure warning when detecting net/if.h on MacOS X

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r1871 r1891  
    145145AC_CHECK_HEADER(netinet/in.h,[AC_DEFINE(PJ_HAS_NETINET_IN_H,1)]) 
    146146AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)]) 
    147 AC_CHECK_HEADER(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)]) 
    148147AC_CHECK_HEADER(ifaddrs.h,[AC_DEFINE(PJ_HAS_IFADDRS_H,1)]) 
    149148AC_CHECK_HEADER(semaphore.h,[AC_DEFINE(PJ_HAS_SEMAPHORE_H,1)]) 
     
    167166AC_CHECK_HEADER(winsock2.h,[AC_DEFINE(PJ_HAS_WINSOCK2_H,1)]) 
    168167AC_CHECK_HEADER(uuid/uuid.h,[ac_has_uuid_h=1]) 
     168AC_CHECK_HEADERS(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)],[], 
     169                 [#if PJ_HAS_SYS_SOCKET_H 
     170                  #     include <sys/socket.h> 
     171                  #endif 
     172                 ]) 
    169173 
    170174AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) 
Note: See TracChangeset for help on using the changeset viewer.