aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-11-12 20:49:59 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-11-12 20:49:59 +0200
commit324a26268078097627225493ba753be8b9488a65 (patch)
tree42a4468de5fcf6ae2d59a7f856762c9c49229092 /tools
parent7cbf703b4a872fd270e5284a2a70241870e95311 (diff)
downloadmeson-324a26268078097627225493ba753be8b9488a65.zip
meson-324a26268078097627225493ba753be8b9488a65.tar.gz
meson-324a26268078097627225493ba753be8b9488a65.tar.bz2
More checks for converter.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ac_converter.py53
1 files changed, 53 insertions, 0 deletions
diff --git a/tools/ac_converter.py b/tools/ac_converter.py
index 150edb5..7408864 100755
--- a/tools/ac_converter.py
+++ b/tools/ac_converter.py
@@ -116,7 +116,10 @@ function_data = \
'HAVE_READLINK': ('readlink', 'unistd.h'),
'HAVE_RES_INIT': ('res_init', 'resolv.h'),
'HAVE_SENDMMSG': ('sendmmsg', 'sys/socket.h'),
+ 'HAVE_GETENV': ('getenv', 'stdlib.h'),
'HAVE_SETENV': ('setenv', 'stdlib.h'),
+ 'HAVE_PUTENV': ('putenv', 'stdlib.h'),
+ 'HAVE_UNSETENV': ('unsetenv', 'stdlib.h'),
'HAVE_SETMNTENT': ('setmntent', 'mntent.h'),
'HAVE_SNPRINTF': ('snprintf', 'stdio.h'),
'HAVE_SPLICE': ('splice', 'fcntl.h'),
@@ -177,6 +180,56 @@ function_data = \
'HAVE_SYSCONF': ('sysconf', 'unistd.h'),
'HAVE_USLEEP': ('usleep', 'unistd.h'),
'HAVE_VFORK': ('vfork', 'unistd.h'),
+ 'HAVE_MALLOC': ('malloc', 'stdlib.h'),
+ 'HAVE_CALLOC': ('calloc', 'stdlib.h'),
+ 'HAVE_REALLOC': ('realloc', 'stdlib.h'),
+ 'HAVE_FREE': ('free', 'stdlib.h'),
+ 'HAVE_ALLOCA': ('alloca', 'alloca.h'),
+ 'HAVE_QSORT': ('qsort', 'stdlib.h'),
+ 'HAVE_ABS': ('abs', 'stdlib.h'),
+ 'HAVE_MEMSET': ('memset', 'string.h'),
+ 'HAVE_MEMCMP': ('memcmp', 'string.h'),
+ 'HAVE_STRLEN': ('strlen', 'string.h'),
+ 'HAVE_STRLCAT': ('strlcat', 'string.h'),
+ 'HAVE_STRDUP': ('strdup', 'string.h'),
+ 'HAVE__STRREV': ('_strrev', 'string.h'),
+ 'HAVE__STRUPR': ('_strupr', 'string.h'),
+ 'HAVE__STRLWR': ('_strlwr', 'string.h'),
+ 'HAVE_INDEX': ('index', 'strings.h'),
+ 'HAVE_RINDEX': ('rindex', 'strings.h'),
+ 'HAVE_STRCHR': ('strchr', 'string.h'),
+ 'HAVE_STRRCHR': ('strrchr', 'string.h'),
+ 'HAVE_STRSTR': ('strstr', 'string.h'),
+ 'HAVE_STRTOL': ('strtol', 'stdlib.h'),
+ 'HAVE_STRTOUL': ('strtoul', 'stdlib.h'),
+ 'HAVE_STRTOULL': ('strtoull', 'stdlib.h'),
+ 'HAVE_STRTOD': ('strtod', 'stdlib.h'),
+ 'HAVE_ATOI': ('atoi', 'stdlib.h'),
+ 'HAVE_ATOF': ('atof', 'stdlib.h'),
+ 'HAVE_STRCMP': ('strcmp', 'string.h'),
+ 'HAVE_STRNCMP': ('strncmp', 'string.h'),
+ 'HAVE_VSSCANF': ('vsscanf', 'stdio.h'),
+ 'HAVE_ATAN': ('atan', 'math.h'),
+ 'HAVE_ATAN2': ('atan2', 'math.h'),
+ 'HAVE_ACOS': ('acos', 'math.h'),
+ 'HAVE_ASIN': ('asin', 'math.h'),
+ 'HAVE_CEIL': ('ceil', 'math.h'),
+ 'HAVE_COPYSIGN': ('copysign', 'math.h'),
+ 'HAVE_COS': ('cos', 'math.h'),
+ 'HAVE_COSF': ('cosf', 'math.h'),
+ 'HAVE_FABS': ('fabs', 'math.h'),
+ 'HAVE_FLOOR': ('floor', 'math.h'),
+ 'HAVE_LOG': ('log', 'math.h'),
+ 'HAVE_POW': ('pow', 'math.h'),
+ 'HAVE_SCALBN': ('scalbn', 'math.h'),
+ 'HAVE_SIN': ('sin', 'math.h'),
+ 'HAVE_SINF': ('sinf', 'math.h'),
+ 'HAVE_SQRT': ('sqrt', 'math.h'),
+ 'HAVE_FSEEKO': ('fseeko', 'stdio.h'),
+ 'HAVE_FSEEKO64': ('fseeko64', 'stdio.h'),
+ 'HAVE_SETJMP': ('setjmp', 'setjmp.h'),
+ 'HAVE_PTHREAD_SETNAME_NP': ('pthread_setname_np', 'pthread.h'),
+ 'HAVE_PTHREAD_SET_NAME_NP': ('pthread_set_name_np', 'pthread.h'),
}
print('check_functions = [')