On Sep 28, 2014, at 7:07 PM, Ryan Schmidt <ryandes...@macports.org> wrote:

> 
> On Sep 28, 2014, at 1:25 PM, Mark Brethen wrote:
> 
>> What are the limitations on the "configure.cmd" variable? I tried
>> 
>>   configure.cmd      ./configure ${configure.pre_args} --with-csl ; 
>> ./configure --with-psl
>> 
>> but port didn't like that.
> 
> configure.cmd (and, more generally, any *.cmd) is designed to specify the 
> relative or absolute path to a program to run. Any arguments to that command 
> are meant to be specified in *.args, *.pre_args and *.post_args. It's not 
> intended to be used to run more than one command.
> 
>> I ended up with 
>> 
>>   configure.args-append   --with-csl
>> 
>>   # Need to run the configure script twice, once with --with-csl and any
>>   # other relevent options and once with --with-psl and any relevant PSL
>>   # options. After that use "make" and both systems should be made.
>>   post-configure {
>>       configure.args-replace   --with-csl --with-psl
>>       system -W ${worksrcpath} "${configure.cmd}\
>>                                 ${configure.pre_args}\
>>                                 ${configure.args}\
>>                                 CC=${configure.cc}\
>>                                 CXX=${configure.cxx}"
>>   }
>> 
>> This is according to the source documentation. I've tested it and it does 
>> work.
> 
> That looks good. Bear in mind though that the configure phase sets many 
> environment variables. You're setting CC and CXX here as arguments, which 
> might be equivalent in this case to having them set in the environment, but 
> there are other variables which you're not setting and that might adversely 
> affect the build.
> 
> Hopefully the developers can fix their configure script so that in the future 
> it will only need a single invocation.
> 

The config log looks like pretty basic stuff; probably why it works.

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1779: checking build system type
configure:1793: result: x86_64-apple-darwin13.3.0
configure:1813: checking host system type
configure:1826: result: x86_64-apple-darwin13.3.0
configure:1865: checking for a BSD-compatible install
configure:1933: result: /usr/bin/install -c
configure:1944: checking whether build environment is sane
configure:1999: result: yes
configure:2150: checking for a thread-safe mkdir -p
configure:2189: result: 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/../install-sh
 -c -d
configure:2196: checking for gawk
configure:2212: found /opt/local/bin/gawk
configure:2223: result: gawk
configure:2234: checking whether make sets $(MAKE)
configure:2256: result: yes
configure:2285: checking whether make supports nested variables
configure:2302: result: yes
configure:2435: checking for cygpath
configure:2465: result: no
configure:2527: Build platform specified as 
x86_64-mac_10.9_mavericks-darwin13.3.0
configure:2578: Will build this PSL using the macintel64 initial binaries
configure:2777: checking that generated files are newer than configure
configure:2783: result: done
configure:2799: creating ./config.status

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin13.3.0
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin13.3.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/missing
 aclocal-1.14'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/missing
 autoconf'
AUTOHEADER='${SHELL} 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/missing
 autoheader'
AUTOMAKE='${SHELL} 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/missing
 automake-1.14'
AWK='gawk'
BUILD='x86_64-mac_10.9_mavericks-darwin13.3.0'
CYGPATH='no'
CYGPATH_W='echo'
DEFS='-DPACKAGE_NAME=\"PSL\" -DPACKAGE_TARNAME=\"psl\" 
-DPACKAGE_VERSION=\"20080915\" -DPACKAGE_STRING=\"PSL\ 20080915\" 
-DPACKAGE_BUGREPORT=\"em...@maintainer.org\" -DPACKAGE_URL=\"\" 
-DPACKAGE=\"psl\" -DVERSION=\"20080915\"'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/missing
 makeinfo'
MKDIR_P='/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/../install-sh
 -c -d'
PACKAGE='psl'
PACKAGE_BUGREPORT='em...@maintainer.org'
PACKAGE_NAME='PSL'
PACKAGE_STRING='PSL 20080915'
PACKAGE_TARNAME='psl'
PACKAGE_URL=''
PACKAGE_VERSION='20080915'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='20080915'
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin13.3.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin13.3.0'
build_vendor='apple'
cygpath_FALSE=''
cygpath_TRUE='#'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-apple-darwin13.3.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin13.3.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} 
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sixty_four_FALSE='#'
sixty_four_TRUE=''
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "PSL"
#define PACKAGE_TARNAME "psl"
#define PACKAGE_VERSION "20080915"
#define PACKAGE_STRING "PSL 20080915"
#define PACKAGE_BUGREPORT "em...@maintainer.org"
#define PACKAGE_URL ""
#define PACKAGE "psl"
#define VERSION "20080915"

configure: exit 0

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by PSL config.status 20080915, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on brethen-mbp.local

config.status:756: creating Makefile


Mark




_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to