Blob Blame History Raw
--- bluefish-2.0.0-rc3/configure.ac.orig	2010-01-29 21:13:26.000000000 +0000
+++ bluefish-2.0.0-rc3/configure.ac	2010-02-15 10:10:30.636430172 +0000
@@ -541,6 +541,9 @@
 
 AC_CHECK_FUNCS_ONCE([regcomp bind socket accept])
 
+# log10 often requires -lm
+AC_SEARCH_LIBS([log10], [m])
+
 dnl **************************
 dnl   Spell checker
 dnl **************************
--- bluefish-2.0.0-rc3/configure.orig	2010-01-29 21:14:03.000000000 +0000
+++ bluefish-2.0.0-rc3/configure	2010-02-15 10:12:33.631210526 +0000
@@ -15186,6 +15186,64 @@
 
 
 
+# log10 often requires -lm
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10" >&5
+$as_echo_n "checking for library containing log10... " >&6; }
+if test "${ac_cv_search_log10+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char log10 ();
+int
+main ()
+{
+return log10 ();
+  ;
+  return 0;
+}
+_ACEOF
+for ac_lib in '' m; do
+  if test -z "$ac_lib"; then
+    ac_res="none required"
+  else
+    ac_res=-l$ac_lib
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+  fi
+  if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_search_log10=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext
+  if test "${ac_cv_search_log10+set}" = set; then :
+  break
+fi
+done
+if test "${ac_cv_search_log10+set}" = set; then :
+
+else
+  ac_cv_search_log10=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10" >&5
+$as_echo "$ac_cv_search_log10" >&6; }
+ac_res=$ac_cv_search_log10
+if test "$ac_res" != no; then :
+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
 
 
 $as_echo "#define WITH_SPC 1" >>confdefs.h