diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 83 |
1 files changed, 81 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a4486b3ff..f3076f2f8 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,5 +1,5 @@ | |||
1 | AC_PREREQ([2.68]) | 1 | AC_PREREQ([2.68]) |
2 | AC_INIT(firejail, 0.9.40-rc2, netblue30@yahoo.com, , http://firejail.wordpress.com) | 2 | AC_INIT(firejail, 0.9.45, netblue30@yahoo.com, , http://firejail.wordpress.com) |
3 | AC_CONFIG_SRCDIR([src/firejail/main.c]) | 3 | AC_CONFIG_SRCDIR([src/firejail/main.c]) |
4 | #AC_CONFIG_HEADERS([config.h]) | 4 | #AC_CONFIG_HEADERS([config.h]) |
5 | 5 | ||
@@ -9,6 +9,39 @@ AC_PROG_CC | |||
9 | AC_PROG_INSTALL | 9 | AC_PROG_INSTALL |
10 | AC_PROG_RANLIB | 10 | AC_PROG_RANLIB |
11 | 11 | ||
12 | HAVE_APPARMOR="" | ||
13 | AC_ARG_ENABLE([apparmor], | ||
14 | AS_HELP_STRING([--enable-apparmor], [enable apparmor])) | ||
15 | AS_IF([test "x$enable_apparmor" = "xyes"], [ | ||
16 | HAVE_APPARMOR="-DHAVE_APPARMOR" | ||
17 | AC_SUBST(HAVE_APPARMOR) | ||
18 | ]) | ||
19 | |||
20 | AS_IF([test "x$enable_apparmor" = "xyes"], [ | ||
21 | AC_CHECK_HEADER(sys/apparmor.h, , [AC_MSG_ERROR( | ||
22 | [Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )]) | ||
23 | ]) | ||
24 | AS_IF([test "x$enable_apparmor" = "xyes"], [ | ||
25 | EXTRA_LDFLAGS+="-lapparmor " | ||
26 | ]) | ||
27 | AC_SUBST([EXTRA_LDFLAGS]) | ||
28 | |||
29 | HAVE_OVERLAYFS="" | ||
30 | AC_ARG_ENABLE([overlayfs], | ||
31 | AS_HELP_STRING([--disable-overlayfs], [disable overlayfs])) | ||
32 | AS_IF([test "x$enable_overlayfs" != "xno"], [ | ||
33 | HAVE_OVERLAYFS="-DHAVE_OVERLAYFS" | ||
34 | AC_SUBST(HAVE_OVERLAYFS) | ||
35 | ]) | ||
36 | |||
37 | HAVE_PRIVATEHOME="" | ||
38 | AC_ARG_ENABLE([private-home], | ||
39 | AS_HELP_STRING([--disable-private-home], [disable private home feature])) | ||
40 | AS_IF([test "x$enable_private_home" != "xno"], [ | ||
41 | HAVE_PRIVATE_HOME="-DHAVE_PRIVATE_HOME" | ||
42 | AC_SUBST(HAVE_PRIVATE_HOME) | ||
43 | ]) | ||
44 | |||
12 | HAVE_SECCOMP="" | 45 | HAVE_SECCOMP="" |
13 | AC_ARG_ENABLE([seccomp], | 46 | AC_ARG_ENABLE([seccomp], |
14 | AS_HELP_STRING([--disable-seccomp], [disable seccomp])) | 47 | AS_HELP_STRING([--disable-seccomp], [disable seccomp])) |
@@ -33,6 +66,14 @@ AS_IF([test "x$enable_bind" != "xno"], [ | |||
33 | AC_SUBST(HAVE_BIND) | 66 | AC_SUBST(HAVE_BIND) |
34 | ]) | 67 | ]) |
35 | 68 | ||
69 | HAVE_GLOBALCFG="" | ||
70 | AC_ARG_ENABLE([globalcfg], | ||
71 | AS_HELP_STRING([--disable-globalcfg], [if the global config file firejail.cfg is not present, continue the program using defaults])) | ||
72 | AS_IF([test "x$enable_globalcfg" != "xno"], [ | ||
73 | HAVE_GLOBALCFG="-DHAVE_GLOBALCFG" | ||
74 | AC_SUBST(HAVE_GLOBALCFG) | ||
75 | ]) | ||
76 | |||
36 | HAVE_NETWORK="" | 77 | HAVE_NETWORK="" |
37 | AC_ARG_ENABLE([network], | 78 | AC_ARG_ENABLE([network], |
38 | AS_HELP_STRING([--disable-network], [disable network])) | 79 | AS_HELP_STRING([--disable-network], [disable network])) |
@@ -70,6 +111,14 @@ AS_IF([test "x$enable_file_transfer" != "xno"], [ | |||
70 | AC_SUBST(HAVE_FILE_TRANSFER) | 111 | AC_SUBST(HAVE_FILE_TRANSFER) |
71 | ]) | 112 | ]) |
72 | 113 | ||
114 | HAVE_WHITELIST="" | ||
115 | AC_ARG_ENABLE([whitelist], | ||
116 | AS_HELP_STRING([--disable-whitelist], [disable whitelist])) | ||
117 | AS_IF([test "x$enable_whitelist" != "xno"], [ | ||
118 | HAVE_WHITELIST="-DHAVE_WHITELIST" | ||
119 | AC_SUBST(HAVE_WHITELIST) | ||
120 | ]) | ||
121 | |||
73 | HAVE_FATAL_WARNINGS="" | 122 | HAVE_FATAL_WARNINGS="" |
74 | AC_ARG_ENABLE([fatal_warnings], | 123 | AC_ARG_ENABLE([fatal_warnings], |
75 | AS_HELP_STRING([--enable-fatal-warnings], [-W -Wall -Werror])) | 124 | AS_HELP_STRING([--enable-fatal-warnings], [-W -Wall -Werror])) |
@@ -78,6 +127,25 @@ AS_IF([test "x$enable_fatal_warnings" = "xyes"], [ | |||
78 | AC_SUBST(HAVE_FATAL_WARNINGS) | 127 | AC_SUBST(HAVE_FATAL_WARNINGS) |
79 | ]) | 128 | ]) |
80 | 129 | ||
130 | BUSYBOX_WORKAROUND="no" | ||
131 | AC_ARG_ENABLE([busybox-workaround], | ||
132 | AS_HELP_STRING([--enable-busybox-workaround], [enable busybox workaround])) | ||
133 | AS_IF([test "x$enable_busybox_workaround" = "xyes"], [ | ||
134 | BUSYBOX_WORKAROUND="yes" | ||
135 | AC_SUBST(BUSYBOX_WORKAROUND) | ||
136 | ]) | ||
137 | |||
138 | |||
139 | HAVE_GCOV="" | ||
140 | AC_ARG_ENABLE([gcov], | ||
141 | AS_HELP_STRING([--enable-gcov], [Gcov instrumentation])) | ||
142 | AS_IF([test "x$enable_gcov" = "xyes"], [ | ||
143 | HAVE_GCOV="--coverage -DHAVE_GCOV " | ||
144 | EXTRA_LDFLAGS+="-lgcov --coverage " | ||
145 | AC_SUBST(HAVE_GCOV) | ||
146 | ]) | ||
147 | |||
148 | |||
81 | 149 | ||
82 | # checking pthread library | 150 | # checking pthread library |
83 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 151 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
@@ -90,7 +158,9 @@ if test "$prefix" = /usr; then | |||
90 | sysconfdir="/etc" | 158 | sysconfdir="/etc" |
91 | fi | 159 | fi |
92 | 160 | ||
93 | AC_OUTPUT(Makefile src/lib/Makefile src/firejail/Makefile src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile src/ftee/Makefile) | 161 | AC_OUTPUT(Makefile src/lib/Makefile src/fcopy/Makefile src/fnet/Makefile src/firejail/Makefile \ |
162 | src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile \ | ||
163 | src/ftee/Makefile src/faudit/Makefile src/libconnect/Makefile src/fseccomp/Makefile) | ||
94 | 164 | ||
95 | echo | 165 | echo |
96 | echo "Configuration options:" | 166 | echo "Configuration options:" |
@@ -98,13 +168,22 @@ echo " prefix: $prefix" | |||
98 | echo " sysconfdir: $sysconfdir" | 168 | echo " sysconfdir: $sysconfdir" |
99 | echo " seccomp: $HAVE_SECCOMP" | 169 | echo " seccomp: $HAVE_SECCOMP" |
100 | echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" | 170 | echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" |
171 | echo " apparmor: $HAVE_APPARMOR" | ||
172 | echo " global config: $HAVE_GLOBALCFG" | ||
101 | echo " chroot: $HAVE_CHROOT" | 173 | echo " chroot: $HAVE_CHROOT" |
102 | echo " bind: $HAVE_BIND" | 174 | echo " bind: $HAVE_BIND" |
103 | echo " network: $HAVE_NETWORK" | 175 | echo " network: $HAVE_NETWORK" |
104 | echo " user namespace: $HAVE_USERNS" | 176 | echo " user namespace: $HAVE_USERNS" |
105 | echo " X11 sandboxing support: $HAVE_X11" | 177 | echo " X11 sandboxing support: $HAVE_X11" |
178 | echo " whitelisting: $HAVE_WHITELIST" | ||
179 | echo " private home support: $HAVE_PRIVATE_HOME" | ||
106 | echo " file transfer support: $HAVE_FILE_TRANSFER" | 180 | echo " file transfer support: $HAVE_FILE_TRANSFER" |
181 | echo " overlayfs support: $HAVE_OVERLAYFS" | ||
182 | echo " busybox workaround: $BUSYBOX_WORKAROUND" | ||
183 | echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS" | ||
107 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" | 184 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" |
185 | echo " Gcov instrumentation: $HAVE_GCOV" | ||
108 | echo | 186 | echo |
109 | 187 | ||
110 | 188 | ||
189 | |||