~ubuntu-branches/ubuntu/edgy/digikam/edgy-proposed

« back to all changes in this revision

Viewing changes to admin/detect-autoconf.sh

  • Committer: Bazaar Package Importer
  • Author(s): Paul Telford
  • Date: 2004-09-23 17:21:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040923172139-3b3ji0dvomon3lod
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

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 2>/dev/null`" ; then        
 
17
    AUTOCONF="`$WHICH autoconf-2.5x`"
 
18
  elif test -x "`$WHICH autoconf-2.57 2>/dev/null`" ; then
 
19
    AUTOCONF="`$WHICH autoconf-2.57`"
 
20
  elif test -x "`$WHICH autoconf257 2>/dev/null`" ; then
 
21
    AUTOCONF="`$WHICH autoconf257`"
 
22
  elif test -x "`$WHICH autoconf-2.56 2>/dev/null`" ; then
 
23
    AUTOCONF="`$WHICH autoconf-2.56`"
 
24
  elif test -x "`$WHICH autoconf-2.55 2>/dev/null`" ; then
 
25
    AUTOCONF="`$WHICH autoconf-2.55`"
 
26
  elif test -x "`$WHICH autoconf-2.54 2>/dev/null`" ; then
 
27
    AUTOCONF="`$WHICH autoconf-2.54`"
 
28
  elif test -x "`$WHICH autoconf-2.53 2>/dev/null`" ; then
 
29
    AUTOCONF="`$WHICH autoconf-2.53`"
 
30
  elif test -x "`$WHICH autoconf-2.53a 2>/dev/null`" ; then
 
31
    AUTOCONF="`$WHICH autoconf-2.53a`"
 
32
  elif test -x "`$WHICH autoconf-2.52 2>/dev/null`" ; then
 
33
    AUTOCONF="`$WHICH autoconf-2.52`"
 
34
  elif test -x "`$WHICH autoconf2.50 2>/dev/null`" ; then
 
35
    AUTOCONF="`$WHICH autoconf2.50`"
 
36
  fi
 
37
}
 
38
 
 
39
checkAutoheader()
 
40
{
 
41
  if test -x "`$WHICH autoheader-2.5x 2>/dev/null`" ; then
 
42
    AUTOHEADER="`$WHICH autoheader-2.5x`"
 
43
    AUTOM4TE="`$WHICH autom4te-2.5x`"
 
44
  elif test -x "`$WHICH autoheader-2.57 2>/dev/null`" ; then
 
45
    AUTOHEADER="`$WHICH autoheader-2.57`"
 
46
    AUTOM4TE="`$WHICH autom4te-2.57`"
 
47
  elif test -x "`$WHICH autoheader257 2>/dev/null`" ; then
 
48
    AUTOHEADER="`$WHICH autoheader257`"
 
49
    AUTOM4TE="`$WHICH autom4te257`"
 
50
  elif test -x "`$WHICH autoheader-2.56 2>/dev/null`" ; then
 
51
    AUTOHEADER="`$WHICH autoheader-2.56`"
 
52
    AUTOM4TE="`$WHICH autom4te-2.56`"
 
53
  elif test -x "`$WHICH autoheader-2.55 2>/dev/null`" ; then
 
54
    AUTOHEADER="`$WHICH autoheader-2.55`"
 
55
    AUTOM4TE="`$WHICH autom4te-2.55`"
 
56
  elif test -x "`$WHICH autoheader-2.54 2>/dev/null`" ; then
 
57
    AUTOHEADER="`$WHICH autoheader-2.54`"
 
58
    AUTOM4TE="`$WHICH autom4te-2.54`"
 
59
  elif test -x "`$WHICH autoheader-2.53 2>/dev/null`" ; then
 
60
    AUTOHEADER="`$WHICH autoheader-2.53`"
 
61
    AUTOM4TE="`$WHICH autom4te-2.53`"
 
62
  elif test -x "`$WHICH autoheader-2.53a 2>/dev/null`" ; then
 
63
    AUTOHEADER="`$WHICH autoheader-2.53a`"
 
64
    AUTOM4TE="`$WHICH autom4te-2.53a`"
 
65
  elif test -x "`$WHICH autoheader-2.52 2>/dev/null`" ; then
 
66
    AUTOHEADER="`$WHICH autoheader-2.52`"
 
67
  elif test -x "`$WHICH autoheader2.50 2>/dev/null`" ; then
 
68
    AUTOHEADER="`$WHICH autoheader2.50`"
 
69
  fi
 
70
}
 
71
 
 
72
checkAutomakeAclocal ()
 
73
{
 
74
 if test -x "`$WHICH automake-1.6 2>/dev/null`" ; then
 
75
    AUTOMAKE="`$WHICH automake-1.6`"
 
76
    ACLOCAL="`$WHICH aclocal-1.6`"
 
77
  elif test -x "`$WHICH automake-1.7 2>/dev/null`" ; then
 
78
    AUTOMAKE="`$WHICH automake-1.7`"
 
79
    ACLOCAL="`$WHICH aclocal-1.7`"
 
80
  elif test -x "`$WHICH automake17 2>/dev/null`" ; then
 
81
    AUTOMAKE="`$WHICH automake17`"
 
82
    ACLOCAL="`$WHICH aclocal17`"
 
83
  fi
 
84
  if test -n "$UNSERMAKE"; then 
 
85
     AUTOMAKE="$UNSERMAKE"
 
86
  fi
 
87
}
 
88
 
 
89
checkWhich ()
 
90
{
 
91
  WHICH=""
 
92
  for i in "type -p" "which" "type" ; do
 
93
    T=`$i sh 2> /dev/null`
 
94
    test -x "$T" && WHICH="$i" && break
 
95
  done
 
96
}
 
97
 
 
98
checkWhich
 
99
checkAutoconf
 
100
checkAutoheader
 
101
checkAutomakeAclocal
 
102
 
 
103
export WHICH AUTOHEADER AUTOCONF AUTOM4TE AUTOMAKE ACLOCAL