Skip to content

Commit 00026af

Browse files
committed
libevent2021: Fix broken configure AC_LANG_PROGRAM
* The AC_LANG_PROGRAM macro adds the `main()` so it is erroneous to add it to the test program. * This was detected with the XL compilers which will fail to build the program in this situation. The GNU compiler does not error out or warn, but successfully compiles the program. Signed-off-by: Joshua Hursey <[email protected]>
1 parent 88c2708 commit 00026af

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

opal/mca/event/libevent2021/libevent/configure.ac

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,6 @@ if test "$enable_epoll" != "no" ; then
610610
AC_INCLUDES_DEFAULT
611611
#include <sys/epoll.h>
612612
],[[
613-
int main(int argc, char **argv)
614-
{
615613
struct epoll_event epevin;
616614
struct epoll_event epevout;
617615
int res;
@@ -639,7 +637,6 @@ int main(int argc, char **argv)
639637
}
640638
}
641639
/* SUCCESS */
642-
}
643640
]])],
644641
[haveepoll=yes
645642
# OMPI: Don't use AC_LIBOBJ
@@ -671,9 +668,6 @@ AC_INCLUDES_DEFAULT
671668
#include <sys/syscall.h>
672669
#include <sys/epoll.h>
673670
],[[
674-
int
675-
main(int argc, char **argv)
676-
{
677671
struct epoll_event epevin;
678672
struct epoll_event epevout;
679673
int res;
@@ -702,7 +696,6 @@ main(int argc, char **argv)
702696
}
703697
}
704698
/* SUCCESS */
705-
}
706699
]])],
707700
[haveepollsyscall=yes
708701
# OMPI: don't use AC_LIBOBJ

0 commit comments

Comments
 (0)