Description: Look for pow() and sqrt() in libm.
Origin: other: http://svn.ringlet.net/svn/ringlet/x11/qliss3d/
Forwarded: http://sourceforge.net/tracker/?func=detail&aid=2966224&group_id=75844&atid=545244
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2011-03-29
--- a/configure
+++ b/configure
@@ -4586,6 +4586,12 @@
fi
fi
+# Try for -lm
+ac_lm_test_save_libs="$LIBS"
+if ! echo "$LIBS" | fgrep -qwe -lm; then
+ LIBS="$LIBS -lm"
+fi
+
for ac_func in pow sqrt
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -4596,9 +4602,12 @@
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
+ac_lm_test_save_libs="$LIBS"
fi
done
+LIBS="$ac_lm_test_save_libs"
+
ac_config_files="$ac_config_files Makefile"