blob: 7ca9c5c6ca83eb7416ed3f8e903a599d377cb89f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
Description:
Access from source code to variables set by "configure" or "make".
Files:
m4/configmake.m4
m4/build-to-host.m4
Depends-on:
gen-header
configure.ac:
gl_CONFIGMAKE
AC_PROG_MKDIR_P
Makefile.am:
# Listed in the same order as the GNU makefile conventions, and
# provided by autoconf 2.59c+ or 2.70.
# The Automake-defined pkg* macros are appended, in the order
# listed in the Automake 1.10a+ documentation.
configmake.h: Makefile
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
$(gl_V_at){ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#if HAVE_WINSOCK2_H'; \
echo '# include <winsock2.h> /* avoid mingw pollution on DATADIR */'; \
echo '#endif'; \
printf '#define PREFIX %s\n' $(prefix_c_make); \
printf '#define EXEC_PREFIX %s\n' $(exec_prefix_c_make); \
printf '#define BINDIR %s\n' $(bindir_c_make); \
printf '#define SBINDIR %s\n' $(sbindir_c_make); \
printf '#define LIBEXECDIR %s\n' $(libexecdir_c_make); \
printf '#define DATAROOTDIR %s\n' $(datarootdir_c_make); \
printf '#define DATADIR %s\n' $(datadir_c_make); \
printf '#define SYSCONFDIR %s\n' $(sysconfdir_c_make); \
printf '#define SHAREDSTATEDIR %s\n' $(sharedstatedir_c_make); \
printf '#define LOCALSTATEDIR %s\n' $(localstatedir_c_make); \
printf '#define RUNSTATEDIR %s\n' $(runstatedir_c_make); \
printf '#define INCLUDEDIR %s\n' $(includedir_c_make); \
printf '#define OLDINCLUDEDIR %s\n' $(oldincludedir_c_make); \
printf '#define DOCDIR %s\n' $(docdir_c_make); \
printf '#define INFODIR %s\n' $(infodir_c_make); \
printf '#define HTMLDIR %s\n' $(htmldir_c_make); \
printf '#define DVIDIR %s\n' $(dvidir_c_make); \
printf '#define PDFDIR %s\n' $(pdfdir_c_make); \
printf '#define PSDIR %s\n' $(psdir_c_make); \
printf '#define LIBDIR %s\n' $(libdir_c_make); \
printf '#define LISPDIR %s\n' $(lispdir_c_make); \
printf '#define LOCALEDIR %s\n' $(localedir_c_make); \
printf '#define MANDIR %s\n' $(mandir_c_make); \
printf '#define MANEXT %s\n' \"$(manext)\"; \
printf '#define PKGDATADIR %s\n' $(pkgdatadir_c_make); \
printf '#define PKGINCLUDEDIR %s\n' $(pkgincludedir_c_make); \
printf '#define PKGLIBDIR %s\n' $(pkglibdir_c_make); \
printf '#define PKGLIBEXECDIR %s\n' $(pkglibexecdir_c_make); \
} | sed '/""/d' > $@-t
$(AM_V_at)mv $@-t $@
BUILT_SOURCES += configmake.h
CLEANFILES += configmake.h configmake.h-t
Include:
"configmake.h"
License:
LGPLv2+
Maintainer:
all
|