home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / bug / 2733 < prev    next >
Encoding:
Text File  |  1992-11-12  |  3.2 KB  |  89 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!modcomp.COM!joe
  3. From: joe@modcomp.COM (Joe Korty)
  4. Subject: gcc2.3.1: configure --prefix bug & fix
  5. Message-ID: <m0mpkB9-0001TsC@rlxdev.modcomp.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 12 Nov 1992 19:26:10 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 76
  12.  
  13. The addition of the family of --prefix options to `configure' broke the
  14. ability to specify prefix information in the `config/x-*' makefile fragments.
  15. What happens is that, if no --prefix option is specified, the prefix is
  16. always set to `/usr/local', irrespective of the value in the machine
  17. configuration file.
  18.  
  19. The following patch causes configure to use --prefix if available, otherwise
  20. uses the config/x-* file value if available, otherwise defaults the prefix
  21. to /usr/local.  It also fixes a similar problem in --exec-prefix.
  22.  
  23. This problem is new to 2.3.1.
  24.  
  25. -- 
  26. Joe Korty,  REAL/IX Operating Systems
  27.  
  28. MODCOMP, an AEG Company            Telephone: (305) 977-1820
  29. 1650 West McNab Road            Fax:       (305) 977-1638
  30. P.O. Box 6099                E-mail:       uunet!modcomp!joe
  31. Ft. Lauderdale, FL 33309-1088
  32.  
  33. diff -r -c /work3/joe/gcc-2.3.1-base/configure /work4/joe/gcc-2.3.1/configure
  34. *** /work3/joe/gcc-2.3.1-base/configure    Sun Nov  1 03:25:32 1992
  35. --- /work4/joe/gcc-2.3.1/configure    Tue Nov 10 10:54:48 1992
  36. ***************
  37. *** 54,61 ****
  38. --- 54,63 ----
  39.   
  40.   # Default prefix to /usr/local.
  41.   prefix=/usr/local
  42. + prefix_name=SomeJunkString
  43.   # Default is to let the Makefile set exec_prefix from $(prefix)
  44.   exec_prefix='$(prefix)'
  45. + exec_prefix_name=SomeJunkString
  46.   
  47.   remove=rm
  48.   hard_link=ln
  49. ***************
  50. *** 132,137 ****
  51. --- 134,140 ----
  52.       ;;
  53.        -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  54.       prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
  55. +     prefix_name=prefix
  56.       ;;
  57.        -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
  58.       | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  59. ***************
  60. *** 141,146 ****
  61. --- 144,150 ----
  62.       | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* \
  63.       | --exe=* | --ex=* | --e=*)
  64.       exec_prefix=`echo $arg | sed 's/-*e[-a-z]*=//'`
  65. +     exec_prefix_name=exec_prefix
  66.       ;;
  67.        -with-gnu-ld | --with-gnu-ld | --with-gnu-l)
  68.       gnu_ld=yes
  69. ***************
  70. *** 1256,1263 ****
  71.   sed -e "s/ //" -e "s/^target=.*$/target=${target}/" \
  72.       -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
  73.       -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
  74. !     -e "s|^prefix[     ]*=.*|prefix = $prefix|" \
  75. !     -e "s|^exec_prefix[     ]*=.*|exec_prefix = $exec_prefix|" \
  76.       -e "s|^FIXINCLUDES[     ]*=.*|FIXINCLUDES = $fixincludes|" \
  77.       Makefile.tem > Makefile.xx
  78.   rm -f Makefile.tem
  79. --- 1265,1272 ----
  80.   sed -e "s/ //" -e "s/^target=.*$/target=${target}/" \
  81.       -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
  82.       -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
  83. !     -e "s|^${prefix_name}[     ]*=.*|prefix = $prefix|" \
  84. !     -e "s|^${exec_prefix_name}[     ]*=.*|exec_prefix = $exec_prefix|" \
  85.       -e "s|^FIXINCLUDES[     ]*=.*|FIXINCLUDES = $fixincludes|" \
  86.       Makefile.tem > Makefile.xx
  87.   rm -f Makefile.tem
  88.  
  89.