diff options
author | Ali Abdulkadir <autostart.ini@gmail.com> | 2017-04-06 05:43:03 +0300 |
---|---|---|
committer | Ali Abdulkadir <autostart.ini@gmail.com> | 2018-06-09 15:21:48 +0300 |
commit | 3727d2b30e58b403f1f40569da9c7061f3cd395e (patch) | |
tree | 36a18a589b6e1514110b1fa03a8ac8721ad63e79 | |
parent | dbfd349ef0f9d1ea3da3de0717ddd2677105f70c (diff) | |
download | libnet-3727d2b30e58b403f1f40569da9c7061f3cd395e.tar.gz |
updated autogen.sh
running it is like executing "autoreconf -fiW all", but cooler
-rwxr-xr-x | libnet/autogen.sh | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/libnet/autogen.sh b/libnet/autogen.sh index b59bd08..8c6c813 100755 --- a/libnet/autogen.sh +++ b/libnet/autogen.sh @@ -1,18 +1,15 @@ #!/bin/sh -set -e -# use libtoolize if available, otherwise look for glibtoolize (darwin) -if (libtoolize --version) < /dev/null > /dev/null 2>&1; then - LIBTOOLIZE=libtoolize -elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then - LIBTOOLIZE=glibtoolize -else - echo "libtoolize or glibtoolize was not found! Please install libtool." - exit -fi +# A bootstrapping script that can be used to generate the autoconf +# and automake-related scripts of the build process. +# The result of using "autoreconf -fiW all" should be identical to using this +# script. + +set -e -x + +aclocal --force --warnings=all -I m4 ${ACLOCAL_FLAGS} || exit 1 +libtoolize --copy --force || glibtoolize --copy --force || exit 1 +autoconf --force --warnings=all || exit 1 +autoheader --force --warnings=all || exit 1 +automake --add-missing --copy --force-missing --foreign --warnings=all || exit 1 -$LIBTOOLIZE --copy --force || exit 1 -aclocal || exit 1 -autoheader || exit 1 -autoconf || exit 1 -automake -a -c || exit 1 |