|
81 | 81 | hdf5_conf_data.set('H5_DEFAULT_PLUGINDIR', '/usr/local/hdf5/lib/plugin') |
82 | 82 | endif |
83 | 83 |
|
| 84 | +if build_machine.system()=='darwin' |
| 85 | + hdf5_conf_data.set('H5_HAVE_DARWIN', 1) |
| 86 | +endif |
| 87 | + |
84 | 88 | #if cc.has_function('difftime', prefix : '#include <time.h>') |
85 | 89 | # # function exists, do whatever is required. |
86 | 90 | #endif |
@@ -253,15 +257,16 @@ else |
253 | 257 | hdf5_conf_data.set('H5_HAVE_LIBUCB', 1) |
254 | 258 | endif |
255 | 259 |
|
256 | | - |
257 | | -defs = [ |
258 | | - '-D_FILE_OFFSET_BITS=64', |
259 | | - '-D_LARGEFILE64_SOURCE', |
260 | | - '-D_LARGEFILE_SOURCE', |
261 | | -] |
262 | | - |
| 260 | +defs = [] |
263 | 261 | #if not windows or mingw |
264 | | -defs += ['-D_POSIX_C_SOURCE=200809L', '-D_GNU_SOURCE',] |
| 262 | +if build_machine.system()!='darwin' |
| 263 | + defs += [ |
| 264 | + '-D_FILE_OFFSET_BITS=64', |
| 265 | + '-D_LARGEFILE64_SOURCE', |
| 266 | + '-D_LARGEFILE_SOURCE',] |
| 267 | + |
| 268 | + defs += ['-D_POSIX_C_SOURCE=200809L', '-D_GNU_SOURCE',] |
| 269 | +endif |
265 | 270 | #endif |
266 | 271 |
|
267 | 272 | if not(cc.has_function('lseek64', prefix: '''#include <sys/types.h> |
@@ -614,11 +619,6 @@ hdf5_conf_data.set('H5_USE_FILE_LOCKING', 1) |
614 | 619 | hdf5_conf_data.set('H5_IGNORE_DISABLED_FILE_LOCKS', 1) |
615 | 620 | hdf5_conf_data.set('H5_HAVE_LARGE_HSIZET', 1) |
616 | 621 |
|
617 | | -if build_machine.system() == 'darwin' |
618 | | - hdf5_conf_data.set('H5_HAVE_DARWIN', 1) |
619 | | -endif |
620 | | - |
621 | | - |
622 | 622 | if mpi |
623 | 623 | hdf5_conf_data.set('H5_HAVE_PARALLEL', 1) |
624 | 624 | ext_deps += mpi_dep |
@@ -1145,7 +1145,7 @@ H5_GENERATED_HEADERS = [ |
1145 | 1145 |
|
1146 | 1146 |
|
1147 | 1147 | # Generate 'H5detect to generate H5Tinit.c |
1148 | | -if cc_can_run |
| 1148 | +if false |
1149 | 1149 | H5detect = executable('H5detect', 'H5detect.c', |
1150 | 1150 | c_args: hdf5_default_warnings + defs, |
1151 | 1151 | dependencies: ext_deps) |
|
0 commit comments