Skip to content

Commit 6ea7a67

Browse files
committed
using pandora config/m4
This one includes workaround for old pkg-config on RHEL, specifically the hack of adding m4/pkg.m4 from OSX.
1 parent a5d34a4 commit 6ea7a67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+13007
-1
lines changed

config/autorun.sh

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#!/bin/sh
2+
3+
LIBTOOLIZE_FLAGS="--automake --copy --force"
4+
AUTOMAKE_FLAGS="--add-missing --copy --force --foreign --warning=portability"
5+
ACLOCAL_FLAGS="-I m4"
6+
AUTOHEADER_FLAGS="--warnings=error"
7+
AUTOCONF_CLAGS="--warnings=error --force"
8+
9+
10+
ARGV0=$0
11+
ARGS="$@"
12+
13+
die() { echo "$@"; exit 1; }
14+
15+
run() {
16+
echo "$ARGV0: running \`$@' $ARGS"
17+
$@ $ARGS
18+
}
19+
20+
# Try to locate a program by using which, and verify that the file is an
21+
# executable
22+
locate_binary() {
23+
for f in $@
24+
do
25+
file=`which $f 2>/dev/null | grep -v '^no '`
26+
if test -n "$file" -a -x "$file"; then
27+
echo $file
28+
return 0
29+
fi
30+
done
31+
32+
echo ""
33+
return 1
34+
}
35+
36+
if test -f config/pre_hook.sh
37+
then
38+
. config/pre_hook.sh
39+
fi
40+
41+
if [ -d .git ]
42+
then
43+
perl config/version.pl || die "Failed to run config/version.pl"
44+
fi
45+
46+
# Try to detect the supported binaries if the user didn't
47+
# override that by pushing the environment variable
48+
if test x$LIBTOOLIZE = x; then
49+
LIBTOOLIZE=`locate_binary libtoolize glibtoolize`
50+
if test x$LIBTOOLIZE = x; then
51+
die "Did not find a supported libtoolize"
52+
fi
53+
fi
54+
55+
if test x$ACLOCAL = x; then
56+
ACLOCAL=`locate_binary aclocal-1.11 aclocal-1.10 aclocal`
57+
if test x$ACLOCAL = x; then
58+
die "Did not find a supported aclocal"
59+
fi
60+
fi
61+
62+
if test x$AUTOMAKE = x; then
63+
AUTOMAKE=`locate_binary automake-1.11 automake-1.10 automake`
64+
if test x$AUTOMAKE = x; then
65+
die "Did not find a supported automake"
66+
fi
67+
fi
68+
69+
if test x$AUTOCONF = x; then
70+
AUTOCONF=`locate_binary autoconf`
71+
if test x$AUTOCONF = x; then
72+
die "Did not find a supported autoconf"
73+
fi
74+
fi
75+
76+
if test x$AUTOHEADER = x; then
77+
AUTOHEADER=`locate_binary autoheader`
78+
if test x$AUTOHEADER = x; then
79+
die "Did not find a supported autoheader"
80+
fi
81+
fi
82+
83+
run $LIBTOOLIZE $LIBTOOLIZE_FLAGS || die "Can't execute libtoolize"
84+
run $ACLOCAL $ACLOCAL_FLAGS || die "Can't execute aclocal"
85+
run $AUTOHEADER $AUTOHEADER_FLAGS || die "Can't execute autoheader"
86+
run $AUTOMAKE $AUTOMAKE_FLAGS || die "Can't execute automake"
87+
run $AUTOCONF $AUTOCONF_FLAGS || die "Can't execute autoconf"
88+
89+
if test -f config/post_hook.sh
90+
then
91+
. config/post_hook.sh
92+
fi
93+
94+
echo "---"
95+
echo "Configured with the following tools:"
96+
echo " * `$LIBTOOLIZE --version | head -1`"
97+
echo " * `$ACLOCAL --version | head -1`"
98+
echo " * `$AUTOHEADER --version | head -1`"
99+
echo " * `$AUTOMAKE --version | head -1`"
100+
echo " * `$AUTOCONF --version | head -1`"
101+
echo "---"

0 commit comments

Comments
 (0)