File: meson.build

package info (click to toggle)
pdns 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,824 kB
  • sloc: cpp: 101,240; sh: 5,616; makefile: 2,318; sql: 860; ansic: 675; python: 635; yacc: 245; perl: 161; lex: 131
file content (18 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dep_threads = dependency('threads')

have_pthread_h = cxx.check_header(
  'pthread.h',
  dependencies: dep_threads,
  required: true,
)
have_pthread_np_h = cxx.check_header(
  'pthread_np.h',
  dependencies: dep_threads,
  prefix: '#include <pthread.h>',
)

conf.set('HAVE_PTHREAD_NP_H', have_pthread_np_h, description: 'Have <pthread_np.h>')

summary('Threads', dep_threads.found(), bool_yn: true, section: 'POSIX Threads')
summary('Have <pthread.h>', have_pthread_h, bool_yn: true, section: 'POSIX Threads')
summary('Have <pthread_np.h>', have_pthread_np_h, bool_yn: true, section: 'POSIX Threads')