File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727/libtool
2828/stamp-h1
2929# In-tree build, only top-level
30+ /apisupport-config.h
3031/cpusupport-config.h
3132# In-tree build, all directories
3233.dirstamp
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ AM_CPPFLAGS= -I$(srcdir)/lib \
9393 -I$(srcdir ) /libcperciva/crypto \
9494 -I$(srcdir ) /libcperciva/util \
9595 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
96+ -DAPISUPPORT_CONFIG_FILE=\"apisupport-config.h\" \
9697 -D_POSIX_C_SOURCE=200809L \
9798 -D_XOPEN_SOURCE=700 \
9899 ${CFLAGS_POSIX}
@@ -105,10 +106,15 @@ scrypt_LDADD= libcperciva_aesni.la libcperciva_rdrand.la \
105106 ${LDADD_POSIX}
106107scrypt_man_MANS = scrypt.1
107108
109+ # apisupport needs to access post-configure info: lib-platform/platform.h,
110+ # config.h, and -DHAVE_CONFIG_H.
111+ apisupport-config.h :
112+ ( export CC=" ${CC} " ; export CFLAGS=" -I${top_srcdir} /lib-platform -I${builddir} ${DEFS} ${CFLAGS} " ; command -p sh $( srcdir) /libcperciva/apisupport/Build/apisupport.sh " $$ PATH" ) > apisupport-config.h.tmp && command -p mv apisupport-config.h.tmp apisupport-config.h
108113cpusupport-config.h :
109114 ( export CC=" ${CC} " ; export CFLAGS=" ${CFLAGS} " ; command -p sh $( srcdir) /libcperciva/cpusupport/Build/cpusupport.sh " $$ PATH" ) > cpusupport-config.h.tmp && command -p mv cpusupport-config.h.tmp cpusupport-config.h
110- BUILT_SOURCES = cpusupport-config.h
111- CLEANFILES = cpusupport-config.h cpusupport-config.h.tmp
115+ BUILT_SOURCES = apisupport-config.h cpusupport-config.h
116+ CLEANFILES = apisupport-config.h apisupport-config.h.tmp \
117+ cpusupport-config.h cpusupport-config.h.tmp
112118
113119# Libraries from libcperciva code.
114120noinst_LTLIBRARIES = libcperciva_aesni.la
You can’t perform that action at this time.
0 commit comments