Index: trunk/psLib/src/dataManip/Makefile
===================================================================
--- trunk/psLib/src/dataManip/Makefile	(revision 3097)
+++ trunk/psLib/src/dataManip/Makefile	(revision 3115)
@@ -1,69 +1,506 @@
-ifndef prefix
-    export prefix=$(shell cd ../..;pwd)
-endif
-
-TARGET_STATIC  = libpslib.a
-include ../Makefile.Globals
-CFLAGS := $(CFLAGS_RELOC) -I. -I../sysUtils -I../collections -I.. -I../image -I..
-
-SRC_OBJS = psStats.o  \
-           psFunctions.o \
-           psMatrix.o \
-           psMatrixVectorArithmetic.o \
-           psVectorFFT.o \
-           psMinimize.o \
-           psRandom.o \
- 
-OBJS = $(addprefix makedir/,$(SRC_OBJS))
- 
-HEADERS = $(SRC_OBJS:.o=.h)
-         
-all: $(TARGET_STATIC)
+# Makefile.in generated by automake 1.9.1 from Makefile.am.
+# src/dataManip/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+
+SOURCES = $(libpslibdataManip_la_SOURCES)
+
+srcdir = .
+top_srcdir = ../..
+
+pkgdatadir = $(datadir)/pslib
+pkglibdir = $(libdir)/pslib
+pkgincludedir = $(includedir)/pslib
+top_builddir = ../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = /usr/bin/install -c
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/dataManip
+DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \
+	$(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(noinst_LTLIBRARIES)
+libpslibdataManip_la_LIBADD =
+am_libpslibdataManip_la_OBJECTS = psStats.lo psFunctions.lo \
+	psMatrix.lo psMatrixVectorArithmetic.lo psVectorFFT.lo \
+	psMinimize.lo psRandom.lo
+libpslibdataManip_la_OBJECTS = $(am_libpslibdataManip_la_OBJECTS)
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+	$(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(libpslibdataManip_la_SOURCES)
+DIST_SOURCES = $(libpslibdataManip_la_SOURCES)
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(pslibincludedir)"
+pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER)
+HEADERS = $(pslibinclude_HEADERS)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9
+AMDEP_FALSE = #
+AMDEP_TRUE = 
+AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar
+AR = ar
+AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9
+AWK = gawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE   -I/usr/include -I/usr/include/libxml2
+CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO = echo
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = grep -E
+EXEEXT = 
+F77 = g77
+FFLAGS = -fno-second-underscore -O -fno-f2c
+GSL_CONFIG = /usr/bin/gsl-config
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LDFLAGS = 
+LIBOBJS = 
+LIBS = 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo
+OBJEXT = o
+PACKAGE = pslib
+PACKAGE_BUGREPORT = 
+PACKAGE_NAME = 
+PACKAGE_STRING = 
+PACKAGE_TARNAME = 
+PACKAGE_VERSION = 
+PATH_SEPARATOR = :
+PERL = /usr/bin/perl
+PSLIB_CFLAGS = -I${prefix}/include
+PSLIB_LIBS = -L${exec_prefix}/lib -lpslib   -lcfitsio  -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm
+RANLIB = ranlib
+SET_MAKE = 
+SHELL = /bin/sh
+STRIP = strip
+SWIG = /usr/bin/swig
+VERSION = 1.5
+XML_CONFIG = /usr/bin/xml2-config
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_F77 = g77
+ac_ct_RANLIB = ranlib
+ac_ct_STRIP = strip
+am__fastdepCC_FALSE = #
+am__fastdepCC_TRUE = 
+am__fastdepCXX_FALSE = #
+am__fastdepCXX_TRUE = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = ${AMTAR} chof - "$$tardir"
+am__untar = ${AMTAR} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+datadir = ${prefix}/share
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+includedir = ${prefix}/include
+infodir = ${prefix}/info
+install_sh = /home/desonia/panstarrs/psLib/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localstatedir = ${prefix}/var
+mandir = ${prefix}/man
+mkdir_p = mkdir -p --
+oldincludedir = /usr/include
+prefix = /home/desonia/panstarrs/psLib
+program_transform_name = s,x,x,
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+sysconfdir = ${prefix}/etc
+target_alias = 
+
+#Makefile for dataManip functions of psLib
+#
+INCLUDES = \
+	-I$(top_srcdir)/src/astronomy \
+	-I$(top_srcdir)/src/collections \
+	-I$(top_srcdir)/src/fileUtils \
+	-I$(top_srcdir)/src/image \
+	-I$(top_srcdir)/src/sysUtils \
+	$(all_includes)
+
+noinst_LTLIBRARIES = libpslibdataManip.la
+libpslibdataManip_la_SOURCES = \
+	psStats.c  \
+	psFunctions.c \
+	psMatrix.c \
+	psMatrixVectorArithmetic.c \
+	psVectorFFT.c \
+	psMinimize.c \
+	psRandom.c 
+
+BUILT_SOURCES = psDataManipErrors.h
+EXTRA_DIST = psDataManipErrors.dat psDataManipErrors.h
+pslibincludedir = $(includedir)/pslib
+pslibinclude_HEADERS = \
+	psConstants.h \
+	psStats.h  \
+	psFunctions.h \
+	psMatrix.h \
+	psMatrixVectorArithmetic.h \
+	psVectorFFT.h \
+	psMinimize.h \
+	psRandom.h
+
+all: $(BUILT_SOURCES)
+	$(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/dataManip/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  src/dataManip/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+clean-noinstLTLIBRARIES:
+	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+	  test "$$dir" != "$$p" || dir=.; \
+	  echo "rm -f \"$${dir}/so_locations\""; \
+	  rm -f "$${dir}/so_locations"; \
+	done
+libpslibdataManip.la: $(libpslibdataManip_la_OBJECTS) $(libpslibdataManip_la_DEPENDENCIES) 
+	$(LINK)  $(libpslibdataManip_la_LDFLAGS) $(libpslibdataManip_la_OBJECTS) $(libpslibdataManip_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT)
+
+distclean-compile:
+	-rm -f *.tab.c
+
+include ./$(DEPDIR)/psFunctions.Plo
+include ./$(DEPDIR)/psMatrix.Plo
+include ./$(DEPDIR)/psMatrixVectorArithmetic.Plo
+include ./$(DEPDIR)/psMinimize.Plo
+include ./$(DEPDIR)/psRandom.Plo
+include ./$(DEPDIR)/psStats.Plo
+include ./$(DEPDIR)/psVectorFFT.Plo
+
+.c.o:
+	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+#	source='$<' object='$@' libtool=no \
+#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+#	$(COMPILE) -c $<
+
+.c.obj:
+	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+#	source='$<' object='$@' libtool=no \
+#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+#	$(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+#	source='$<' object='$@' libtool=yes \
+#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+#	$(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+install-pslibincludeHEADERS: $(pslibinclude_HEADERS)
+	@$(NORMAL_INSTALL)
+	test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)"
+	@list='$(pslibinclude_HEADERS)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \
+	  $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \
+	done
+
+uninstall-pslibincludeHEADERS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(pslibinclude_HEADERS)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \
+	done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	mkid -fID $$unique
+tags: TAGS
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+	  test -n "$$unique" || unique=$$empty_fix; \
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	    $$tags $$unique; \
+	fi
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$tags $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkdir_p) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: $(BUILT_SOURCES)
+	$(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+installdirs:
+	for dir in "$(DESTDIR)$(pslibincludedir)"; do \
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
+	done
+install: $(BUILT_SOURCES)
+	$(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
+	mostlyclean-am
+
+distclean: distclean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+	distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pslibincludeHEADERS
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+	mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+	clean-libtool clean-noinstLTLIBRARIES ctags distclean \
+	distclean-compile distclean-generic distclean-libtool \
+	distclean-tags distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-exec \
+	install-exec-am install-info install-info-am install-man \
+	install-pslibincludeHEADERS install-strip installcheck \
+	installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags uninstall uninstall-am uninstall-info-am \
+	uninstall-pslibincludeHEADERS
+
 
 psDataManipErrors.h: psDataManipErrors.dat
-	perl ../parseErrorCodes.pl --data=$? $@
-
-# force the creation of a psImage.i for psImage.o (to expand macros).
-psMatrixVectorArithmetic.o: psMatrixVectorArithmetic.i
-
-# Rule to make static library
-
-libpslib.a:     $(OBJS)
-# The ar option -r is to add/replace object and -s is to create
-# a symbol table in the archive
-	$(AR) rcs ../$@ $(OBJS)
-
-# Define PHONY target "install" which will install necessary files
-# XXX: Do the psConstants.h install.
-install: $(TARGET_STATIC)
-	install $(HEADERS) $(includedir)
-	install psConstants.h $(includedir)
-
-
-# Define PHONY target "distclean" which will cleanup the distribution
-distclean:      clean
-	$(RM) ../$(TARGET_STATIC)
-
-# Define PHONY target "clean" which will cleanup the development area
-clean:
-	@echo "    Deleting intermediate files for 'sysUtils'"
-	$(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i)
-
-cleandep:
-	$(RM) $(OBJS:.o=.d)
-
-%.lint: %.c
-	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
-
-%.i: %.c
-	$(CC) -E $(CFLAGS) -o $@ $<
-
-makedir/%.o: %.c
-	$(CC) -c $(CFLAGS) -o $@ $<
-
-makedir/%.d: %.c
-	$(CC) -MM $(CFLAGS) $< > $@.tmp
-	sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@
-	$(RM) -f $@.tmp
-
-include $(OBJS:.o=.d)
+	perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
Index: trunk/psLib/src/dataManip/Makefile.am
===================================================================
--- trunk/psLib/src/dataManip/Makefile.am	(revision 3115)
+++ trunk/psLib/src/dataManip/Makefile.am	(revision 3115)
@@ -0,0 +1,38 @@
+#Makefile for dataManip functions of psLib
+#
+INCLUDES = \
+	-I$(top_srcdir)/src/astronomy \
+	-I$(top_srcdir)/src/collections \
+	-I$(top_srcdir)/src/fileUtils \
+	-I$(top_srcdir)/src/image \
+	-I$(top_srcdir)/src/sysUtils \
+	$(all_includes)
+
+noinst_LTLIBRARIES = libpslibdataManip.la
+
+libpslibdataManip_la_SOURCES = \
+	psStats.c  \
+	psFunctions.c \
+	psMatrix.c \
+	psMatrixVectorArithmetic.c \
+	psVectorFFT.c \
+	psMinimize.c \
+	psRandom.c 
+	   
+BUILT_SOURCES = psDataManipErrors.h
+EXTRA_DIST = psDataManipErrors.dat psDataManipErrors.h
+
+psDataManipErrors.h: psDataManipErrors.dat
+	perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@
+
+pslibincludedir = $(includedir)/pslib
+pslibinclude_HEADERS = \
+	psConstants.h \
+	psStats.h  \
+	psFunctions.h \
+	psMatrix.h \
+	psMatrixVectorArithmetic.h \
+	psVectorFFT.h \
+	psMinimize.h \
+	psRandom.h
+ 
Index: trunk/psLib/src/dataManip/psDataManipErrors.h
===================================================================
--- trunk/psLib/src/dataManip/psDataManipErrors.h	(revision 3097)
+++ trunk/psLib/src/dataManip/psDataManipErrors.h	(revision 3115)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-15 01:15:09 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -26,6 +26,4 @@
  * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
  */
-
-#define PS_ERRORNAME_DOMAIN "psLib.dataManip."
 
 //~Start #define PS_ERRORTEXT_$1 "$2"
Index: trunk/psLib/src/dataManip/psFunctions.c
===================================================================
--- trunk/psLib/src/dataManip/psFunctions.c	(revision 3097)
+++ trunk/psLib/src/dataManip/psFunctions.c	(revision 3115)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.85 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-26 20:47:41 $
+ *  @version $Revision: 1.86 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1202,6 +1202,6 @@
     PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F32, NULL);
 
-    psVector *tmp;
-    psVector *myX;
+    psVector *tmp = NULL;
+    psVector *myX = NULL;
     psS32 i;
 
@@ -1244,7 +1244,7 @@
     PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F32, NULL);
 
