2 Access from source code to variables set by "configure" or "make".
13 # Listed in the same order as the GNU makefile conventions, and
14 # provided by autoconf 2.59c+ or 2.70.
15 # The Automake-defined pkg* macros are appended, in the order
16 # listed in the Automake 1.10a+ documentation.
17 configmake.h: Makefile
18 $(AM_V_GEN)rm -f $@-t && \
19 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
20 echo '#if HAVE_WINSOCK2_H'; \
21 echo '# include <winsock2.h> /* avoid mingw pollution on DATADIR */'; \
23 echo '#define PREFIX "$(prefix)"'; \
24 echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
25 echo '#define BINDIR "$(bindir)"'; \
26 echo '#define SBINDIR "$(sbindir)"'; \
27 echo '#define LIBEXECDIR "$(libexecdir)"'; \
28 echo '#define DATAROOTDIR "$(datarootdir)"'; \
29 echo '#define DATADIR "$(datadir)"'; \
30 echo '#define SYSCONFDIR "$(sysconfdir)"'; \
31 echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
32 echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
33 echo '#define RUNSTATEDIR "$(runstatedir)"'; \
34 echo '#define INCLUDEDIR "$(includedir)"'; \
35 echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
36 echo '#define DOCDIR "$(docdir)"'; \
37 echo '#define INFODIR "$(infodir)"'; \
38 echo '#define HTMLDIR "$(htmldir)"'; \
39 echo '#define DVIDIR "$(dvidir)"'; \
40 echo '#define PDFDIR "$(pdfdir)"'; \
41 echo '#define PSDIR "$(psdir)"'; \
42 echo '#define LIBDIR "$(libdir)"'; \
43 echo '#define LISPDIR "$(lispdir)"'; \
44 echo '#define LOCALEDIR "$(localedir)"'; \
45 echo '#define MANDIR "$(mandir)"'; \
46 echo '#define MANEXT "$(manext)"'; \
47 echo '#define PKGDATADIR "$(pkgdatadir)"'; \
48 echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
49 echo '#define PKGLIBDIR "$(pkglibdir)"'; \
50 echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
51 } | sed '/""/d' > $@-t && \
54 BUILT_SOURCES += configmake.h
55 CLEANFILES += configmake.h configmake.h-t