File conky-libiw_with_libm.patch of Package conky

--- configure.orig	2011-09-28 22:07:05.861000397 +0200
+++ configure	2011-09-28 22:07:51.195000397 +0200
@@ -13987,7 +13987,7 @@
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-liw $conky_LIBS $LIBS"
+LIBS="-liw -lm $conky_LIBS $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -14018,7 +14018,7 @@
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iw_iw_sockets_open" >&5
 $as_echo "$ac_cv_lib_iw_iw_sockets_open" >&6; }
 if test "x$ac_cv_lib_iw_iw_sockets_open" = x""yes; then :
-  conky_LIBS="-liw $conky_LIBS"
+  conky_LIBS="-liw -lm $conky_LIBS"
 else
   as_fn_error $? "iw_sockets_open not found" "$LINENO" 5
 fi
--- configure.ac.in.orig	2011-09-28 22:06:21.358000399 +0200
+++ configure.ac.in	2011-09-28 22:10:58.818000399 +0200
@@ -544,8 +544,8 @@
 AM_CONDITIONAL(BUILD_WLAN, test x$want_wlan = xyes)
 if test x$want_wlan = xyes; then
   AC_CHECK_HEADERS([iwlib.h], [], AC_MSG_ERROR([iwlib.h header not found]))
-  AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="-liw $conky_LIBS"],
-               AC_MSG_ERROR([iw_sockets_open not found]), [$conky_LIBS])
+  AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="-liw -lm $conky_LIBS"],
+               AC_MSG_ERROR([iw_sockets_open not found]), [-lm $conky_LIBS])
   AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
 fi
 
--- configure.ac.orig	2011-09-28 22:06:52.712000398 +0200
+++ configure.ac	2011-09-28 22:10:47.158000399 +0200
@@ -545,7 +545,7 @@
 if test x$want_wlan = xyes; then
   AC_CHECK_HEADERS([iwlib.h], [], AC_MSG_ERROR([iwlib.h header not found]))
   AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="-liw $conky_LIBS"],
-               AC_MSG_ERROR([iw_sockets_open not found]), [$conky_LIBS])
+               AC_MSG_ERROR([iw_sockets_open not found]), [-lm $conky_LIBS])
   AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
 fi
 
openSUSE Build Service is sponsored by