-    psVector *tmp;
-    psVector *myX;
-    psVector *myY;
+    psVector *tmp = NULL;
+    psVector *myX = NULL;
+    psVector *myY = NULL;
     psS32 i;
     psS32 vecLen=x->n;
@@ -1302,8 +1302,8 @@
     PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL);
 
-    psVector *tmp;
-    psVector *myX;
-    psVector *myY;
-    psVector *myZ;
+    psVector *tmp = NULL;
+    psVector *myX = NULL;
+    psVector *myY = NULL;
+    psVector *myZ = NULL;
     psS32 i;
     psS32 vecLen=x->n;
@@ -1370,9 +1370,9 @@
     PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL);
 
-    psVector *tmp;
-    psVector *myW;
-    psVector *myX;
-    psVector *myY;
-    psVector *myZ;
+    psVector *tmp = NULL;
+    psVector *myW = NULL;
+    psVector *myX = NULL;
+    psVector *myY = NULL;
+    psVector *myZ = NULL;
     psS32 i;
     psS32 vecLen=x->n;
@@ -1603,6 +1603,6 @@
     PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F64, NULL);
 
-    psVector *tmp;
-    psVector *myX;
+    psVector *tmp = NULL;
+    psVector *myX = NULL;
     psS32 i;
 
@@ -1648,7 +1648,7 @@
     PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F64, NULL);
 
