Fixes for 9110 functionality.
[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         `find -name "*~"` \
11         errs* \
12         install-sh \
13         mkinstalldirs \
14         missing \
15         INSTALL \
16         COPYING \
17         Makefile \
18         Makefile.in \
19         configure \
20         configure.scan \
21         config.guess \
22         config.status \
23         config.sub \
24         config.log \
25         config.h \
26         autoh[0-9]* \
27         config.cache \
28         config.h.in \
29         stamp-h \
30         stamp-h.in \
31         aclocal.m4 \
32         getopt.c \
33         getopt.h \
34         getopt1.c \
35         need-declaration.m4 \
36         strdup.c \
37         usleep.c \
38         memmove.c \
39         mdsms.1 \
40         mdsms.1.in2 \
41         mdsms \
42         mdsms-[0-9]*.tar.gz \
43         mdsms-[0-9]*.tar.Z \
44         manfmt \
45         .deps \
46         ChangeLog \
47         *.o \
48
49
50 if [ "$1" = clean ];then exit;fi
51
52         d="`pwd`"
53         (cd $HOME/src/misc
54          (cd getopt
55                 cp getopt.c getopt.h getopt1.c $d
56          )
57          (cd macros
58                 cp need-declaration.m4 $d
59          )
60          cp strdup.c usleep.c memmove.c $d
61         )
62
63 aclocal -I .
64 autoheader
65 touch ChangeLog
66 automake --gnu -c --add-missing
67 rm -f ChangeLog
68 cp $HOME/src/misc/LGPL2.1 COPYING
69 autoheader
70 autoconf
71
72 if [ "$1" != dist ];then ./configure $CONFDEFS;fi