atspi_libexecdir = join_paths(atspi_prefix, get_option('libexecdir'))
atspi_sysconfdir = join_paths(atspi_prefix, get_option('sysconfdir'))
atspi_libdir = join_paths(atspi_prefix, get_option('libdir'))
atspi_libexecdir = join_paths(atspi_prefix, get_option('libexecdir'))
atspi_sysconfdir = join_paths(atspi_prefix, get_option('sysconfdir'))
atspi_libdir = join_paths(atspi_prefix, get_option('libdir'))
atspi_includedir = join_paths(atspi_prefix, get_option('includedir'))
if get_option('dbus_services_dir') != 'default'
atspi_includedir = join_paths(atspi_prefix, get_option('includedir'))
if get_option('dbus_services_dir') != 'default'
gobject_dep = dependency('gobject-2.0', version: gobject_req_version)
gio_dep = dependency('gio-2.0', version: gio_req_version)
app_svc_dep = dependency('appsvc', version: app_svc_req_version)
gobject_dep = dependency('gobject-2.0', version: gobject_req_version)
gio_dep = dependency('gio-2.0', version: gio_req_version)
app_svc_dep = dependency('appsvc', version: app_svc_req_version)
-dl_dep = cc.find_library('dl', required: false)
+if cc.has_function('dlopen')
+ dl_dep = []
+elif cc.has_function('dlopen', args: '-ldl')
+ dl_dep = cc.find_library('dl')
+else
+ error('Could not find a library with the dlopen function')
+endif
if introspection_option != 'no'
gir_dep = dependency('gobject-introspection-1.0', version: '>= 0.6.7', required: false)
if introspection_option != 'no'
gir_dep = dependency('gobject-introspection-1.0', version: '>= 0.6.7', required: false)