Skip to content

Commit 1dc7c4d

Browse files
committed
Merge branch 'master' into dewey-fix-iso-warnings
2 parents a14759a + 5b375c8 commit 1dc7c4d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

cleanup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
rm -f src/Makevars
2+
rm -f src/Makevars configure.log autobrew
33
rm `find src -name *.o`

configure

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Anticonf (tm) script by Jeroen Ooms (2019)
2+
# Anticonf (tm) script by Jeroen Ooms (2020)
33
# This script will query 'pkg-config' for the required cflags and ldflags.
44
# If pkg-config is unavailable or does not find the library, try setting
55
# INCLUDE_DIR and LIB_DIR manually via e.g:
@@ -37,7 +37,7 @@ else
3737
if [ $? -eq 0 ]; then
3838
BREWDIR=`brew --prefix`
3939
else
40-
curl -sfL "https://jeroen.github.io/autobrew/$PKG_BREW_NAME" > autobrew
40+
curl -sfL "https://autobrew.github.io/scripts/$PKG_BREW_NAME" > autobrew
4141
source autobrew
4242
fi
4343
PKG_CFLAGS="-I$BREWDIR/opt/[email protected]/include -I$BREWDIR/opt/openssl/include"
@@ -55,11 +55,11 @@ CPPFLAGS=`${R_HOME}/bin/R CMD config CPPFLAGS`
5555
echo "Using PKG_CFLAGS=$PKG_CFLAGS"
5656

5757
# Test configuration
58-
${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E ${PKG_TEST_FILE} >/dev/null 2>&1
58+
${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E ${PKG_TEST_FILE} >/dev/null 2>configure.log
5959

6060
# Customize the error
6161
if [ $? -ne 0 ]; then
62-
echo "------------------------- ANTICONF ERROR ---------------------------"
62+
echo "--------------------------- [ANTICONF] --------------------------------"
6363
echo "Configuration failed because $PKG_CONFIG_NAME was not found. Try installing:"
6464
echo " * deb: $PKG_DEB_NAME (Debian, Ubuntu, etc)"
6565
echo " * rpm: $PKG_RPM_NAME (Fedora, CentOS, RHEL)"
@@ -69,8 +69,10 @@ if [ $? -ne 0 ]; then
6969
echo "PATH and PKG_CONFIG_PATH contains a $PKG_CONFIG_NAME.pc file. If pkg-config"
7070
echo "is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:"
7171
echo "R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'"
72+
echo "-------------------------- [ERROR MESSAGE] ---------------------------"
73+
cat configure.log
7274
echo "--------------------------------------------------------------------"
73-
exit 1;
75+
exit 1
7476
fi
7577

7678
# Try to link against the correct OpenSSL version

0 commit comments

Comments
 (0)