mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Made xmoto's configure search for floor
This commit is contained in:
@@ -1,64 +1,83 @@
|
||||
Only in xmoto-0.5.11-patch/: autom4te.cache
|
||||
diff -ur xmoto-0.5.11/configure xmoto-0.5.11-patch/configure
|
||||
--- xmoto-0.5.11/configure 2014-03-29 10:38:54.037748736 +0000
|
||||
+++ xmoto-0.5.11-patch/configure 2014-12-11 05:23:06.159383552 +0000
|
||||
@@ -7565,13 +7565,13 @@
|
||||
+++ xmoto-0.5.11-patch/configure 2014-12-11 21:25:12.893386752 +0000
|
||||
@@ -7565,13 +7565,12 @@
|
||||
|
||||
|
||||
# m
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
|
||||
-$as_echo_n "checking for floor in -lm... " >&6; }
|
||||
-if ${ac_cv_lib_m_floor+:} false; then :
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lroot" >&5
|
||||
+$as_echo_n "checking for floor in -lroot... " >&6; }
|
||||
+if ${ac_cv_lib_root_floor+:} false; then :
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
|
||||
+$as_echo_n "checking for library containing floor... " >&6; }
|
||||
+if ${ac_cv_search_floor+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lm $LIBS"
|
||||
+LIBS="-lroot $LIBS"
|
||||
+ ac_func_search_save_LIBS=$LIBS
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
@@ -7591,22 +7591,22 @@
|
||||
@@ -7590,23 +7589,35 @@
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
-if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_m_floor=yes
|
||||
+ ac_cv_lib_root_floor=yes
|
||||
else
|
||||
-else
|
||||
- ac_cv_lib_m_floor=no
|
||||
+ ac_cv_lib_root_floor=no
|
||||
+for ac_lib in '' ; 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_floor=$ac_res
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
+ conftest$ac_exeext
|
||||
+ if ${ac_cv_search_floor+:} false; then :
|
||||
+ break
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
|
||||
-$as_echo "$ac_cv_lib_m_floor" >&6; }
|
||||
-if test "x$ac_cv_lib_m_floor" = xyes; then :
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_floor" >&5
|
||||
+$as_echo "$ac_cv_lib_root_floor" >&6; }
|
||||
+if test "x$ac_cv_lib_root_floor" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
- cat >>confdefs.h <<_ACEOF
|
||||
-#define HAVE_LIBM 1
|
||||
+#define HAVE_LIBROOT 1
|
||||
_ACEOF
|
||||
-_ACEOF
|
||||
+done
|
||||
+if ${ac_cv_search_floor+:} false; then :
|
||||
|
||||
- LIBS="-lm $LIBS"
|
||||
+ LIBS="-lroot $LIBS"
|
||||
+else
|
||||
+ ac_cv_search_floor=no
|
||||
+fi
|
||||
+rm conftest.$ac_ext
|
||||
+LIBS=$ac_func_search_save_LIBS
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
|
||||
+$as_echo "$ac_cv_search_floor" >&6; }
|
||||
+ac_res=$ac_cv_search_floor
|
||||
+if test "$ac_res" != no; then :
|
||||
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||
|
||||
else
|
||||
as_fn_error $? "No math library found" "$LINENO" 5
|
||||
diff -ur xmoto-0.5.11/configure.in xmoto-0.5.11-patch/configure.in
|
||||
--- xmoto-0.5.11/configure.in 2014-03-29 10:35:24.036700160 +0000
|
||||
+++ xmoto-0.5.11-patch/configure.in 2014-12-11 05:18:39.246153216 +0000
|
||||
+++ xmoto-0.5.11-patch/configure.in 2014-12-11 21:40:34.446955520 +0000
|
||||
@@ -155,7 +155,7 @@
|
||||
AM_CONDITIONAL([USE_SDLGFX], test "$USE_SDLGFX" = "1")
|
||||
|
||||
# m
|
||||
-AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found))
|
||||
+AC_CHECK_LIB(root, floor, , AC_MSG_ERROR(No math library found))
|
||||
+AC_SEARCH_LIBS(floor, , , AC_MSG_ERROR(No math library found))
|
||||
|
||||
AC_SEARCH_LIBS(lua_pushboolean,lua lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.1, liblua50, or liblua required)])
|
||||
AC_SEARCH_LIBS(luaopen_math,lualib lualib5.1 lualib50, [], [AC_MSG_ERROR(liblualib5.1, liblualib50, or liblualib required)])
|
||||
|
||||
Reference in New Issue
Block a user