diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/executor/C++/Makefile.am quickfix-examples-autotools-patches/examples/executor/C++/Makefile.am
--- quickfix/examples/executor/C++/Makefile.am	2004-09-11 00:07:43.000000000 +0800
+++ quickfix-examples-autotools-patches/examples/executor/C++/Makefile.am	2011-05-29 11:18:53.498103153 +0800
@@ -1,14 +1,10 @@
-noinst_PROGRAMS = executor
+bin_PROGRAMS = quickfix-executor
 
-executor_SOURCES = \
+quickfix_executor_SOURCES = \
 	executor.cpp \
 	Application.h \
 	Application.cpp
 
-executor_LDADD = $(top_builddir)/src/C++/libquickfix.la 
+quickfix_executor_LDADD = $(top_builddir)/src/C++/libquickfix.la 
 
-INCLUDES = -I$(top_builddir)/include
-
-all-local:
-	rm -f ../../../bin/executor
-	ln -s ../examples/executor/C++/executor ../../../bin/executor
+quickfix_executor_CPPFLAGS = -I$(top_builddir)/include
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/executor/C++/Makefile.in quickfix-examples-autotools-patches/examples/executor/C++/Makefile.in
--- quickfix/examples/executor/C++/Makefile.in	2011-05-29 11:18:51.774092190 +0800
+++ quickfix-examples-autotools-patches/examples/executor/C++/Makefile.in	2011-05-29 11:19:05.481179337 +0800
@@ -34,7 +34,7 @@
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-noinst_PROGRAMS = executor$(EXEEXT)
+bin_PROGRAMS = quickfix-executor$(EXEEXT)
 subdir = examples/executor/C++
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -45,10 +45,13 @@
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
-PROGRAMS = $(noinst_PROGRAMS)
-am_executor_OBJECTS = executor.$(OBJEXT) Application.$(OBJEXT)
-executor_OBJECTS = $(am_executor_OBJECTS)
-executor_DEPENDENCIES = $(top_builddir)/src/C++/libquickfix.la
+am__installdirs = "$(DESTDIR)$(bindir)"
+PROGRAMS = $(bin_PROGRAMS)
+am_quickfix_executor_OBJECTS = quickfix_executor-executor.$(OBJEXT) \
+	quickfix_executor-Application.$(OBJEXT)
+quickfix_executor_OBJECTS = $(am_quickfix_executor_OBJECTS)
+quickfix_executor_DEPENDENCIES =  \
+	$(top_builddir)/src/C++/libquickfix.la
 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
 am__depfiles_maybe = depfiles
@@ -71,8 +74,8 @@
 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 	$(LDFLAGS) -o $@
-SOURCES = $(executor_SOURCES)
-DIST_SOURCES = $(executor_SOURCES)
+SOURCES = $(quickfix_executor_SOURCES)
+DIST_SOURCES = $(quickfix_executor_SOURCES)
 ETAGS = etags
 CTAGS = ctags
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -220,13 +223,13 @@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-executor_SOURCES = \
+quickfix_executor_SOURCES = \
 	executor.cpp \
 	Application.h \
 	Application.cpp
 
-executor_LDADD = $(top_builddir)/src/C++/libquickfix.la 
-INCLUDES = -I$(top_builddir)/include
+quickfix_executor_LDADD = $(top_builddir)/src/C++/libquickfix.la 
+quickfix_executor_CPPFLAGS = -I$(top_builddir)/include
 all: all-am
 
 .SUFFIXES:
@@ -261,18 +264,52 @@
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 $(am__aclocal_m4_deps):
+install-binPROGRAMS: $(bin_PROGRAMS)
+	@$(NORMAL_INSTALL)
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+	for p in $$list; do echo "$$p $$p"; done | \
+	sed 's/$(EXEEXT)$$//' | \
+	while read p p1; do if test -f $$p || test -f $$p1; \
+	  then echo "$$p"; echo "$$p"; else :; fi; \
+	done | \
+	sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
+	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+	sed 'N;N;N;s,\n, ,g' | \
+	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
+	    else { print "f", $$3 "/" $$4, $$1; } } \
+	  END { for (d in files) print "f", d, files[d] }' | \
+	while read type dir files; do \
+	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+	    test -z "$$files" || { \
+	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+	    } \
+	; done
+
+uninstall-binPROGRAMS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+	files=`for p in $$list; do echo "$$p"; done | \
+	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+	      -e 's/$$/$(EXEEXT)/' `; \
+	test -n "$$list" || exit 0; \
+	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+	cd "$(DESTDIR)$(bindir)" && rm -f $$files
 
