File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ if [ "$(uname -s)" = "Darwin" ]; then
4343 if command -v brew & > /dev/null; then
4444 TARG_XTRA_OPTS=" --with-system-zlib --with-gmp=$( brew --prefix gmp) --with-mpfr=$( brew --prefix mpfr) --with-mpfr=$( brew --prefix mpfr) "
4545 elif command -v port & > /dev/null; then
46- MACPORT_BASE=$( dirname ` port -q contents gmp| grep gmp.h` | sed s#/include## g)
47- echo Macport base is $MACPORT_BASE
46+ MACPORT_BASE=$( dirname $( port -q contents gmp| grep gmp.h) | sed s#/include## g)
47+ printf ' Macport base is %s\n ' " $MACPORT_BASE "
4848 TARG_XTRA_OPTS=" --with-system-zlib --with-libiconv_prefix=$MACPORT_BASE --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE "
4949 fi
5050fi
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ if [ "$(uname -s)" = "Darwin" ]; then
4545 TARG_XTRA_OPTS=" --with-system-zlib --with-gmp=$( brew --prefix gmp) --with-mpfr=$( brew --prefix mpfr) --with-mpc=$( brew --prefix libmpc) "
4646 elif command -v port & > /dev/null; then
4747 # # Check if using MacPorts
48- MACPORT_BASE=$( dirname ` port -q contents gmp| grep gmp.h` | sed s#/include## g)
49- echo Macport base is $MACPORT_BASE
48+ MACPORT_BASE=$( dirname $( port -q contents gmp| grep gmp.h) | sed s#/include## g)
49+ printf ' Macport base is %s\n ' " $MACPORT_BASE "
5050 TARG_XTRA_OPTS=" --with-system-zlib --with-libiconv_prefix=$MACPORT_BASE --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE "
5151 fi
5252fi
Original file line number Diff line number Diff line change @@ -42,13 +42,11 @@ OSVER=$(uname)
4242if [ " $( uname -s) " = " Darwin" ]; then
4343 # # Check if using brew
4444 if command -v brew & > /dev/null; then
45- export PATH=" $( brew --prefix gnu-sed) /libexec/gnubin:$PATH "
4645 TARG_XTRA_OPTS=" --with-system-zlib --with-gmp=$( brew --prefix gmp) --with-mpfr=$( brew --prefix mpfr) --with-mpc=$( brew --prefix libmpc) "
4746 elif command -v port & > /dev/null; then
4847 # # Check if using MacPorts
49- MACPORT_BASE=$( dirname ` port -q contents gmp| grep gmp.h` | sed s#/include## g)
50- echo Macport base is $MACPORT_BASE
51- alias sed=' gsed'
48+ MACPORT_BASE=$( dirname $( port -q contents gmp| grep gmp.h) | sed s#/include## g)
49+ printf ' Macport base is %s\n' " $MACPORT_BASE "
5250 TARG_XTRA_OPTS=" --with-system-zlib --with-libiconv_prefix=$MACPORT_BASE --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE "
5351 fi
5452fi
You can’t perform that action at this time.
0 commit comments