Index: trunk/stac/autogen.sh
===================================================================
--- trunk/stac/autogen.sh	(revision 8782)
+++ trunk/stac/autogen.sh	(revision 8783)
@@ -37,11 +37,11 @@
 }
 
-#($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 || {
-#        echo
-#        echo "You must have $AUTOHEADER installed to compile $PROJECT."
-#        echo "Download the appropriate package for your distribution,"
-#        echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
-#        DIE=1
-#}
+($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 || {
+        echo
+        echo "You must have $AUTOHEADER installed to compile $PROJECT."
+        echo "Download the appropriate package for your distribution,"
+        echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
+        DIE=1
+}
 
 ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
@@ -77,5 +77,5 @@
 #$LIBTOOLIZE --copy --force || echo "$LIBTOOlIZE failed"
 $ACLOCAL || echo "$ACLOCAL failed"
-#$AUTOHEADER || echo "$AUTOHEADER failed"
+$AUTOHEADER || echo "$AUTOHEADER failed"
 $AUTOMAKE --add-missing --force-missing --copy || echo "$AUTOMAKE failed"
 $AUTOCONF || echo "$AUTOCONF failed"
Index: trunk/stac/configure.ac
===================================================================
--- trunk/stac/configure.ac	(revision 8782)
+++ trunk/stac/configure.ac	(revision 8783)
@@ -5,5 +5,5 @@
 
 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
-dnl AM_CONFIG_HEADER([config.h])
+AM_CONFIG_HEADER([src/config.h])
 AM_MAINTAINER_MODE
 
@@ -13,4 +13,7 @@
 AC_PROG_INSTALL
 dnl AC_PROG_LIBTOOL
+
+dnl enable largefile supports
+AC_SYS_LARGEFILE
 
 dnl handle debug building
Index: trunk/stac/src/calcGradient.c
===================================================================
--- trunk/stac/src/calcGradient.c	(revision 8782)
+++ trunk/stac/src/calcGradient.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include "pslib.h"
Index: trunk/stac/src/combine.c
===================================================================
--- trunk/stac/src/combine.c	(revision 8782)
+++ trunk/stac/src/combine.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include "pslib.h"
Index: trunk/stac/src/combineConfig.c
===================================================================
--- trunk/stac/src/combineConfig.c	(revision 8782)
+++ trunk/stac/src/combineConfig.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
Index: trunk/stac/src/shift.c
===================================================================
--- trunk/stac/src/shift.c	(revision 8782)
+++ trunk/stac/src/shift.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
Index: trunk/stac/src/shiftSize.c
===================================================================
--- trunk/stac/src/shiftSize.c	(revision 8782)
+++ trunk/stac/src/shiftSize.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 /*
  * shiftSize:
Index: trunk/stac/src/stac.c
===================================================================
--- trunk/stac/src/stac.c	(revision 8782)
+++ trunk/stac/src/stac.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include "pslib.h"
Index: trunk/stac/src/stacAreaOfInterest.c
===================================================================
--- trunk/stac/src/stacAreaOfInterest.c	(revision 8782)
+++ trunk/stac/src/stacAreaOfInterest.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacCheckMemory.c
===================================================================
--- trunk/stac/src/stacCheckMemory.c	(revision 8782)
+++ trunk/stac/src/stacCheckMemory.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include "pslib.h"
Index: trunk/stac/src/stacCombine.c
===================================================================
--- trunk/stac/src/stacCombine.c	(revision 8782)
+++ trunk/stac/src/stacCombine.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacConfig.c
===================================================================
--- trunk/stac/src/stacConfig.c	(revision 8782)
+++ trunk/stac/src/stacConfig.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
Index: trunk/stac/src/stacErrorImages.c
===================================================================
--- trunk/stac/src/stacErrorImages.c	(revision 8782)
+++ trunk/stac/src/stacErrorImages.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include "pslib.h"
Index: trunk/stac/src/stacHelp.c
===================================================================
--- trunk/stac/src/stacHelp.c	(revision 8782)
+++ trunk/stac/src/stacHelp.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 
Index: trunk/stac/src/stacInvertMaps.c
===================================================================
--- trunk/stac/src/stacInvertMaps.c	(revision 8782)
+++ trunk/stac/src/stacInvertMaps.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacRead.c
===================================================================
--- trunk/stac/src/stacRead.c	(revision 8782)
+++ trunk/stac/src/stacRead.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <string.h>
Index: trunk/stac/src/stacRejection.c
===================================================================
--- trunk/stac/src/stacRejection.c	(revision 8782)
+++ trunk/stac/src/stacRejection.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacScales.c
===================================================================
--- trunk/stac/src/stacScales.c	(revision 8782)
+++ trunk/stac/src/stacScales.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacSize.c
===================================================================
--- trunk/stac/src/stacSize.c	(revision 8782)
+++ trunk/stac/src/stacSize.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacTime.c
===================================================================
--- trunk/stac/src/stacTime.c	(revision 8782)
+++ trunk/stac/src/stacTime.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <sys/time.h>
Index: trunk/stac/src/stacTransform.c
===================================================================
--- trunk/stac/src/stacTransform.c	(revision 8782)
+++ trunk/stac/src/stacTransform.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/stacWrite.c
===================================================================
--- trunk/stac/src/stacWrite.c	(revision 8782)
+++ trunk/stac/src/stacWrite.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
Index: trunk/stac/src/sum.c
===================================================================
--- trunk/stac/src/sum.c	(revision 8782)
+++ trunk/stac/src/sum.c	(revision 8783)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 // Brain-dead simple stack of multiple frames
 // Makes no effort to zap bad pixels, or rescale images.