-    psVector *tmp;
-    psVector *myX;
-    psVector *myY;
+    psVector *tmp = NULL;
+    psVector *myX = NULL;
+    psVector *myY = NULL;
     psS32 i;
     psS32 vecLen=x->n;
@@ -1710,8 +1710,8 @@
     PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL);
 
-    psVector *tmp;
-    psVector *myX;
-    psVector *myY;
-    psVector *myZ;
+    psVector *tmp = NULL;
+    psVector *myX = NULL;
+    psVector *myY = NULL;
+    psVector *myZ = NULL;
     psS32 i;
     psS32 vecLen=x->n;
@@ -1782,9 +1782,9 @@
     PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL);
 
-    psVector *tmp;
-    psVector *myW;
-    psVector *myX;
-    psVector *myY;
-    psVector *myZ;
+    psVector *tmp = NULL;
+    psVector *myW = NULL;
+    psVector *myX = NULL;
+    psVector *myY = NULL;
+    psVector *myZ = NULL;
     psS32 i;
     psS32 vecLen=x->n;
Index: trunk/psLib/src/dataManip/psFunctions.h
===================================================================
--- trunk/psLib/src/dataManip/psFunctions.h	(revision 3097)
+++ trunk/psLib/src/dataManip/psFunctions.h	(revision 3115)
@@ -12,6 +12,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-01-26 20:41:04 $
+*  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-02-03 00:54:10 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -429,6 +429,6 @@
 
 psF32 p_psNRSpline1DEval(psSpline1D *spline,
-                         const psVector* restrict x,
-                         const psVector* restrict y,
+                         const psVector* x,
+                         const psVector* y,
                          psF32 X);
 
