File program-transform-name.diff of Package libffi46

Index: gcc/ada/gcc-interface/Make-lang.in
===================================================================
*** gcc/ada/gcc-interface/Make-lang.in.orig	2010-11-05 13:57:44.000000000 +0100
--- gcc/ada/gcc-interface/Make-lang.in	2010-11-05 14:37:26.000000000 +0100
*************** doc/gnat-style.pdf: ada/gnat-style.texi
*** 669,674 ****
--- 669,689 ----
  # likewise for gnatf, gnatchop, and gnatlink, gnatkr, gnatmake, gnat,
  # gnatprep, gnatls, gnatxref, gnatfind, gnatname, gnatclean,
  # gnatsym
+ GNATBIND_INSTALL_NAME := $(shell echo gnatbind|sed '$(program_transform_name)')
+ GNATCHOP_INSTALL_NAME := $(shell echo gnatchop|sed '$(program_transform_name)')
+ GNAT_INSTALL_NAME := $(shell echo gnat|sed '$(program_transform_name)')
+ GNATKR_INSTALL_NAME := $(shell echo gnatkr|sed '$(program_transform_name)')
+ GNATLINK_INSTALL_NAME := $(shell echo gnatlink|sed '$(program_transform_name)')
+ GNATLS_INSTALL_NAME := $(shell echo gnatls|sed '$(program_transform_name)')
+ GNATMAKE_INSTALL_NAME := $(shell echo gnatmake|sed '$(program_transform_name)')
+ GNATNAME_INSTALL_NAME := $(shell echo gnatname|sed '$(program_transform_name)')
+ GNATPREP_INSTALL_NAME := $(shell echo gnatprep|sed '$(program_transform_name)')
+ GNATXREF_INSTALL_NAME := $(shell echo gnatxref|sed '$(program_transform_name)')
+ GNATFIND_INSTALL_NAME := $(shell echo gnatfind|sed '$(program_transform_name)')
+ GNATCLEAN_INSTALL_NAME := $(shell echo gnatclean|sed '$(program_transform_name)')
+ GNATSYM_INSTALL_NAME := $(shell echo gnatsym|sed '$(program_transform_name)')
+ GNATDLL_INSTALL_NAME := $(shell echo gnatdll|sed '$(program_transform_name)')
+ VXADDR2LINE_INSTALL_NAME := $(shell echo vxaddr2line|sed '$(program_transform_name)')
  ada.install-common:
  	$(MKDIR) $(DESTDIR)$(bindir)
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 682,689 ****
  	      $(INSTALL_PROGRAM) gnatbind-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatbind$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatbind$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatbind$(exeext) $(DESTDIR)$(bindir)/gnatbind$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 697,704 ----
  	      $(INSTALL_PROGRAM) gnatbind-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatbind$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATBIND_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatbind$(exeext) $(DESTDIR)$(bindir)/$(GNATBIND_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 697,704 ****
  	       $(INSTALL_PROGRAM) gnatchop-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatchop$(exeext); \
  	    fi ; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatchop$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatchop$(exeext) $(DESTDIR)$(bindir)/gnatchop$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 712,719 ----
  	       $(INSTALL_PROGRAM) gnatchop-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatchop$(exeext); \
  	    fi ; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATCHOP_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatchop$(exeext) $(DESTDIR)$(bindir)/$(GNATCHOP_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 712,719 ****
  	       $(INSTALL_PROGRAM) gnat-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnat$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnat$(exeext); \
! 	    $(INSTALL_PROGRAM) gnat$(exeext) $(DESTDIR)$(bindir)/gnat$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 727,734 ----
  	       $(INSTALL_PROGRAM) gnat-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnat$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNAT_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnat$(exeext) $(DESTDIR)$(bindir)/$(GNAT_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 727,734 ****
  	       $(INSTALL_PROGRAM) gnatkr-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatkr$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatkr$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatkr$(exeext) $(DESTDIR)$(bindir)/gnatkr$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 742,749 ----
  	       $(INSTALL_PROGRAM) gnatkr-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatkr$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATKR_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatkr$(exeext) $(DESTDIR)$(bindir)/$(GNATKR_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 742,749 ****
  	       $(INSTALL_PROGRAM) gnatlink-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatlink$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatlink$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatlink$(exeext) $(DESTDIR)$(bindir)/gnatlink$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 757,764 ----
  	       $(INSTALL_PROGRAM) gnatlink-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatlink$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATLINK_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatlink$(exeext) $(DESTDIR)$(bindir)/$(GNATLINK_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 757,764 ****
  	       $(INSTALL_PROGRAM) gnatls-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatls$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatls$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatls$(exeext) $(DESTDIR)$(bindir)/gnatls$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 772,779 ----
  	       $(INSTALL_PROGRAM) gnatls-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatls$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATLS_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatls$(exeext) $(DESTDIR)$(bindir)/$(GNATLS_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 772,779 ****
  	       $(INSTALL_PROGRAM) gnatmake-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatmake$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatmake$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatmake$(exeext) $(DESTDIR)$(bindir)/gnatmake$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 787,794 ----
  	       $(INSTALL_PROGRAM) gnatmake-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatmake$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATMAKE_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatmake$(exeext) $(DESTDIR)$(bindir)/$(GNATMAKE_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 783,790 ****
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatname$(exeext); \
  	    $(INSTALL_PROGRAM) gnatname-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatname$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatname$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatname$(exeext) $(DESTDIR)$(bindir)/gnatname$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 798,805 ----
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatname$(exeext); \
  	    $(INSTALL_PROGRAM) gnatname-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatname$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATNAME_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatname$(exeext) $(DESTDIR)$(bindir)/$(GNATNAME_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 798,805 ****
  	       $(INSTALL_PROGRAM) gnatprep-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatprep$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatprep$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatprep$(exeext) $(DESTDIR)$(bindir)/gnatprep$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 813,820 ----
  	       $(INSTALL_PROGRAM) gnatprep-cross$(exeext) $(DESTDIR)$(tooldir)/bin/gnatprep$(exeext); \
  	    fi; \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATPREP_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatprep$(exeext) $(DESTDIR)$(bindir)/$(GNATPREP_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 809,816 ****
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatxref$(exeext); \
  	    $(INSTALL_PROGRAM) gnatxref-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatxref$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatxref$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatxref$(exeext) $(DESTDIR)$(bindir)/gnatxref$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 824,831 ----
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatxref$(exeext); \
  	    $(INSTALL_PROGRAM) gnatxref-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatxref$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATXREF_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatxref$(exeext) $(DESTDIR)$(bindir)/$(GNATXREF_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 820,827 ****
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatfind$(exeext); \
  	    $(INSTALL_PROGRAM) gnatfind-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatfind$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatfind$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatfind$(exeext) $(DESTDIR)$(bindir)/gnatfind$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
--- 835,842 ----
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatfind$(exeext); \
  	    $(INSTALL_PROGRAM) gnatfind-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatfind$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATFIND_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatfind$(exeext) $(DESTDIR)$(bindir)/$(GNATFIND_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  	-if [ -f gnat1$(exeext) ] ; \
*************** ada.install-common:
*** 831,838 ****
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatclean$(exeext); \
  	    $(INSTALL_PROGRAM) gnatclean-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatclean$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatclean$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatclean$(exeext) $(DESTDIR)$(bindir)/gnatclean$(exeext); \
  	  fi ; \
  	fi
  #
--- 846,853 ----
  	    $(RM) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatclean$(exeext); \
  	    $(INSTALL_PROGRAM) gnatclean-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatclean$(exeext); \
  	  else \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATCLEAN_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatclean$(exeext) $(DESTDIR)$(bindir)/$(GNATCLEAN_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  #
*************** ada.install-common:
*** 846,852 ****
  	    $(INSTALL_PROGRAM) gnatsym-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatsym$(exeext); \
  	  else \
  	    $(RM) $(DESTDIR)$(bindir)/gnatsym$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatsym$(exeext) $(DESTDIR)$(bindir)/gnatsym$(exeext); \
  	  fi ; \
  	fi
  #
--- 861,867 ----
  	    $(INSTALL_PROGRAM) gnatsym-cross$(exeext) $(DESTDIR)$(bindir)/$(target_noncanonical)-gnatsym$(exeext); \
  	  else \
  	    $(RM) $(DESTDIR)$(bindir)/gnatsym$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatsym$(exeext) $(DESTDIR)$(bindir)/$(GNATSYM_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  #
*************** ada.install-common:
*** 854,861 ****
  #
  	-if [ -f gnat1$(exeext) ] ; \
  	then \
! 	    $(RM) $(DESTDIR)$(bindir)/gnatdll$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatdll$(exeext) $(DESTDIR)$(bindir)/gnatdll$(exeext); \
  	fi
  #
  # vxaddr2line is only used for cross ports (it calls the underlying cross
--- 869,876 ----
  #
  	-if [ -f gnat1$(exeext) ] ; \
  	then \
! 	    $(RM) $(DESTDIR)$(bindir)/$(GNATDLL_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) gnatdll$(exeext) $(DESTDIR)$(bindir)/$(GNATDLL_INSTALL_NAME)$(exeext); \
  	fi
  #
  # vxaddr2line is only used for cross ports (it calls the underlying cross
*************** ada.install-common:
*** 865,872 ****
  	then \
  	  if [ -f vxaddr2line$(exeext) ] ; \
  	  then \
! 	    $(RM) $(DESTDIR)$(bindir)/vxaddr2line$(exeext); \
! 	    $(INSTALL_PROGRAM) vxaddr2line$(exeext) $(DESTDIR)$(bindir)/vxaddr2line$(exeext); \
  	  fi ; \
  	fi
  
--- 880,887 ----
  	then \
  	  if [ -f vxaddr2line$(exeext) ] ; \
  	  then \
! 	    $(RM) $(DESTDIR)$(bindir)/$(VXADDR2LINE_INSTALL_NAME)$(exeext); \
! 	    $(INSTALL_PROGRAM) vxaddr2line$(exeext) $(DESTDIR)$(bindir)/$(VXADDR2LINE_INSTALL_NAME)$(exeext); \
  	  fi ; \
  	fi
  
*************** ada.uninstall:
*** 930,937 ****
  	-$(RM) $(DESTDIR)$(tooldir)/bin/gnatxref$(exeext)
  	-$(RM) $(DESTDIR)$(tooldir)/bin/gnatclean$(exeext)
  	-$(RM) $(DESTDIR)$(tooldir)/bin/gnatsym$(exeext)
- # Gnatchop is only used on VMS
- 	-$(RM) $(DESTDIR)$(bindir)/gnatchop$(exeext)
  
  # Clean hooks:
  # A lot of the ancillary files are deleted by the main makefile.
--- 945,950 ----