~ubuntu-branches/ubuntu/vivid/hal-info/vivid

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-11-24 11:59:58 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081124115958-8qbi628momuilff1
Tags: 20081124-0ubuntu1
* New upstream git snapshot.
  - Add ISCD no-name portable audio player (LP: #116860)
  - hal-info and rhythmbox conflict on audio_folders for PSP (LP: #178359)
  - Add Pantech UM175 phone (LP: #282573)
  - Add another Nokia N82 phone model (LP: #291749)
  - Add Nokia N82 music player (LP: #282957)
  - Add another Option 3G USB Modem (LP: #284961)
  - Add Sony Walkman NWZ-135F (LP: #289161)
  - Add Onda MT505UP / MF632 music player (LP: #291333)
  - Add Nokia E66 phone (LP: #294070)
  - Add Sierra Aircard 880U modem (LP: #295855)
  - Fix typo in 20-video-quirk-pm-asus.fdi (LP: #300620)
  - Add Novatel EU870D modem (LP: #301030)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Run this to generate all the initial makefiles, etc.
 
3
 
 
4
srcdir=`dirname $0`
 
5
test -z "$srcdir" && srcdir=.
 
6
 
 
7
DIE=0
 
8
 
 
9
(test -f $srcdir/configure.in) || {
 
10
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
 
11
    echo " top-level package directory"
 
12
    exit 1
 
13
}
 
14
 
 
15
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
 
16
  echo
 
17
  echo "**Error**: You must have \`autoconf' installed."
 
18
  echo "Download the appropriate package for your distribution,"
 
19
  echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
 
20
  DIE=1
 
21
}
 
22
 
 
23
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
 
24
  (libtool --version) < /dev/null > /dev/null 2>&1 || {
 
25
    echo
 
26
    echo "**Error**: You must have \`libtool' installed."
 
27
    echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
 
28
    DIE=1
 
29
  }
 
30
}
 
31
 
 
32
(automake --version) < /dev/null > /dev/null 2>&1 || {
 
33
  echo
 
34
  echo "**Error**: You must have \`automake' installed."
 
35
  echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
 
36
  DIE=1
 
37
  NO_AUTOMAKE=yes
 
38
}
 
39
 
 
40
 
 
41
# if no automake, don't bother testing for aclocal
 
42
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
 
43
  echo
 
44
  echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
 
45
  echo "installed doesn't appear recent enough."
 
46
  echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
 
47
  DIE=1
 
48
}
 
49
 
 
50
if test "$DIE" -eq 1; then
 
51
  exit 1
 
52
fi
 
53
 
 
54
if test -z "$*"; then
 
55
  echo "**Warning**: I am going to run \`configure' with no arguments."
 
56
  echo "If you wish to pass any to it, please specify them on the"
 
57
  echo \`$0\'" command line."
 
58
  echo
 
59
fi
 
60
 
 
61
case $CC in
 
62
xlc )
 
63
  am_opt=--include-deps;;
 
64
esac
 
65
 
 
66
      aclocalinclude="$ACLOCAL_FLAGS"
 
67
 
 
68
      if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
 
69
        if test -z "$NO_LIBTOOLIZE" ; then 
 
70
          echo "Running libtoolize..."
 
71
          libtoolize --force --copy
 
72
        fi
 
73
      fi
 
74
      echo "Running aclocal $aclocalinclude ..."
 
75
      aclocal $aclocalinclude
 
76
      if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
 
77
        echo "Running autoheader..."
 
78
        autoheader
 
79
      fi
 
80
      echo "Running automake --gnu $am_opt ..."
 
81
      automake --add-missing --gnu $am_opt
 
82
      echo "Running autoconf ..."
 
83
      autoconf
 
84
 
 
85
#glib-gettextize --force --copy                              || exit 1
 
86
#intltoolize --copy --force --automake                  || exit 1
 
87
 
 
88
#conf_flags="--enable-maintainer-mode --enable-gtk-doc"
 
89
conf_flags="--enable-maintainer-mode"
 
90
 
 
91
if test x$NOCONFIGURE = x; then
 
92
  echo Running $srcdir/configure $conf_flags "$@" ...
 
93
  $srcdir/configure $conf_flags "$@" \
 
94
  && echo Now type \`make\' to compile. || exit 1
 
95
else
 
96
  echo Skipping configure process.
 
97
fi