Many modifications for mdsms -> sms9110 branch transition.
[mdsms.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 # $Id$
5
6 CONFDEFS="--enable-maintainer-mode --enable-debug"
7
8 # if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
9 rm -r -f \
10         install-sh \
11         mkinstalldirs \
12         missing \
13         INSTALL \
14         COPYING \
15         Makefile \
16         Makefile.in \
17         configure \
18         configure.scan \
19         config.guess \
20         config.status \
21         config.sub \
22         config.log \
23         config.h \
24         autoh[0-9]* \
25         config.cache \
26         config.h.in \
27         stamp-h \
28         stamp-h.in \
29         aclocal.m4 \
30         getopt.c \
31         getopt.h \
32         getopt1.c \
33         sms9110 \
34         sms9110.1 \
35         sms9110-[0-9]*.tar.gz \
36         sms9110-[0-9]*.tar.Z \
37         manfmt \
38         .deps \
39         ChangeLog \
40         *.o \
41
42
43 if [ "$1" = clean ];then exit;fi
44
45 cp ../getopt/getopt{1.c,.{c,h}} .
46 aclocal -I .
47 autoheader
48 touch ChangeLog
49 automake --gnu -c --add-missing
50 #--include-deps
51 rm -f ChangeLog
52 cp ../LGPL2.1 COPYING
53 autoheader
54 autoconf
55
56 if [ "$1" != dist ];then ./configure $CONFDEFS;fi