~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to buildconf

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-12 15:04:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051212150452-2ymlra67b2p7kjyy
Tags: 7.15.1-1ubuntu1
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
(CVE-2005-4077).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  IFS=":"
14
14
  for path in $PATH
15
15
  do
16
 
    if test -r "$path/$file"; then
 
16
    if test -f "$path/$file"; then
17
17
      echo "$path/$file"
18
18
      return
19
19
    fi
24
24
# autoconf 2.57 or newer
25
25
#
26
26
need_autoconf="2.57"
27
 
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
 
27
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
28
28
if test -z "$ac_version"; then
29
29
  echo "buildconf: autoconf not found."
30
30
  echo "            You need autoconf version $need_autoconf or newer installed."
45
45
#--------------------------------------------------------------------------
46
46
# autoheader 2.50 or newer
47
47
#
48
 
ah_version=`${AUTOHEADER:-autoheader} --version 2>/dev/null|head -1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
 
48
ah_version=`${AUTOHEADER:-autoheader} --version 2>/dev/null|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
49
49
if test -z "$ah_version"; then
50
50
  echo "buildconf: autoheader not found."
51
51
  echo "            You need autoheader version 2.50 or newer installed."
67
67
# automake 1.7 or newer
68
68
#
69
69
need_automake="1.7"
70
 
am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|head -1| sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//' -e 's/\(.*\)\(-p.*\)/\1/'`
 
70
am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|head -n 1| sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//' -e 's/\(.*\)\(-p.*\)/\1/'`
71
71
if test -z "$am_version"; then
72
72
  echo "buildconf: automake not found."
73
73
  echo "            You need automake version $need_automake or newer installed."
113
113
# set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found
114
114
LIBTOOLIZE="${libtool}ize"
115
115
 
116
 
lt_pversion=`$libtool --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
 
116
lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
117
117
if test -z "$lt_pversion"; then
118
118
  echo "buildconf: libtool not found."
119
119
  echo "            You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
160
160
#--------------------------------------------------------------------------
161
161
# m4 check
162
162
#
163
 
m4=`${M4:-m4} --version 2>/dev/null|head -1`;
 
163
m4=`${M4:-m4} --version 2>/dev/null|head -n 1`;
164
164
m4_version=`echo $m4 | sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//'`
165
165
 
166
166
if { echo $m4 | grep "GNU" >/dev/null 2>&1; } then
199
199
 
200
200
if test -d ares; then
201
201
  cd ares
202
 
  echo "buildconf: running aclocal in the ares directory"
 
202
  echo "buildconf: running ares/libtoolize"
 
203
${LIBTOOLIZE:-libtoolize} --copy --automake --force || die "The libtool command failed"
 
204
  echo "buildconf: running ares/aclocal"
203
205
  ${ACLOCAL:-aclocal} $ACLOCAL_FLAGS || die "The ares aclocal command failed"
204
 
  echo "buildconf: running autoconf in the ares directory"
 
206
  echo "buildconf: running ares/autoconf"
205
207
  ${AUTOCONF:-autoconf}     || die "The ares autoconf command failed"
206
208
  cd ..
207
209
fi
208
210
 
209
211
echo "buildconf: running automake"
210
 
${AUTOMAKE:-automake} -a  || die "The automake command failed"
 
212
${AUTOMAKE:-automake} -a -c  || die "The automake command failed"
211
213
 
212
214
echo "buildconf: OK"
213
215
exit 0