From 81c3a17b52fbb9d779bb6d9eef633a734f55572b Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 27 Jul 2016 20:15:39 +0000
Subject: gcc2 patch


diff --git a/src/main.c b/src/main.c
index e329e4e..3b0ca7e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -352,9 +352,9 @@ void check_options (void)
 	    char *slash;
 		m4 = M4;
 		if ((slash = strrchr(M4, '/')) != NULL) {
-			m4 = slash+1;
 			/* break up $PATH */
 			const char *path = getenv("PATH");
+			m4 = slash+1;
 			if (!path) {
 				m4 = M4;
 			} else {
-- 
2.7.0

