OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 # Sometimes there isn't a pre-generated configure script, and we must first run | |
7 # autogen.sh to generate it. Even if there is one, sometimes we need to | |
8 # re-generate it (in particular, the autoconf version on Trusty is newer than | |
9 # what is expected by pre-generated configure scripts in some packages). | |
10 | |
11 # Unfortunately, we can't run autogen.sh unconditionally whenever it's present, | |
12 # as that sometimes breaks build. Which is why we have this file. | |
13 | |
14 # Also, some packages may or may not have an autogen script, depending on | |
15 # version. Rather than clutter the GYP file with conditionals, we simply do | |
16 # nothing if the file is not present. | |
17 | |
18 if [ -x ./autogen.sh ] | |
19 then | |
20 NOCONFIGURE=1 ./autogen.sh | |
21 fi | |
OLD | NEW |