All pastes #993667 Raw Edit

Unnamed

public text v1 · immutable
#993667 ·published 2008-04-22 19:46 UTC
rendered paste body
diff -up brlcad-7.12.0/m4/compiler.m4.includes_m4 brlcad-7.12.0/m4/compiler.m4
--- brlcad-7.12.0/m4/compiler.m4.includes_m4	2008-03-20 19:09:54.000000000 +0100
+++ brlcad-7.12.0/m4/compiler.m4	2008-04-21 14:16:29.000000000 +0200
@@ -68,6 +68,9 @@ m4_popdef([AC_TRY_EVAL])
 rm -f conftest.err
 AC_TRY_RUN( [
 #include <stdio.h>
+#ifdef __cplusplus
+#include <cstdlib>
+#endif
 int main(){exit(0);}
 ], [], [bc_[$2]_works=no])
 AC_MSG_RESULT($bc_[$2]_works)
@@ -162,6 +165,9 @@ fi
 AC_MSG_CHECKING([$__msg])
 AC_TRY_RUN([
 #include <stdio.h>
+#ifdef __cplusplus
+#include <cstdlib>
+#endif
 int main(){exit(0);}
 	],
 	[	AC_MSG_RESULT(yes) ],