New: sudo 1.6.8p12 failed to configure on Powerpc
http://bugs.openembedded.org/show_bug.cgi?id=1462
Summary: sudo 1.6.8p12 failed to configure on Powerpc
Product: Openembedded
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Distributions
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
the "configure" script generated is invalid. it's caused by "SUDO_LONG_LONG" defined in aclocal.m4
see following patch file:
aclocal.m4 +0 -3
@@ -304,15 +304,23 @@ dnl check for "long long" dnl XXX hard to cache since it includes 2 tests dnl -AC_DEFUN([SUDO_LONG_LONG], [AC_MSG_CHECKING(for long long support) -AC_LINK_IFELSE([long long foo = 1000; foo /= 10;], - AC_DEFINE(HAVE_LONG_LONG, 1, [Define if your compiler supports the
"long long" type.])
- AC_CHECK_SIZEOF([long]) - AC_CHECK_SIZEOF([long long]) - if x"$ac_cv_sizeof_long" = x"$ac_cv_sizeof_long_long"; then
- AC_DEFINE(LONG_IS_QUAD, 1, [Define if sizeof(long) == sizeof(long
long).])
- fi
-, AC_MSG_RESULT(yes), AC_MSG_RESULT(no))])
+AC_DEFUN([SUDO_LONG_LONG],
+[
+ AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
+ [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
+ [long long llmax = (long long) -1; + return ll << i | ll >> i | llmax / ll | llmax % ll;], + ac_cv_type_long_long=yes, + ac_cv_type_long_long=no)]) + if test $ac_cv_type_long_long = yes; then + AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the 'long long' type.]) + AC_CHECK_SIZEOF([long]) + AC_CHECK_SIZEOF([long long]) + if x"$ac_cv_sizeof_long" = x"$ac_cv_sizeof_long_long"; then
+ AC_DEFINE(LONG_IS_QUAD, 1, [Define if sizeof(long) ==
sizeof(long long).])
+ fi
+ fi
+])
dnl
dnl append a libpath to an LDFLAGS style variable
Signature · 3 lines
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.