From 801164566924c41d18d66bdc9ca8b2305103fb82 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 25 Oct 2015 09:27:34 -0400 Subject: fix struct stat64 problem for musl libc --- configure | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 9625cdb61..e7b573c25 100755 --- a/configure +++ b/configure @@ -628,6 +628,7 @@ HAVE_SECCOMP_H EGREP GREP CPP +HAVE_MUSL_LIBC HAVE_FATAL_WARNINGS HAVE_BIND HAVE_CHROOT @@ -688,6 +689,7 @@ enable_seccomp enable_chroot enable_bind enable_fatal_warnings +enable_musl_libc ' ac_precious_vars='build_alias host_alias @@ -1307,10 +1309,11 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-seccomp Disable seccomp - --disable-chroot Disable chroot - --disable-bind Disable bind + --disable-seccomp disable seccomp + --disable-chroot disable chroot + --disable-bind disable bind --enable-fatal-warnings -W -Wall -Werror + --enable-musl-libc ugly hack to allow compilation with musl libc Some influential environment variables: CC C compiler command @@ -3098,6 +3101,19 @@ if test "x$enable_fatal_warnings" = "xyes"; then : HAVE_FATAL_WARNINGS="-W -Wall -Werror" +fi + +HAVE_MUSL_LIBC="" +# Check whether --enable-musl_libc was given. +if test "${enable_musl_libc+set}" = set; then : + enableval=$enable_musl_libc; +fi + +if test "x$enable_musl_libc" = "xyes"; then : + + HAVE_MUSL_LIBC="-DHAVE_MUSL_LIBC" + + fi # checking pthread library @@ -4736,4 +4752,5 @@ echo " : $HAVE_SECCOMP_H" echo " chroot: $HAVE_CHROOT" echo " bind: $HAVE_BIND" echo " fatal warnings: $HAVE_FATAL_WARNINGS" +echo " musl libc: $HAVE_MUSL_LIBC" echo -- cgit v1.2.3-54-g00ecf