*** ./src/Makefile.in.ORIG	Fri Jul  1 23:19:59 2011
--- ./src/Makefile.in	Fri Jul  1 23:20:20 2011
***************
*** 448,454 ****
  rrdcgi_SOURCES = rrd_cgi.c
  rrdcgi_LDADD = librrd.la
  rrdupdate_SOURCES = rrdupdate.c
! rrdupdate_LDADD = librrdupd.la
  rrdtool_SOURCES = rrd_tool.c
  rrdtool_DEPENDENCIES = librrd.la
  rrdtool_LDADD = librrd.la
--- 448,454 ----
  rrdcgi_SOURCES = rrd_cgi.c
  rrdcgi_LDADD = librrd.la
  rrdupdate_SOURCES = rrdupdate.c
! rrdupdate_LDADD = librrdupd.la -lintl -lpthread
  rrdtool_SOURCES = rrd_tool.c
  rrdtool_DEPENDENCIES = librrd.la
  rrdtool_LDADD = librrd.la
*** ./src/pngsize.c.ORIG	Fri Jul  1 22:56:47 2011
--- ./src/pngsize.c	Fri Jul  1 22:57:20 2011
***************
*** 27,41 ****
  /* this is to make compile on aix work since they seem to define jmpbuf
     to be _jmpbuf which breaks compilation */
  
- #ifndef png_jmpbuf
- #ifdef PNG_SETJMP_SUPPORTED
- #  define png_jmpbuf(png_ptr)   ((png_ptr)->PNG_jmpbuf)
- #else
  #ifdef jmpbuf
  #undef jmpbuf
  #endif
  #  define png_jmpbuf(png_ptr)   ((png_ptr)->jmpbuf)
- #endif
  #endif
  
      if (setjmp(png_jmpbuf(png_read_ptr))) {
--- 27,38 ----
  /* this is to make compile on aix work since they seem to define jmpbuf
     to be _jmpbuf which breaks compilation */
  
  #ifdef jmpbuf
  #undef jmpbuf
  #endif
+ 
+ #ifndef png_jmpbuf
  #  define png_jmpbuf(png_ptr)   ((png_ptr)->jmpbuf)
  #endif
  
      if (setjmp(png_jmpbuf(png_read_ptr))) {
*** ./bindings/tcl/Makefile.in.ORIG	Sat Jul  2 21:56:31 2011
--- ./bindings/tcl/Makefile.in	Sat Jul  2 21:56:42 2011
***************
*** 664,670 ****
  all-local: $(TCL_RRD_LIB)
  
  $(TCL_RRD_LIB): tclrrd.o
! 	$(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS)
  
  tclrrd.o: tclrrd.c
  	$(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) -c tclrrd.c -DVERSION=\"$(VERSION)\"
--- 664,670 ----
  all-local: $(TCL_RRD_LIB)
  
  $(TCL_RRD_LIB): tclrrd.o
! 	$(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS) -lc
  
  tclrrd.o: tclrrd.c
  	$(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) -c tclrrd.c -DVERSION=\"$(VERSION)\"
*** ./configure.ORIG	Mon Feb  6 22:07:49 2012
--- ./configure	Mon Feb  6 22:08:05 2012
***************
*** 13943,13950 ****
  
  
  
! eval `./libtool --config | grep pic_flag=`
! CFLAGS="$CFLAGS $pic_flag"
  
  
  
--- 13943,13950 ----
  
  
  
! ###eval `./libtool --config | grep pic_flag=`
! ###CFLAGS="$CFLAGS $pic_flag"
  
  
  
*** ./bindings/perl-shared/Makefile.PL.ORIG	Fri Apr 24 22:55:03 2015
--- ./bindings/perl-shared/Makefile.PL	Fri Apr 24 22:56:01 2015
***************
*** 64,69 ****
--- 64,70 ----
  		'INC'          => "-I${TOP_BUILDDIR}/src -I${TOP_SRCDIR}/src",
  		# Perl will figure out which one is valid
  		#'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
+ 		'dynamic_lib'  => {'OTHERLDFLAGS' => "-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000"},
  		'depend'       => {'RRDs.c' => "${TOP_BUILDDIR}/src/librrd.la"},
  		'LDFROM'       => '$(OBJECT) '.$librrd, 
  		'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' },
*** ./src/rrd_graph.c.ORIG	Tue Feb  2 16:40:41 2016
--- ./src/rrd_graph.c	Tue Feb  2 16:43:29 2016
***************
*** 1658,1663 ****
--- 1658,1671 ----
          *d++ = (chr); \
  } while(0);
  
+ #ifndef SIZE_MAX
+ #if (__64BIT__)
+ #define SIZE_MAX        UINT64_MAX
+ #else
+ #define SIZE_MAX        UINT32_MAX
+ #endif
+ #endif
+ 
  #define STORPF(valArg) do { \
      double pval = trunc((valArg) * pow(10.0, precision)) / pow(10.0, precision); \
      char *tmpfmt; \
***************
*** 1762,1767 ****
--- 1770,1791 ----
  #undef STORC
  #undef STORPF
  }
+ 
+ #ifndef LLONG_MIN
+ #if defined(__64BIT__)
+ #define LLONG_MIN       (-9223372036854775807LL - 1LL)
+ #else
+ #define LLONG_MIN       LONG_MIN
+ #endif
+ #endif
+ 
+ #ifndef LLONG_MAX
+ #if defined(__64BIT__)
+ #define LLONG_MAX       (9223372036854775807LL)
+ #else
+ #define LLONG_MAX       LONG_MAX
+ #endif
+ #endif
  
  static int timestamp_to_tm(struct tm *tm, double timestamp)
  {
There are no differences between the files.
*** ./src/rrd_config_bottom.h.ORIG	Tue Feb  2 19:53:25 2016
--- ./src/rrd_config_bottom.h	Tue Feb  2 19:54:35 2016
***************
*** 184,189 ****
--- 184,198 ----
  # define round rint
  #endif
  
+ /* for AIX 5.1 */
+ #ifndef round
+ #if defined(_AIX) && !defined(_AIX52)
+ double round(double x){
+   return (x >= 0) ? floor(x+0.5) : ceil(x-0.5);
+   }
+ #endif
+ #endif
+ 
  /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
  #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
  #  undef isnan
