- autowaf.check_pkg(conf, 'cwiid', uselib_store='CWIID', atleast_version='0.6.00')
- conf.define ('BUILD_WIIMOTE', 1)
+ autowaf.check_pkg(conf, 'cwiid', uselib_store='CWIID', atleast_version='0.6.00',mandatory=False)
+ if conf.is_defined ('HAVE_CWIID'):
+ conf.define ('BUILD_WIIMOTE', 1)
+ children += [ 'wiimote' ]
+ else:
+ print('You have the cwiid headers needed to compile wiimote support BUT you are missing the pkg-config file for cwiid')