Index: trunk/psLib/src/dataManip/psMinimize.c
===================================================================
--- trunk/psLib/src/dataManip/psMinimize.c	(revision 3097)
+++ trunk/psLib/src/dataManip/psMinimize.c	(revision 3115)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-26 20:47:41 $
+ *  @version $Revision: 1.104 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -96,6 +96,6 @@
 XXX: do an F64 version?
  *****************************************************************************/
-psF32 *CalculateSecondDerivs(const psVector* restrict x,        ///< Ordinates (or NULL to just use the indices)
-                             const psVector* restrict y)        ///< Coordinates
+psF32 *CalculateSecondDerivs(const psVector* x,        ///< Ordinates (or NULL to just use the indices)
+                             const psVector* y)        ///< Coordinates
 {
     psTrace(".psLib.dataManip.CalculateSecondDerivs", 4,
@@ -167,6 +167,6 @@
 /*
 psF32 p_psNRSpline1DEval(psSpline1D *spline,
-                         const psVector* restrict x,
-                         const psVector* restrict y,
+                         const psVector* x,
+                         const psVector* y,
                          psF32 X)
 {
@@ -250,8 +250,8 @@
 XXX: Assumes mySpline->knots is psF32.  Must add psU32 and psF64.
  *****************************************************************************/
-psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,              ///< The spline which will be generated.
-                                const psVector* restrict x,        ///< Ordinates (or NULL to just use the indices)
-                                const psVector* restrict y,        ///< Coordinates
-                                const psVector* restrict yErr)     ///< Errors in coordinates, or NULL
+psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,     ///< The spline which will be generated.
+                                const psVector* x,        ///< Ordinates (or NULL to just use the indices)
+                                const psVector* y,        ///< Coordinates
+                                const psVector* yErr)     ///< Errors in coordinates, or NULL
 {
     PS_VECTOR_CHECK_NULL(y, NULL);
@@ -833,7 +833,7 @@
 *****************************************************************************/
 psPolynomial1D *VectorFitPolynomial1DCheby(psPolynomial1D* myPoly,
-        const psVector* restrict x,
-        const psVector* restrict y,
-        const psVector* restrict yErr)
+        const psVector* x,
+        const psVector* y,
+        const psVector* yErr)
 {
     psS32 j;
@@ -911,7 +911,7 @@
  *****************************************************************************/
 psPolynomial1D* VectorFitPolynomial1DOrd(psPolynomial1D* myPoly,
-        const psVector* restrict x,
-        const psVector* restrict y,
-        const psVector* restrict yErr)
+        const psVector* x,
+        const psVector* y,
+        const psVector* yErr)
 {
     psS32 polyOrder = myPoly->n;
@@ -1018,7 +1018,7 @@
  *****************************************************************************/
 psPolynomial1D* psVectorFitPolynomial1D(psPolynomial1D* myPoly,
-                                        const psVector* restrict x,
-                                        const psVector* restrict y,
-                                        const psVector* restrict yErr)
+                                        const psVector* x,
+                                        const psVector* y,
+                                        const psVector* yErr)
 {
     PS_POLY_CHECK_NULL(myPoly, NULL);
Index: trunk/psLib/src/dataManip/psMinimize.h
===================================================================
--- trunk/psLib/src/dataManip/psMinimize.h	(revision 3097)
+++ trunk/psLib/src/dataManip/psMinimize.h	(revision 3115)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-22 05:09:32 $
+ *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -65,13 +65,13 @@
 psPolynomial1D* psVectorFitPolynomial1D(
     psPolynomial1D* myPoly,            ///< Polynomial to fit
-    const psVector* restrict x,        ///< Ordinates (or NULL to just use the indices)
-    const psVector* restrict y,        ///< Coordinates
-    const psVector* restrict yErr      ///< Errors in coordinates, or NULL
+    const psVector* x,                 ///< Ordinates (or NULL to just use the indices)
+    const psVector* y,                 ///< Coordinates
+    const psVector* yErr               ///< Errors in coordinates, or NULL
 );
 
-psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,              ///< The spline which will be generated.
-                                const psVector* restrict x,        ///< Ordinates (or NULL to just use the indices)
-                                const psVector* restrict y,        ///< Coordinates
-                                const psVector* restrict yErr      ///< Errors in coordinates, or NULL
+psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,     ///< The spline which will be generated.
+                                const psVector* x,        ///< Ordinates (or NULL to just use the indices)
+                                const psVector* y,        ///< Coordinates
+                                const psVector* yErr      ///< Errors in coordinates, or NULL
                                );
 
