Skip to content

Commit 99147b7

Browse files
benmadouglasbakkum
authored andcommitted
fix make distcheck
1 parent deec07d commit 99147b7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ endif
151151
endif
152152

153153
if USE_ECMULT_STATIC_PRECOMPUTATION
154-
CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)
154+
CPPFLAGS_FOR_BUILD +=-I$(top_srcdir) -I$(builddir)/src
155155

156156
gen_context_OBJECTS = gen_context.o
157157
gen_context_BIN = gen_context$(BUILD_EXEEXT)

src/gen_context.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
55
**********************************************************************/
66

7-
#include "libsecp256k1-config.h" // for ECMULT_GEN_PREC_BITS
7+
// Autotools creates libsecp256k1-config.h, of which ECMULT_GEN_PREC_BITS is needed.
8+
// ifndef guard so downstream users can define their own if they do not use autotools.
9+
#if !defined(ECMULT_GEN_PREC_BITS)
10+
#include "libsecp256k1-config.h"
11+
#endif
812
#define USE_BASIC_CONFIG 1
913
#include "basic-config.h"
1014

0 commit comments

Comments
 (0)