shantanugoel/asus-rt-n66u-merlin — pull request #9 by shantanugoel (2012-05-05 19:56:10+00:00)
Title: Shantz wol fix

This commit fixes the wol compilation.
There are three issues fixed:
1. The variable in makefile to suppress the usage of rpl_malloc is jm_cv_func_working_malloc, not ac_cv_func_working_malloc. The latter is used when the autotools macro for rpl_malloc test is used. But wol has its own test based on former variable. (Can check this in aclocal.m4)

2. In the rule to run configure for wol, we need to cd to the wol directory first and then set the variable and run configure otherwise the variable value that is set by us doesn't stick.

3. The config.h.in macros in configure.ac corresponding to the ether_addr struct should be kept before its corresponding tests, otherwise the config.h.in has the default values after the tests and override them even if the tests are successful, leading to wol trying to use its own inbuild ether_addr definition and failing with a redefinition error.