Patchwork [06/81] remove not needed rt variable

login
register
mail settings
Submitter Juan Quintela
Date Aug. 3, 2009, 12:45 p.m.
Message ID <ae94917bd6c66833e4f41eb700f81adcde0c6a8d.1249301360.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/30508/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 3, 2009, 12:45 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

Patch

diff --git a/configure b/configure
index 2594bb2..9f6ce79 100755
--- a/configure
+++ b/configure
@@ -1376,21 +1376,15 @@  fi

 ##########################################
 # Do we need librt
-CLOCKLIBS=""
 cat > $TMPC <<EOF
 #include <signal.h>
 #include <time.h>
 int main(void) { clockid_t id; return clock_gettime(id, NULL); }
 EOF

-rt=no
 if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
-  :
+  CLOCKLIBS=""
 elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt > /dev/null 2> /dev/null ; then
-  rt=yes
-fi
-
-if test "$rt" = "yes" ; then
   CLOCKLIBS="-lrt"
 fi