diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-08-12 17:41:05 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-08-12 17:41:05 +0000 |
commit | 4fd66d857b5e0c9cea39b48fde1b3c5e50ee687e (patch) | |
tree | fdf40a90a9122a2697056989779d09feb0aefbc6 /configure | |
parent | 32e4d6c21640c3b77db52a634e9c07783c541348 (diff) | |
download | skalibs-4fd66d857b5e0c9cea39b48fde1b3c5e50ee687e.tar.xz |
... if I stop being an idiot
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -429,9 +429,14 @@ EOF echo "$socket_lib" > $sysdeps/socket.lib hasclock=true - clock_lib=`trylibs clockrt 'clock_gettime()' -lrt` || hasclock=false - echo "$clock_lib" > $sysdeps/sysclock.lib - echo "$clock_lib" > $sysdeps/tainnow.lib + sysclock_lib=`trylibs clockrt 'clock_gettime()' -lrt` || hasclock=false + if $clockrt ; then + tainnow_lib=$sysclock_lib + else + tainnow_lib= + fi + echo "$sysclock_lib" > $sysdeps/sysclock.lib + echo "$tainnow_lib" > $sysdeps/tainnow.lib if $hasclock ; then echo 'clockrt: yes' >> $sysdeps/sysdeps echo "#define ${package_macro_name}_HASCLOCKRT" >> $sysdeps/sysdeps.h |