-clean-noinstPROGRAMS:
-	@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
+clean-binPROGRAMS:
+	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
 	echo " rm -f" $$list; \
 	rm -f $$list || exit $$?; \
 	test -n "$(EXEEXT)" || exit 0; \
 	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
 	echo " rm -f" $$list; \
 	rm -f $$list
-executor$(EXEEXT): $(executor_OBJECTS) $(executor_DEPENDENCIES) 
-	@rm -f executor$(EXEEXT)
-	$(CXXLINK) $(executor_OBJECTS) $(executor_LDADD) $(LIBS)
+quickfix-executor$(EXEEXT): $(quickfix_executor_OBJECTS) $(quickfix_executor_DEPENDENCIES) 
+	@rm -f quickfix-executor$(EXEEXT)
+	$(CXXLINK) $(quickfix_executor_OBJECTS) $(quickfix_executor_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
@@ -280,8 +317,8 @@
 distclean-compile:
 	-rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Application.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/executor.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_executor-Application.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_executor-executor.Po@am__quote@
 
 .cpp.o:
 @am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -304,6 +341,34 @@
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@	$(LTCXXCOMPILE) -c -o $@ $<
 
+quickfix_executor-executor.o: executor.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_executor-executor.o -MD -MP -MF $(DEPDIR)/quickfix_executor-executor.Tpo -c -o quickfix_executor-executor.o `test -f 'executor.cpp' || echo '$(srcdir)/'`executor.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_executor-executor.Tpo $(DEPDIR)/quickfix_executor-executor.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='executor.cpp' object='quickfix_executor-executor.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_executor-executor.o `test -f 'executor.cpp' || echo '$(srcdir)/'`executor.cpp
+
+quickfix_executor-executor.obj: executor.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_executor-executor.obj -MD -MP -MF $(DEPDIR)/quickfix_executor-executor.Tpo -c -o quickfix_executor-executor.obj `if test -f 'executor.cpp'; then $(CYGPATH_W) 'executor.cpp'; else $(CYGPATH_W) '$(srcdir)/executor.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_executor-executor.Tpo $(DEPDIR)/quickfix_executor-executor.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='executor.cpp' object='quickfix_executor-executor.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_executor-executor.obj `if test -f 'executor.cpp'; then $(CYGPATH_W) 'executor.cpp'; else $(CYGPATH_W) '$(srcdir)/executor.cpp'; fi`
+
+quickfix_executor-Application.o: Application.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_executor-Application.o -MD -MP -MF $(DEPDIR)/quickfix_executor-Application.Tpo -c -o quickfix_executor-Application.o `test -f 'Application.cpp' || echo '$(srcdir)/'`Application.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_executor-Application.Tpo $(DEPDIR)/quickfix_executor-Application.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Application.cpp' object='quickfix_executor-Application.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_executor-Application.o `test -f 'Application.cpp' || echo '$(srcdir)/'`Application.cpp
+
+quickfix_executor-Application.obj: Application.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_executor-Application.obj -MD -MP -MF $(DEPDIR)/quickfix_executor-Application.Tpo -c -o quickfix_executor-Application.obj `if test -f 'Application.cpp'; then $(CYGPATH_W) 'Application.cpp'; else $(CYGPATH_W) '$(srcdir)/Application.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_executor-Application.Tpo $(DEPDIR)/quickfix_executor-Application.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Application.cpp' object='quickfix_executor-Application.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_executor_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_executor-Application.obj `if test -f 'Application.cpp'; then $(CYGPATH_W) 'Application.cpp'; else $(CYGPATH_W) '$(srcdir)/Application.cpp'; fi`
+
 mostlyclean-libtool:
 	-rm -f *.lo
 
@@ -394,8 +459,11 @@
 	done
 check-am: all-am
 check: check-am
-all-am: Makefile $(PROGRAMS) all-local
+all-am: Makefile $(PROGRAMS)
 installdirs:
+	for dir in "$(DESTDIR)$(bindir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
 install: install-am
 install-exec: install-exec-am
 install-data: install-data-am
@@ -423,8 +491,7 @@
 	@echo "it deletes files that may require special tools to rebuild."
 clean: clean-am
 
-clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
-	mostlyclean-am
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
 
 distclean: distclean-am
 	-rm -rf ./$(DEPDIR)
@@ -450,7 +517,7 @@
 
 install-dvi-am:
 
-install-exec-am:
+install-exec-am: install-binPROGRAMS
 
 install-html: install-html-am
 
@@ -490,28 +557,24 @@
 
 ps-am:
 
-uninstall-am:
+uninstall-am: uninstall-binPROGRAMS
 
 .MAKE: install-am install-strip
 
-.PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
-	clean-generic clean-libtool clean-noinstPROGRAMS 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-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am 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
-
-
-all-local:
-	rm -f ../../../bin/executor
-	ln -s ../examples/executor/C++/executor ../../../bin/executor
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+	clean-generic clean-libtool ctags distclean distclean-compile \
+	distclean-generic distclean-libtool distclean-tags distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-binPROGRAMS install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	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-binPROGRAMS
+
 
 # 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.
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/ordermatch/Makefile.am quickfix-examples-autotools-patches/examples/ordermatch/Makefile.am
--- quickfix/examples/ordermatch/Makefile.am	2004-09-11 00:07:43.000000000 +0800
+++ quickfix-examples-autotools-patches/examples/ordermatch/Makefile.am	2011-05-29 11:18:53.498103153 +0800
@@ -1,8 +1,8 @@
 SUBDIRS = test
 
-noinst_PROGRAMS = ordermatch
+bin_PROGRAMS = quickfix-ordermatch
 
-ordermatch_SOURCES = \
+quickfix_ordermatch_SOURCES = \
 	ordermatch.cpp \
 	Application.h \
 	Application.cpp \
@@ -12,10 +12,6 @@
 	Order.h \
 	OrderMatcher.h
 
-ordermatch_LDADD = $(top_builddir)/src/C++/libquickfix.la 
+quickfix_ordermatch_LDADD = $(top_builddir)/src/C++/libquickfix.la 
 
-INCLUDES = -I$(top_builddir)/include
-
-all-local:
-	rm -f ../../bin/ordermatch
-	ln -s ../examples/ordermatch/ordermatch ../../bin/ordermatch
+quickfix_ordermatch_CPPFLAGS = -I$(top_builddir)/include
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/ordermatch/Makefile.in quickfix-examples-autotools-patches/examples/ordermatch/Makefile.in
--- quickfix/examples/ordermatch/Makefile.in	2011-05-29 11:18:51.776092202 +0800
+++ quickfix-examples-autotools-patches/examples/ordermatch/Makefile.in	2011-05-29 11:19:05.706180767 +0800
@@ -34,7 +34,7 @@
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-noinst_PROGRAMS = ordermatch$(EXEEXT)
+bin_PROGRAMS = quickfix-ordermatch$(EXEEXT)
 subdir = examples/ordermatch
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -45,11 +45,15 @@
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
-PROGRAMS = $(noinst_PROGRAMS)
-am_ordermatch_OBJECTS = ordermatch.$(OBJEXT) Application.$(OBJEXT) \
-	Market.$(OBJEXT)
-ordermatch_OBJECTS = $(am_ordermatch_OBJECTS)
-ordermatch_DEPENDENCIES = $(top_builddir)/src/C++/libquickfix.la
+am__installdirs = "$(DESTDIR)$(bindir)"
+PROGRAMS = $(bin_PROGRAMS)
+am_quickfix_ordermatch_OBJECTS =  \
+	quickfix_ordermatch-ordermatch.$(OBJEXT) \
+	quickfix_ordermatch-Application.$(OBJEXT) \
+	quickfix_ordermatch-Market.$(OBJEXT)
+quickfix_ordermatch_OBJECTS = $(am_quickfix_ordermatch_OBJECTS)
+quickfix_ordermatch_DEPENDENCIES =  \
+	$(top_builddir)/src/C++/libquickfix.la
 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
 am__depfiles_maybe = depfiles
@@ -72,8 +76,8 @@
 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 	$(LDFLAGS) -o $@
-SOURCES = $(ordermatch_SOURCES)
-DIST_SOURCES = $(ordermatch_SOURCES)
+SOURCES = $(quickfix_ordermatch_SOURCES)
+DIST_SOURCES = $(quickfix_ordermatch_SOURCES)
 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
 	html-recursive info-recursive install-data-recursive \
 	install-dvi-recursive install-exec-recursive \
@@ -260,7 +264,7 @@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 SUBDIRS = test
-ordermatch_SOURCES = \
+quickfix_ordermatch_SOURCES = \
 	ordermatch.cpp \
 	Application.h \
 	Application.cpp \
@@ -270,8 +274,8 @@
 	Order.h \
 	OrderMatcher.h
 
-ordermatch_LDADD = $(top_builddir)/src/C++/libquickfix.la 
-INCLUDES = -I$(top_builddir)/include
+quickfix_ordermatch_LDADD = $(top_builddir)/src/C++/libquickfix.la 
+quickfix_ordermatch_CPPFLAGS = -I$(top_builddir)/include
 all: all-recursive
 
 .SUFFIXES:
@@ -306,18 +310,52 @@
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 $(am__aclocal_m4_deps):
+install-binPROGRAMS: $(bin_PROGRAMS)
+	@$(NORMAL_INSTALL)
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+	for p in $$list; do echo "$$p $$p"; done | \
+	sed 's/$(EXEEXT)$$//' | \
+	while read p p1; do if test -f $$p || test -f $$p1; \
+	  then echo "$$p"; echo "$$p"; else :; fi; \
+	done | \
+	sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
+	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+	sed 'N;N;N;s,\n, ,g' | \
+	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
+	    else { print "f", $$3 "/" $$4, $$1; } } \
+	  END { for (d in files) print "f", d, files[d] }' | \
+	while read type dir files; do \
+	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+	    test -z "$$files" || { \
+	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+	    } \
+	; done
+
+uninstall-binPROGRAMS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+	files=`for p in $$list; do echo "$$p"; done | \
+	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+	      -e 's/$$/$(EXEEXT)/' `; \
+	test -n "$$list" || exit 0; \
+	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+	cd "$(DESTDIR)$(bindir)" && rm -f $$files
 
