Skip to content

Commit 8f7bc31

Browse files
author
Tomoaki Nishiyama
committed
get envs from R
1 parent 9eba3f3 commit 8f7bc31

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

RPostgreSQL/configure.ac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
#
66
# This file draws heavily on configure.in files from littler, RMySQL, and RdbiPgSQL
77

8+
: ${R_HOME=`R RHOME`}
9+
if test -z "${R_HOME}"; then
10+
echo "could not determine R_HOME"
11+
exit 1
12+
fi
13+
CC=`"${R_HOME}/bin/R" CMD config CC`
14+
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
15+
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
16+
817
# Set the name and version -- the version set here will propagate to other files from here
918
AC_INIT([RPostgreSQL],[0.7])
1019

0 commit comments

Comments
 (0)