~ubuntu-branches/ubuntu/utopic/knutclient/utopic

« back to all changes in this revision

Viewing changes to admin/detect-autoconf.sh

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2008-06-19 11:09:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619110950-izi2q2vd0dhwlpym
Tags: 0.9.4-1
* New upstream release
* Merge back Ubuntu changes
* debian/knutclient.menu: update section to fix lintian warnings
* debian/watch: update the pattern for matching new releases (Closes: #471247)
* debian/control:
  - move Homepage to the field and update the URL
  - update Standards-Version to 3.8.0
  - update debhelper Build-Depends to 5.0.51
  - add automake and autoconf to Build-Depends
  - update NUT URL
* debian/rules:
  - fix lintian warning debian-rules-ignores-make-clean-error
  - add a commented call to dh_icons

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
# Global variables...
4
 
AUTOCONF="autoconf"
5
 
AUTOHEADER="autoheader"
6
 
AUTOM4TE="autom4te"
7
 
AUTOMAKE="automake"
8
 
ACLOCAL="aclocal"
9
 
 
10
 
 
11
 
# We don't use variable here for remembering the type ... strings.
12
 
# local variables are not that portable, but we fear namespace issues with
13
 
# our includer.  The repeated type calls are not that expensive.
14
 
checkAutoconf()
15
 
{
16
 
  if test -x "`$WHICH autoconf-2.5x`" ; then    
17
 
    AUTOCONF="`$WHICH autoconf-2.5x`"
18
 
  elif test -x "`$WHICH autoconf-2.54`" ; then
19
 
    AUTOCONF="`$WHICH autoconf-2.54`"
20
 
  elif test -x "`$WHICH autoconf-2.53`" ; then
21
 
    AUTOCONF="`$WHICH autoconf-2.53`"
22
 
  elif test -x "`$WHICH autoconf-2.53a`" ; then
23
 
    AUTOCONF="`$WHICH autoconf-2.53a`"
24
 
  elif test -x "`$WHICH autoconf-2.52`" ; then
25
 
    AUTOCONF="`$WHICH autoconf-2.52`"
26
 
  elif test -x "`$WHICH autoconf2.50`" ; then
27
 
    AUTOCONF="`$WHICH autoconf2.50`"
28
 
  fi
29
 
}
30
 
 
31
 
checkAutoheader()
32
 
{
33
 
  if test -x "`$WHICH autoheader-2.5x`" ; then
34
 
    AUTOHEADER="`$WHICH autoheader-2.5x`"
35
 
    AUTOM4TE="`$WHICH autom4te-2.5x`"
36
 
  elif test -x "`$WHICH autoheader-2.54`" ; then
37
 
    AUTOHEADER="`$WHICH autoheader-2.54`"
38
 
    AUTOM4TE="`$WHICH autom4te-2.54`"
39
 
  elif test -x "`$WHICH autoheader-2.53`" ; then
40
 
    AUTOHEADER="`$WHICH autoheader-2.53`"
41
 
    AUTOM4TE="`$WHICH autom4te-2.53`"
42
 
  elif test -x "`$WHICH autoheader-2.53a`" ; then
43
 
    AUTOHEADER="`$WHICH autoheader-2.53a`"
44
 
    AUTOM4TE="`$WHICH autom4te-2.53a`"
45
 
  elif test -x "`$WHICH autoheader-2.52`" ; then
46
 
    AUTOHEADER="`$WHICH autoheader-2.52`"
47
 
  elif test -x "`$WHICH autoheader2.50`" ; then
48
 
    AUTOHEADER="`$WHICH autoheader2.50`"
49
 
  fi
50
 
}
51
 
 
52
 
checkAutomakeAclocal ()
53
 
{
54
 
  if test -z "$UNSERMAKE"; then
55
 
    if test -x "`$WHICH automake-1.6`" ; then
56
 
      AUTOMAKE="`$WHICH automake-1.6`"
57
 
      ACLOCAL="`$WHICH aclocal-1.6`"
58
 
    elif test -x "`$WHICH automake-1.7`" ; then
59
 
      AUTOMAKE="`$WHICH automake-1.7`"
60
 
      ACLOCAL="`$WHICH aclocal-1.7`"
61
 
    fi
62
 
  else
63
 
     AUTOMAKE="$UNSERMAKE"
64
 
  fi
65
 
}
66
 
 
67
 
checkWhich ()
68
 
{
69
 
  WHICH=""
70
 
  for i in "type -p" "which" "type" ; do
71
 
    T=`$i sh 2> /dev/null`
72
 
    test -x "$T" && WHICH="$i" && break
73
 
  done
74
 
}
75
 
 
76
 
checkWhich
77
 
checkAutoconf
78
 
checkAutoheader
79
 
checkAutomakeAclocal
80
 
 
81
 
export WHICH AUTOHEADER AUTOCONF AUTOM4TE AUTOMAKE ACLOCAL