[svn-commits] tilghman: trunk r163168 - in /trunk: configure configure.ac

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 11 14:02:36 CST 2008


Author: tilghman
Date: Thu Dec 11 14:02:35 2008
New Revision: 163168

URL: http://svn.digium.com/view/asterisk?view=rev&rev=163168
Log:
Sometimes even Linux needs -lm to link libtonezone, such as when libtonezone
is compiled statically.
(closes issue #13887)
 Reported by: tzafrir

Modified:
    trunk/configure
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=163168&r1=163167&r2=163168
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Dec 11 14:02:35 2008
@@ -1521,7 +1521,9 @@
 
 AST_EXT_LIB_CHECK([TINFO], [tinfo], [tgetent], [])
 
-if test "${host_os}" != "linux-gnu" ; then
+AC_CHECK_LIB([tonezone], [tone_zone_find_by_num], tonezone_does_not_need_lm=yes, tonezone_does_not_need_lm=no)
+
+if test "${tonezone_does_not_need_lm}" = "no" ; then
   tonezone_extra="-lm"
 fi
 




More information about the svn-commits mailing list