User: james
Date: 06/03/30 20:11:33
Modified: xemacs ChangeLog configure.ac configure
Log:
Fix broken -Kalloca detection due to recent autoconf updates. See
xemacs-patches message <m33bgziz2f.fsf(a)jerrypc.cs.usu.edu>.
Revision Changes Path
1.497 +5 -0 XEmacs/xemacs/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.496
retrieving revision 1.497
diff -u -p -r1.496 -r1.497
--- ChangeLog 2006/03/30 16:22:26 1.496
+++ ChangeLog 2006/03/30 18:11:17 1.497
@@ -1,5 +1,10 @@
2006-03-30 Jerry James <james(a)xemacs.org>
+ * configure.ac: Fix for -Kalloca detection, also broken by the
+ recent autoconf updates. Thanks to Ilya Golubev.
+
+2006-03-30 Jerry James <james(a)xemacs.org>
+
* configure.ac: Fix FOR_MSW XPM test, broken by previous update.
2006-03-27 Jerry James <james(a)xemacs.org>
1.40 +2 -2 XEmacs/xemacs/configure.ac
Index: configure.ac
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -p -r1.39 -r1.40
--- configure.ac 2006/03/30 16:22:27 1.39
+++ configure.ac 2006/03/30 18:11:17 1.40
@@ -2184,10 +2184,10 @@ dnl Some versions of SCO native compiler
if test "$__USLC__" = yes; then
AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed)
need_kalloca=no
- AC_LINK_IFELSE([AC_LANG_SOURCE([void *x = alloca(4);])], [:], [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [void *x = alloca(4);])], [:], [
xe_save_c_switch_system="$c_switch_system"
c_switch_system="$c_switch_system -Kalloca"
- AC_LINK_IFELSE([AC_LANG_SOURCE([void *x = alloca(4);])],
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [void *x = alloca(4);])],
[ need_kalloca=yes ])
c_switch_system="$xe_save_c_switch_system"])
AC_MSG_RESULT($need_kalloca)
1.278 +14 -0 XEmacs/xemacs/configure
Index: configure
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure,v
retrieving revision 1.277
retrieving revision 1.278
diff -u -p -r1.277 -r1.278
--- configure 2006/03/30 16:22:27 1.277
+++ configure 2006/03/30 18:11:18 1.278
@@ -9025,7 +9025,14 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+
+int
+main ()
+{
void *x = alloca(4);
+ ;
+ return 0;
+}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
@@ -9063,7 +9070,14 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+
+int
+main ()
+{
void *x = alloca(4);
+ ;
+ return 0;
+}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Show replies by date