#!/bin/sh ## ## Copyright (c) 2001 The OSSP Project ## Copyright (c) 2001 Cable & Wireless Deutschland ## ## This file is part of OSSP lmtp2nntp, an LMTP speaking local ## mailer which forwards mails as Usenet news articles via NNTP. ## It can be found at http://www.ossp.org/pkg/lmtp2nntp/. ## ## 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.0 of the License, 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 file; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ## USA, or contact the OSSP project . ## ## autogen.sh: auto-generate build environment ## # generator tools version sanity check for spec in \ "autoconf --version 4 2.52 2.5*" \ "shtoolize -v 3 1.5.4 1.5.*" do set -- $spec t="$1" o="$2" p="$3" e="$4" a="$5" v=`($t $o | head -1 | awk "{ print \\\$$p; }") 2>/dev/null` if [ ".$v" = . ]; then echo "$0:ERROR: unable to determine version of $t" 1>&2 exit 1 fi eval "${t}_version=\"$v\"" case "$v" in $e ) ;; $a ) echo "$0:WARNING: $t version $v still accepted, although expected $e." 1>&2 ;; * ) echo "$0:ERROR: $t version $e expected, but found $v." 1>&2 ;; esac done # GNU Autoconf generation echo "GNU Autoconf $autoconf_version -> configure, config.h.in" autoconf autoheader # GNU Shtool generation echo "GNU Shtool $shtoolize_version -> shtool" shtoolize -q all # perform same operation in subdirs echo "===> lib_str (autogen.sh)" (cd lib_str && ./devtool autogen) echo "<=== lib_str" echo "===> lib_l2 (devtool)" (cd lib_l2 && ./devtool autogen) echo "<=== lib_l2" echo "===> lib_sa (devtool)" (cd lib_sa && ./devtool autogen) echo "<=== lib_sa" echo "===> lib_var (devtool)" (cd lib_var && ./devtool autogen) echo "<=== lib_var"