1
1

Two patches from Ralf Wildenhues to improve configure:

- include stdlib.h for tests that call exit(), as AC no longer
    prototypes exit in 2.60
  - Fix a compile issue in our cross-compiling test for C/C++
    alignment checks, matching what AC did for 2.60.

This commit was SVN r9634.
Этот коммит содержится в:
Brian Barrett 2006-04-14 15:33:51 +00:00
родитель c07cff349d
Коммит d5012bf485
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -43,14 +43,15 @@ int main(int argc, char* argv[])
AC_MSG_WARN([*** See config.log for details.])
AC_MSG_ERROR([*** Cannot continue.])],
[ # cross compile - do a non-executable test. Trick
# taken from the AC CVS repository. If only they'd
# get around to actually releasing something post 2.59...
_AC_COMPUTE_INT([offsetof (struct { char x; $1 y; }, y)],
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
_AC_COMPUTE_INT([(long int) offsetof (ompi__type_alignof_, y)],
[AS_TR_SH([ompi_cv_c_align_$1])],
[AC_INCLUDES_DEFAULT()
[AC_INCLUDES_DEFAULT
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; $1 y; } ompi__type_alignof_;
],
[AC_MSG_WARN([*** Problem running configure test!])
AC_MSG_WARN([*** See config.log for details.])

Просмотреть файл

@ -125,6 +125,7 @@ if test "x$havertsig" = "xyes" ; then
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
int sigio()
{
@ -199,6 +200,7 @@ if test "x$ac_cv_header_sys_event_h" = "xyes"; then
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
int
main(int argc, char **argv)
@ -256,6 +258,7 @@ if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
#include <sys/syscall.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <stdlib.h>
int
epoll_create(int size)