/[pcre]/code/trunk/autogen.sh
ViewVC logotype

Contents of /code/trunk/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1037 - (show annotations)
Wed Sep 12 08:30:17 2012 UTC (7 years, 8 months ago) by ph10
File MIME type: application/x-sh
File size: 1213 byte(s)
Error occurred while calculating annotation data.
Re-order commands so that libtoolize comes before aclocal.
1 #!/bin/sh
2
3 # Running aclocal here first (as happened for a while) caused the macros that
4 # libtoolize puts in the m4 directory to be newer than the aclocal.m4 file that
5 # aclocal creates. This meant that the next "make" cause aclocal to be run
6 # again. Moving aclocal to after libtoolize does not seem to cause any
7 # problems, and it fixes this issue.
8
9 #set -ex
10 #rm -rf autom4te.cache Makefile.in aclocal.m4
11 #aclocal --force -I m4
12
13 # GNU libtool is named differently on some systems. This code tries several
14 # variants like glibtoolize (MacOSX) and libtoolize1x (FreeBSD)
15
16 set +ex
17 echo "Looking for a version of libtoolize (which can have different names)..."
18 libtoolize=""
19 for l in glibtoolize libtoolize15 libtoolize14 libtoolize ; do
20 $l --version > /dev/null 2>&1
21 if [ $? = 0 ]; then
22 libtoolize=$l
23 echo "Found $l"
24 break
25 fi
26 echo "Did not find $l"
27 done
28
29 if [ "x$libtoolize" = "x" ]; then
30 echo "Can't find libtoolize on your system"
31 exit 1
32 fi
33
34 set -ex
35 $libtoolize -c -f
36 rm -rf autom4te.cache Makefile.in aclocal.m4
37 aclocal --force -I m4
38 autoconf -f -W all,no-obsolete
39 autoheader -f -W all
40 automake -a -c -f -W all
41
42 rm -rf autom4te.cache
43 exit 0
44
45 # end autogen.sh

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5