0.60.3 fix for missing math functions on link
Tim Mooney <[email protected]>
| Newsgroups | gmane.comp.gnu.aspell.devel |
|---|---|
| Message-ID | <[email protected]> |
[I'm not subscribed, please Cc: me on any replies] Aspell 0.60.3 uses several math-related functions (log, sqrt, floor), but doesn't check to see if an external library (e.g. libm) is required to satisfy those symbols. This results in undefined symbols when creating or linking against the shared library. The fix is easy -- have configure check to see if libm is needed to satisfy any of these symbols: --- aspell-0.60.3.orig/configure.ac 2005-06-27 04:50:48.000000000 -0500 +++ aspell-0.60.3/configure.ac 2005-10-04 18:23:40.000000000 -0500 @@ -167,6 +167,26 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# math function checks / libm # +# # +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + +# several platforms put math-related functions in libm +AC_CHECK_FUNCS(sqrt) +if test X"$ac_cv_func_sqrt" != X"yes" ; then + AC_CHECK_LIB(m,sqrt) +fi +AC_CHECK_FUNCS(floor) +if test X"$ac_cv_func_floor" != X"yes" ; then + AC_CHECK_LIB(m,floor) +fi +AC_CHECK_FUNCS(log) +if test X"$ac_cv_func_log" != X"yes" ; then + AC_CHECK_LIB(m,log) +fi + +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# # # Posix tests # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Tim -- Tim Mooney [email protected] Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164