[patch] cleanup target makefile frag collection in toplevel

Nathanael Nerode neroden@doctormoo.dyndns.org
Sat May 25 14:53:00 GMT 2002


In preparation for autoconfiscation.

2002-05-22  Nathanael C. Nerode  <neroden@twcny.rr.com>
	* configure.in: Clean up target makefile fragment collection.

*** configure.in.old	Thu May 23 13:53:22 2002
--- configure.in	Thu May 23 14:02:47 2002
***************
*** 353,383 ****
  
  # per-target:
  
  case "${target}" in
    v810*)
!     target_makefile_frag="${target_makefile_frag} config/mt-v810"
      ;;
    i[3456]86-*-netware*)
!     target_makefile_frag="${target_makefile_frag} config/mt-netware"
      ;;
    powerpc-*-netware*)
!     target_makefile_frag="${target_makefile_frag} config/mt-netware"
!     ;;
!   alpha*-*-linux*)
!     target_makefile_frag="${target_makefile_frag} config/mt-linux"
!     target_makefile_frag="${target_makefile_frag} config/mt-alphaieee"
!     ;;
!   alpha*-*-*)
!     target_makefile_frag="${target_makefile_frag} config/mt-alphaieee"
      ;;
    *-*-linux*)
!     target_makefile_frag="${target_makefile_frag} config/mt-linux"
      ;;
    *-*-aix4.[3456789]* | *-*-aix[56789].*)
!     target_makefile_frag="${target_makefile_frag} config/mt-aix43"
      ;;
    mips*-*-pe | sh*-*-pe | *arm-wince-pe)
!     target_makefile_frag="${target_makefile_frag} config/mt-wince"
      ;;
  esac
  
--- 353,388 ----
  
  # per-target:
  
+ target_makefile_frag=/dev/null
  case "${target}" in
    v810*)
!     target_makefile_frag="config/mt-v810"
      ;;
    i[3456]86-*-netware*)
!     target_makefile_frag="config/mt-netware"
      ;;
    powerpc-*-netware*)
!     target_makefile_frag="config/mt-netware"
      ;;
    *-*-linux*)
!     target_makefile_frag="config/mt-linux"
      ;;
    *-*-aix4.[3456789]* | *-*-aix[56789].*)
!     target_makefile_frag="config/mt-aix43"
      ;;
    mips*-*-pe | sh*-*-pe | *arm-wince-pe)
!     target_makefile_frag="config/mt-wince"
!     ;;
! esac
! 
! # Alpha needs an -mieee flag.  This really belongs in the places that use it,
! # not at the top level.
! case "${target}" in
!   alpha*-*-*)
!     alpha_frag="config/mt-alphaieee"
!     ;;
!   *)
!     alpha_frag="/dev/null"
      ;;
  esac
  
***************
*** 386,400 ****
  # on selected platforms.
  case "${enable_target_optspace}:${target}" in
    yes:*)
!     target_makefile_frag="${target_makefile_frag} config/mt-ospace"
      ;;
    :d30v-*)
!     target_makefile_frag="${target_makefile_frag} config/mt-d30v"
      ;;
    :m32r-* | :d10v-* | :fr30-*)
!     target_makefile_frag="${target_makefile_frag} config/mt-ospace"
      ;;
    no:* | :*)
      ;;
    *)
      echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
--- 391,406 ----
  # on selected platforms.
  case "${enable_target_optspace}:${target}" in
    yes:*)
!     ospace_frag="config/mt-ospace"
      ;;
    :d30v-*)
!     ospace_frag="config/mt-d30v"
      ;;
    :m32r-* | :d10v-* | :fr30-*)
!     ospace_frag="config/mt-ospace"
      ;;
    no:* | :*)
+     ospace_frag="/dev/null"
      ;;
    *)
      echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
***************
*** 1296,1307 ****
  fi
  
  rm -f mt-frag
! if test -n "${target_makefile_frag}" ; then
!   for f in ${target_makefile_frag}
!   do
      cat ${srcdir}/$f >> mt-frag
!   done
    target_makefile_frag=mt-frag
  fi
  
  case "$host" in
--- 1302,1316 ----
  fi
  
  rm -f mt-frag
! for f in ${target_makefile_frag} ${alpha_frag} ${ospace_frag} ; do
!   if test $f != /dev/null ; then
      cat ${srcdir}/$f >> mt-frag
!   fi
! done
! if test -n "${target_makefile_frag}${alpha_frag}${ospace_frag}" ; then
    target_makefile_frag=mt-frag
+ else
+   target_makefile_frag=
  fi
  
  case "$host" in



More information about the Gdb-patches mailing list