summaryrefslogtreecommitdiff
path: root/prepare
blob: 675f487f696c10eb00475d22528858cc2ff3227c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh --

if test x"$1" = x"-dev" ; then
  include_deps=
  shift
else
  include_deps="-i"
fi

if aclocal \
  && automake --gnu Makefile $include_deps \
  && automake --gnu tests/Makefile $include_deps \
  && autoconf && ./configure $@
then
  echo
  echo "The MPFR source code was successfully prepared."
  echo "Type make to build MPFR."
  echo
else
  echo
  echo "Some part of the preparation process failed."
  echo
  exit 1
fi