From 94172b4ba3d8fcde04571d55a8d993844c276299 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 11 Dec 2008 20:02:35 +0000 Subject: Sometimes even Linux needs -lm to link libtonezone, such as when libtonezone is compiled statically. (closes issue #13887) Reported by: tzafrir git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163168 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index bf4ed43e7..986443023 100644 --- a/configure.ac +++ b/configure.ac @@ -1521,7 +1521,9 @@ AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], []) 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 -- cgit v1.2.3