Index: trunk/psLib/src/dataManip/psStats.c
===================================================================
--- trunk/psLib/src/dataManip/psStats.c	(revision 3097)
+++ trunk/psLib/src/dataManip/psStats.c	(revision 3115)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.111 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-26 20:24:17 $
+ *  @version $Revision: 1.112 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -145,7 +145,7 @@
 this routine sets stats->sampleMean to NAN.
  *****************************************************************************/
-psS32 p_psVectorSampleMean(const psVector* restrict myVector,
-                           const psVector* restrict errors,
-                           const psVector* restrict maskVector,
+psS32 p_psVectorSampleMean(const psVector* myVector,
+                           const psVector* errors,
+                           const psVector* maskVector,
                            psU32 maskVal,
                            psStats* stats)
@@ -283,6 +283,6 @@
 this routine sets stats->max to NAN.
  *****************************************************************************/
-psS32 p_psVectorMax(const psVector* restrict myVector,
-                    const psVector* restrict maskVector,
+psS32 p_psVectorMax(const psVector* myVector,
+                    const psVector* maskVector,
                     psU32 maskVal,
                     psStats* stats)
@@ -348,6 +348,6 @@
 this routine sets stats->min to NAN.
  *****************************************************************************/
-psS32 p_psVectorMin(const psVector* restrict myVector,
-                    const psVector* restrict maskVector,
+psS32 p_psVectorMin(const psVector* myVector,
+                    const psVector* maskVector,
                     psU32 maskVal,
                     psStats* stats)
@@ -414,6 +414,6 @@
 "false".
  *****************************************************************************/
-bool p_psVectorCheckNonEmpty(const psVector* restrict myVector,
-                             const psVector* restrict maskVector,
+bool p_psVectorCheckNonEmpty(const psVector* myVector,
+                             const psVector* maskVector,
                              psU32 maskVal,
                              psStats* stats)
@@ -462,6 +462,6 @@
 range, if specified.
  *****************************************************************************/
-psS32 p_psVectorNValues(const psVector* restrict myVector,
-                        const psVector* restrict maskVector,
+psS32 p_psVectorNValues(const psVector* myVector,
+                        const psVector* maskVector,
                         psU32 maskVal,
                         psStats* stats)
@@ -511,6 +511,6 @@
 XXX: Use static vectors for sort arrays.
  *****************************************************************************/
-bool p_psVectorSampleMedian(const psVector* restrict myVector,
-                            const psVector* restrict maskVector,
+bool p_psVectorSampleMedian(const psVector* myVector,
+                            const psVector* maskVector,
                             psU32 maskVal,
                             psStats* stats)
@@ -701,6 +701,6 @@
     NULL
  *****************************************************************************/
-bool p_psVectorSampleQuartiles(const psVector* restrict myVector,
-                               const psVector* restrict maskVector,
+bool p_psVectorSampleQuartiles(const psVector* myVector,
+                               const psVector* maskVector,
                                psU32 maskVal,
                                psStats* stats)
@@ -787,7 +787,7 @@
  
  *****************************************************************************/
-void p_psVectorSampleStdevOLD(const psVector* restrict myVector,
-                              const psVector* restrict errors,
-                              const psVector* restrict maskVector,
+void p_psVectorSampleStdevOLD(const psVector* myVector,
+                              const psVector* errors,
+                              const psVector* maskVector,
                               psU32 maskVal,
                               psStats* stats)
@@ -881,7 +881,7 @@
  
  *****************************************************************************/
-void p_psVectorSampleStdev(const psVector* restrict myVector,
-                           const psVector* restrict errors,
-                           const psVector* restrict maskVector,
+void p_psVectorSampleStdev(const psVector* myVector,
+                           const psVector* errors,
+                           const psVector* maskVector,
                            psU32 maskVal,
                            psStats* stats)
@@ -896,5 +896,5 @@
     //    psF32 sum1;
     //    psF32 sum2;
-    psF32 errorDivisor;
+    psF32 errorDivisor = 0.0f;
 
     // This procedure requires the mean.  If it has not been already
@@ -1003,7 +1003,7 @@
     -2: warning
  *****************************************************************************/
-psS32 p_psVectorClippedStats(const psVector* restrict myVector,
-                             const psVector* restrict errors,
-                             const psVector* restrict maskVector,
+psS32 p_psVectorClippedStats(const psVector* myVector,
+                             const psVector* errors,
+                             const psVector* maskVector,
                              psU32 maskVal,
                              psStats* stats)
@@ -1331,5 +1331,5 @@
     psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD);
 
-    psF32 tmpFloat;
+    psF32 tmpFloat = 0.0f;
 
     if ((binNum > 0) && (binNum < (yVec->n - 2))) {
@@ -1425,7 +1425,7 @@
 XXX: Check for errors in psLib routines that we call.
 *****************************************************************************/
-psS32 p_psVectorRobustStats(const psVector* restrict myVector,
-                            const psVector* restrict errors,
-                            const psVector* restrict maskVector,
+psS32 p_psVectorRobustStats(const psVector* myVector,
+                            const psVector* errors,
+                            const psVector* maskVector,
                             psU32 maskVal,
                             psStats* stats)
@@ -1820,5 +1820,5 @@
     The histogram structure
  *****************************************************************************/
-psHistogram* psHistogramAllocGeneric(const psVector* restrict bounds)
+psHistogram* psHistogramAllocGeneric(const psVector* bounds)
 {
     PS_VECTOR_CHECK_NULL(bounds, NULL);
@@ -1890,6 +1890,6 @@
     psF32 boxcarRight = boxcarCenter + (boxcarWidth / 2.0);
     psS32 bin;
-    psS32 boxcarLeftBinNum;
-    psS32 boxcarRightBinNum;
+    psS32 boxcarLeftBinNum = 0;
+    psS32 boxcarRightBinNum = 0;
 
     // Determine the left endpoint of the boxcar for the PDF.
@@ -1961,7 +1961,7 @@
  *****************************************************************************/
 psHistogram* psVectorHistogram(psHistogram* out,
-                               const psVector* restrict in,
-                               const psVector* restrict errors,
-                               const psVector* restrict mask,
+                               const psVector* in,
+                               const psVector* errors,
+                               const psVector* mask,
                                psU32 maskVal)
 {
Index: trunk/psLib/src/dataManip/psStats.h
===================================================================
--- trunk/psLib/src/dataManip/psStats.h	(revision 3097)
+++ trunk/psLib/src/dataManip/psStats.h	(revision 3115)
@@ -10,6 +10,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-22 05:09:32 $
+ *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -143,5 +143,5 @@
  */
 psHistogram* psHistogramAllocGeneric(
-    const psVector* restrict bounds    ///< Bounds for the bins
+    const psVector* bounds             ///< Bounds for the bins
 );
 
@@ -156,8 +156,8 @@
 psHistogram* psVectorHistogram(
     psHistogram* out,                  ///< Histogram data
-    const psVector* restrict in,       ///< Vector to analyse
-    const psVector* restrict errors,   ///< Errors
-    const psVector* restrict mask,     ///< Mask dat for input vector
-    psU32 maskVal               ///< Mask value
+    const psVector* in,                ///< Vector to analyse
+    const psVector* errors,            ///< Errors
+    const psVector* mask,              ///< Mask dat for input vector
+    psU32 maskVal                      ///< Mask value
 );
 
