meson: Use the not_found_dep constant
authorPeter Eisentraut <[email protected]>
Thu, 29 Jun 2023 10:56:30 +0000 (12:56 +0200)
committerPeter Eisentraut <[email protected]>
Thu, 29 Jun 2023 10:56:30 +0000 (12:56 +0200)
Previously in the build description, a not_found_dep was defined. Make
use of it.

Author: Tristan Partin <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/CSPIJVUDZFKX.3KHMOAVGF94RV%40c3po

meson.build

index 7bc7310c44f2884778440b73bc7905a417ace7b8..5a5aac0e28f849323de75c99f37d500c7e601127 100644 (file)
@@ -558,7 +558,7 @@ endif
 ###############################################################
 
 bonjouropt = get_option('bonjour')
-bonjour = dependency('', required : false)
+bonjour = not_found_dep
 if cc.check_header('dns_sd.h', required: bonjouropt,
     args: test_c_args, include_directories: postgres_inc) and \
    cc.has_function('DNSServiceRegister',