Branch: Tag:

2005-06-17

2005-06-17 16:01:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some 64-bit ABI support for Sun Studio.

Rev: src/configure.in:1.900

1: - AC_REVISION("$Id: configure.in,v 1.899 2005/06/17 15:50:41 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.900 2005/06/17 16:01:33 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
458:    #    AC_SYS_COMPILER_FLAG(-q64, q64, CC)    AC_SYS_COMPILER_FLAG(-m64, m64, CC) -  if test "$pike_cv_option_q64:$pike_cv_option_m64" = "no:no"; then +  AC_SYS_COMPILER_FLAG(-xtarget=generic64, xtarget_generic64, CC) +  if test "$pike_cv_option_q64:$pike_cv_option_m64:pike_cv_option_xtarget_generic64" = "no:no:no"; then    AC_SYS_COMPILER_FLAG(-q32, q32, CC)    AC_SYS_COMPILER_FLAG(-m32, m32, CC) -  if test "$pike_cv_option_q32:$pike_cv_option_m32" = "no:no"; then +  AC_SYS_COMPILER_FLAG(-xtarget=generic32, xtarget_generic32, CC) +  if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32" = "no:no:no"; then    AC_MSG_WARN([Found no option to force 64 bit ABI.])    else    AC_MSG_WARN([$CC does not support 64 bit ABI.])
474:    #    AC_SYS_COMPILER_FLAG(-q32, q32, CC)    AC_SYS_COMPILER_FLAG(-m32, m32, CC) -  if test "$pike_cv_option_q32:$pike_cv_option_m32" = "no:no"; then +  AC_SYS_COMPILER_FLAG(-xtarget=generic32, xtarget_generic32, CC) +  if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32" = "no:no:no"; then    AC_SYS_COMPILER_FLAG(-q64, q64, CC)    AC_SYS_COMPILER_FLAG(-m64, m64, CC) -  if test "$pike_cv_option_q64:$pike_cv_option_m64" = "no:no"; then +  AC_SYS_COMPILER_FLAG(-xtarget=generic64, xtarget_generic64, CC) +  if test "$pike_cv_option_q64:$pike_cv_option_m64:$pike_cv_option_xtarget_generic64" = "no:no:no"; then    AC_MSG_WARN([Found no option to force 32 bit ABI.])    else    AC_MSG_WARN([$CC does not support 32 bit ABI.])
2110:    # Solaris    DO_IF_OS(Solaris,    [ -  AC_SYS_COMPILER_FLAG(-fast,fast,OPTIMIZE) +  AC_SYS_COMPILER_FLAG(-fast,fast,OPTIMIZE,,[ +  if test "x$with_abi" = "x64"; then +  # -fast implies -xarch=native, which implies 32-bit ABI. +  AC_SYS_COMPILER_FLAG(-xtarget=generic64, xtarget_generic64, OPTIMIZE) +  fi +  ])    AC_SYS_COMPILER_FLAG(-xdepend,xdepend,OPTIMIZE)    AC_SYS_COMPILER_FLAG(-xs,xs,CFLAGS)    # Causes __STDC__ to be 1 which causes several headerfiles to behave
2369:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.899 2005/06/17 15:50:41 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.900 2005/06/17 16:01:33 grubba Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2407:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.899 2005/06/17 15:50:41 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.900 2005/06/17 16:01:33 grubba Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2416:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.899 2005/06/17 15:50:41 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.900 2005/06/17 16:01:33 grubba Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF