]>
git.ipfire.org Git - thirdparty/lldpd.git/blob - autogen.sh
5 [ ! -d .gitmodules
] ||
{
6 echo "autogen.sh: updating git submodules"
13 LIBTOOLIZE
=${LIBTOOLIZE:-glibtoolize}
16 LIBTOOLIZE
=${LIBTOOLIZE:-libtoolize}
19 AUTORECONF
=${AUTORECONF:-autoreconf}
20 ACLOCAL
=${ACLOCAL:-aclocal}
21 AUTOCONF
=${AUTOCONF:-autoconf}
22 AUTOHEADER
=${AUTOHEADER:-autoheader}
23 AUTOMAKE
=${AUTOMAKE:-automake}
25 # Check we have all tools installed
27 command -v "${1}" > /dev
/null
2>&1 ||
{
28 >&2 echo "autogen.sh: could not find \`$1'. \`$1' is required to run autogen.sh."
32 check_command
"$LIBTOOLIZE"
33 check_command
"$AUTORECONF"
34 check_command
"$ACLOCAL"
35 check_command
"$AUTOCONF"
36 check_command
"$AUTOHEADER"
37 check_command
"$AUTOMAKE"
39 echo "autogen.sh: start libtoolize to get ltmain.sh"
40 ${LIBTOOLIZE} --copy --force
41 echo "autogen.sh: reconfigure with autoreconf"
42 ${AUTORECONF} -vif -I m4 ||
{
43 echo "autogen.sh: autoreconf has failed ($?), let's do it manually"
45 [ -d "$dir" ] ||
continue
46 [ -f "$dir"/configure.ac
] ||
[ -f "$dir"/configure.
in ] ||
continue
47 echo "autogen.sh: configure `basename $dir`"
48 (cd "$dir" && ${ACLOCAL} -I m4)
49 (cd "$dir" && ${LIBTOOLIZE} --automake --copy --force)
50 (cd "$dir" && ${ACLOCAL} -I m4)
51 (cd "$dir" && ${AUTOCONF} --force)
52 (cd "$dir" && ${AUTOHEADER})
53 (cd "$dir" && ${AUTOMAKE} --add-missing --copy --force-missing)
57 echo "autogen.sh: for the next step, run ./configure"