home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / c / gcc261ud-cp.lha / gnu / src-patches / libg++-2.6.1-amiga.diffs
Encoding:
Text File  |  1994-11-05  |  42.1 KB  |  1,463 lines

  1. # BEFORE applying this, please make:
  2. # mv libg++/old-stream/filebuf.h libg++/old-stream/_filebuf.h
  3. # mv libg++/src/complex.h libg++/src/_complex.h
  4.  
  5.  
  6.  
  7. diff -2rcN libg++-2.6.1/Makefile.in libg++-2.6.1-amiga/Makefile.in
  8. *** libg++-2.6.1/Makefile.in    Wed Oct 19 23:39:02 1994
  9. --- libg++-2.6.1-amiga/Makefile.in    Fri Nov  4 13:48:04 1994
  10. ***************
  11. *** 20,24 ****
  12.   srcdir = .
  13.   
  14. ! prefix = /usr/local
  15.   
  16.   exec_prefix = $(prefix)
  17. --- 20,24 ----
  18.   srcdir = .
  19.   
  20. ! prefix = /gnu
  21.   
  22.   exec_prefix = $(prefix)
  23. ***************
  24. *** 56,60 ****
  25.   AR = ar
  26.   AR_FLAGS = rc
  27. ! CC = cc
  28.   
  29.   # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
  30. --- 56,60 ----
  31.   AR = ar
  32.   AR_FLAGS = rc
  33. ! CC = amigados-gcc
  34.   
  35.   # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
  36. ***************
  37. *** 66,75 ****
  38.   # We don't specify -g -O because many compilers don't support -g -O,
  39.   # and/or -O is broken in and of itself.
  40. ! CFLAGS = -g
  41.   
  42.   CXX = gcc
  43.   
  44.   # Use -O2 to stress test the compiler.
  45. ! CXXFLAGS = -g -O2 -fno-implicit-templates
  46.   
  47.   RANLIB = ranlib
  48. --- 66,75 ----
  49.   # We don't specify -g -O because many compilers don't support -g -O,
  50.   # and/or -O is broken in and of itself.
  51. ! CFLAGS = -O2
  52.   
  53.   CXX = gcc
  54.   
  55.   # Use -O2 to stress test the compiler.
  56. ! CXXFLAGS = -O2 -fno-implicit-templates
  57.   
  58.   RANLIB = ranlib
  59. ***************
  60. *** 79,94 ****
  61.   
  62.   BISON = bison -y
  63. ! LEX = `if [ -f $$r/flex/flex ] ; \
  64. !     then echo $$r/flex/flex ; \
  65. !     else echo flex ; fi`
  66. ! M4 = `if [ -f $$r/m4/m4 ] ; \
  67. !     then echo $$r/m4/m4 ; \
  68. !     else echo m4 ; fi`
  69. ! MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
  70. !     then echo $$r/texinfo/makeinfo/makeinfo ; \
  71. !     else echo makeinfo ; fi`
  72.   
  73.   # This just becomes part of the MAKEINFO definition passed down to
  74.   # sub-makes.  It lets flags be given on the command line while still
  75. --- 79,88 ----
  76.   
  77.   BISON = bison -y
  78. ! LEX = flex
  79.   
  80. + M4 = m4
  81. + MAKEINFO = makeinfo
  82.   # This just becomes part of the MAKEINFO definition passed down to
  83.   # sub-makes.  It lets flags be given on the command line while still
  84. ***************
  85. *** 96,107 ****
  86.   MAKEINFOFLAGS =
  87.   
  88. ! EXPECT = `if [ -f $$r/expect/expect ] ; \
  89. !     then echo $$r/expect/expect ; \
  90. !     else echo expect ; fi`
  91. ! RUNTEST = `if [ -f $${srcroot}/dejagnu/runtest ] ; \
  92. !     then echo $${srcroot}/dejagnu/runtest ; \
  93. !     else echo runtest ; fi`
  94.   
  95.   
  96.   # libraries that may need to be augmented on a system-by-system basis
  97. --- 90,96 ----
  98.   MAKEINFOFLAGS =
  99.   
  100. ! EXPECT = expect
  101.   
  102. + RUNTEST = runtest
  103.   
  104.   # libraries that may need to be augmented on a system-by-system basis
  105. ***************
  106. *** 125,203 ****
  107.   
  108.   
  109. ! CC_FOR_TARGET = ` \
  110. !   if [ -f $$r/gcc/Makefile ] ; then \
  111. !     if [ -f $$r/newlib/Makefile ] ; then \
  112. !       echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
  113. !     else \
  114. !       echo $$r/gcc/xgcc -B$$r/gcc/; \
  115. !     fi; \
  116. !   else \
  117. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  118. !       echo $(CC); \
  119. !     else \
  120. !       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
  121. !     fi; \
  122. !   fi`
  123. ! CXX_FOR_TARGET = ` \
  124. !   if [ -f $$r/gcc/Makefile ] ; then \
  125. !     if [ -f $$r/newlib/Makefile ] ; then \
  126. !       echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
  127. !     else \
  128. !       echo $$r/gcc/xgcc -B$$r/gcc/; \
  129. !     fi; \
  130. !   else \
  131. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  132. !       echo $(CXX); \
  133. !     else \
  134. !       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
  135. !     fi; \
  136. !   fi`
  137. ! AS_FOR_TARGET = ` \
  138. !   if [ -f $$r/gas/Makefile ] ; then \
  139. !     echo $$r/gas/as.new ; \
  140. !   else \
  141. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  142. !       echo $(AS); \
  143. !     else \
  144. !        t='$(program_transform_name)'; echo as | sed -e 's/brokensed/brokensed/' $$t ; \
  145. !     fi; \
  146. !   fi`
  147. ! AR_FOR_TARGET = ` \
  148. !   if [ -f $$r/binutils/ar ] ; then \
  149. !     echo $$r/binutils/ar ; \
  150. !   else \
  151. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  152. !       echo $(AR); \
  153. !     else \
  154. !        t='$(program_transform_name)'; echo ar | sed -e 's/brokensed/brokensed/' $$t ; \
  155. !     fi; \
  156. !   fi`
  157. ! RANLIB_FOR_TARGET = ` \
  158. !   if [ -f $$r/binutils/ranlib ] ; then \
  159. !     echo $$r/binutils/ranlib ; \
  160. !   else \
  161. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  162. !       echo $(RANLIB); \
  163. !     else \
  164. !        t='$(program_transform_name)'; echo ranlib | sed -e 's/brokensed/brokensed/' $$t ; \
  165. !     fi; \
  166. !   fi`
  167. ! NM_FOR_TARGET = ` \
  168. !   if [ -f $$r/binutils/Makefile ] ; then \
  169. !     echo $$r/binutils/nm.new ; \
  170. !   else \
  171. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  172. !       echo $(NM); \
  173. !     else \
  174. !        t='$(program_transform_name)'; echo nm | sed -e 's/brokensed/brokensed/' $$t ; \
  175. !     fi; \
  176. !   fi`
  177.   
  178.   #### host and target specific makefile fragments come in here.
  179. --- 114,123 ----
  180.   
  181.   
  182. ! CC_FOR_TARGET = amigados-gcc
  183. ! CXX_FOR_TARGET = amigados-gcc
  184. ! AS_FOR_TARGET = /usr/local/amigados/bin/as
  185. ! AR_FOR_TARGET = ar
  186. ! RANLIB_FOR_TARGET = ranlib
  187. ! NM_FOR_TARGET = nm
  188.   
  189.   #### host and target specific makefile fragments come in here.
  190. diff -2rcN libg++-2.6.1/config.guess libg++-2.6.1-amiga/config.guess
  191. *** libg++-2.6.1/config.guess    Fri Oct  7 01:05:57 1994
  192. --- libg++-2.6.1-amiga/config.guess    Fri Nov  4 13:50:04 1994
  193. ***************
  194. *** 1,3 ****
  195. --- 1,4 ----
  196.   #!/bin/sh
  197. + echo "m68k-cbm-amigados" ; exit 0    #HACK (fnf)
  198.   # This script attempts to guess a canonical system name.
  199.   #   Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  200. ***************
  201. *** 266,270 ****
  202.       exit 0 ;;
  203.       i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
  204. !     if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  205.           echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
  206.       else
  207. --- 267,271 ----
  208.       exit 0 ;;
  209.       i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
  210. !     if grep Novell /gnu/include/link.h >/dev/null 2>/dev/null; then
  211.           echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
  212.       else
  213. ***************
  214. *** 409,417 ****
  215.   #endif
  216.   
  217.     exit (1);
  218.   }
  219.   EOF
  220.   
  221. ! ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
  222.   rm -f dummy.c dummy
  223.   
  224. --- 410,422 ----
  225.   #endif
  226.   
  227. + #if defined(__amigados__)
  228. +   printf("m68k-cbm-amigados\n"); exit(0);
  229. + #endif
  230.     exit (1);
  231.   }
  232.   EOF
  233.   
  234. ! ${CC-gcc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
  235.   rm -f dummy.c dummy
  236.   
  237. diff -2rcN libg++-2.6.1/configure libg++-2.6.1-amiga/configure
  238. *** libg++-2.6.1/configure    Tue Oct  4 16:06:36 1994
  239. --- libg++-2.6.1-amiga/configure    Fri Nov  4 13:51:35 1994
  240. ***************
  241. *** 37,45 ****
  242.   #
  243.   
  244.   export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0 $argv; kill $$)
  245.   
  246.   remove=rm
  247. ! hard_link=ln
  248. ! symbolic_link='ln -s'
  249.   
  250.   #for Test
  251. --- 37,48 ----
  252.   #
  253.   
  254. + # In places where the argument to echo may start with a '-', use /bin/echo since
  255. + # the AmigaDOS pdksh builtin echo botches this case.
  256.   export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0 $argv; kill $$)
  257.   
  258.   remove=rm
  259. ! hard_link=cp
  260. ! symbolic_link=cp
  261.   
  262.   #for Test
  263. ***************
  264. *** 66,70 ****
  265.   other_options=
  266.   package_makefile_frag=
  267. ! prefix=/usr/local
  268.   progname=
  269.   program_prefix=
  270. --- 69,73 ----
  271.   other_options=
  272.   package_makefile_frag=
  273. ! prefix=/gnu
  274.   progname=
  275.   program_prefix=
  276. ***************
  277. *** 103,107 ****
  278.   ##
  279.   
  280. ! progname=$0
  281.   # if PWD already has a value, it is probably wrong.
  282.   if [ -n "$PWD" ]; then PWD=`pwd`; fi
  283. --- 106,110 ----
  284.   ##
  285.   
  286. ! progname=`echo $0 | sed 's:/$::'`
  287.   # if PWD already has a value, it is probably wrong.
  288.   if [ -n "$PWD" ]; then PWD=`pwd`; fi
  289. ***************
  290. *** 218,222 ****
  291.       --program-transform-name* | --program-t*)
  292.           # Double any backslashes or dollar signs in the argument
  293. !         program_transform_name="${program_transform_name} -e `echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  294.           program_transform_nameoption="${program_transform_nameoption} --program-transform-name='$optarg'"
  295.           ;;
  296. --- 221,225 ----
  297.       --program-transform-name* | --program-t*)
  298.           # Double any backslashes or dollar signs in the argument
  299. !         program_transform_name="${program_transform_name} -e `/bin/echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  300.           program_transform_nameoption="${program_transform_nameoption} --program-transform-name='$optarg'"
  301.           ;;
  302. ***************
  303. *** 237,241 ****
  304.                   # in it.  Ordinarily this is ok, but emacs takes double slash
  305.                   # to mean "forget the first part".
  306. !         srcdir=`echo $optarg | sed -e 's:/$::'`
  307.           ;;
  308.       --srcdir* | --sr*)
  309. --- 240,244 ----
  310.                   # in it.  Ordinarily this is ok, but emacs takes double slash
  311.                   # to mean "forget the first part".
  312. !         srcdir=`/bin/echo $optarg | sed -e 's:/$::'`
  313.           ;;
  314.       --srcdir* | --sr*)
  315. ***************
  316. *** 268,277 ****
  317.           esac
  318.   
  319. !         withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
  320.           eval $withopt="$optarg"
  321.           withoptions="$withoptions $option"
  322.           ;;
  323.       --without-*)
  324. !         withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
  325.           eval $withopt=no
  326.           withoutoptions="$withoutoptions $option"
  327. --- 271,280 ----
  328.           esac
  329.   
  330. !         withopt=`/bin/echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
  331.           eval $withopt="$optarg"
  332.           withoptions="$withoptions $option"
  333.           ;;
  334.       --without-*)
  335. !         withopt=`/bin/echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
  336.           eval $withopt=no
  337.           withoutoptions="$withoutoptions $option"
  338. ***************
  339. *** 384,389 ****
  340.       echo
  341.       echo Options: [defaults in brackets]
  342. !     echo ' --prefix=MYDIR         install into MYDIR [/usr/local]'
  343. !     echo ' --exec-prefix=MYDIR     install host-dependent files into MYDIR [/usr/local]'
  344.       echo ' --help             print this message [normal config]'
  345.       echo ' --build=BUILD         configure for building on BUILD [BUILD=HOST]'
  346. --- 387,392 ----
  347.       echo
  348.       echo Options: [defaults in brackets]
  349. !     echo ' --prefix=MYDIR         install into MYDIR [/gnu]'
  350. !     echo ' --exec-prefix=MYDIR     install host-dependent files into MYDIR [/gnu]'
  351.       echo ' --help             print this message [normal config]'
  352.       echo ' --build=BUILD         configure for building on BUILD [BUILD=HOST]'
  353. ***************
  354. *** 831,835 ****
  355.           # two variables
  356.           CXX=${CXX-"g++ -O"}
  357. !         CC=${CC-cc}
  358.   
  359.               # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
  360. --- 834,838 ----
  361.           # two variables
  362.           CXX=${CXX-"g++ -O"}
  363. !         CC=${CC-gcc}
  364.   
  365.               # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
  366. diff -2rcN libg++-2.6.1/etc/Makefile.in libg++-2.6.1-amiga/etc/Makefile.in
  367. *** libg++-2.6.1/etc/Makefile.in    Wed Oct 19 23:31:21 1994
  368. --- libg++-2.6.1-amiga/etc/Makefile.in    Fri Nov  4 13:52:04 1994
  369. ***************
  370. *** 3,7 ****
  371.   #
  372.   
  373. ! prefix         = /usr/local
  374.   exec_prefix     = $(prefix)
  375.   
  376. --- 3,7 ----
  377.   #
  378.   
  379. ! prefix         = /gnu
  380.   exec_prefix     = $(prefix)
  381.   
  382. diff -2rcN libg++-2.6.1/etc/cfg-paper.texi libg++-2.6.1-amiga/etc/cfg-paper.texi
  383. *** libg++-2.6.1/etc/cfg-paper.texi    Wed Oct 19 23:31:22 1994
  384. --- libg++-2.6.1-amiga/etc/cfg-paper.texi    Fri Nov  4 13:52:39 1994
  385. ***************
  386. *** 242,246 ****
  387.   In order to actually install the program, the configuration system needs
  388.   to know where you would like the program installed.  The default
  389. ! location is @file{/usr/local}.  We refer to this location as
  390.   @code{$(prefix)}.  All user visible programs will be installed in
  391.   @file{@code{$(prefix)}/bin}.  All other programs and files will be
  392. --- 242,246 ----
  393.   In order to actually install the program, the configuration system needs
  394.   to know where you would like the program installed.  The default
  395. ! location is @file{/gnu}.  We refer to this location as
  396.   @code{$(prefix)}.  All user visible programs will be installed in
  397.   @file{@code{$(prefix)}/bin}.  All other programs and files will be
  398. diff -2rcN libg++-2.6.1/etc/configure.man libg++-2.6.1-amiga/etc/configure.man
  399. *** libg++-2.6.1/etc/configure.man    Wed Oct 19 23:31:23 1994
  400. --- libg++-2.6.1-amiga/etc/configure.man    Fri Nov  4 13:53:00 1994
  401. ***************
  402. *** 58,62 ****
  403.   sets the location in which to install files to
  404.   .I DIR.
  405. ! The default is "/usr/local".
  406.   
  407.   .TP
  408. --- 58,62 ----
  409.   sets the location in which to install files to
  410.   .I DIR.
  411. ! The default is "/gnu".
  412.   
  413.   .TP
  414. diff -2rcN libg++-2.6.1/etc/configure.texi libg++-2.6.1-amiga/etc/configure.texi
  415. *** libg++-2.6.1/etc/configure.texi    Wed Oct 19 23:31:25 1994
  416. --- libg++-2.6.1-amiga/etc/configure.texi    Fri Nov  4 13:53:15 1994
  417. ***************
  418. *** 754,758 ****
  419.   remember that you must also specify a different @samp{--prefix} for each
  420.   configuration at configure-time.  Otherwise, both configurations will be
  421. ! installed in the same default location (@file{/usr/local}); the configuration
  422.   to be installed last would overwrite previously installed configurations.
  423.   
  424. --- 754,758 ----
  425.   remember that you must also specify a different @samp{--prefix} for each
  426.   configuration at configure-time.  Otherwise, both configurations will be
  427. ! installed in the same default location (@file{/gnu}); the configuration
  428.   to be installed last would overwrite previously installed configurations.
  429.   
  430. ***************
  431. *** 783,787 ****
  432.   @item in the current directory, and which will be installed 
  433.   
  434. ! @item in the default installation directory (@file{/usr/local}) when the code
  435.   is compiled with @code{make}.  
  436.   @end itemize
  437. --- 783,787 ----
  438.   @item in the current directory, and which will be installed 
  439.   
  440. ! @item in the default installation directory (@file{/gnu}) when the code
  441.   is compiled with @code{make}.  
  442.   @end itemize
  443. ***************
  444. *** 1227,1231 ****
  445.   files, some of which are programs.  The location of this tree is determined by
  446.   the value of the variable @samp{prefix}.  The default value of @samp{prefix} is
  447. ! @samp{/usr/local}.  This is often correct for native tools installed on only
  448.   one host.
  449.   
  450. --- 1227,1231 ----
  451.   files, some of which are programs.  The location of this tree is determined by
  452.   the value of the variable @samp{prefix}.  The default value of @samp{prefix} is
  453. ! @samp{/gnu}.  This is often correct for native tools installed on only
  454.   one host.
  455.   
  456. ***************
  457. *** 1246,1250 ****
  458.   
  459.   In the default configuration, all files are installed in subdirectories
  460. ! of @file{/usr/local}.  The location is determined by the value of
  461.   the @code{configure} variable @samp{prefix}; in turn, this determines the
  462.   value of the @file{Makefile} variable of the same name (@samp{prefix}).
  463. --- 1246,1250 ----
  464.   
  465.   In the default configuration, all files are installed in subdirectories
  466. ! of @file{/gnu}.  The location is determined by the value of
  467.   the @code{configure} variable @samp{prefix}; in turn, this determines the
  468.   value of the @file{Makefile} variable of the same name (@samp{prefix}).
  469. ***************
  470. *** 1347,1351 ****
  471.   with the @samp{--prefix=} command line option to @code{configure}
  472.   (@pxref{Invoking configure, , Invoking @code{configure}}).  The default value
  473. ! for @samp{prefix} is @samp{/usr/local}.
  474.   
  475.   @item bindir
  476. --- 1347,1351 ----
  477.   with the @samp{--prefix=} command line option to @code{configure}
  478.   (@pxref{Invoking configure, , Invoking @code{configure}}).  The default value
  479. ! for @samp{prefix} is @samp{/gnu}.
  480.   
  481.   @item bindir
  482. diff -2rcN libg++-2.6.1/etc/make-stds.texi libg++-2.6.1-amiga/etc/make-stds.texi
  483. *** libg++-2.6.1/etc/make-stds.texi    Sat Mar 26 17:22:48 1994
  484. --- libg++-2.6.1-amiga/etc/make-stds.texi    Fri Nov  4 13:53:32 1994
  485. ***************
  486. *** 385,389 ****
  487.   @item prefix
  488.   A prefix used in constructing the default values of the variables listed
  489. ! below.  The default value of @code{prefix} should be @file{/usr/local}
  490.   (at least for now).
  491.   
  492. --- 385,389 ----
  493.   @item prefix
  494.   A prefix used in constructing the default values of the variables listed
  495. ! below.  The default value of @code{prefix} should be @file{/gnu}
  496.   (at least for now).
  497.   
  498. ***************
  499. *** 399,403 ****
  500.   @item bindir
  501.   The directory for installing executable programs that users can run.
  502. ! This should normally be @file{/usr/local/bin}, but write it as
  503.   @file{$(exec_prefix)/bin}.
  504.   
  505. --- 399,403 ----
  506.   @item bindir
  507.   The directory for installing executable programs that users can run.
  508. ! This should normally be @file{/gnu/bin}, but write it as
  509.   @file{$(exec_prefix)/bin}.
  510.   
  511. ***************
  512. *** 408,412 ****
  513.   files that pertain to a specific machine architecture, but need not be
  514.   in the path for commands.  The value of @code{libdir} should normally be
  515. ! @file{/usr/local/lib}, but write it as @file{$(exec_prefix)/lib}.
  516.   
  517.   @item datadir
  518. --- 408,412 ----
  519.   files that pertain to a specific machine architecture, but need not be
  520.   in the path for commands.  The value of @code{libdir} should normally be
  521. ! @file{/gnu/lib}, but write it as @file{$(exec_prefix)/lib}.
  522.   
  523.   @item datadir
  524. ***************
  525. *** 414,418 ****
  526.   refer to while they run.  This directory is used for files which are
  527.   independent of the type of machine being used.  This should normally be
  528. ! @file{/usr/local/lib}, but write it as @file{$(prefix)/lib}.
  529.   
  530.   @item statedir
  531. --- 414,418 ----
  532.   refer to while they run.  This directory is used for files which are
  533.   independent of the type of machine being used.  This should normally be
  534. ! @file{/gnu/lib}, but write it as @file{$(prefix)/lib}.
  535.   
  536.   @item statedir
  537. ***************
  538. *** 420,424 ****
  539.   they run.  These files should be independent of the type of machine
  540.   being used, and it should be possible to share them among machines at a
  541. ! network installation.  This should normally be @file{/usr/local/lib},
  542.   but write it as @file{$(prefix)/lib}.
  543.   
  544. --- 420,424 ----
  545.   they run.  These files should be independent of the type of machine
  546.   being used, and it should be possible to share them among machines at a
  547. ! network installation.  This should normally be @file{/gnu/lib},
  548.   but write it as @file{$(prefix)/lib}.
  549.   
  550. ***************
  551. *** 427,435 ****
  552.   The directory for installing header files to be included by user
  553.   programs with the C @samp{#include} preprocessor directive.  This
  554. ! should normally be @file{/usr/local/include}, but write it as
  555.   @file{$(prefix)/include}.
  556.   
  557.   Most compilers other than GCC do not look for header files in
  558. ! @file{/usr/local/include}.  So installing the header files this way is
  559.   only useful with GCC.  Sometimes this is not a problem because some
  560.   libraries are only really intended to work with GCC.  But some libraries
  561. --- 427,435 ----
  562.   The directory for installing header files to be included by user
  563.   programs with the C @samp{#include} preprocessor directive.  This
  564. ! should normally be @file{/gnu/include}, but write it as
  565.   @file{$(prefix)/include}.
  566.   
  567.   Most compilers other than GCC do not look for header files in
  568. ! @file{/gnu/include}.  So installing the header files this way is
  569.   only useful with GCC.  Sometimes this is not a problem because some
  570.   libraries are only really intended to work with GCC.  But some libraries
  571. ***************
  572. *** 490,494 ****
  573.   @item infodir
  574.   The directory for installing the Info files for this package.  By
  575. ! default, it should be @file{/usr/local/info}, but it should be written
  576.   as @file{$(prefix)/info}.
  577.   
  578. --- 490,494 ----
  579.   @item infodir
  580.   The directory for installing the Info files for this package.  By
  581. ! default, it should be @file{/gnu/info}, but it should be written
  582.   as @file{$(prefix)/info}.
  583.   
  584. ***************
  585. *** 505,509 ****
  586.   # Common prefix for installation directories.
  587.   # NOTE: This directory must exist when you start the install.
  588. ! prefix = /usr/local
  589.   exec_prefix = $(prefix)
  590.   # Where to put the executable for the command `gcc'.
  591. --- 505,509 ----
  592.   # Common prefix for installation directories.
  593.   # NOTE: This directory must exist when you start the install.
  594. ! prefix = /gnu
  595.   exec_prefix = $(prefix)
  596.   # Where to put the executable for the command `gcc'.
  597. diff -2rcN libg++-2.6.1/libg++/etc/ADT-examples/Patmain.cc libg++-2.6.1-amiga/libg++/etc/ADT-examples/Patmain.cc
  598. *** libg++-2.6.1/libg++/etc/ADT-examples/Patmain.cc    Tue Nov  2 02:00:30 1993
  599. --- libg++-2.6.1-amiga/libg++/etc/ADT-examples/Patmain.cc    Fri Nov  4 13:53:44 1994
  600. ***************
  601. *** 3,7 ****
  602.   #include <stream.h>
  603.   #include <stdio.h>
  604. ! #include <string.h>
  605.   #include "Patricia.h"
  606.   #include <builtin.h>
  607. --- 3,7 ----
  608.   #include <stream.h>
  609.   #include <stdio.h>
  610. ! #include </gnu/include/string.h>    /* Avoid getting String.h */
  611.   #include "Patricia.h"
  612.   #include <builtin.h>
  613. diff -2rcN libg++-2.6.1/libg++/etc/benchmarks/Makefile.in libg++-2.6.1-amiga/libg++/etc/benchmarks/Makefile.in
  614. *** libg++-2.6.1/libg++/etc/benchmarks/Makefile.in    Sat May 14 04:54:14 1994
  615. --- libg++-2.6.1-amiga/libg++/etc/benchmarks/Makefile.in    Fri Nov  4 13:53:57 1994
  616. ***************
  617. *** 3,7 ****
  618.   srcdir = .
  619.   
  620. ! prefix = /usr/local
  621.   
  622.   
  623. --- 3,7 ----
  624.   srcdir = .
  625.   
  626. ! prefix = /gnu
  627.   
  628.   
  629. diff -2rcN libg++-2.6.1/libg++/etc/benchmarks/dhrystone.cc libg++-2.6.1-amiga/libg++/etc/benchmarks/dhrystone.cc
  630. *** libg++-2.6.1/libg++/etc/benchmarks/dhrystone.cc    Sun Nov 21 09:33:12 1993
  631. --- libg++-2.6.1-amiga/libg++/etc/benchmarks/dhrystone.cc    Fri Nov  4 13:54:11 1994
  632. ***************
  633. *** 332,336 ****
  634.   
  635.   #ifdef    NOSTRUCTASSIGN
  636. ! #include <string.h>
  637.   #define    structassign(d, s)    memcpy(&(d), &(s), sizeof(d))
  638.   #else
  639. --- 332,336 ----
  640.   
  641.   #ifdef    NOSTRUCTASSIGN
  642. ! #include </gnu/include/string.h>    /* Avoid getting String.h */
  643.   #define    structassign(d, s)    memcpy(&(d), &(s), sizeof(d))
  644.   #else
  645. diff -2rcN libg++-2.6.1/libg++/etc/trie-gen/test.cc libg++-2.6.1-amiga/libg++/etc/trie-gen/test.cc
  646. *** libg++-2.6.1/libg++/etc/trie-gen/test.cc    Mon Apr 26 04:25:36 1993
  647. --- libg++-2.6.1-amiga/libg++/etc/trie-gen/test.cc    Fri Nov  4 13:54:26 1994
  648. ***************
  649. *** 6,10 ****
  650.     
  651.   #include <stdio.h>
  652. ! #include <string.h>
  653.   
  654.   #define MAX_LEN 200
  655. --- 6,10 ----
  656.     
  657.   #include <stdio.h>
  658. ! #include </gnu/include/string.h>    /* Avoid getting String.h */
  659.   
  660.   #define MAX_LEN 200
  661. diff -2rcN libg++-2.6.1/libg++/etc/trie-gen/trie.cc libg++-2.6.1-amiga/libg++/etc/trie-gen/trie.cc
  662. *** libg++-2.6.1/libg++/etc/trie-gen/trie.cc    Sat May 14 03:08:11 1994
  663. --- libg++-2.6.1-amiga/libg++/etc/trie-gen/trie.cc    Fri Nov  4 13:54:47 1994
  664. ***************
  665. *** 69,73 ****
  666.         sort ();
  667.   
  668. !       fputs ("#include <string.h>\n#define MAX_ASCII 128\n\nstatic", stdout);
  669.         if (option[CONST])
  670.           fputs (" const", stdout);
  671. --- 69,73 ----
  672.         sort ();
  673.   
  674. !       fputs ("#include </gnu/include/string.h>\n#define MAX_ASCII 128\n\nstatic", stdout);
  675.         if (option[CONST])
  676.           fputs (" const", stdout);
  677. diff -2rcN libg++-2.6.1/libg++/old-stream/Filebuf.cc libg++-2.6.1-amiga/libg++/old-stream/Filebuf.cc
  678. *** libg++-2.6.1/libg++/old-stream/Filebuf.cc    Fri Jan 17 22:10:41 1992
  679. --- libg++-2.6.1-amiga/libg++/old-stream/Filebuf.cc    Fri Nov  4 13:55:49 1994
  680. ***************
  681. *** 3,326 ****
  682.       written by Doug Lea (dl@rocky.oswego.edu)
  683.   
  684. ! This file is part of the GNU C++ Library.  This library is free
  685. ! software; you can redistribute it and/or modify it under the terms of
  686. ! the GNU Library General Public License as published by the Free
  687. ! Software Foundation; either version 2 of the License, or (at your
  688. ! option) any later version.  This library is distributed in the hope
  689. ! that it will be useful, but WITHOUT ANY WARRANTY; without even the
  690. ! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  691. ! PURPOSE.  See the GNU Library General Public License for more details.
  692. ! You should have received a copy of the GNU Library General Public
  693. ! License along with this library; if not, write to the Free Software
  694. ! Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  695.   */
  696.   
  697.   #ifdef __GNUG__
  698.   #pragma implementation
  699.   #endif
  700. ! #include <Filebuf.h>
  701.   
  702.   #include <std.h>
  703.   #include <sys/file.h>           // needed to determine values of O_RDONLY...
  704. ! #ifndef _bufsiz
  705. ! #ifdef masscomp
  706. ! #ifdef _UCB
  707. ! #define _bufsiz(p) 4096
  708. ! #endif
  709. ! #else
  710. ! #define _bufsiz(p) ((p)->_bufsiz)
  711. ! #endif
  712. ! #endif
  713. ! #ifdef VMS
  714. ! #include <assert.h>
  715. ! #define FPOINT (*(Fp->fp))
  716. ! #undef _bufsiz
  717. ! #define _bufsiz(p) BUFSIZ    // we do not have this available
  718. ! #else
  719. ! #define FPOINT Fp->fp 
  720. ! #endif
  721. ! void Filebuf::init_streambuf_ptrs()
  722. ! {
  723. !   if (Fp->fp == 0 || FPOINT->_cnt == 0)
  724. !   {
  725. !     base = gptr = pptr = eptr = 0; // let first over/under flow deal with it
  726. !   }
  727. !   else
  728. !   {
  729. ! #ifdef VMS
  730. !     base = new char[BUFSIZ];
  731. !     alloc = 1;
  732. ! #else
  733. !     base = FPOINT->_base;
  734. ! #endif
  735. !     eptr = base - 1 + _bufsiz(Fp->fp);
  736. !     pptr = gptr = base;
  737. !   }
  738. ! }
  739.   
  740.   
  741. ! int Filebuf::is_open()
  742. ! {
  743. !   return (Fp != 0 && Fp->is_open());
  744. ! }
  745.   
  746.   
  747. ! streambuf* Filebuf::open(const char* name, io_mode m, access_mode a)
  748.   {
  749. !   if (Fp == 0)
  750. !     Fp = new File(name, m, a);
  751. !   else
  752. !     Fp->open(name, m, a);
  753. ! #ifndef VMS
  754. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  755. ! #endif
  756. !   init_streambuf_ptrs();
  757. !   return this;
  758.   }
  759.   
  760. ! streambuf* Filebuf::open(const char* name, const char* m)
  761.   {
  762. !   if (Fp == 0)
  763. !     Fp = new File(name, m);
  764. !   else
  765. !     Fp->open(name, m);
  766. ! #ifndef VMS
  767. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  768. ! #endif
  769. !   init_streambuf_ptrs();
  770. !   return this;
  771.   }
  772.   
  773. ! streambuf*  Filebuf::open(const char* name, open_mode m)
  774.   {
  775. !   switch(m)
  776.     {
  777. !   case input: return open(name, "r"); 
  778. !   case output: return open(name, "w");
  779. !   case append: return open(name, "a");
  780.     }
  781. - }
  782. - streambuf* Filebuf::open(int filedesc, io_mode m)
  783. - {
  784. -   if (Fp == 0)
  785. -     Fp = new File(filedesc, m);
  786. -   else
  787. -     Fp->open(filedesc, m);
  788. - #ifndef VMS
  789. -   if (base != 0) Fp->setbuf(eptr-base+1, base);
  790. - #endif
  791. -   init_streambuf_ptrs();
  792. -   return this;
  793. - }
  794. - streambuf* Filebuf::open(FILE* fileptr)
  795. - {
  796. -   if (Fp == 0)
  797. -     Fp = new File(fileptr);
  798.     else
  799. !     Fp->open(fileptr);
  800. ! #ifndef VMS
  801. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  802. ! #endif
  803. !   init_streambuf_ptrs();
  804. !   return this;
  805.   }
  806.   
  807. - Filebuf::Filebuf() : streambuf(), Fp(0) {}
  808. - Filebuf::Filebuf(const char* filename, io_mode m, access_mode a)
  809. -      : streambuf()
  810. - {
  811. -   Fp = new File(filename, m, a);
  812. -   init_streambuf_ptrs();
  813. - }
  814.   
  815. ! Filebuf::Filebuf(const char* filename, const char* m)
  816. !      : streambuf()
  817.   {
  818. !   Fp = new File(filename, m);
  819. !   init_streambuf_ptrs();
  820.   }
  821.   
  822. ! Filebuf::Filebuf(int filedesc, io_mode m)
  823. !      : streambuf()
  824.   {
  825. !   Fp = new File(filedesc, m);
  826. !   init_streambuf_ptrs();
  827.   }
  828.   
  829. ! Filebuf::Filebuf(FILE* fileptr)
  830. !      : streambuf()
  831.   {
  832. !   Fp = new File(fileptr);
  833. !   init_streambuf_ptrs();
  834.   }
  835.   
  836. ! int Filebuf::close()
  837.   {
  838. !   int was = Fp->is_open();
  839. !   if (was) { overflow(); Fp->close(); }
  840. ! #ifdef VMS
  841. !   if (was) {
  842. !     if(alloc && (base != 0)) {delete base; base=0; alloc = 0;};
  843. !     gptr=0;};
  844. ! #endif
  845. !   return was;
  846.   }
  847.   
  848. ! Filebuf::~Filebuf()
  849.   {
  850. !   if (Fp != 0)
  851.     {
  852. !     close();
  853. !     delete Fp;
  854.     }
  855.   }
  856.   
  857. ! #ifdef VMS
  858. ! /*
  859. !     VMS implementation notes:
  860. !  The underflow routine works fine as long as there is no mixing of input and
  861. !  output for the same stream.  If this were to happen, then great confusion
  862. !  would occur, since we maintain a seperate buffer for the case of output.
  863. !  the stream classes do not allow this as they are currently written, so for
  864. !  now we are OK.  VMS does not handle buffered output in quite the same way
  865. !  that UNIX does, so a seperate buffer is allocated, and used by the program.
  866. !  when it comes time to flush it we call write(...) to empty it.  The flush
  867. !  function under VMS does not flush the buffer unless it is full, and whatsmore
  868. !  the _iobuf is not 14 bytes long as one might suspect from the structure def,
  869. !  but at *least* 66 bytes long.  Some of these hidden structure elements need
  870. !  to be set for the output to work properly, and it seemed to be poor
  871. !  programming practice to fool with them
  872. ! */
  873. ! #endif
  874. ! /*
  875. !   The underflow and overflow methods sync the streambuf with the _iobuf
  876. !   ptrs on the way in and out of the read. I believe that this is
  877. !   done in a portable way.
  878. ! */
  879. ! int Filebuf::underflow()
  880.   {
  881. !   int ch;
  882. !   if (Fp == 0) return EOF;
  883. !   if (gptr == 0) // stdio _iobuf ptrs not initialized until after 1st read
  884. !   {
  885. ! #ifdef VMS
  886. !     assert(alloc==0);
  887. ! #endif
  888. !     ch = Fp->fill();
  889. !     base = FPOINT->_base;
  890. !     eptr = base - 1 + _bufsiz(Fp->fp);
  891. !   }
  892. !   else
  893. !   {
  894. !     FPOINT->_ptr = gptr;
  895. !     FPOINT->_cnt = eptr - gptr + 1;
  896. !     ch = Fp->fill();
  897. !   }
  898. !   gptr = base;
  899. !   *gptr = ch;
  900. !   if (ch == EOF)
  901. !     pptr = base;
  902. !   else
  903. !     pptr = base + FPOINT->_cnt + 1;
  904. !   if (Fp->good())
  905. !     return ch;
  906. !   else
  907. !   {
  908. !     Fp->clear();
  909. !     return EOF;
  910. !   }
  911. ! }
  912.   
  913. ! int Filebuf::overflow(int ch)
  914. ! {
  915. !   if (Fp == 0) return EOF;
  916. !   if (FPOINT->_flag & _IONBF)  // handle unbuffered IO specially
  917. !   {
  918. !     if (pptr == 0) // 1st write
  919. !     {
  920. !       if (ch == EOF)
  921. !         return 0;
  922. !       else
  923. !       {
  924. !         Fp->flush(ch);
  925. !       }
  926. !     }
  927. !     else
  928. !     {
  929. !       if (ch == EOF)
  930. !         Fp->flush();        // Probably not necessary
  931. !       else
  932. !         Fp->flush(ch);
  933. !     }
  934. !   }
  935. !   else
  936. !   {
  937. !     if (pptr == 0) // 1st write
  938. !     {
  939. !       if (ch == EOF)
  940. !         return 0;
  941. !       else
  942. !       {
  943. !         Fp->flush(ch);
  944. ! #ifdef VMS
  945. !         base = new char[BUFSIZ];
  946. !         alloc = 1;
  947. ! #else
  948. !         base = FPOINT->_base;
  949. ! #endif
  950. !         eptr = base - 1 + _bufsiz(Fp->fp);
  951. !         gptr = base;
  952. !       }
  953. !     }
  954. !     else
  955. !     {
  956. !       if (ch != EOF) *pptr++ = ch;
  957. ! #ifdef VMS
  958. !       if(gptr==base) write(FPOINT->_file,base,pptr-base);
  959. ! #else
  960. !       FPOINT->_ptr = pptr;
  961. !       FPOINT->_cnt = eptr - pptr + 1;
  962. ! #endif
  963. !       Fp->flush();
  964. !     }
  965. ! #ifdef VMS
  966. !     pptr = base;
  967. ! #else
  968. !     pptr = FPOINT->_ptr;
  969. ! #endif
  970. !   }
  971. !   if (Fp->fail() || Fp->bad())
  972.     {
  973. !     Fp->clear(); // this allows recovery from ostream level
  974. !     return EOF;
  975.     }
  976. !   else
  977. !     return 0;
  978. ! }
  979. ! const char* Filebuf::name()
  980. ! {
  981. !   return Fp->name();
  982. ! }
  983. ! streambuf* Filebuf::setbuf(char* buf, int buflen, int preload)
  984. ! {
  985. !   if (preload != 0) return 0; // cannot preload, sorry
  986. !   if (Fp != 0) Fp = new File;
  987. !   Fp->setbuf(buflen, buf);
  988. !   init_streambuf_ptrs();
  989. !   return (Fp->good())? this : 0;
  990.   }
  991.   
  992. ! void Filebuf::error()
  993.   {
  994. !   Fp->error();
  995.   }
  996. --- 3,137 ----
  997.       written by Doug Lea (dl@rocky.oswego.edu)
  998.   
  999. ! This file is part of GNU CC.
  1000. ! GNU CC is distributed in the hope that it will be useful,
  1001. ! but WITHOUT ANY WARRANTY.  No author or distributor
  1002. ! accepts responsibility to anyone for the consequences of using it
  1003. ! or for whether it serves any particular purpose or works at all,
  1004. ! unless he says so in writing.  Refer to the GNU CC General Public
  1005. ! License for full details.
  1006. ! Everyone is granted permission to copy, modify and redistribute
  1007. ! GNU CC, but only under the conditions described in the
  1008. ! GNU CC General Public License.   A copy of this license is
  1009. ! supposed to have been given to you along with GNU CC so you
  1010. ! can know your rights and responsibilities.  It should be in a
  1011. ! file named COPYING.  Among other things, the copyright notice
  1012. ! and this notice must be preserved on all copies.  
  1013.   */
  1014.   
  1015. + #if 1
  1016.   #ifdef __GNUG__
  1017.   #pragma implementation
  1018.   #endif
  1019. ! #endif
  1020.   
  1021.   #include <std.h>
  1022.   #include <sys/file.h>           // needed to determine values of O_RDONLY...
  1023. ! #include <filebuf.h>
  1024.   
  1025. + filebuf::filebuf() 
  1026. +      :streambuf(), fd(-1), opened(0) {}
  1027.   
  1028. ! filebuf::filebuf(int newfd) 
  1029. !      : streambuf(), fd(newfd), opened(1) {}
  1030.   
  1031. + filebuf::filebuf(int newfd, char* buf, int buflen)
  1032. +      : streambuf(buf, buflen), fd(newfd), opened(1) {}
  1033.   
  1034. ! int filebuf::is_open()
  1035.   {
  1036. !   return opened;
  1037.   }
  1038.   
  1039. ! int filebuf::close()
  1040.   {
  1041. !   int was = opened;
  1042. !   if (was) ::close(fd);
  1043. !   opened = 0;
  1044. !   return was;
  1045.   }
  1046.   
  1047. ! streambuf* filebuf::open(const char* name, open_mode m)
  1048.   {
  1049. !   if (opened) return 0;
  1050. !   int mode = -1; // any illegal value
  1051. !   switch (m)
  1052. !   {
  1053. !   case input: mode = O_RDONLY; 
  1054. !               break;
  1055. !   case output: mode = O_WRONLY | O_CREAT | O_TRUNC;
  1056. !               break;
  1057. !   case append: mode = O_APPEND | O_CREAT | O_WRONLY;
  1058. !               break;
  1059. !   }
  1060. !   fd = ::open(name, mode, 0666);
  1061. !   if (opened = (fd >= 0))
  1062.     {
  1063. !     allocate();
  1064. !     return this;
  1065.     }
  1066.     else
  1067. !     return 0;
  1068.   }
  1069.   
  1070.   
  1071. ! streambuf*  filebuf::open(const char* filename, io_mode m, access_mode a)
  1072.   {
  1073. !   return 0;
  1074.   }
  1075.   
  1076. ! streambuf* filebuf::open(const char* filename, const char* m)
  1077.   {
  1078. !   return 0;
  1079.   }
  1080.   
  1081. ! streambuf*  filebuf::open(int  filedesc, io_mode m)
  1082.   {
  1083. !   return 0;
  1084.   }
  1085.   
  1086. ! streambuf*  filebuf::open(FILE* fileptr)
  1087.   {
  1088. !   return 0;
  1089.   }
  1090.   
  1091. ! int filebuf::underflow()
  1092.   {
  1093. !   if (!opened) return EOF;
  1094. !   if (base == 0) allocate();
  1095. !   int nwanted = eptr - base + 1;
  1096. !   int nread = ::read(fd, base, nwanted);
  1097. !   if (nread >= 0)
  1098.     {
  1099. !     gptr = base;
  1100. !     pptr = base + nread;
  1101.     }
  1102. +   return (nread <= 0)? EOF : int(*gptr);
  1103.   }
  1104.   
  1105. ! int filebuf::overflow(int ch)
  1106.   {
  1107. !   if (!opened) return EOF;
  1108. !   if (base == 0) allocate();
  1109. !   if (ch != EOF)             // overflow *must* be called before really full
  1110. !     *pptr++ = (char)(ch);
  1111.   
  1112. !   // loop, in case write can't handle full request
  1113. !   // From: Rene' Seindal <seindal@diku.dk>
  1114. !   int w, n, t;
  1115. !   for (w = t = 0, n = pptr - base; n > 0; n -= w, t += w) 
  1116.     {
  1117. !     if ((w = ::write(fd, base + t, n)) < 0)
  1118. !       break;
  1119.     }
  1120. !  
  1121. !   pptr = base;
  1122. !   return (n == 0 && w >= 0)? 0 : EOF;
  1123.   }
  1124.   
  1125. ! filebuf::~filebuf()
  1126.   {
  1127. !   close();
  1128.   }
  1129. diff -2rcN libg++-2.6.1/libg++/old-stream/Makefile.in libg++-2.6.1-amiga/libg++/old-stream/Makefile.in
  1130. *** libg++-2.6.1/libg++/old-stream/Makefile.in    Mon Apr 19 08:36:54 1993
  1131. --- libg++-2.6.1-amiga/libg++/old-stream/Makefile.in    Fri Nov  4 13:55:59 1994
  1132. ***************
  1133. *** 11,15 ****
  1134.   
  1135.   USER_INCLUDES = File.h Filebuf.h Fmodes.h PlotFile.h SFile.h \
  1136. !   filebuf.h istream.h ostream.h stream.h streambuf.h
  1137.   
  1138.   # The following include files are private to the implementation.
  1139. --- 11,15 ----
  1140.   
  1141.   USER_INCLUDES = File.h Filebuf.h Fmodes.h PlotFile.h SFile.h \
  1142. !   _filebuf.h istream.h ostream.h stream.h streambuf.h
  1143.   
  1144.   # The following include files are private to the implementation.
  1145. diff -2rcN libg++-2.6.1/libg++/old-stream/istream.h libg++-2.6.1-amiga/libg++/old-stream/istream.h
  1146. *** libg++-2.6.1/libg++/old-stream/istream.h    Fri Jan 17 22:11:03 1992
  1147. --- libg++-2.6.1-amiga/libg++/old-stream/istream.h    Fri Nov  4 13:56:10 1994
  1148. ***************
  1149. *** 30,34 ****
  1150.   #include <File.h>
  1151.   #include <streambuf.h>
  1152. ! #include <filebuf.h>
  1153.   #include <Filebuf.h>
  1154.   
  1155. --- 30,34 ----
  1156.   #include <File.h>
  1157.   #include <streambuf.h>
  1158. ! #include <_filebuf.h>    /* Avoid name clash; Filebuf.h <==> filebuf.h */
  1159.   #include <Filebuf.h>
  1160.   
  1161. diff -2rcN libg++-2.6.1/libg++/old-stream/ostream.h libg++-2.6.1-amiga/libg++/old-stream/ostream.h
  1162. *** libg++-2.6.1/libg++/old-stream/ostream.h    Fri Jan 17 22:11:08 1992
  1163. --- libg++-2.6.1-amiga/libg++/old-stream/ostream.h    Fri Nov  4 13:57:47 1994
  1164. ***************
  1165. *** 33,37 ****
  1166.   #include <File.h>
  1167.   #include <streambuf.h>
  1168. ! #include <filebuf.h>
  1169.   #include <Filebuf.h>
  1170.   
  1171. --- 33,37 ----
  1172.   #include <File.h>
  1173.   #include <streambuf.h>
  1174. ! #include <_filebuf.h>    /* Avoid name clash; Filebuf.h <==> filebuf.h */
  1175.   #include <Filebuf.h>
  1176.   
  1177. diff -2rcN libg++-2.6.1/libg++/proto-kit/Makefile libg++-2.6.1-amiga/libg++/proto-kit/Makefile
  1178. *** libg++-2.6.1/libg++/proto-kit/Makefile    Fri Jun 28 22:24:19 1991
  1179. --- libg++-2.6.1-amiga/libg++/proto-kit/Makefile    Fri Nov  4 13:58:04 1994
  1180. ***************
  1181. *** 71,75 ****
  1182.   
  1183.   # GNU directories
  1184. ! GNULIBDIR := $(BASE)/usr/local/lib
  1185.   GNUIDIR := $(GNULIBDIR)/g++-include
  1186.   
  1187. --- 71,75 ----
  1188.   
  1189.   # GNU directories
  1190. ! GNULIBDIR := /gnu/lib
  1191.   GNUIDIR := $(GNULIBDIR)/g++-include
  1192.   
  1193. diff -2rcN libg++-2.6.1/libg++/proto-kit/Makefile.new libg++-2.6.1-amiga/libg++/proto-kit/Makefile.new
  1194. *** libg++-2.6.1/libg++/proto-kit/Makefile.new    Tue Jul 30 18:19:13 1991
  1195. --- libg++-2.6.1-amiga/libg++/proto-kit/Makefile.new    Fri Nov  4 13:58:22 1994
  1196. ***************
  1197. *** 71,75 ****
  1198.   
  1199.   # GNU directories
  1200. ! GNULIBDIR := $(BASE)/usr/local/lib
  1201.   GNUIDIR := $(GNULIBDIR)/g++-include
  1202.   
  1203. --- 71,75 ----
  1204.   
  1205.   # GNU directories
  1206. ! GNULIBDIR := /gnu/lib
  1207.   GNUIDIR := $(GNULIBDIR)/g++-include
  1208.   
  1209. diff -2rcN libg++-2.6.1/libg++/proto-kit/hierarchy libg++-2.6.1-amiga/libg++/proto-kit/hierarchy
  1210. *** libg++-2.6.1/libg++/proto-kit/hierarchy    Fri Jun 28 22:24:37 1991
  1211. --- libg++-2.6.1-amiga/libg++/proto-kit/hierarchy    Fri Nov  4 13:58:33 1994
  1212. ***************
  1213. *** 1,3 ****
  1214. ! #!/usr/local/bin/gawk -f
  1215.   #**************************************************************************************
  1216.   #
  1217. --- 1,3 ----
  1218. ! #! /gnu/bin/gawk -f
  1219.   #**************************************************************************************
  1220.   #
  1221. diff -2rcN libg++-2.6.1/libg++/proto-kit/prototype libg++-2.6.1-amiga/libg++/proto-kit/prototype
  1222. *** libg++-2.6.1/libg++/proto-kit/prototype    Fri Jun 28 22:24:51 1991
  1223. --- libg++-2.6.1-amiga/libg++/proto-kit/prototype    Fri Nov  4 13:58:44 1994
  1224. ***************
  1225. *** 1,3 ****
  1226. ! #!/usr/local/bin/gawk -f
  1227.   #
  1228.   # types: types[x] = 1 for each type 'x' we have completed.  'x' has separators
  1229. --- 1,3 ----
  1230. ! #! /gnu/bin/gawk -f
  1231.   #
  1232.   # types: types[x] = 1 for each type 'x' we have completed.  'x' has separators
  1233. diff -2rcN libg++-2.6.1/libg++/src/BitSet.cc libg++-2.6.1-amiga/libg++/src/BitSet.cc
  1234. *** libg++-2.6.1/libg++/src/BitSet.cc    Wed May 11 08:53:49 1994
  1235. --- libg++-2.6.1-amiga/libg++/src/BitSet.cc    Fri Nov  4 13:58:59 1994
  1236. ***************
  1237. *** 30,34 ****
  1238.   #include <new.h>
  1239.   #include <builtin.h>
  1240. ! #include <string.h>
  1241.   #include <strstream.h>
  1242.   
  1243. --- 30,34 ----
  1244.   #include <new.h>
  1245.   #include <builtin.h>
  1246. ! #include </gnu/include/string.h>    /* Avoid getting String.h */
  1247.   #include <strstream.h>
  1248.   
  1249. diff -2rcN libg++-2.6.1/libg++/tests/test_h.cc libg++-2.6.1-amiga/libg++/tests/test_h.cc
  1250. *** libg++-2.6.1/libg++/tests/test_h.cc    Fri Oct 14 23:05:46 1994
  1251. --- libg++-2.6.1-amiga/libg++/tests/test_h.cc    Fri Nov  4 14:20:21 1994
  1252. ***************
  1253. *** 68,72 ****
  1254.   #include <libc.h>
  1255.   #include <compare.h>
  1256. ! #include <complex.h>
  1257.   #include <ctype.h>
  1258.   #include <errno.h>
  1259. --- 68,72 ----
  1260.   #include <libc.h>
  1261.   #include <compare.h>
  1262. ! #include <_complex.h>    /* Avoid name clash; Complex.h <==> complex.h */
  1263.   #include <ctype.h>
  1264.   #include <errno.h>
  1265. ***************
  1266. *** 88,92 ****
  1267.   #include <stdlib.h>
  1268.   #include <strclass.h>
  1269. ! #include <string.h>
  1270.   #include <swap.h>
  1271.   #include <unistd.h>
  1272. --- 88,92 ----
  1273.   #include <stdlib.h>
  1274.   #include <strclass.h>
  1275. ! #include </gnu/include/string.h>    /* Avoid getting String.h */
  1276.   #include <swap.h>
  1277.   #include <unistd.h>
  1278. diff -2rcN libg++-2.6.1/libiberty/Makefile.in libg++-2.6.1-amiga/libiberty/Makefile.in
  1279. *** libg++-2.6.1/libiberty/Makefile.in    Wed Oct 12 00:50:08 1994
  1280. --- libg++-2.6.1-amiga/libiberty/Makefile.in    Fri Nov  4 14:21:29 1994
  1281. ***************
  1282. *** 29,33 ****
  1283.   srcdir = .
  1284.   
  1285. ! prefix = /usr/local
  1286.   
  1287.   exec_prefix = $(prefix)
  1288. --- 29,33 ----
  1289.   srcdir = .
  1290.   
  1291. ! prefix = /gnu
  1292.   
  1293.   exec_prefix = $(prefix)
  1294. ***************
  1295. *** 62,66 ****
  1296.   
  1297.   ERRORS_CC = $(CC)
  1298. ! CFLAGS = -g
  1299.   BISON = bison
  1300.   MAKEINFO = makeinfo
  1301. --- 62,66 ----
  1302.   
  1303.   ERRORS_CC = $(CC)
  1304. ! CFLAGS = -O
  1305.   BISON = bison
  1306.   MAKEINFO = makeinfo
  1307. ***************
  1308. *** 107,111 ****
  1309.   check installcheck:
  1310.   
  1311.   #### Host, target, and site specific Makefile fragments come in here.
  1312.   ###
  1313. --- 107,111 ----
  1314.   check installcheck:
  1315.   
  1316. ! CC=gcc
  1317.   #### Host, target, and site specific Makefile fragments come in here.
  1318.   ###
  1319. diff -2rcN libg++-2.6.1/libio/config.shared libg++-2.6.1-amiga/libio/config.shared
  1320. *** libg++-2.6.1/libio/config.shared    Thu Oct  6 00:02:35 1994
  1321. --- libg++-2.6.1-amiga/libio/config.shared    Fri Nov  4 14:22:23 1994
  1322. ***************
  1323. *** 41,45 ****
  1324.   echo "SUBDIRS = ${SUBDIRS}"
  1325.   
  1326. ! echo "prefix = ${prefix-/usr/local}"
  1327.   echo "exec_prefix = ${exec_prefix-'${prefix}'}"
  1328.   
  1329. --- 41,45 ----
  1330.   echo "SUBDIRS = ${SUBDIRS}"
  1331.   
  1332. ! echo "prefix = ${prefix-/gnu}"
  1333.   echo "exec_prefix = ${exec_prefix-'${prefix}'}"
  1334.   
  1335. ***************
  1336. *** 98,102 ****
  1337.   echo 'CC = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1338.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1339. ! echo '    else echo cc ; fi`'
  1340.   echo 'CXX = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1341.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1342. --- 98,102 ----
  1343.   echo 'CC = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1344.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1345. ! echo '    else echo gcc ; fi`'
  1346.   echo 'CXX = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1347.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1348. ***************
  1349. *** 109,114 ****
  1350.     echo 'WRAP_C_INCLUDES = -I$(srcdir)'/${TOLIBGXX}g++-include
  1351.   fi
  1352. ! echo 'CFLAGS = -g'
  1353. ! echo 'CXXFLAGS = -g -O'
  1354.   
  1355.   if test "${DOING_LIBGXX}" = "true" ; then
  1356. --- 109,114 ----
  1357.     echo 'WRAP_C_INCLUDES = -I$(srcdir)'/${TOLIBGXX}g++-include
  1358.   fi
  1359. ! echo 'CFLAGS = -O'
  1360. ! echo 'CXXFLAGS = -O'
  1361.   
  1362.   if test "${DOING_LIBGXX}" = "true" ; then
  1363. diff -2rcN libg++-2.6.1/libio/dbz/Makefile.in libg++-2.6.1-amiga/libio/dbz/Makefile.in
  1364. *** libg++-2.6.1/libio/dbz/Makefile.in    Thu Jun 30 16:50:28 1994
  1365. --- libg++-2.6.1-amiga/libio/dbz/Makefile.in    Fri Nov  4 14:22:35 1994
  1366. ***************
  1367. *** 1,4 ****
  1368.   srcdir = .
  1369. ! CFLAGS = -g
  1370.   C_FLAGS = $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/.. -DDBZ_FINISH='_IO_flush_all()'
  1371.   CC = `if [ -f ../../../gcc/gcc ] ; \
  1372. --- 1,4 ----
  1373.   srcdir = .
  1374. ! CFLAGS = -O2
  1375.   C_FLAGS = $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/.. -DDBZ_FINISH='_IO_flush_all()'
  1376.   CC = `if [ -f ../../../gcc/gcc ] ; \
  1377. ***************
  1378. *** 118,121 ****
  1379. --- 118,122 ----
  1380.       chmod -w xx
  1381.       ./rdbz -E 1000 -0 -M -i -S -u -U -C xx dbase
  1382. +     sleep 5  # Give lock time to go away (AmigaDOS hack)
  1383.       rmdir xx
  1384.       sed '/>    0/d' $(RHIST) >dbase.used
  1385. diff -2rcN libg++-2.6.1/libio/gen-params libg++-2.6.1-amiga/libio/gen-params
  1386. *** libg++-2.6.1/libio/gen-params    Wed Oct 19 21:27:23 1994
  1387. --- libg++-2.6.1-amiga/libio/gen-params    Fri Nov  4 14:22:47 1994
  1388. ***************
  1389. *** 51,55 ****
  1390.   CC=${CC-`if [ -f ${gccdir}/xgcc ] ; \
  1391.       then echo ${gccdir}/xgcc -B${gccdir}/ ; \
  1392. !     else echo cc ; fi`}
  1393.   CXX=${CXX-`if [ -f ${gccdir}/xgcc ] ; \
  1394.       then echo ${gccdir}/xgcc -B${gccdir}/ ; \
  1395. --- 51,55 ----
  1396.   CC=${CC-`if [ -f ${gccdir}/xgcc ] ; \
  1397.       then echo ${gccdir}/xgcc -B${gccdir}/ ; \
  1398. !     else echo gcc ; fi`}
  1399.   CXX=${CXX-`if [ -f ${gccdir}/xgcc ] ; \
  1400.       then echo ${gccdir}/xgcc -B${gccdir}/ ; \
  1401. diff -2rcN libg++-2.6.1/libio/tests/Makefile.in libg++-2.6.1-amiga/libio/tests/Makefile.in
  1402. *** libg++-2.6.1/libio/tests/Makefile.in    Wed Aug 31 21:59:40 1994
  1403. --- libg++-2.6.1-amiga/libio/tests/Makefile.in    Fri Nov  4 14:23:38 1994
  1404. ***************
  1405. *** 18,24 ****
  1406.   srcdir = .
  1407.   
  1408. ! CFLAGS = -g
  1409.   C_FLAGS = $(CFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
  1410. ! CXXFLAGS = -g
  1411.   CC = gcc
  1412.   CXX = gcc
  1413. --- 18,24 ----
  1414.   srcdir = .
  1415.   
  1416. ! CFLAGS = -O
  1417.   C_FLAGS = $(CFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
  1418. ! CXXFLAGS = -O
  1419.   CC = gcc
  1420.   CXX = gcc
  1421. ***************
  1422. *** 162,166 ****
  1423.   
  1424.   check-tfformat: tfformat
  1425. !     ./tfformat
  1426.   
  1427.   tiformat: $(srcdir)/tiformat.c
  1428. --- 162,166 ----
  1429.   
  1430.   check-tfformat: tfformat
  1431. !     -./tfformat
  1432.   
  1433.   tiformat: $(srcdir)/tiformat.c
  1434.