summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_autoconf.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-24 16:56:57 -0600
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:07 +1000
commit2cac0c27cf5b8606fce53ca02fe0d47504e57514 (patch)
treeaf37da428caf104fd62073a770e95ab107327c7b /buildtools/wafsamba/samba_autoconf.py
parent8f5551c4b3bc56a64f4c8f260821114b23fad693 (diff)
downloadsamba-2cac0c27cf5b8606fce53ca02fe0d47504e57514.tar.gz
samba-2cac0c27cf5b8606fce53ca02fe0d47504e57514.tar.bz2
samba-2cac0c27cf5b8606fce53ca02fe0d47504e57514.zip
build: started a library of common config tests for s3/s4
Pair-Programmed-With: Kai Blin <kai@samba.org>
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 31106d7819..ec069485da 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -463,37 +463,6 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False, header
return ret
-@conf
-def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None):
- '''verify that a C prototype matches the one on the current system'''
- if not conf.CHECK_DECLS(function, headers=headers):
- return False
- return conf.CHECK_CODE('%s; void *_x = (void *)%s' % (prototype, function),
- define=define,
- local_include=False,
- headers=headers,
- msg='Checking C prototype for %s' % function)
-
-
-@conf
-def CHECK_LARGEFILE(conf):
- '''see what we need for largefile support'''
- if conf.CHECK_CODE('return !(sizeof(off_t) >= 8)',
- 'HAVE_LARGEFILE',
- execute=True,
- msg='Checking for large file support'):
- return True
- if conf.CHECK_CODE('return !(sizeof(off_t) >= 8)',
- 'HAVE_LARGEFILE',
- execute=True,
- cflags='-D_FILE_OFFSET_BITS=64',
- msg='Checking for -D_FILE_OFFSET_BITS=64'):
- conf.DEFINE('_FILE_OFFSET_BITS', 64)
- return True
- return False
-
-
-
#################################################
# write out config.h in the right directory
@conf