Index: trunk/psastro/autogen.sh
===================================================================
--- trunk/psastro/autogen.sh	(revision 8674)
+++ trunk/psastro/autogen.sh	(revision 8780)
@@ -17,5 +17,5 @@
 LIBTOOLIZE=libtoolize
 ACLOCAL=aclocal
-# AUTOHEADER=autoheader
+AUTOHEADER=autoheader
 AUTOMAKE=automake
 AUTOCONF=autoconf
@@ -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/psastro/configure.ac
===================================================================
--- trunk/psastro/configure.ac	(revision 8674)
+++ trunk/psastro/configure.ac	(revision 8780)
@@ -6,5 +6,5 @@
 
 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
-dnl AM_CONFIG_HEADER([config.h])
+AM_CONFIG_HEADER([src/config.h])
 AM_MAINTAINER_MODE
 
@@ -14,4 +14,7 @@
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
+
+dnl enable largefile supports
+AC_SYS_LARGEFILE
 
 dnl handle debug building
Index: trunk/psastro/src/psastro.c
===================================================================
--- trunk/psastro/src/psastro.c	(revision 8674)
+++ trunk/psastro/src/psastro.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroArguments.c
===================================================================
--- trunk/psastro/src/psastroArguments.c	(revision 8674)
+++ trunk/psastro/src/psastroArguments.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 # include <glob.h>
Index: trunk/psastro/src/psastroAstromGuess.c
===================================================================
--- trunk/psastro/src/psastroAstromGuess.c	(revision 8674)
+++ trunk/psastro/src/psastroAstromGuess.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroChipAstrom.c
===================================================================
--- trunk/psastro/src/psastroChipAstrom.c	(revision 8674)
+++ trunk/psastro/src/psastroChipAstrom.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroConvert.c
===================================================================
--- trunk/psastro/src/psastroConvert.c	(revision 8674)
+++ trunk/psastro/src/psastroConvert.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 // XXX leak free 2006.04.27
Index: trunk/psastro/src/psastroDataLoad.c
===================================================================
--- trunk/psastro/src/psastroDataLoad.c	(revision 8674)
+++ trunk/psastro/src/psastroDataLoad.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 // XXX leak free 2006.04.27
Index: trunk/psastro/src/psastroDataSave.c
===================================================================
--- trunk/psastro/src/psastroDataSave.c	(revision 8674)
+++ trunk/psastro/src/psastroDataSave.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 // XXX leak free 2006.04.27
Index: trunk/psastro/src/psastroLoadReferences.c
===================================================================
--- trunk/psastro/src/psastroLoadReferences.c	(revision 8674)
+++ trunk/psastro/src/psastroLoadReferences.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 int mkstemp(char *template);
Index: trunk/psastro/src/psastroMosaicAstrom.c
===================================================================
--- trunk/psastro/src/psastroMosaicAstrom.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicAstrom.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicChipAstrom.c
===================================================================
--- trunk/psastro/src/psastroMosaicChipAstrom.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicChipAstrom.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicGetGrads.c
===================================================================
--- trunk/psastro/src/psastroMosaicGetGrads.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicGetGrads.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicGetRefstars.c
===================================================================
--- trunk/psastro/src/psastroMosaicGetRefstars.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicGetRefstars.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicHeaders.c
===================================================================
--- trunk/psastro/src/psastroMosaicHeaders.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicHeaders.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicRescaleChips.c
===================================================================
--- trunk/psastro/src/psastroMosaicRescaleChips.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicRescaleChips.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicSetAstrom.c
===================================================================
--- trunk/psastro/src/psastroMosaicSetAstrom.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicSetAstrom.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroMosaicSetMatch.c
===================================================================
--- trunk/psastro/src/psastroMosaicSetMatch.c	(revision 8674)
+++ trunk/psastro/src/psastroMosaicSetMatch.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroOneChip.c
===================================================================
--- trunk/psastro/src/psastroOneChip.c	(revision 8674)
+++ trunk/psastro/src/psastroOneChip.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroParseCamera.c
===================================================================
--- trunk/psastro/src/psastroParseCamera.c	(revision 8674)
+++ trunk/psastro/src/psastroParseCamera.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 // XXX leak free 2006.04.27
Index: trunk/psastro/src/psastroTestFuncs.c
===================================================================
--- trunk/psastro/src/psastroTestFuncs.c	(revision 8674)
+++ trunk/psastro/src/psastroTestFuncs.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
Index: trunk/psastro/src/psastroUtils.c
===================================================================
--- trunk/psastro/src/psastroUtils.c	(revision 8674)
+++ trunk/psastro/src/psastroUtils.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 # define RENORM 0
Index: trunk/psastro/src/psastroWCS.c
===================================================================
--- trunk/psastro/src/psastroWCS.c	(revision 8674)
+++ trunk/psastro/src/psastroWCS.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psastro.h"
 
