aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/sweeper
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2008-06-04 07:00:51 +0800
committerdeischen <deischen@FreeBSD.org>2008-06-04 07:00:51 +0800
commitc2f4a7680e4f0fe0421a4caa383ec0a5c62b0b67 (patch)
tree92df5d0462621255afdf7f851e1499d9614b9487 /sysutils/sweeper
parenta397d77c1b7be11a46c0d5aed3cfd96a21b52c43 (diff)
downloadfreebsd-ports-gnome-c2f4a7680e4f0fe0421a4caa383ec0a5c62b0b67.tar.gz
freebsd-ports-gnome-c2f4a7680e4f0fe0421a4caa383ec0a5c62b0b67.tar.zst
freebsd-ports-gnome-c2f4a7680e4f0fe0421a4caa383ec0a5c62b0b67.zip
Fix kdeutils for amd64-current (and perhaps other 64-bit
-current archs). This has been broken for over 3 months. configure incorrectly assumes that since FreeBSD has sqrtl, that it also has other long math functions. Also, configure seems to have 2 separate checks for the long math functions: the first check looks for both asinl and sqrtl, the second check looks for just sqrtl. FreeBSD does not currently have asinl, so if configure just went by the first check it would correctly determine that we do not have all the long math functions. Remove the second check to fix the problem. No response from: kde@
Diffstat (limited to 'sysutils/sweeper')
-rw-r--r--sysutils/sweeper/files/patch-configure92
1 files changed, 92 insertions, 0 deletions
diff --git a/sysutils/sweeper/files/patch-configure b/sysutils/sweeper/files/patch-configure
new file mode 100644
index 000000000000..dcf82d156eec
--- /dev/null
+++ b/sysutils/sweeper/files/patch-configure
@@ -0,0 +1,92 @@
+--- configure.orig 2007-10-08 14:31:38.000000000 +0000
++++ configure 2008-05-30 00:26:52.000000000 +0000
+@@ -35789,89 +35789,6 @@
+ fi
+
+
+-have_l_funcs=yes
+-
+-{ echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5
+-echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6; }
+-if test "${ac_cv_lib_m_sqrtl+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lm $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h. */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* 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 sqrtl ();
+-int
+-main ()
+-{
+-return sqrtl ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (ac_try="$ac_link"
+-case "(($ac_try" in
+- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+- *) ac_try_echo=$ac_try;;
+-esac
+-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+- (eval "$ac_link") 2>conftest.er1
+- ac_status=$?
+- grep -v '^ *+' conftest.er1 >conftest.err
+- rm -f conftest.er1
+- cat conftest.err >&5
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); } && {
+- test -z "$ac_c_werror_flag" ||
+- test ! -s conftest.err
+- } && test -s conftest$ac_exeext &&
+- $as_test_x conftest$ac_exeext; then
+- ac_cv_lib_m_sqrtl=yes
+-else
+- echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+- ac_cv_lib_m_sqrtl=no
+-fi
+-
+-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5
+-echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6; }
+-if test $ac_cv_lib_m_sqrtl = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBM 1
+-_ACEOF
+-
+- LIBS="-lm $LIBS"
+-
+-else
+- have_l_funcs=no
+-fi
+-
+-
+-if test "xyes" = "x$have_l_funcs" ; then
+-
+-cat >>confdefs.h <<\_ACEOF
+-#define HAVE_L_FUNCS 1
+-_ACEOF
+-
+-fi
+-
+ LIBGMP=
+
+ kde_safe_cppflags=$CPPFLAGS