Repository navigation
Expand file tree
/
Copy pathconfigure.ac
More file actions
139 lines (133 loc) · 6.2 KB
/
Copy pathconfigure.ac
File metadata and controls
139 lines (133 loc) · 6.2 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
AC_INIT([eos-boot-helper], [0.0])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([eos-firstboot])
PKG_PROG_PKG_CONFIG
AC_PROG_CC
AC_PROG_SED
AC_CANONICAL_TARGET
dnl Get systemd unit and udev rules directories. Add options so that they
dnl can be set under $prefix for distcheck.
m4_define([no_systemdutildir_error],
[m4_normalize([Could not get systemdutildir setting from]
[systemd pkg-config file])])
m4_define([no_systemdunitdir_error],
[m4_normalize([Could not get systemdsystemunitdir setting from]
[systemd pkg-config file])])
m4_define([no_systemdsystemgeneratordir_error],
[m4_normalize([Could not get systemdsystemgeneratordir setting from]
[systemd pkg-config file])])
m4_define([no_systemdsystempresetdir_error],
[m4_normalize([Could not get systemdsystempresetdir setting from]
[systemd pkg-config file])])
m4_define([no_udev_error],
[m4_normalize([Could not get udevdir setting from udev]
[pkg-config file])])
m4_define([no_systembusservicesdir_error],
[m4_normalize([Could not get system_bus_services_dir setting from]
[dbus pkg-config file])])
m4_define([no_polkitpolicydir_error],
[m4_normalize([Could not get policydir setting from]
[polkit-gobject-1 pkg-config file])])
AC_ARG_WITH([systemdutildir],
[AS_HELP_STRING([--with-systemdutildir],
[Path to the system directory for systemd configuration])],
[systemdutildir="$withval"],
[PKG_CHECK_VAR([systemdutildir], [systemd],
[systemdutildir], [],
[AC_MSG_ERROR(no_systemdutildir_error)])])
AC_ARG_WITH([systemdunitdir],
[AS_HELP_STRING([--with-systemdunitdir],
[Path to the system directory for systemd units])],
[systemdunitdir="$withval"],
[PKG_CHECK_VAR([systemdunitdir], [systemd],
[systemdsystemunitdir], [],
[AC_MSG_ERROR(no_systemdunitdir_error)])])
AC_ARG_WITH([systemduserunitdir],
[AS_HELP_STRING([--with-systemduserunitdir],
[Path to the system directory for systemd user units])],
[systemduserunitdir="$withval"],
[PKG_CHECK_VAR([systemduserunitdir], [systemd],
[systemduserunitdir], [],
[AC_MSG_ERROR(no_systemduserunitdir_error)])])
AC_ARG_WITH([systemdgeneratordir],
[AS_HELP_STRING([--with-systemdgeneratordir],
[Path to the system directory for systemd generators])],
[systemdgeneratordir="$withval"],
[PKG_CHECK_VAR([systemdgeneratordir], [systemd],
[systemdsystemgeneratordir], [],
[AC_MSG_ERROR(no_systemdsystemgeneratordir_error)])])
AC_ARG_WITH([systemdpresetdir],
[AS_HELP_STRING([--with-systemdpresetdir],
[Path to the system directory for systemd presets])],
[systemdpresetdir="$withval"],
[PKG_CHECK_VAR([systemdpresetdir], [systemd],
[systemdsystempresetdir], [],
[AC_MSG_ERROR(no_systemdsystempresetdir_error)])])
AC_ARG_WITH([systemdsystemmanagerconfdir],
[AS_HELP_STRING([--with-systemdsystemmanagerconfdir],
[Path to the system directory for systemd system service manager configuration])],
[systemdsystemmanagerconfdir="$withval"], [systemdsystemmanagerconfdir="$systemdutildir/system.conf.d"])
AC_SUBST(systemdsystemmanagerconfdir)
AC_ARG_WITH([systemdusermanagerconfdir],
[AS_HELP_STRING([--with-systemdusermanagerconfdir],
[Path to the system directory for systemd user service manager configuration])],
[systemdusermanagerconfdir="$withval"], [systemdusermanagerconfdir="$systemdutildir/user.conf.d"])
AC_SUBST(systemdusermanagerconfdir)
AC_ARG_WITH([udevdir],
[AS_HELP_STRING([--with-udevdir],
[Path to the system udev directory])],
[udevdir="$withval"],
[PKG_CHECK_VAR([udevdir], [udev],
[udevdir], [],
[AC_MSG_ERROR(no_udev_error)])])
AC_ARG_WITH([system-bus-services-dir],
[AS_HELP_STRING([--with-system-bus-services-dir],
[Path to the system bus services directory])],
[system_bus_services_dir="$withval"],
[PKG_CHECK_VAR([systembusservicesdir], [dbus-1],
[system_bus_services_dir], [],
[AC_MSG_ERROR(no_systembusservicesdir_error)])])
AC_ARG_WITH([modprobedir],
[AS_HELP_STRING([--with-modprobedir],
[Path to the system modprobe.d directory])],
[modprobedir="$withval"], [modprobedir="/lib/modprobe.d"])
AC_SUBST(modprobedir)
AC_ARG_WITH([dbussystemconfigdir],
[AS_HELP_STRING([--with-dbussystemconfigdir],
[Path to the system dbus-1/system.d directory])],
[dbussystemconfigdir="$withval"], [dbussystemconfigdir="/usr/share/dbus-1/system.d"])
AC_SUBST(dbussystemconfigdir)
AC_ARG_WITH([polkitpolicydir],
[AS_HELP_STRING([--with-polkitpolicydir],
[Path to the system polkit policy directory])],
[polkitpolicydir="$withval"],
[PKG_CHECK_VAR([polkitpolicydir], [polkit-gobject-1],
[policydir], [],
[AC_MSG_ERROR(no_polkitpolicydir_error)])])
FLATPAK_ARCH="x86_64"
case $target_cpu in
arm*)
FLATPAK_ARCH="arm"
;;
aarch64*)
FLATPAK_ARCH="aarch64"
;;
esac
AC_SUBST(FLATPAK_ARCH)
AC_CONFIG_FILES([
Makefile
dracut/Makefile
dracut/image-boot/Makefile
dracut/customization/Makefile
factory-reset/Makefile
fallback-fb-setup/Makefile
flatpak-repos/Makefile
journald/Makefile
locale/Makefile
nvidia/Makefile
psi-monitor/Makefile
record-boot-success/Makefile
tests/Makefile
tmpfiles.d/chromium-system-services.conf
])
AC_OUTPUT