diff --git a/.github/workflows/bigendian.yml b/.github/workflows/bigendian.yml new file mode 100644 index 00000000..325a85fd --- /dev/null +++ b/.github/workflows/bigendian.yml @@ -0,0 +1,27 @@ +name: Test Big Endian. + +on: [push, pull_request] + +jobs: + one: + runs-on: ubuntu-latest + steps: + - name: Setup multiarch/qemu-user-static + run: | + docker run --rm --privileged multiarch/qemu-user-static:register --reset + - name: ubuntu-core:s390x-focal + uses: docker://multiarch/ubuntu-core:s390x-focal + with: + args: > + bash -c + " + apt-get update -y && + DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata && + apt-get install -y automake libtool make gcc pkg-config bison git && + git clone https://github.com/VirusTotal/yara && + cd yara && + ./bootstrap.sh && + ./configure --disable-proc-scan && + make && + make check + " \ No newline at end of file diff --git a/configure.ac b/configure.ac index f13c31de..88cf44d3 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,19 @@ case $host_alias in i?86-*-mingw*) CFLAGS="$CFLAGS -D__MINGW_USE_VC2005_COMPAT" ;; esac -case $host_os in +AC_ARG_ENABLE([proc-scan], + [AS_HELP_STRING([--disable-proc-scan], [disable process scanning])], + [if test x$enableval = xyes; then + AC_MSG_ERROR([ +***************************************************************** + Process scanning is enabled by default, remove --enable-proc-scan. +***************************************************************** +]) + else + proc_interface=none + CFLAGS="$CFLAGS -DUSE_NO_PROC" + fi], + [case $host_os in darwin*) CFLAGS="$CFLAGS -I/opt/local/include" # Starting with Mac OS X 10.11 (El Capitan) the OpenSSL headers # are in /usr/local/opt/openssl/include @@ -74,7 +86,9 @@ case $host_os in CFLAGS="$CFLAGS -DUSE_NO_PROC" proc_interface=none jemalloc_prefix= ;; -esac + esac]) + + ACX_PTHREAD( [LIBS="$PTHREAD_LIBS $LIBS"