diff --git a/Makefile.in b/Makefile.in
index 8b5d7fc..5b11bf8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,3 +1,18 @@
-bin_PROGRAMS = bootsect
-bootsect_SOURCES = bootsect.S
+all:
+	as86 -0 -a -o bootsect.o bootsect.S
+	ld86 -0 -s -o bootsect bootsect.o

+install:
+	dd bs=32 if=bootsect of=/dev/fd0 skip=1
+	@echo "OK, now run: bochs -f bochsrc.bxrc!"
+
+clean:
+	-rm -rf *.o bootsect
+
+Makefile: Makefile.in config.status
+	./config.status $@
+
+config.log: configure
+	./config.status --recheck
+
+.PHONY: all install clean
diff --git a/configure.ac b/configure.ac
index cda6d3b..32a42be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,10 +2,18 @@
 # Process this file with autoconf to produce a configure script.

 AC_PREREQ([2.69])
-AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
+AC_INIT([bootsect], [1.0], [Tyrion.Lannister.274AL@gmail.com])

 # Checks for programs.
+AC_CHECK_PROG(as_var, [as86], [yes], [no], ,)
+AC_CHECK_PROG(ld_var, [ld86], [yes], [no], ,)

+if test "x${as_var}" = xno || "x${ld_var}" = xno; then
+   AC_MSG_ERROR([
+    ------------------------------------------------
+    The as86 or ld86 not found in PATH, please Check!
+    ------------------------------------------------])
+fi
 # Checks for libraries.

 # Checks for header files.
@@ -14,4 +22,6 @@ AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])

 # Checks for library functions.

+AC_CONFIG_FILES([Makefile])
+
 AC_OUTPUT
diff --git a/autogen.sh b/autogen.sh
index e69de29..613e87c 100644
--- a/autogen.sh
+++ b/autogen.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+# Time-stamp: <2013-09-27 15:41:01 Friday by alex>
+
+# @version 1.0
+# @author ahei
+
+autoreconf --install
+automake --add-missing --copy >/dev/null 2>&1
diff --git a/Makefile.in b/Makefile.in
index 5b11bf8..b17da8d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -4,7 +4,12 @@ all:

 install:
 	dd bs=32 if=bootsect of=/dev/fd0 skip=1
-	@echo "OK, now run: bochs -f bochsrc.bxrc!"
+	@echo -e \
+"\n\n\
+----------------------------------------\n\
+          OK, now run: \n\
+          bochs -f bochsrc.bxrc!\n\
+----------------------------------------\n\n"

 clean:
 	-rm -rf *.o bootsect
diff --git a/autogen.sh b/autogen.sh
old mode 100644
new mode 100755
diff --git a/configure.ac b/configure.ac
index 32a42be..d7c1c91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,15 +5,16 @@ AC_PREREQ([2.69])
 AC_INIT([bootsect], [1.0], [Tyrion.Lannister.274AL@gmail.com])

 # Checks for programs.
-AC_CHECK_PROG(as_var, [as86], [yes], [no], ,)
-AC_CHECK_PROG(ld_var, [ld86], [yes], [no], ,)
+AC_CHECK_PROG(as86_var, [as86], [yes], [no], ,)
+AC_CHECK_PROG(ld86_var, [ld86], [yes], [no], ,)

-if test "x${as_var}" = xno || "x${ld_var}" = xno; then
+if [[ "x${as86_var}" = xno ]] || [[ "x${ld86_var}" = xno ]]; then
    AC_MSG_ERROR([
     ------------------------------------------------
-    The as86 or ld86 not found in PATH, please Check!
+    The as86 or ld86 is not found in PATH, please Check!
     ------------------------------------------------])
-fi
+fi
+
 # Checks for libraries.

 # Checks for header files.
@@ -25,3 +26,4 @@ fi
 AC_CONFIG_FILES([Makefile])

 AC_OUTPUT
+