~ubuntu-branches/ubuntu/intrepid/gwenview/intrepid

« back to all changes in this revision

Viewing changes to admin/detect-autoconf.sh

  • Committer: Bazaar Package Importer
  • Author(s): Christopher Martin
  • Date: 2005-04-06 11:33:06 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050406113306-7zovl7z0io5bacpd
Tags: 1.2.0-1
* New upstream release.
  + Fixes crashes when using "Back" to navigate. (Closes: #301811)
* Enable KIPI support.
* Add a doc-base file for the handbook.

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
# Please add higher versions first. The last version number is the minimum
 
11
# needed to compile KDE. Do not forget to include the name/version #
 
12
# separator if one is present, e.g. -1.2 where - is the separator.
 
13
KDE_AUTOCONF_VERS="-2.58 -2.57 257 -2.54 -2.53a -2.53 -2.52 -2.5x"
 
14
KDE_AUTOMAKE_VERS="-1.7 17 -1.6"
 
15
 
 
16
# We don't use variable here for remembering the type ... strings. Local 
 
17
# variables are not that portable, but we fear namespace issues with our
 
18
# includer.
 
19
checkAutoconf()
 
20
{
 
21
  for kde_autoconf_version in $KDE_AUTOCONF_VERS; do
 
22
    if test -x "`$WHICH $AUTOCONF$kde_autoconf_version 2>/dev/null`"; then
 
23
      AUTOCONF="`$WHICH $AUTOCONF$kde_autoconf_version`"
 
24
      AUTOHEADER="`$WHICH $AUTOHEADER$kde_autoconf_version`"
 
25
      AUTOM4TE="`$WHICH $AUTOM4TE$kde_autoconf_version`"
 
26
      break
 
27
    fi
 
28
  done
 
29
}
 
30
 
 
31
checkAutomake ()
 
32
{
 
33
  for kde_automake_version in $KDE_AUTOMAKE_VERS; do
 
34
    if test -x "`$WHICH $AUTOMAKE$kde_automake_version 2>/dev/null`"; then
 
35
      AUTOMAKE="`$WHICH $AUTOMAKE$kde_automake_version`"
 
36
      ACLOCAL="`$WHICH $ACLOCAL$kde_automake_version`"
 
37
      break
 
38
    fi
 
39
  done
 
40
 
 
41
  if test "$UNSERMAKE" != no && test -x "`$WHICH unsermake 2>/dev/null`"; then
 
42
      AUTOMAKE="`$WHICH unsermake` -c"
 
43
  fi
 
44
}
 
45
 
 
46
checkWhich ()
 
47
{
 
48
  WHICH=""
 
49
  for i in "type -p" "which" "type" ; do
 
50
    T=`$i sh 2> /dev/null`
 
51
    test -x "$T" && WHICH="$i" && break
 
52
  done
 
53
}
 
54
 
 
55
checkWhich
 
56
checkAutoconf
 
57
checkAutomake
 
58
 
 
59
export WHICH AUTOHEADER AUTOCONF AUTOM4TE AUTOMAKE ACLOCAL