skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit d8e53cf6c43f0f442ad1ab28ab963dc609bb1356
parent fd527fbb52528d58d3d2e2636fd4a16d1335bc50
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 12 Aug 2016 17:04:58 +0000

 And the next iteration!

Diffstat:
Mconfigure | 21++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/configure b/configure @@ -180,14 +180,18 @@ trylibs () { args="$args $1" shift done - echo "$args" + echo ${args# } if test -z "$args" ; then echo " ... yes" >&3 else - echo " ... yes, with $args" >&3 + echo " ... yes, with$args" >&3 fi rm -f try$name.o return 0 + else + echo + echo " ... no" >&3 + return 1 fi } @@ -426,17 +430,8 @@ EOF hasclock=true clock_lib=`trylibs clockrt 'clock_gettime()' -lrt` || hasclock=false - if $clockrt ; then - echo "$clock_lib" > $sysdeps/sysclock.lib - echo "$clock_lib" > $sysdeps/tainnow.lib - else - echo > $sysdeps/sysclock.lib - if $clockmon ; then - echo "$clock_lib" > $sysdeps/tainnow.lib - else - echo > $sysdeps/tainnow.lib - fi - fi + echo "$clock_lib" > $sysdeps/sysclock.lib + echo "$clock_lib" > $sysdeps/tainnow.lib if $hasclock ; then echo 'clockrt: yes' >> $sysdeps/sysdeps echo "#define ${package_macro_name}_HASCLOCKRT" >> $sysdeps/sysdeps.h