summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-10-20 10:04:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:03 -0500
commitf4d590662effeb80c2b55ae5ad869b4b7810cf08 (patch)
tree89de89ef93aa2cd71c8795afcc55aa53bf156ea1 /source4/lib/replace
parenta9f15bb83eedfacca0b2bef788dc3418bcb664be (diff)
downloadsamba-f4d590662effeb80c2b55ae5ad869b4b7810cf08.tar.gz
samba-f4d590662effeb80c2b55ae5ad869b4b7810cf08.tar.bz2
samba-f4d590662effeb80c2b55ae5ad869b4b7810cf08.zip
r11214: Remove scons files (see http://lists.samba.org/archive/samba-technical/2005-October/043443.html)
(This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/SConscript71
-rw-r--r--source4/lib/replace/win32/SConscript22
2 files changed, 0 insertions, 93 deletions
diff --git a/source4/lib/replace/SConscript b/source4/lib/replace/SConscript
deleted file mode 100644
index cf28102175..0000000000
--- a/source4/lib/replace/SConscript
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env python
-Import('hostenv defines')
-
-rep_files = ['replace.c', 'snprintf.c','dlfcn.c']
-
-if hostenv['configure']:
- conf = Configure(hostenv)
- for f in ['memset','syslog','setnetgrent','getnetgrent','endnetgrent', \
- 'mktemp', 'memcpy']:
- if not conf.CheckFunc(f,'c'):
- print "Required function `%s' not found" % f
- exit(1)
-
- for f in ['strtoull','__strtoull','strtouq','strtoll','__strtoll','strtoq',
- 'seteuid','setresuid','setegid','setresgid','dlsym','dlopen',
- 'dlerror','dlclose','waitpid','getcwd','strdup','strndup',
- 'strnlen','strerror','bzero','chroot','strlcpy','strlcat',
- 'memmove','vsnprintf','asprintf','snprintf','vasprintf',
- 'innetgr','mktime','rename','ftruncate','chsize','setlinebuf',
- 'setenv','vsyslog','pread','pwrite']:
- if conf.CheckFunc(f,'c'):
- defines['HAVE_' + f.upper()] = 1
-
- # Check for errno declaration
- if conf.TryCompile("""
-#include <errno.h>
-
-int main() {
- int i = (int)errno;
- return 0;
-}""", '.c'):
- defines['HAVE_ERRNO_DECL'] = 1
-
- for h in ['dlfcn.h']:
- if conf.CheckCHeader('dlfcn.h'):
- defines['HAVE_' + h.upper().replace('.','_').replace('/','_')] = 1
-
- if not conf.CheckType('socklen_t', "#include <sys/socket.h>"):
- defines['socklen_t'] = 'int'
-
- needed_types = {
- 'uint_t': 'unsigned int',
- 'int8_t': 'signed char',
- 'uint8_t': 'unsigned char',
- 'u_int8_t': 'unsigned char',
- 'int16_t': 'short',
- 'uint16_t': 'unsigned short',
- 'u_int16_t': 'unsigned short',
- 'int32_t': 'long',
- 'uint32_t': 'unsigned long',
- 'u_int32_t': 'unsigned long',
- 'int64_t': 'long long',
- 'uint64_t': 'unsigned long long',
- 'ssize_t': 'int'
- }
-
- type_headers = """
-#include <stdint.h>
-#include <sys/types.h>
-"""
- for t in needed_types:
- if not conf.CheckType(t,type_headers):
- defines[t] = needed_types[t]
-
- if not conf.TryRun(open("../../build/tests/os2_delete.c").read(), '.c'):
- rep_files += ['repdir/repdir.c']
-
- conf.Finish()
-
-hostenv.Library('replace', rep_files)
-SConscript(dirs=['win32'])
diff --git a/source4/lib/replace/win32/SConscript b/source4/lib/replace/win32/SConscript
deleted file mode 100644
index a23fb6a878..0000000000
--- a/source4/lib/replace/win32/SConscript
+++ /dev/null
@@ -1,22 +0,0 @@
-Import('hostenv defines')
-
-if hostenv['configure']:
- conf = Configure(hostenv)
- for h in ['direct.h','windows.h','winsock2.h','ws2tcpip.h']:
- if conf.CheckCHeader(h):
- defines['HAVE_' + h.upper().replace('.','_')] = 1
- conf.TryCompile("""
-#include <stdio.h>
-#ifdef HAVE_DIRECT_H
-#include <direct.h>
-#endif
-
-int main()
-{
- mkdir("foo",0777);
- return 0;
-}
-""", '.c')
-
- conf.Finish()
-