You are using *build_style=gnu-configure* and later providing a **do_configure** function. Rename this function to **pre_configure()** and move **--sysconfdir=/etc/a2ps --enable-shared --with-medium=A4** to **configure_args**.