e17d0cec6b514e21ee8f7227afc071d62068dd35
[mdsms.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 # $Id$
5
6 # /lib/gconv/ISO8859-2.so is apparently clashing with EFence. :-(
7 CONFDEFS="--enable-maintainer-mode --enable-debug --without-efence"
8
9 # if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
10 rm -r -f \
11         `find -name "*~"` \
12         errs* \
13         `find po -type f -not '(' -name POTFILES.in -o -name "*.po" -o -path "po/CVS*" ')'` \
14         intl \
15         install-sh \
16         mkinstalldirs \
17         missing \
18         INSTALL \
19         COPYING \
20         ABOUT-NLS \
21         Makefile \
22         Makefile.in \
23         */Makefile \
24         */Makefile.in \
25         configure \
26         configure.scan \
27         config.guess \
28         config.status \
29         config.sub \
30         config.log \
31         config.h \
32         confdefs.h \
33         autoh[0-9]* \
34         config.cache \
35         config.h.in \
36         stamp-h \
37         stamp-h.in \
38         aclocal.m4 \
39         getopt.c \
40         getopt.h \
41         getopt1.c \
42         need-declaration.m4 \
43         strdup.c \
44         usleep.c \
45         memmove.c \
46         mdsms.1 \
47         mdsms.1.in2 \
48         mdsms \
49         mdsms-[0-9]*.tar.gz \
50         mdsms-[0-9]*.tar.Z \
51         manfmt \
52         .deps \
53         ChangeLog \
54         *.o \
55
56
57 if [ "$1" = clean ];then exit;fi
58
59         d="`pwd`"
60         (cd $HOME/src/misc
61          (cd getopt
62                 cp getopt.c getopt.h getopt1.c $d
63          )
64          (cd macros
65                 cp need-declaration.m4 $d
66          )
67          cp strdup.c usleep.c memmove.c $d
68         )
69
70 aclocal -I .
71 gettextize --copy
72 autoheader
73 touch ChangeLog
74 automake --gnu -c --add-missing
75 rm -f ChangeLog
76 cp $HOME/src/misc/LGPL2.1 COPYING
77 autoheader
78 autoconf
79
80 if [ "$1" != dist ];then ./configure $CONFDEFS;fi