zeromq / zproject

CLASS Project Generator
Mozilla Public License 2.0
148 stars 104 forks source link

Problem: autogen fails from SELFTEST missing in configure.am #1334

Open BHare1985 opened 7 months ago

BHare1985 commented 7 months ago

A basic project.xml fails with ENABLE_MYPROJECT_SELFTEST does not appear in AM_CONDITIONAL.

This project.xml:

<project script = "zproject.gsl">
    <main name = "hello" private = "1" />
</project>

results in the following error when ./autogen.sh is executed:

configure.ac:55: installing 'config/compile'
configure.ac:58: installing 'config/config.guess'
configure.ac:58: installing 'config/config.sub'
configure.ac:21: installing 'config/install-sh'
configure.ac:21: installing 'config/missing'
src/Makemodule.am:20: error: ENABLE_MYPROJECT_SELFTEST does not appear in AM_CONDITIONAL
Makefile.am:44:   'src/Makemodule.am' included from here
src/Makemodule.am:319: error: ENABLE_MYPROJECT_SELFTEST does not appear in AM_CONDITIONAL
Makefile.am:44:   'src/Makemodule.am' included from here
Makefile.am: installing 'config/depcomp'
parallel-tests: installing 'config/test-driver'
autoreconf: error: automake failed with exit status: 1
autogen.sh: error: autoreconf exited with status 1

It seems that zproject_autotools.gsl had this added but with what seems to be a rogue .else in this commit: https://github.com/zeromq/zproject/commit/1487ad4d479c2b55f8a50f48bc8e8bdb5b44811e so therefore I am requesting @bluca to review

PS: I didn't use the exact basic example in the README because czmq fails to detect libzmq.

Solution: Remove rogue .else in autotools.gsl