)
endif
-if host_machine.system() == 'darwin'
+isdarwin = host_machine.system() == 'darwin'
+if isdarwin
add_project_arguments(
cc.get_supported_arguments(
'-Wno-deprecated-declarations', # For GSS.Framework
config.set_quoted('RNDC_KEYFILE', sysconfdir / 'rndc.key')
config.set_quoted('NAMED_PLUGINDIR', libdir / 'bind')
+if isdarwin
+ # Plugin extensions - macOS is the only specific case
+ config.set_quoted('NAMED_PLUGINEXT', '.dylib')
+else
+ config.set_quoted('NAMED_PLUGINEXT', '.so')
+endif
+
config.set_quoted('NAMED_LOCALSTATEDIR', localstatedir)
config.set_quoted('NAMED_SYSCONFDIR', sysconfdir)
config.set_quoted('NAMED_CONFFILE', sysconfdir / 'named.conf')