+ # libatomic could be half-installed when above check finds it but
+ # linkage fails
+ atomic_link_code = '''
+ #include <stdio.h>
+ void main() { printf("libatomic link check\n"); }
+ '''
+ if not cc.links(atomic_link_code, dependencies: libatomic_dep)
+ build = false
+ reason = 'broken dependency, "libatomic"'
+ subdir_done()
+ endif
+ ext_deps += libatomic_dep
+endif
+
+deps += ['common_sfc_efx', 'bus_pci']