Moved custom functions from configure.ac to acinclude.m4 file