diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-25 09:27:34 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-25 09:27:34 -0400 |
commit | 801164566924c41d18d66bdc9ca8b2305103fb82 (patch) | |
tree | 3384c10df8b38fb4af945f90fecd2c3876941fdf /configure.ac | |
parent | ignore option testing (diff) | |
download | firejail-801164566924c41d18d66bdc9ca8b2305103fb82.tar.gz firejail-801164566924c41d18d66bdc9ca8b2305103fb82.tar.zst firejail-801164566924c41d18d66bdc9ca8b2305103fb82.zip |
fix struct stat64 problem for musl libc
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index b2fa22fd7..52048757c 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -11,7 +11,7 @@ AC_PROG_RANLIB | |||
11 | 11 | ||
12 | HAVE_SECCOMP="" | 12 | HAVE_SECCOMP="" |
13 | AC_ARG_ENABLE([seccomp], | 13 | AC_ARG_ENABLE([seccomp], |
14 | AS_HELP_STRING([--disable-seccomp], [Disable seccomp])) | 14 | AS_HELP_STRING([--disable-seccomp], [disable seccomp])) |
15 | AS_IF([test "x$enable_seccomp" != "xno"], [ | 15 | AS_IF([test "x$enable_seccomp" != "xno"], [ |
16 | HAVE_SECCOMP="-DHAVE_SECCOMP" | 16 | HAVE_SECCOMP="-DHAVE_SECCOMP" |
17 | AC_SUBST(HAVE_SECCOMP) | 17 | AC_SUBST(HAVE_SECCOMP) |
@@ -19,7 +19,7 @@ AS_IF([test "x$enable_seccomp" != "xno"], [ | |||
19 | 19 | ||
20 | HAVE_CHROOT="" | 20 | HAVE_CHROOT="" |
21 | AC_ARG_ENABLE([chroot], | 21 | AC_ARG_ENABLE([chroot], |
22 | AS_HELP_STRING([--disable-chroot], [Disable chroot])) | 22 | AS_HELP_STRING([--disable-chroot], [disable chroot])) |
23 | AS_IF([test "x$enable_chroot" != "xno"], [ | 23 | AS_IF([test "x$enable_chroot" != "xno"], [ |
24 | HAVE_CHROOT="-DHAVE_CHROOT" | 24 | HAVE_CHROOT="-DHAVE_CHROOT" |
25 | AC_SUBST(HAVE_CHROOT) | 25 | AC_SUBST(HAVE_CHROOT) |
@@ -27,7 +27,7 @@ AS_IF([test "x$enable_chroot" != "xno"], [ | |||
27 | 27 | ||
28 | HAVE_BIND="" | 28 | HAVE_BIND="" |
29 | AC_ARG_ENABLE([bind], | 29 | AC_ARG_ENABLE([bind], |
30 | AS_HELP_STRING([--disable-bind], [Disable bind])) | 30 | AS_HELP_STRING([--disable-bind], [disable bind])) |
31 | AS_IF([test "x$enable_bind" != "xno"], [ | 31 | AS_IF([test "x$enable_bind" != "xno"], [ |
32 | HAVE_BIND="-DHAVE_BIND" | 32 | HAVE_BIND="-DHAVE_BIND" |
33 | AC_SUBST(HAVE_BIND) | 33 | AC_SUBST(HAVE_BIND) |
@@ -41,6 +41,14 @@ AS_IF([test "x$enable_fatal_warnings" = "xyes"], [ | |||
41 | AC_SUBST(HAVE_FATAL_WARNINGS) | 41 | AC_SUBST(HAVE_FATAL_WARNINGS) |
42 | ]) | 42 | ]) |
43 | 43 | ||
44 | HAVE_MUSL_LIBC="" | ||
45 | AC_ARG_ENABLE([musl_libc], | ||
46 | AS_HELP_STRING([--enable-musl-libc], [ugly hack to allow compilation with musl libc])) | ||
47 | AS_IF([test "x$enable_musl_libc" = "xyes"], [ | ||
48 | HAVE_MUSL_LIBC="-DHAVE_MUSL_LIBC" | ||
49 | AC_SUBST(HAVE_MUSL_LIBC) | ||
50 | ]) | ||
51 | |||
44 | # checking pthread library | 52 | # checking pthread library |
45 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 53 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
46 | AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 54 | AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
@@ -57,4 +65,5 @@ echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" | |||
57 | echo " chroot: $HAVE_CHROOT" | 65 | echo " chroot: $HAVE_CHROOT" |
58 | echo " bind: $HAVE_BIND" | 66 | echo " bind: $HAVE_BIND" |
59 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" | 67 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" |
68 | echo " musl libc: $HAVE_MUSL_LIBC" | ||
60 | echo | 69 | echo |