mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
23 lines
593 B
Python
23 lines
593 B
Python
Import('hostenv defines')
|
|
|
|
if hostenv['configure']:
|
|
conf = Configure(hostenv)
|
|
|
|
for h in ['arpa/inet.h','net/if.h','netdb.h','netinet/in.h','netinet/ip.h','netinet/tcp.h','netinet/in_systm.h','netinet/in_ip.h']:
|
|
if conf.CheckCHeader(h):
|
|
defines['HAVE_' + h.upper().replace('.','_').replace('/','_')] = 1
|
|
|
|
for d in ['HAVE_IFACE_IFCONF','HAVE_IFACE_AIX','HAVE_IFACE_IFREQ']:
|
|
if conf.TryRun("""
|
|
#define %s 1
|
|
#define AUTOCONF_TEST 1
|
|
#include "confdefs.h"
|
|
#include "netif.c"
|
|
""" % d, '.c'):
|
|
defines[d] = 1
|
|
break
|
|
|
|
conf.Finish()
|
|
|
|
hostenv.Library('netif', ['interface.c', 'netif.c'])
|