#!/bin/sh
# $Id: mkmi,v 1.19 2003/08/23 16:38:23 ceder Exp $ 
# Generate Makefile.in from Makefile.src template
# Copyright (C) 1994-1996, 1998-1999, 2003  Lysator Academic Computer Association.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Please report bugs at http://bugzilla.lysator.liu.se/. 

[ -f src/server/lyskomd.h ] || {
    echo $0: must be run from top of the source directory >&2
    exit 1
}

# Remove these files so that we pick up the correct versions from
# automake.  We rely on the automake maintainer to make sure that
# these files are always up-to-date as long as we install the latest
# automake.
rm -f \
    scripts/install-sh \
    scripts/missing \
    scripts/texinfo.tex \
    scripts/mkinstalldirs \
    scripts/depcomp \
    scripts/mdate-sh \
    INSTALL

aclocal
autoheader
automake -a
autoconf

(cd src/libraries/libisc-new && aclocal)
(cd src/libraries/libisc-new && automake -a)
(cd src/libraries/libisc-new && autoconf)

(cd src/libraries/liboop && aclocal)
(cd src/libraries/liboop && automake -a)
(cd src/libraries/liboop && autoconf)

(cd src/libraries/adns && aclocal)
(cd src/libraries/adns && autoheader)
(cd src/libraries/adns && automake -a)
(cd src/libraries/adns && autoconf)
