forked from varnishcache/varnish-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.des
executable file
·40 lines (32 loc) · 923 Bytes
/
autogen.des
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#
# Use this when doing code development
SRCDIR=${SRCDIR:-.}
set -ex
make -k distclean > /dev/null 2>&1 || true
# Prefer CLANG if we have it, and have not given preferences
if [ -f /usr/bin/clang -a "x${CC}" = "x" ] ; then
CC=clang
export CC
fi
if [ "x$DST" != "x" ] ; then
:
elif [ "x`uname -o`" = "xFreeBSD" ] ; then
DST="--prefix=/usr/local --mandir=/usr/local/man"
else
DST="--prefix=/opt/varnish --mandir=/opt/varnish/man"
fi
rm -f configure
(cd $SRCDIR && . ./autogen.sh 2>&1 | egrep -v "(subdir-objects|is in a subdirectory)")
# autoconf prior to 2.62 has issues with zsh 4.2 and newer
export CONFIG_SHELL=/bin/sh
# NB: Workaround for make distcheck not working with
# NB: FreeBSD's make on -current
# env MAKE=gmake \
$SRCDIR/configure \
$DST \
--enable-developer-warnings \
--enable-debugging-symbols \
--enable-dependency-tracking \
--with-persistent-storage \
"$@"