forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautogen
executable file
·27 lines (26 loc) · 1.37 KB
/
autogen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#**************************************************************************
#* *
#* OCaml *
#* *
#* David Allsopp, MetaStack Solutions Ltd. *
#* *
#* Copyright 2019 MetaStack Solutions Ltd. *
#* *
#* All rights reserved. This file is distributed under the terms of *
#* the GNU Lesser General Public License version 2.1, with the *
#* special exception on linking described in the file LICENSE. *
#* *
#**************************************************************************
version=$(autoconf --version | sed -ne 's/^autoconf .* \([0-9][^ ]*\)$/\1/p')
if [ "$version" != '2.69' ] ; then
echo "autoconf 2.69 is required" >&2
exit 1
else
autoconf -W all,error
# Some distros have this 2013 patch to autoconf, some don't...
sed -i -e '/^runstatedir/d' \
-e '/-runstatedir /,+8d' \
-e '/--runstatedir=DIR/d' \
-e 's/ runstatedir//' configure
fi