Author: Ole Streicher <debian@liska.ath.cx>
Description: Use the system provided sextractor binary
 instead of the convenience copy
--- a/external/Makefile.am
+++ b/external/Makefile.am
@@ -24,10 +24,10 @@
 
 COMPILE_FIRST =
 
-TOPSUBDIRS = libwcs sextractor
+TOPSUBDIRS = libwcs
 
-COMPILE_LAST = $(PSFEXDIR)
+COMPILE_LAST =
 
 SUBDIRS = $(COMPILE_FIRST) $(TOPSUBDIRS) $(COMPILE_LAST)
 
-DIST_SUBDIRS = $(COMPILE_FIRST) $(TOPSUBDIRS) psfex
+DIST_SUBDIRS = $(COMPILE_FIRST) $(TOPSUBDIRS)
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -158,7 +158,7 @@
     # Define the preprocessor symbols for the sextractor executable
     # and the configuration files.
 
-    eval sext_bindir="${prefix}/lib/${PACKAGE}-${VERSION}/bin"
+    eval sext_bindir="/usr/bin"
 
     AC_DEFINE_UNQUOTED(VIMOS_SEXTRACTOR_PATH, "$sext_bindir",
                        [Absolute path to the sextractor executable])
--- a/configure.ac
+++ b/configure.ac
@@ -114,7 +114,7 @@
 
 VIMOS_SET_SEX_PREFIX
 
-AC_CONFIG_SUBDIRS(external/sextractor external/psfex)
+AC_CONFIG_SUBDIRS(external/psfex)
 
 AC_CONFIG_FILES(Makefile
                 Makefile.purify