-clean-noinstPROGRAMS:
-	@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
+clean-binPROGRAMS:
+	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
 	echo " rm -f" $$list; \
 	rm -f $$list || exit $$?; \
 	test -n "$(EXEEXT)" || exit 0; \
 	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
 	echo " rm -f" $$list; \
 	rm -f $$list
-ordermatch$(EXEEXT): $(ordermatch_OBJECTS) $(ordermatch_DEPENDENCIES) 
-	@rm -f ordermatch$(EXEEXT)
-	$(CXXLINK) $(ordermatch_OBJECTS) $(ordermatch_LDADD) $(LIBS)
+quickfix-ordermatch$(EXEEXT): $(quickfix_ordermatch_OBJECTS) $(quickfix_ordermatch_DEPENDENCIES) 
+	@rm -f quickfix-ordermatch$(EXEEXT)
+	$(CXXLINK) $(quickfix_ordermatch_OBJECTS) $(quickfix_ordermatch_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
@@ -325,9 +363,9 @@
 distclean-compile:
 	-rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Application.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Market.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ordermatch.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_ordermatch-Application.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_ordermatch-Market.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_ordermatch-ordermatch.Po@am__quote@
 
 .cpp.o:
 @am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -350,6 +388,48 @@
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@	$(LTCXXCOMPILE) -c -o $@ $<
 
+quickfix_ordermatch-ordermatch.o: ordermatch.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_ordermatch-ordermatch.o -MD -MP -MF $(DEPDIR)/quickfix_ordermatch-ordermatch.Tpo -c -o quickfix_ordermatch-ordermatch.o `test -f 'ordermatch.cpp' || echo '$(srcdir)/'`ordermatch.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_ordermatch-ordermatch.Tpo $(DEPDIR)/quickfix_ordermatch-ordermatch.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='ordermatch.cpp' object='quickfix_ordermatch-ordermatch.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_ordermatch-ordermatch.o `test -f 'ordermatch.cpp' || echo '$(srcdir)/'`ordermatch.cpp
+
+quickfix_ordermatch-ordermatch.obj: ordermatch.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_ordermatch-ordermatch.obj -MD -MP -MF $(DEPDIR)/quickfix_ordermatch-ordermatch.Tpo -c -o quickfix_ordermatch-ordermatch.obj `if test -f 'ordermatch.cpp'; then $(CYGPATH_W) 'ordermatch.cpp'; else $(CYGPATH_W) '$(srcdir)/ordermatch.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_ordermatch-ordermatch.Tpo $(DEPDIR)/quickfix_ordermatch-ordermatch.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='ordermatch.cpp' object='quickfix_ordermatch-ordermatch.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_ordermatch-ordermatch.obj `if test -f 'ordermatch.cpp'; then $(CYGPATH_W) 'ordermatch.cpp'; else $(CYGPATH_W) '$(srcdir)/ordermatch.cpp'; fi`
+
+quickfix_ordermatch-Application.o: Application.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_ordermatch-Application.o -MD -MP -MF $(DEPDIR)/quickfix_ordermatch-Application.Tpo -c -o quickfix_ordermatch-Application.o `test -f 'Application.cpp' || echo '$(srcdir)/'`Application.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_ordermatch-Application.Tpo $(DEPDIR)/quickfix_ordermatch-Application.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Application.cpp' object='quickfix_ordermatch-Application.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_ordermatch-Application.o `test -f 'Application.cpp' || echo '$(srcdir)/'`Application.cpp
+
+quickfix_ordermatch-Application.obj: Application.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_ordermatch-Application.obj -MD -MP -MF $(DEPDIR)/quickfix_ordermatch-Application.Tpo -c -o quickfix_ordermatch-Application.obj `if test -f 'Application.cpp'; then $(CYGPATH_W) 'Application.cpp'; else $(CYGPATH_W) '$(srcdir)/Application.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_ordermatch-Application.Tpo $(DEPDIR)/quickfix_ordermatch-Application.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Application.cpp' object='quickfix_ordermatch-Application.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_ordermatch-Application.obj `if test -f 'Application.cpp'; then $(CYGPATH_W) 'Application.cpp'; else $(CYGPATH_W) '$(srcdir)/Application.cpp'; fi`
+
+quickfix_ordermatch-Market.o: Market.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_ordermatch-Market.o -MD -MP -MF $(DEPDIR)/quickfix_ordermatch-Market.Tpo -c -o quickfix_ordermatch-Market.o `test -f 'Market.cpp' || echo '$(srcdir)/'`Market.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_ordermatch-Market.Tpo $(DEPDIR)/quickfix_ordermatch-Market.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Market.cpp' object='quickfix_ordermatch-Market.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_ordermatch-Market.o `test -f 'Market.cpp' || echo '$(srcdir)/'`Market.cpp
+
+quickfix_ordermatch-Market.obj: Market.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_ordermatch-Market.obj -MD -MP -MF $(DEPDIR)/quickfix_ordermatch-Market.Tpo -c -o quickfix_ordermatch-Market.obj `if test -f 'Market.cpp'; then $(CYGPATH_W) 'Market.cpp'; else $(CYGPATH_W) '$(srcdir)/Market.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_ordermatch-Market.Tpo $(DEPDIR)/quickfix_ordermatch-Market.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Market.cpp' object='quickfix_ordermatch-Market.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_ordermatch_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_ordermatch-Market.obj `if test -f 'Market.cpp'; then $(CYGPATH_W) 'Market.cpp'; else $(CYGPATH_W) '$(srcdir)/Market.cpp'; fi`
+
 mostlyclean-libtool:
 	-rm -f *.lo
 
@@ -551,9 +631,12 @@
 	done
 check-am: all-am
 check: check-recursive
-all-am: Makefile $(PROGRAMS) all-local
+all-am: Makefile $(PROGRAMS)
 installdirs: installdirs-recursive
 installdirs-am:
+	for dir in "$(DESTDIR)$(bindir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
 install: install-recursive
 install-exec: install-exec-recursive
 install-data: install-data-recursive
@@ -581,8 +664,7 @@
 	@echo "it deletes files that may require special tools to rebuild."
 clean: clean-recursive
 
-clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
-	mostlyclean-am
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
 
 distclean: distclean-recursive
 	-rm -rf ./$(DEPDIR)
@@ -608,7 +690,7 @@
 
 install-dvi-am:
 
-install-exec-am:
+install-exec-am: install-binPROGRAMS
 
 install-html: install-html-recursive
 
@@ -648,17 +730,17 @@
 
 ps-am:
 
-uninstall-am:
+uninstall-am: uninstall-binPROGRAMS
 
 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
 	install-am install-strip tags-recursive
 
 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
-	all all-am all-local check check-am clean clean-generic \
-	clean-libtool clean-noinstPROGRAMS ctags ctags-recursive \
-	distclean distclean-compile distclean-generic \
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-data \
+	all all-am check check-am clean clean-binPROGRAMS \
+	clean-generic clean-libtool ctags ctags-recursive distclean \
+	distclean-compile distclean-generic distclean-libtool \
+	distclean-tags distdir dvi dvi-am html html-am info info-am \
+	install install-am install-binPROGRAMS install-data \
 	install-data-am install-dvi install-dvi-am install-exec \
 	install-exec-am install-html install-html-am install-info \
 	install-info-am install-man install-pdf install-pdf-am \
@@ -666,12 +748,9 @@
 	installcheck-am installdirs installdirs-am maintainer-clean \
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags tags-recursive uninstall uninstall-am
-
+	tags tags-recursive uninstall uninstall-am \
+	uninstall-binPROGRAMS
 
-all-local:
-	rm -f ../../bin/ordermatch
-	ln -s ../examples/ordermatch/ordermatch ../../bin/ordermatch
 
 # 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.
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/tradeclient/Makefile.am quickfix-examples-autotools-patches/examples/tradeclient/Makefile.am
--- quickfix/examples/tradeclient/Makefile.am	2004-09-11 00:07:43.000000000 +0800
+++ quickfix-examples-autotools-patches/examples/tradeclient/Makefile.am	2011-05-29 11:18:53.499103159 +0800
@@ -1,14 +1,10 @@
-noinst_PROGRAMS = tradeclient
+bin_PROGRAMS = quickfix-tradeclient
 
-tradeclient_SOURCES = \
+quickfix_tradeclient_SOURCES = \
 	tradeclient.cpp \
 	Application.h \
 	Application.cpp
 
-tradeclient_LDADD = $(top_builddir)/src/C++/libquickfix.la 
+quickfix_tradeclient_LDADD = $(top_builddir)/src/C++/libquickfix.la 
 
-INCLUDES = -I$(top_builddir)/include -I..
-
-all-local:
-	rm -f ../../bin/tradeclient
-	ln -s ../examples/tradeclient/tradeclient ../../bin/tradeclient
\ No newline at end of file
+quickfix_tradeclient_CPPFLAGS = -I$(top_builddir)/include -I..
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/tradeclient/Makefile.in quickfix-examples-autotools-patches/examples/tradeclient/Makefile.in
--- quickfix/examples/tradeclient/Makefile.in	2011-05-29 11:18:51.777092209 +0800
+++ quickfix-examples-autotools-patches/examples/tradeclient/Makefile.in	2011-05-29 11:19:05.933182210 +0800
@@ -34,7 +34,7 @@
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-noinst_PROGRAMS = tradeclient$(EXEEXT)
+bin_PROGRAMS = quickfix-tradeclient$(EXEEXT)
 subdir = examples/tradeclient
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -45,10 +45,14 @@
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
-PROGRAMS = $(noinst_PROGRAMS)
-am_tradeclient_OBJECTS = tradeclient.$(OBJEXT) Application.$(OBJEXT)
-tradeclient_OBJECTS = $(am_tradeclient_OBJECTS)
-tradeclient_DEPENDENCIES = $(top_builddir)/src/C++/libquickfix.la
+am__installdirs = "$(DESTDIR)$(bindir)"
+PROGRAMS = $(bin_PROGRAMS)
+am_quickfix_tradeclient_OBJECTS =  \
+	quickfix_tradeclient-tradeclient.$(OBJEXT) \
+	quickfix_tradeclient-Application.$(OBJEXT)
+quickfix_tradeclient_OBJECTS = $(am_quickfix_tradeclient_OBJECTS)
+quickfix_tradeclient_DEPENDENCIES =  \
+	$(top_builddir)/src/C++/libquickfix.la
 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
 am__depfiles_maybe = depfiles
@@ -71,8 +75,8 @@
 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 	$(LDFLAGS) -o $@
-SOURCES = $(tradeclient_SOURCES)
-DIST_SOURCES = $(tradeclient_SOURCES)
+SOURCES = $(quickfix_tradeclient_SOURCES)
+DIST_SOURCES = $(quickfix_tradeclient_SOURCES)
 ETAGS = etags
 CTAGS = ctags
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -220,13 +224,13 @@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-tradeclient_SOURCES = \
+quickfix_tradeclient_SOURCES = \
 	tradeclient.cpp \
 	Application.h \
 	Application.cpp
 
-tradeclient_LDADD = $(top_builddir)/src/C++/libquickfix.la 
-INCLUDES = -I$(top_builddir)/include -I..
+quickfix_tradeclient_LDADD = $(top_builddir)/src/C++/libquickfix.la 
+quickfix_tradeclient_CPPFLAGS = -I$(top_builddir)/include -I..
 all: all-am
 
 .SUFFIXES:
@@ -261,18 +265,52 @@
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 $(am__aclocal_m4_deps):
+install-binPROGRAMS: $(bin_PROGRAMS)
+	@$(NORMAL_INSTALL)
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+	for p in $$list; do echo "$$p $$p"; done | \
+	sed 's/$(EXEEXT)$$//' | \
+	while read p p1; do if test -f $$p || test -f $$p1; \
+	  then echo "$$p"; echo "$$p"; else :; fi; \
+	done | \
+	sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
+	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+	sed 'N;N;N;s,\n, ,g' | \
+	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
+	    else { print "f", $$3 "/" $$4, $$1; } } \
+	  END { for (d in files) print "f", d, files[d] }' | \
+	while read type dir files; do \
+	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+	    test -z "$$files" || { \
+	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+	    } \
+	; done
+
+uninstall-binPROGRAMS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+	files=`for p in $$list; do echo "$$p"; done | \
+	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+	      -e 's/$$/$(EXEEXT)/' `; \
+	test -n "$$list" || exit 0; \
+	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+	cd "$(DESTDIR)$(bindir)" && rm -f $$files
 
-clean-noinstPROGRAMS:
-	@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
+clean-binPROGRAMS:
+	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
 	echo " rm -f" $$list; \
 	rm -f $$list || exit $$?; \
 	test -n "$(EXEEXT)" || exit 0; \
 	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
 	echo " rm -f" $$list; \
 	rm -f $$list
-tradeclient$(EXEEXT): $(tradeclient_OBJECTS) $(tradeclient_DEPENDENCIES) 
-	@rm -f tradeclient$(EXEEXT)
-	$(CXXLINK) $(tradeclient_OBJECTS) $(tradeclient_LDADD) $(LIBS)
+quickfix-tradeclient$(EXEEXT): $(quickfix_tradeclient_OBJECTS) $(quickfix_tradeclient_DEPENDENCIES) 
+	@rm -f quickfix-tradeclient$(EXEEXT)
+	$(CXXLINK) $(quickfix_tradeclient_OBJECTS) $(quickfix_tradeclient_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
@@ -280,8 +318,8 @@
 distclean-compile:
 	-rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Application.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tradeclient.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_tradeclient-Application.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quickfix_tradeclient-tradeclient.Po@am__quote@
 
 .cpp.o:
 @am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -304,6 +342,34 @@
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@	$(LTCXXCOMPILE) -c -o $@ $<
 
+quickfix_tradeclient-tradeclient.o: tradeclient.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_tradeclient-tradeclient.o -MD -MP -MF $(DEPDIR)/quickfix_tradeclient-tradeclient.Tpo -c -o quickfix_tradeclient-tradeclient.o `test -f 'tradeclient.cpp' || echo '$(srcdir)/'`tradeclient.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_tradeclient-tradeclient.Tpo $(DEPDIR)/quickfix_tradeclient-tradeclient.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='tradeclient.cpp' object='quickfix_tradeclient-tradeclient.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_tradeclient-tradeclient.o `test -f 'tradeclient.cpp' || echo '$(srcdir)/'`tradeclient.cpp
+
+quickfix_tradeclient-tradeclient.obj: tradeclient.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_tradeclient-tradeclient.obj -MD -MP -MF $(DEPDIR)/quickfix_tradeclient-tradeclient.Tpo -c -o quickfix_tradeclient-tradeclient.obj `if test -f 'tradeclient.cpp'; then $(CYGPATH_W) 'tradeclient.cpp'; else $(CYGPATH_W) '$(srcdir)/tradeclient.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_tradeclient-tradeclient.Tpo $(DEPDIR)/quickfix_tradeclient-tradeclient.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='tradeclient.cpp' object='quickfix_tradeclient-tradeclient.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_tradeclient-tradeclient.obj `if test -f 'tradeclient.cpp'; then $(CYGPATH_W) 'tradeclient.cpp'; else $(CYGPATH_W) '$(srcdir)/tradeclient.cpp'; fi`
+
+quickfix_tradeclient-Application.o: Application.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_tradeclient-Application.o -MD -MP -MF $(DEPDIR)/quickfix_tradeclient-Application.Tpo -c -o quickfix_tradeclient-Application.o `test -f 'Application.cpp' || echo '$(srcdir)/'`Application.cpp
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_tradeclient-Application.Tpo $(DEPDIR)/quickfix_tradeclient-Application.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Application.cpp' object='quickfix_tradeclient-Application.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_tradeclient-Application.o `test -f 'Application.cpp' || echo '$(srcdir)/'`Application.cpp
+
+quickfix_tradeclient-Application.obj: Application.cpp
+@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT quickfix_tradeclient-Application.obj -MD -MP -MF $(DEPDIR)/quickfix_tradeclient-Application.Tpo -c -o quickfix_tradeclient-Application.obj `if test -f 'Application.cpp'; then $(CYGPATH_W) 'Application.cpp'; else $(CYGPATH_W) '$(srcdir)/Application.cpp'; fi`
+@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/quickfix_tradeclient-Application.Tpo $(DEPDIR)/quickfix_tradeclient-Application.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='Application.cpp' object='quickfix_tradeclient-Application.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(quickfix_tradeclient_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o quickfix_tradeclient-Application.obj `if test -f 'Application.cpp'; then $(CYGPATH_W) 'Application.cpp'; else $(CYGPATH_W) '$(srcdir)/Application.cpp'; fi`
+
 mostlyclean-libtool:
 	-rm -f *.lo
 
@@ -394,8 +460,11 @@
 	done
 check-am: all-am
 check: check-am
-all-am: Makefile $(PROGRAMS) all-local
+all-am: Makefile $(PROGRAMS)
 installdirs:
+	for dir in "$(DESTDIR)$(bindir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
 install: install-am
 install-exec: install-exec-am
 install-data: install-data-am
@@ -423,8 +492,7 @@
 	@echo "it deletes files that may require special tools to rebuild."
 clean: clean-am
 
-clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
-	mostlyclean-am
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
 
 distclean: distclean-am
 	-rm -rf ./$(DEPDIR)
@@ -450,7 +518,7 @@
 
 install-dvi-am:
 
-install-exec-am:
+install-exec-am: install-binPROGRAMS
 
 install-html: install-html-am
 
@@ -490,28 +558,24 @@
 
 ps-am:
 
-uninstall-am:
+uninstall-am: uninstall-binPROGRAMS
 
 .MAKE: install-am install-strip
 
-.PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
-	clean-generic clean-libtool clean-noinstPROGRAMS 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-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am 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
-
-
-all-local:
-	rm -f ../../bin/tradeclient
-	ln -s ../examples/tradeclient/tradeclient ../../bin/tradeclient
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+	clean-generic clean-libtool ctags distclean distclean-compile \
+	distclean-generic distclean-libtool distclean-tags distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-binPROGRAMS install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	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-binPROGRAMS
+
 
 # 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.
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/tradeclientgui/banzai/Makefile.am quickfix-examples-autotools-patches/examples/tradeclientgui/banzai/Makefile.am
--- quickfix/examples/tradeclientgui/banzai/Makefile.am	2002-10-16 12:15:04.000000000 +0800
+++ quickfix-examples-autotools-patches/examples/tradeclientgui/banzai/Makefile.am	2011-05-29 11:18:53.499103159 +0800
@@ -2,6 +2,6 @@
 EXTRA_DIST = *.bat *.xml
 
 all-local:
-	./build.sh
+	ant
 clean-local:
-	./build.sh clean
\ No newline at end of file
+	ant clean
diff --exclude=autom4te.cache --exclude='*~' -urN quickfix/examples/tradeclientgui/banzai/Makefile.in quickfix-examples-autotools-patches/examples/tradeclientgui/banzai/Makefile.in
--- quickfix/examples/tradeclientgui/banzai/Makefile.in	2011-05-29 11:18:51.777092209 +0800
+++ quickfix-examples-autotools-patches/examples/tradeclientgui/banzai/Makefile.in	2011-05-29 11:19:06.111183341 +0800
@@ -580,9 +580,9 @@
 
 
 all-local:
-	./build.sh
+	ant
 clean-local:
-	./build.sh clean
+	ant clean
 
 # 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.
