mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Error out in configure if the compiler doesn't support "long long".
This commit is contained in:
parent
26a256260d
commit
d1580ff592
6
INSTALL
6
INSTALL
@ -11,9 +11,9 @@ System requirements
|
||||
===================
|
||||
|
||||
To build sudo from the source distribution you need a POSIX-compliant
|
||||
operating system (any modern version of BSD, Linux or Unix should
|
||||
work), an ANSI/ISO C compiler that supports variadic macros (a C99
|
||||
feature) as well as the ar, make and ranlib utilities.
|
||||
operating system (any modern version of BSD, Linux or Unix should work),
|
||||
an ANSI/ISO C compiler that supports the "long long" type, variadic
|
||||
macros (a C99 feature) as well as the ar, make and ranlib utilities.
|
||||
|
||||
If you wish to modify the parser then you will need flex version
|
||||
2.5.2 or later and either bison or byacc (sudo comes with a
|
||||
|
3
configure
vendored
3
configure
vendored
@ -16183,6 +16183,9 @@ $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
if test X"$ac_cv_type_long_long_int" != X"yes"; then
|
||||
as_fn_error $? "\"C compiler does not appear have required long long support\"" "$LINENO" 5
|
||||
fi
|
||||
# The cast to long int works around a bug in the HP C Compiler
|
||||
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
||||
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
||||
|
@ -2165,6 +2165,9 @@ AC_CHECK_TYPES([struct timespec], [], [], [#include <sys/types.h>
|
||||
AC_CHECK_TYPES([struct in6_addr], [], [], [#include <sys/types.h>
|
||||
#include <netinet/in.h>])
|
||||
AC_TYPE_LONG_LONG_INT
|
||||
if test X"$ac_cv_type_long_long_int" != X"yes"; then
|
||||
AC_MSG_ERROR(["C compiler does not appear have required long long support"])
|
||||
fi
|
||||
AC_CHECK_SIZEOF([long int])
|
||||
AC_CHECK_TYPE(size_t, unsigned int)
|
||||
AC_CHECK_TYPE(ssize_t, int)
|
||||
|
Loading…
x
Reference in New Issue
Block a user