Fix bug #2749 “maildir_scan_tree in Maildir++ creates duplicates”
[claws-mail-maildir-plugin.git] / autogen.sh
1 #!/bin/sh
2 # Copyright 1999-2018 the Claws Mail team.
3 # This file is part of Claws Mail package, and distributed under the
4 # terms of the General Public License version 3 (or later).
5 # See COPYING file for license details.
6
7 case `uname` in
8         Darwin*)
9                 if [ "`glibtoolize --version`" = "" ]; then
10                         echo MacOS requires glibtool from either Macport or brew
11                         exit 1
12                 fi
13                 LIBTOOL="glibtoolize --force --copy"
14                 ;;
15         *)
16                 LIBTOOL="libtoolize --force --copy"
17                 ;;
18 esac
19
20 aclocal -I m4 \
21   && ${LIBTOOL} \
22   && autoheader \
23   && automake --add-missing --foreign --copy \
24   && autoconf
25 if test -z "$NOCONFIGURE"; then
26 exec ./configure --enable-maintainer-mode $@
27 fi