Update YTK unistd.h checks
This commit is contained in:
@@ -23,9 +23,6 @@
|
||||
/* Define to 1 if sys/systeminfo.h is available */
|
||||
/* #undef HAVE_SYS_SYSTEMINFO_H */
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "2.31.1"
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ def configure(conf):
|
||||
autowaf.check_pkg(conf, 'gio-2.0', uselib_store='GIO', atleast_version='2.2', mandatory=True)
|
||||
autowaf.check_pkg(conf, 'gobject-2.0', uselib_store='GOBJECT', mandatory=True)
|
||||
autowaf.check_pkg(conf, 'libpng', uselib_store='LIBPNG', mandatory=True)
|
||||
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.shlib(features = 'c cshlib', source=libydkpixbuf_sources)
|
||||
|
||||
@@ -76,9 +76,6 @@
|
||||
/* Define to 1 if sys/systeminfo.h is available */
|
||||
/* #undef HAVE_SYS_SYSTEMINFO_H */
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Have wchar.h include file */
|
||||
#define HAVE_WCHAR_H 1
|
||||
|
||||
|
||||
@@ -164,6 +164,7 @@ def configure(conf):
|
||||
lib='Xinerama', uselib_store="XINERAMA", define_name='HAVE_XFREE_XINERAMA',
|
||||
execute = False, mandatory=False)
|
||||
autowaf.check_pkg(conf, 'xi', uselib_store='XINPUT2', mandatory=False, atleast_version='1.7.10')
|
||||
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.shlib(features = 'c cshlib')
|
||||
|
||||
@@ -77,9 +77,6 @@
|
||||
/* Define to 1 if sys/systeminfo.h is available */
|
||||
/* #undef HAVE_SYS_SYSTEMINFO_H */
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Have wchar.h include file */
|
||||
#define HAVE_WCHAR_H 1
|
||||
|
||||
|
||||
@@ -266,6 +266,7 @@ def configure(conf):
|
||||
if conf.env['build_target'] != 'mingw' and conf.env['build_target'] != 'msvc' and sys.platform != 'darwin': # Linux
|
||||
autowaf.check_pkg(conf, 'x11', uselib_store='X11', system=True, mandatory=True)
|
||||
autowaf.check_pkg(conf, 'xext', uselib_store='XEXT', system=True, mandatory=True)
|
||||
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.shlib(features = 'c cshlib')
|
||||
|
||||
Reference in New Issue
Block a user