The R Project SVN R

Rev

Rev 62841 | Rev 65644 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 62841 Rev 63217
Line 18... Line 18...
18
## General Public License for more details.
18
## General Public License for more details.
19
##
19
##
20
## A copy of the GNU General Public License is available at
20
## A copy of the GNU General Public License is available at
21
## http://www.r-project.org/Licenses/
21
## http://www.r-project.org/Licenses/
22
 
22
 
23
revision='$Revision: 62841 $'
23
revision='$Revision: 63217 $'
24
version=`set - ${revision}; echo ${2}`
24
version=`set - ${revision}; echo ${2}`
25
version="R configuration information retrieval script: ${R_VERSION} (r${version})
25
version="R configuration information retrieval script: ${R_VERSION} (r${version})
26
 
26
 
27
Copyright (C) 2002-13 The R Core Team.
27
Copyright (C) 2002-13 The R Core Team.
28
This is free software; see the GNU General Public License version 2
28
This is free software; see the GNU General Public License version 2
Line 36... Line 36...
36
 
36
 
37
Options:
37
Options:
38
  -h, --help            print short help message and exit
38
  -h, --help            print short help message and exit
39
  -v, --version         print version info and exit
39
  -v, --version         print version info and exit
40
      --cppflags        print pre-processor flags required to compile
40
      --cppflags        print pre-processor flags required to compile
41
			a program using R as a library
41
			a C/C++ file using R as a library
42
      --ldflags         print linker flags needed for linking against
42
      --ldflags         print linker flags needed for linking a front-end
43
			the R library
43
                        against the R library
44
      --no-user-files  ignore customization files under ~/.R
44
      --no-user-files  ignore customization files under ~/.R
45
      --no-site-files  ignore site customization files under R_HOME/etc
45
      --no-site-files  ignore site customization files under R_HOME/etc
46
 
46
 
47
Variables:
47
Variables:
48
  BLAS_LIBS     flags needed for linking against external BLAS libraries
48
  BLAS_LIBS     flags needed for linking against external BLAS libraries
Line 141... Line 141...
141
export MAKEFLAGS
141
export MAKEFLAGS
142
query="${MAKE} -s ${makefiles} print R_HOME=${R_HOME}"
142
query="${MAKE} -s ${makefiles} print R_HOME=${R_HOME}"
143
 
143
 
144
LIBR=`eval $query VAR=LIBR`
144
LIBR=`eval $query VAR=LIBR`
145
STATIC_LIBR=`eval $query VAR=STATIC_LIBR`
145
STATIC_LIBR=`eval $query VAR=STATIC_LIBR`
-
 
146
MAIN_LDFLAGS=`eval $query VAR=MAIN_LDFLAGS`
-
 
147
LIBS=`eval $query VAR=LIBS`
-
 
148
 
146
 
149
 
147
if test -n "${R_ARCH}"; then
150
if test -n "${R_ARCH}"; then
148
  includes="-I${R_INCLUDE_DIR} -I${R_INCLUDE_DIR}${R_ARCH}"
151
  includes="-I${R_INCLUDE_DIR} -I${R_INCLUDE_DIR}${R_ARCH}"
149
else
152
else
150
  includes="-I${R_INCLUDE_DIR}"
153
  includes="-I${R_INCLUDE_DIR}"
Line 170... Line 173...
170
	echo "${includes}"
173
	echo "${includes}"
171
      fi
174
      fi
172
      exit 0
175
      exit 0
173
      ;;
176
      ;;
174
    --ldflags)
177
    --ldflags)
-
 
178
      ## changed in R 3.1.0 to be those needed to link a front-end
175
      if test -z "${LIBR}"; then
179
      if test -z "${LIBR}"; then
176
	if test -z "${STATIC_LIBR}"; then
180
	if test -z "${STATIC_LIBR}"; then
177
	  echo "R was not built as a library" >&2
181
	  echo "R was not built as a library" >&2
178
	else
182
	else
179
	  echo "${STATIC_LIBR}"
183
	  echo "${MAIN_LDFLAGS} ${LDFLAGS} ${STATIC_LIBR}"
180
	fi
184
	fi
181
      else
185
      else
182
	echo "${LIBR}"
186
	echo "${MAIN_LDFLAGS} ${LDFLAGS} ${LIBR} ${LIBS}"
183
      fi
187
      fi
184
      exit 0
188
      exit 0
185
      ;;
189
      ;;
186
    --no-user-files)
190
    --no-user-files)
187
      personal="no"
191
      personal="no"