comparison configure.ac @ 3317:83ea3a38afe7

[xemacs-hg @ 2006-03-30 18:11:17 by james] Fix broken -Kalloca detection due to recent autoconf updates. See xemacs-patches message <m33bgziz2f.fsf@jerrypc.cs.usu.edu>.
author james
date Thu, 30 Mar 2006 18:11:18 +0000
parents d45de99b5d79
children 15fb91e3a115
comparison
equal deleted inserted replaced
3316:d45de99b5d79 3317:83ea3a38afe7
2182 2182
2183 dnl Some versions of SCO native compiler need -Kalloca 2183 dnl Some versions of SCO native compiler need -Kalloca
2184 if test "$__USLC__" = yes; then 2184 if test "$__USLC__" = yes; then
2185 AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed) 2185 AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed)
2186 need_kalloca=no 2186 need_kalloca=no
2187 AC_LINK_IFELSE([AC_LANG_SOURCE([void *x = alloca(4);])], [:], [ 2187 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [void *x = alloca(4);])], [:], [
2188 xe_save_c_switch_system="$c_switch_system" 2188 xe_save_c_switch_system="$c_switch_system"
2189 c_switch_system="$c_switch_system -Kalloca" 2189 c_switch_system="$c_switch_system -Kalloca"
2190 AC_LINK_IFELSE([AC_LANG_SOURCE([void *x = alloca(4);])], 2190 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [void *x = alloca(4);])],
2191 [ need_kalloca=yes ]) 2191 [ need_kalloca=yes ])
2192 c_switch_system="$xe_save_c_switch_system"]) 2192 c_switch_system="$xe_save_c_switch_system"])
2193 AC_MSG_RESULT($need_kalloca) 2193 AC_MSG_RESULT($need_kalloca)
2194 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system) 2194 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system)
2195 fi 2195 fi