2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Error out in configure if the compiler doesn't support "long long".

This commit is contained in:
Todd C. Miller 2013-04-16 14:36:42 -04:00
parent 26a256260d
commit d1580ff592
3 changed files with 9 additions and 3 deletions

View File

@ -11,9 +11,9 @@ System requirements
=================== ===================
To build sudo from the source distribution you need a POSIX-compliant To build sudo from the source distribution you need a POSIX-compliant
operating system (any modern version of BSD, Linux or Unix should operating system (any modern version of BSD, Linux or Unix should work),
work), an ANSI/ISO C compiler that supports variadic macros (a C99 an ANSI/ISO C compiler that supports the "long long" type, variadic
feature) as well as the ar, make and ranlib utilities. 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 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 2.5.2 or later and either bison or byacc (sudo comes with a

3
configure vendored
View File

@ -16183,6 +16183,9 @@ $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
fi 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 # 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 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.

View File

@ -2165,6 +2165,9 @@ AC_CHECK_TYPES([struct timespec], [], [], [#include <sys/types.h>
AC_CHECK_TYPES([struct in6_addr], [], [], [#include <sys/types.h> AC_CHECK_TYPES([struct in6_addr], [], [], [#include <sys/types.h>
#include <netinet/in.h>]) #include <netinet/in.h>])
AC_TYPE_LONG_LONG_INT 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_SIZEOF([long int])
AC_CHECK_TYPE(size_t, unsigned int) AC_CHECK_TYPE(size_t, unsigned int)
AC_CHECK_TYPE(ssize_t, int) AC_CHECK_TYPE(ssize_t, int)