examples/apache: compile apr/apr-util/ngtthp with the script
diff --git a/compile_and_install.sh b/compile_and_install.sh
new file mode 100755
-index 0000000..6fbf9e9
+index 0000000..690d91f
--- /dev/null
+++ b/compile_and_install.sh
-@@ -0,0 +1,38 @@
+@@ -0,0 +1,62 @@
+#!/bin/sh
+
+set -ex
@@ -23,10 +23,34 @@ index 0000000..6fbf9e9
+APR_PATH="$(realpath "$PWD/../apr-$APR_VER")"
+APR_UTIL_PATH="$(realpath "$PWD/../apr-util-$APR_UTIL_VER")/"
+
-+echo "Install PATH: $INSTALL_PREFIX"
++export CC="$HFUZZ_DIR/hfuzz_cc/hfuzz-clang"
++export CXX="$HFUZZ_DIR/hfuzz_cc/hfuzz-clang++"
++
++echo "Compiling APR"
++cd "$APR_PATH"
++CFLAGS="$CFLAGS_SAN" ./configure --disable-shared --enable-static
++make clean
++make -j$(nproc)
++cd -
++
++echo "Compiling APR-UTIL"
++cd "$APR_UTIL_PATH"
++CFLAGS="$CFLAGS_SAN" ./configure --with-apr="$APR_PATH" --disable-shared --enable-static
++make clean
++make -j$(nproc)
++cd -
++
++echo "Compiling NGHTTP2"
++cd "$NGHTTP2_PATH"
++CFLAGS="$CFLAGS_SAN" CXXLAGS="$CFLAGS_SAN" ./configure --disable-shared --enable-static
++make clean
++make -j$(nproc)
++cd -
+
++echo "Install PATH: $INSTALL_PREFIX"
+./buildconf --with-apr="$APR_PATH" --with-apr-util="$APR_UTIL_PATH"
+
++echo "Compiling HTTPD"
+CC="$HFUZZ_DIR/hfuzz_cc/hfuzz-clang" CXX="$HFUZZ_DIR/hfuzz_cc/hfuzz-clang++" CFLAGS="-I$NGHTTP2_PATH/lib/includes $CFLAGS_SAN -ggdb -O3" LDFLAGS="-L$NGHTTP2_PATH/lib -lpthread" \
+./configure \
+ --prefix="$INSTALL_PREFIX" \
@@ -39,8 +63,8 @@ index 0000000..6fbf9e9
+ --enable-mods-static=$APACHE_MODULES \
+ --with-apr="$APR_PATH" \
+ --with-apr-util="$APR_UTIL_PATH"
-+
-+make -j`nproc`
++make clean
++make -j$(nproc)
+make install
diff --git a/configure.in b/configure.in
index ef7bd02..27fca57 100644
