On Fri, Jan 07, 2005 at 09:43:48AM -0600, Bob Friesenhahn wrote: >On Fri, 7 Jan 2005, Magnus Therning wrote: > >>You are right, $bindir is the directory is going to be installed in. >>However strange, I do have a reason for wanting to use it in my >>configure.ac. >> >>We have a set of related projects, they should all be installed in the >>same locations. The executable I need AC_PATH_PROGRAM to find is >>installed by one of the projects, and needed in building several of the >>other projects. I thought it would be nice to not force the user to >>modify $PATH before building by adding $bindir to the path that's >>searched by AC_PATH_PROGRAM. > ># ># Evaluate shell variable equivalents to Makefile directory variables ># >if test "x$prefix" = xNONE >then > prefix=$ac_default_prefix >fi ># Let make expand exec_prefix. >if test "x$exec_prefix" = xNONE >then > exec_prefix='${prefix}' >fi > ># >eval "eval PREFIX_DIR=${prefix}" >AC_SUBST(PREFIX_DIR) >eval "eval EXEC_PREFIX_DIR=${exec_prefix}" >AC_SUBST(EXEC_PREFIX_DIR) >eval "eval BIN_DIR=$bindir" >AC_SUBST(BIN_DIR) >eval "eval SBIN_DIR=$sbindir" >AC_SUBST(SBIN_DIR) >eval "eval LIBEXEC_DIR=$libexecdir" >AC_SUBST(LIBEXEC_DIR) >eval "eval DATA_DIR=$datadir" >AC_SUBST(DATA_DIR) >eval "eval SYSCONF_DIR=$sysconfdir" >AC_SUBST(SYSCONF_DIR) >eval "eval SHAREDSTATE_DIR=$sharedstatedir" >AC_SUBST(SHAREDSTATE_DIR) >eval "eval LOCALSTATE_DIR=$localstatedir" >AC_SUBST(LOCALSTATE_DIR) >eval "eval LIB_DIR=$libdir" >AC_SUBST(LIB_DIR) >eval "eval INCLUDE_DIR=$includedir" >AC_SUBST(INCLUDE_DIR) >eval "eval OLDINCLUDE_DIR=$oldincludedir" >AC_SUBST(OLDINCLUDE_DIR) >eval "eval INFO_DIR=$infodir" >AC_SUBST(INFO_DIR) >eval "eval MAN_DIR=$mandir" >AC_SUBST(MAN_DIR) Thanks. Seeing this made me remember the autoconf macro archive, and I found the following there: http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html /M -- Magnus Therning Philips Research +31-40-2745179 WDC2.52, Prof. Holstlaan 4, 5656AA Eindhoven, The Netherlands mailto:therning@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx OpenPGP:0x4FBB2C40 http://pww.innersource.philips.com/magnus/ -- Unknown
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf