/[pcre]/code/branches/pcre16/autogen.sh
ViewVC logotype

Contents of /code/branches/pcre16/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 484 - (show annotations)
Mon Jan 4 17:11:54 2010 UTC (5 years, 4 months ago) by ph10
Original Path: code/trunk/autogen.sh
File MIME type: application/x-sh
File size: 773 byte(s)
Error occurred while calculating annotation data.
Update autogen.sh to try several names for libtoolize.
1 #!/bin/sh
2
3 set -ex
4 rm -rf autom4te.cache
5 aclocal --force
6
7 # GNU libtool is named differently on some systems. This code tries several
8 # variants like glibtoolize (MacOSX) and libtoolize1x (FreeBSD)
9
10 set +ex
11 echo "Looking for a version of libtoolize (which can have different names)..."
12 libtoolize=""
13 for l in glibtoolize libtoolize15 libtoolize14 libtoolize ; do
14 $l --version > /dev/null 2>&1
15 if [ $? = 0 ]; then
16 libtoolize=$l
17 echo "Found $l"
18 break
19 fi
20 echo "Did not find $l"
21 done
22
23 if [ "x$libtoolize" == "x" ]; then
24 echo "Can't find libtoolize on your system"
25 exit 1
26 fi
27
28 set -ex
29 $libtoolize -c -f
30 autoconf -f -W all,no-obsolete
31 autoheader -f -W all
32 automake -a -c -f -W all
33
34 rm -rf autom4te.cache
35 exit 0
36
37 # end autogen.sh

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5