diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-11 20:05:43 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-11 20:05:43 +0000 |
commit | 1d73035219576058a2e9ae7cc7c4b0366babf77d (patch) | |
tree | b79381e6911522b3ecf7dc05fe459803faf9f0cd /configure.ac | |
parent | 0861a53c25af5726dd15562029ddf220727a77be (diff) |
Merged revisions 163168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r163168 | tilghman | 2008-12-11 14:02:35 -0600 (Thu, 11 Dec 2008) | 5 lines
Sometimes even Linux needs -lm to link libtonezone, such as when libtonezone
is compiled statically.
(closes issue #13887)
Reported by: tzafrir
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@163170 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e70a5a9d5..42b7137ff 100644 --- a/configure.ac +++ b/configure.ac @@ -1469,7 +1469,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 |