2022-06-16 17:23:12 +00:00
|
|
|
diff --git a/meson.build b/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
index 4717bb2a..38d8693f 100644
|
2022-06-16 17:23:12 +00:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -70,6 +70,12 @@ if cc.has_function('clock_gettime', prefix: '#include <time.h>')
|
2023-03-04 12:14:45 +00:00
|
|
|
conf_data.set10('HAVE_CLOCK_GETTIME', true)
|
2022-06-16 17:23:12 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
+if build_machine.system() == 'darwin' or build_machine.system() == 'freebsd' or not cc.links('#include <argp.h>\nstatic error_t parse_opt (int key, char *arg, struct argp_state *state) { argp_usage(state); return 0; }; void main() {}')
|
|
|
|
+ argpdep = cc.find_library('argp')
|
|
|
|
+else
|
|
|
|
+ argpdep = dependency('', required : false)
|
|
|
|
+endif
|
|
|
|
+
|
2024-05-15 15:35:15 +00:00
|
|
|
if cc.has_function('sched_setaffinity',
|
|
|
|
prefix: '#include <sched.h>',
|
|
|
|
args: '-D_GNU_SOURCE')
|
|
|
|
@@ -186,7 +192,7 @@ endif
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
indexamajig = executable('indexamajig', indexamajig_sources,
|
|
|
|
dependencies: [mdep, libcrystfeldep, gsldep,
|
2024-05-15 15:35:15 +00:00
|
|
|
- pthreaddep, zmqdep, asapodep, asapoproddep],
|
|
|
|
+ pthreaddep, zmqdep, asapodep, asapoproddep, argpdep],
|
2023-03-04 12:14:45 +00:00
|
|
|
install: true,
|
2024-05-15 15:35:15 +00:00
|
|
|
install_rpath: crystfel_rpath)
|
2022-06-16 17:23:12 +00:00
|
|
|
|