You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #include directives assume that the directory ./src/ or the installed directory $(PREFIX)/include/libsnark (see Makefile L282 at 0b928a7b (latest on branch master)) are on the include path. This is non-standard and complicates detecting this library with GNU autoconf.
# libsnark header layout is broken unless cpp's -I is passed with the# libsnark directory, so for now we use this hideous workaround:echo'Hunting for libsnark include directory...'
[LIBSNARK_INCDIR="$(echo "$CPPFLAGS"| sed 's,^.*-I\([^ ]*/include\).*$,\1/libsnark,')"]
iftest -d "$LIBSNARK_INCDIR";thenecho"Found libsnark include directory: $LIBSNARK_INCDIR"else
AC_MSG_ERROR(libsnark include directory not found)
fi
CPPFLAGS="-I$LIBSNARK_INCDIR$CPPFLAGS"# Now check for libsnark compilability using traditional autoconf tests:
AC_CHECK_HEADER([libsnark/gadgetlib1/gadget.hpp],,AC_MSG_ERROR(libsnark headers missing))
AC_CHECK_LIB([snark],[main],LIBSNARK_LIBS=-lsnark, [AC_MSG_ERROR(libsnark missing)], [-lgmpxx])
The text was updated successfully, but these errors were encountered:
The
#include
directives assume that the directory./src/
or the installed directory$(PREFIX)/include/libsnark
(seeMakefile
L282 at0b928a7b
(latest on branchmaster
)) are on the include path. This is non-standard and complicates detecting this library with GNUautoconf
.The zcash
configure.ac
L704-L718 at108650a5
(latest on branchzc.v0.11.2.latest
) demonstrates the difficulty of working around this issue for dependent programs that useautoconf
:The text was updated successfully, but these errors were encountered: