Error message: "AMDEP" was never detected

I have configure.acone in which I allow different compilers using different configuration options. configureThe script was generated successfully, but at the end (call AC_OUTPUT), an error message appears:

configure: error: conditional "AMDEP" was never defined.
Usually this means the macro was only invoked conditionally.

Unfortunately, the search config.logdoes not help, and I do not know what causes this error or where to start the search.

+3
source share
1 answer

Apparently you cannot embed AM_PROG_CC, AM_PROG_CPPor AM_PROG_CXXin a block if(for any reason). The solution was to set the variable to a block ifand pass it to AM_PROG _ *.

+4
source

All Articles