summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authormm2 <marti.maria@littlecms.com>2021-06-24 12:23:15 +0200
committermm2 <marti.maria@littlecms.com>2021-06-24 12:23:15 +0200
commit5ef8c971244fe4e8e376afdcfad67899a73a9285 (patch)
tree956324af10f41a7d55320436e05cd986d41b78a1 /autogen.sh
parentd677b1323fcd94e1f1199fe89a27bf01af6157a2 (diff)
downloadlcms2-5ef8c971244fe4e8e376afdcfad67899a73a9285.tar.gz
Remove all autotools files
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 0b8b74f..f05ffee 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,6 +7,16 @@ test -z "$srcdir" && srcdir=.
DIE=0
ACLOCAL_FLAGS="-I m4"
+if [ "$1" = "--distclean" ];
+then
+ make distclean
+ rm configure config.guess config.sub depcomp install-sh missing
+ rm aclocal.m4 compile ltmain.sh m4/libtool.m4 m4/ltoptions.m4
+ rm m4/ltsugar.m4 m4/lt~obsolete.m4 m4/ltversion.m4
+ echo done cleaning!
+ exit 0
+fi
+
(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory $srcdir does not look like the"
echo " top-level package directory"
@@ -22,7 +32,7 @@ ACLOCAL_FLAGS="-I m4"
}
(grep "^LT_INIT" $srcdir/configure.ac >/dev/null) && {
- (libtool --version) < /dev/null > /dev/null 2>&1 || {
+ (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have libtool installed."
echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"