Re: Makefile.am target name prefix *.o

2020-02-02 Thread Vincent Blondel
Thank You for the detailed answer :-) -V. On Sat, Feb 1, 2020 at 9:58 PM Russ Allbery wrote: > Vincent Blondel writes: > > > Encounter a strange behaviour with autoconf. > > I do not understand why all the compiled *.o files are prefixed with > > target-xxx.o. > > > Below an example ... have no

Re: Makefile.am target name prefix *.o

2020-02-01 Thread Russ Allbery
Vincent Blondel writes: > Encounter a strange behaviour with autoconf. > I do not understand why all the compiled *.o files are prefixed with > target-xxx.o. > Below an example ... have no progname yet for my executable hence let's > call it main for now ... > bin_PROGRAMS = main > main_SOURCES

Re: Makefile.am target name prefix *.o

2020-02-01 Thread Sébastien Hinderer
Hello, Vincent Blondel (2020/02/01 17:10 +0100): > Hello, > > Encounter a strange behaviour with autoconf. > I do not understand why all the compiled *.o files are prefixed with > target-xxx.o. > > Below an example ... have no progname yet for my executable hence let's > call it main for now ... >

Makefile.am target name prefix *.o

2020-02-01 Thread Vincent Blondel
Hello, Encounter a strange behaviour with autoconf. I do not understand why all the compiled *.o files are prefixed with target-xxx.o. Below an example ... have no progname yet for my executable hence let's call it main for now ... bin_PROGRAMS = main main_SOURCES = obj1.cc obj2.cc Executable

how do I substitute the library prefix?

2018-01-07 Thread Sam Steingold
Hi, CLISP interface to PARI is configured with the configure.in containing AC_LIB_LINKFLAGS([pari]). The build process also requires the Makefile to know where the datadir of pari is located. To this end, Makefile.in has --8<---cut here---start->8---

Re: How to use PREFIX created by autoconf in source file

2014-02-10 Thread Ralf Corsepius
On 02/10/2014 05:05 PM, Adam Jiang wrote: Actually, the problem could be resolved by AM_CFLAGS = -DPKGDATA=$(pkgdata) just like the manual described. Paths of all files in $(pkgdata) could be referred with PKGDATA + basename. AM_CFLAGS => automake You are off-topic for this list __

Re: How to use PREFIX created by autoconf in source file

2014-02-10 Thread Adam Jiang
Autoconf could help to generate configure script which accepts an option > > called --prefix in general. In this way, users could specific a path > where > > programs/data installed. > > ALL configure scripts generated by autoconf accept --prefix. > > It sounds like

Re: How to use PREFIX created by autoconf in source file

2014-02-10 Thread Eric Blake
On 02/09/2014 05:17 AM, Adam Jiang wrote: > Autoconf could help to generate configure script which accepts an option > called --prefix in general. In this way, users could specific a path where > programs/data installed. ALL configure scripts generated by autoconf accept --prefix. It so

Re: How to use PREFIX created by autoconf in source file

2014-02-09 Thread Peter Johansson
On 02/09/2014 10:17 PM, Adam Jiang wrote: Autoconf could help to generate configure script which accepts an option called --prefix in general. In this way, users could specific a path where programs/data installed. In my program, I'd like to refer the location where data files are installe

Re: How to use PREFIX created by autoconf in source file

2014-02-09 Thread Ralf Corsepius
On 02/09/2014 01:17 PM, Adam Jiang wrote: Autoconf could help to generate configure script which accepts an option called --prefix in general. In this way, users could specific a path where programs/data installed. In my program, I'd like to refer the location where data files are installe

How to use PREFIX created by autoconf in source file

2014-02-09 Thread Adam Jiang
Autoconf could help to generate configure script which accepts an option called --prefix in general. In this way, users could specific a path where programs/data installed. In my program, I'd like to refer the location where data files are installed. In plain Makefile, it could be done like

Re: Prefix for file in source directory used in ./configure?

2010-04-25 Thread Ralf Wildenhues
* Jason Sewall wrote on Sun, Apr 25, 2010 at 07:16:25PM CEST: > Ralf Wildenhues gmx.de> writes: > > $ac_top_srcdir, as documented in "info Autoconf 'Configuration Actions'". > > Since configure is always run the top build directory, it should suffice > > to use $srcdir though. > > Well, perhaps I

Re: Prefix for file in source directory used in ./configure?

2010-04-25 Thread Jason Sewall
Ralf Wildenhues gmx.de> writes: > $ac_top_srcdir, as documented in "info Autoconf 'Configuration Actions'". > Since configure is always run the top build directory, it should suffice > to use $srcdir though. Well, perhaps I understand less of autoconf than I thought I did. I tried to put GIT_VER

Re: Prefix for file in source directory used in ./configure?

2010-04-25 Thread Ralf Wildenhues
* Jason Sewall wrote on Sun, Apr 25, 2010 at 05:21:25PM CEST: > Russ Allbery writes: > > > GIT_VERSION=`./GIT-VERSION-GEN` > > > > > Obviously, that './' in there doesn't work if I try to configure outside > > > my source directory. What variabl

Re: Prefix for file in source directory used in ./configure?

2010-04-25 Thread Jason Sewall
't work if I try to configure outside > > my source directory. What variable do I need add as prefix to that path > > to let builds outside the source tree find that script? > > If that reference is in a Makefile.am or something similar, you want > either $(abs_top_srcdir

Re: Prefix for file in source directory used in ./configure?

2010-04-24 Thread Russ Allbery
EN` > Obviously, that './' in there doesn't work if I try to configure outside > my source directory. What variable do I need add as prefix to that path > to let builds outside the source tree find that script? If that reference is in a Makefile.am or something similar, you w

Prefix for file in source directory used in ./configure?

2010-04-24 Thread Jason Sewall
doesn't work if I try to configure outside my source directory. What variable do I need add as prefix to that path to let builds outside the source tree find that script? Cheers, Jason ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: Changing prefix for recursive autoconf subprojects

2010-01-28 Thread Michael Johnson
Hi Ralf, Thanks for the swift reply! I feel sheepish now since I read right past that configure.gnu trick in the autoconf manual entry for AC_CONFIG_SUBDIRS. I gave it a whirl, calling the normal generated ./configure from ./configure.gnu: ./configure --prefix=${prefix}/hyrax_icu

Re: Changing prefix for recursive autoconf subprojects

2010-01-28 Thread Peter Johansson
Hi Ralf, Michael, Ralf Corsepius wrote: c) There is a hidden feature in autoconf's AC_CONFIG_SUBDIR (cf. _AC_CONFIG_SUBDIRS in /usr/share/autoconf/status.m4 for details): If a toplevel configure finds a file called "configure.gnu" inside of a CONFIG_SUBDIR, it invokes "configure.gnu" instead of

Re: Changing prefix for recursive autoconf subprojects

2010-01-28 Thread Ralf Corsepius
On 01/28/2010 05:29 PM, Michael Johnson wrote: Hello autoconf gurus, I am wondering if there is a way to modify the prefix passed down in a recursive autoconf which uses the AC_CONFIG_SUBDIRS to recurse into subprojects. Situation: I have project A which has two subprojects B and C (which also

Changing prefix for recursive autoconf subprojects

2010-01-28 Thread Michael Johnson
Hello autoconf gurus, I am wondering if there is a way to modify the prefix passed down in a recursive autoconf which uses the AC_CONFIG_SUBDIRS to recurse into subprojects. Situation: I have project A which has two subprojects B and C (which also contain others subprojects, and A may

AC_RUN_IFELSE vrs --prefix and --exec-prefix -they fight with each other.

2008-12-25 Thread Duane Ellis
In a ./configure script I am working on I make use of the idiom: AC_RUN_IFELSE( [ some code ], [ success ], [ failure ] ) The problem is, the CFLAGS and LDFLAGS at that point contain: CFLAGS="-I$includedir" And LDFLAGS="-L$libdir -Wl,-rpath,$libdir" Which - is correct however, whe

Re: prefix parameter of script configure and cross compile

2008-08-25 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Fritz Code on 8/25/2008 12:00 AM: > > But the build-system I'm using at the moment uses prefix to specify the > location of the toolchain on the host. > E.g. --prefix /opt/devel/arm7/ Correct - --prefix is for

prefix parameter of script configure and cross compile

2008-08-24 Thread Fritz Code
Hi well as far as I know the prefix parameter of the configure script defines the folder where the program which gets build is supposed to be installed. So I mean where it is supposed to run and execute. E.g. we pass a prefix like /home/fritz/newprog then the program gets installed to that folder

program-prefix and AC_CHECK* macros, etc...

2007-04-10 Thread ceez
I'm doing some contracting and for various reasons, my client has been using a customized prefix and program-prefix to carefully isolate their hacked binaries and libraries from other versions for some opensource packages. I started reading the autoconf/autotools documentation expecting the

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-02 Thread Stefano Sabatini
ld still refer to other > variables. For example, a recent addition to autoconf is the datarootdir > variable, and datadir is now defined in terms of datarootdir, which in > turn is defined in terms of prefix. A two level expansion of datadir will > no loger lead to a fully expanded v

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Andreas Schwab
Stefano Sabatini <[EMAIL PROTECTED]> writes: > Follow a possible implementation of this suggestion: > > to put in the input Perl script "script.in" something as: > my $prefix="@prefix@"; > ... > my $system_config_file= "@SYSCONF_DIR@/script.conf&q

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Stefano Sabatini
pendant paths. > > > > Since I don't want to hardcode them, I created a "script.in" file, which > > contains a line with: > > > > my $system_config_file= "@SYSCONF_DIR@/script.conf"; > > > > and placed this snippet in configure.ac: &g

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Keith MARSHALL
th: > > my $system_config_file= "@SYSCONF_DIR@/script.conf"; > > and placed this snippet in configure.ac: > > dnl $sysconfdir contains "${prefix}/etc, so I have to > dnl eval it another time > eval "eval SYSCONF_DIR=$sysconfdir" > > AC_SUBST(SYSCO

How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Stefano Sabatini
.conf"; and placed this snippet in configure.ac: dnl $sysconfdir contains "${prefix}/etc, so I have to dnl eval it another time eval "eval SYSCONF_DIR=$sysconfdir" AC_SUBST(SYSCONF_DIR) AC_CONFIG_FILES(script) This works mainly as expected, but in the script

Echoing --prefix choice during configure

2006-01-01 Thread Brad Bell
I would like to be able to echo the users choice for --prefix while the configure script executes. For example, the configure script documented in http://www.coin-or.org/CppAD/Doc/installunix.htm currently starts with the following output configure: Begin Checking Command Line

Re: Echoing --prefix choice during configure

2006-01-01 Thread Stepan Kasal
Hello Brad, thank you for your concise description of the problem. On Sun, Jan 01, 2006 at 07:29:22AM -0800, Brad Bell wrote: >configure: Begin Checking Command Line arguments *** >checking --prefix ... your choice can't be reported here (autoconf &

Re: AW: prefix

2005-12-02 Thread Keith Marshall
On Friday 02 December 2005 5:01 pm, Andreas Schwab wrote: > Keith Marshall <[EMAIL PROTECTED]> writes: > > BTW, I don't think ac_default_prefix is officially documented > > But AC_PREFIX_DEFAULT is. > > -- Macro: AC_PREFIX_DEFAULT (PREFIX) > Set the de

Re: AW: prefix

2005-12-02 Thread Andreas Schwab
Keith Marshall <[EMAIL PROTECTED]> writes: > BTW, I don't think ac_default_prefix is officially documented But AC_PREFIX_DEFAULT is. -- Macro: AC_PREFIX_DEFAULT (PREFIX) Set the default installation prefix to PREFIX instead of `/usr/local'. Andreas. -- Andrea

Re: AW: prefix

2005-12-02 Thread Thomas Dickey
On Fri, 2 Dec 2005, Keith Marshall wrote: BTW, I don't think ac_default_prefix is officially documented -- its use can be discovered by inspecting any generated configure script. Do beware that, as an undocumented feature, it may not be supported by future autoconf versions. Furthermore, even

Re: AW: prefix

2005-12-02 Thread Keith Marshall
On Friday 02 December 2005 9:14 am, Roesner Thomas wrote: > Thank you for your hint, "ac_default_prefix=`pwd`" works fine. > I had the same in with uppercase, and it did not work. No. It's just an ordinary Bourne shell variable assignment, so is case sensitive. Most autoconf local variable name

AW: prefix

2005-12-02 Thread Roesner Thomas
5 22:52 An: Roesner Thomas; autoconf@gnu.org Betreff: Re: AW: prefix A further thought: On Thursday 01 December 2005 1:54 pm, I wrote: > On Thursday 01 December 2005 6:40 am, Roesner Thomas wrote: > > thank you for the replie, "make DESTDIR=`pwd` install" works fine, but > >

Re: AW: prefix

2005-12-01 Thread Keith Marshall
I´d > > prefer setting it within the configure.in or Makefile.am. > > You _could_ just say `prefix=""', in configure.in -- today, you should > really be using configure.ac, with autoconf 2.59 -- just before the > AC_OUTPUT. > > However, you really should not

Re: AW: prefix

2005-12-01 Thread Keith Marshall
On Thursday 01 December 2005 6:40 am, Roesner Thomas wrote: > thank you for the replie, "make DESTDIR=`pwd` install" works fine, but i´d > like to omit the naming of the installpath in all commands. I´d prefer > setting it within the configure.in or Makefile.am. You _coul

AW: prefix

2005-11-30 Thread Roesner Thomas
on: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Baurzhan Ismagulov Gesendet: Mittwoch, 30. November 2005 18:14 An: autoconf@gnu.org Betreff: Re: prefix Hello Thomas, On Tue, Nov 29, 2005 at 01:13:41PM +0100, Roesner Thomas wrote: > i want to configure my package without setting the --

Re: prefix

2005-11-30 Thread Bob Proulx
Baurzhan Ismagulov wrote: > Roesner Thomas wrote: > > i want to configure my package without setting the --prefix option. By > > default "make install" tries to copy libs and binaries to /usr/lib or > > /usr/bin, but I need the files copied to ./bin and ./lib. &g

Re: prefix

2005-11-30 Thread Baurzhan Ismagulov
Hello Thomas, On Tue, Nov 29, 2005 at 01:13:41PM +0100, Roesner Thomas wrote: > i want to configure my package without setting the --prefix option. By > default "make install" tries to copy libs and binaries to /usr/lib or > /usr/bin, but I need the files copied to ./bin

prefix

2005-11-29 Thread Roesner Thomas
Dear all, i want to configure my package without setting the --prefix option. By default "make install" tries to copy libs and binaries to /usr/lib or /usr/bin, but I need the files copied to ./bin and ./lib. Can anybody tell me wich variable must be set to `pwd` within the configure

Re: Default program-prefix option

2005-05-23 Thread Stepan Kasal
Hello, On Mon, May 23, 2005 at 12:55:42PM +0200, Linus Walleij wrote: > The manipulation of program_transform_name is necessary because program > prefix is rewritten into a transformation regexp before any commands in > the configure.ac/.in file are executed. this is not exactly t

Default program-prefix option

2005-05-23 Thread Linus Walleij
In february there was a mail to the list asking how to set a default program-prefix, with the same effect as giving it to the command line using ./configure --program-prefix=foo. I had to achieve this and it turns out the following hack in a configure.ac/.in file will do: # This can be

Re: how to set a default program-prefix whithin configure.ac

2005-02-18 Thread Stepan Kasal
Hi, On Thu, Feb 17, 2005 at 06:18:14PM +0100, JRBCAST wrote: > My question is: How can I set a default progra-prefix [...] > ./configure --program-prefix=foopref_ case $program_prefix in NONE) program_prefix=my_default_ ;; esac should do the trick. Put it somewhere between AC_IN

Re: how to set a default program-prefix whithin configure.ac

2005-02-17 Thread JRBCAST
Thanks for your response, but it is not the kind of prefix I am looking for. I am looking for the prefix prepended to the program name when doing: make install For example, if my library has two programs, foo1 and foo2, and I do: ./configure --program-prefix=foopref_ when I do make install

Re: how to set a default program-prefix whithin configure.ac

2005-02-17 Thread Harald Dunkel
JRBCAST wrote: Hi all, First of all, sorry if you have received this mail two times. My question is: How can I set a default progra-prefix without the need to explicitely pass it whith: ./configure --program-prefix ... Look for AC_PREFIX_PROGRAM in the autoconf manual (4.12). Another question

how to set a default program-prefix whithin configure.ac

2005-02-17 Thread JRBCAST
Hi all, First of all, sorry if you have received this mail two times. My question is: How can I set a default progra-prefix without the need to explicitely pass it whith: ./configure --program-prefix ... Another question is: Once the user sets it using ./configure --program- prefix, which

Re: ${prefix} expansion in configure.ac ?

2005-02-08 Thread Stepan Kasal
Hi, On Tue, Feb 08, 2005 at 12:44:46PM +0200, Philippe Trottier wrote: > eval test -d `echo $libdir | sed 's,exec_prefix,prefix,'` && > eval LDFLAGS="-L`echo $libdir | sed 's,exec_prefix,prefix,'` no big deal, what if I run .

Re: ${prefix} expansion in configure.ac ?

2005-02-08 Thread Philippe Trottier
Stepan Kasal wrote: Hi, On Mon, Feb 07, 2005 at 03:40:02PM +0200, Philippe Trottier wrote: here is something I have noticed, exec_prefix is set to NONE until the end of the config script... now I am thinking to see if it is set at NONE and if it is then set exec_prefix to ${prefix}, and put

Re: ${prefix} expansion in configure.ac ?

2005-02-08 Thread Stepan Kasal
Hi, On Mon, Feb 07, 2005 at 03:40:02PM +0200, Philippe Trottier wrote: > here is something I have noticed, exec_prefix is set to NONE until the > end of the config script... now I am thinking to see if it is set at > NONE and if it is then set exec_prefix to ${prefix}, and put i

Re: ${prefix} expansion in configure.ac ?

2005-02-07 Thread Philippe Trottier
Stepan Kasal wrote: Hi, On Fri, Feb 04, 2005 at 03:58:51PM +0200, Philippe Trottier wrote: CPPFLAGS=-I${prefix}/include LDFLAGS=-L${exec_prefix}/lib Is there better way to expand ${prefix} other than using sed ? here is something I have noticed, exec_prefix is set to NONE until the end of

Re: ${prefix} expansion in configure.ac ?

2005-02-07 Thread Stepan Kasal
Hi, On Fri, Feb 04, 2005 at 03:58:51PM +0200, Philippe Trottier wrote: > CPPFLAGS=-I${prefix}/include > LDFLAGS=-L${exec_prefix}/lib > > Is there better way to expand ${prefix} other than using sed ? yes, use the shell builtin `eval'. The following macro can serve as

${prefix} expansion in configure.ac ?

2005-02-04 Thread Philippe Trottier
I have a little trouble here, I am trying to add the destination directory "--prefix" to the library and header directorys to look in... but since I am using ${libdir} and ${includedir} I get this CPPFLAGS=-I${prefix}/include LDFLAGS=-L${exec_prefix}/lib and not /home/user/include

prefix variable

2004-05-28 Thread Rob Benton
Hey I'm trying to get up to speed on the install variables that autoconf uses. The doc that I have (for ver 2.59) says: "... Most of these variables have values that rely on |prefix| or |exec_prefix|. It is deliberate that the directory output variables keep them unexpanded:

Re: --prefix and -R path

2003-10-21 Thread Russ Allbery
Bob Friesenhahn <[EMAIL PROTECTED]> writes: > On Tue, 21 Oct 2003, Bill Moseley wrote: >> If I add a note to our README does is there any difference between: >> LDFLAGS=-R/usr/local/lib >> and >> LD_RUN_PATH=/usr/local/lib > You should provide the LDFLAGS option to configure. LD_RUN_PATH

Re: --prefix and -R path

2003-10-21 Thread Russ Allbery
Bob Friesenhahn <[EMAIL PROTECTED]> writes: > When Sun introduced LD_LIBRARY_PATH in its operating systems (later > adopted by Linux) it was described as a tool for use by developers > rather than end-users. For Solaris, I prefer -R, but Linux and FreeBSD > users will likely prefer to do without.

Re: --prefix and -R path

2003-10-21 Thread Bob Friesenhahn
On Tue, 21 Oct 2003, Steven W. Orr wrote: > =>A correct -R option needs to be specified, or set LD_LIBRARY_PATH > > May I suggest that you *not* use LD_LIBRARY_PATH? The real purpose of > LD_LP is to allow a program to pick from multiple shared objects at > loadtime. It's a bad thing to use this a

Re: --prefix and -R path

2003-10-21 Thread Steven W. Orr
On Tuesday, Oct 21st 2003 at 14:29 -0500, quoth Bob Friesenhahn: =>> What's happening is configure and make run fine, but ldd shows "not =>> found" for libz's runtime linkage. =>> =>> I'm linking with zlib which is installed in /usr/local/lib, but it seems =>> that on this machine (Solaris 2.6) th

Re: --prefix and -R path

2003-10-21 Thread Bob Friesenhahn
On Tue, 21 Oct 2003, Bill Moseley wrote: > > If I add a note to our README does is there any difference between: > > LDFLAGS=-R/usr/local/lib > > and > > LD_RUN_PATH=/usr/local/lib You should provide the LDFLAGS option to configure. LD_RUN_PATH is a non-standard environment variable. Bob ===

Re: --prefix and -R path

2003-10-21 Thread Bill Moseley
just make check. If I add a note to our README does is there any difference between: LDFLAGS=-R/usr/local/lib and LD_RUN_PATH=/usr/local/lib > > Another thing that is confusing (and I'm not sure if it's related to why > > configure is not failing the libz check) is t

Re: --prefix and -R path

2003-10-21 Thread Bob Friesenhahn
nd I'm not sure if it's related to why > configure is not failing the libz check) is that the problem only > happens when using a --prefix setting. > > Without a --prefix the final link link has -R/usr/local/lib added. > But if --prefix=/foo is used then that -R setting is *

Re: --prefix and -R path

2003-10-21 Thread Peter Eisentraut
gure is not failing the libz check) is that the problem only > happens when using a --prefix setting. That sounds pretty weird, but the problem would probably be with your makefiles. > It would be nice if configure would catch this. But I'm not sure if > it's because configur

--prefix and -R path

2003-10-21 Thread Bill Moseley
z is not found. Another thing that is confusing (and I'm not sure if it's related to why configure is not failing the libz check) is that the problem only happens when using a --prefix setting. Without a --prefix the final link link has -R/usr/local/lib added. But if --prefix=/foo is us

Re: How hardcode different default prefix? Hack Makefile.inbestway?use autoconf macro?

2003-06-13 Thread Thomas Dickey
On Fri, Jun 13, 2003 at 09:02:36AM -0400, Steve M. Robbins wrote: > Autoconf and automake promote a standard for configuring, building, actually it's autoconf (automake doesn't contribute). > P.S. There may be valid reasons for changing the default prefix; I > can think

Re: How hardcode different default prefix? Hack Makefile.inbestway?use autoconf macro?

2003-06-13 Thread Steve M. Robbins
s of "edit defs.h; edit Makefile ..." One of the standards promoted by autoconf is the notion of installing into the hierarchy rooted at $prefix. There is a well-known method to specify the prefix, and a well-known default if you don't. The installation location ought to be a decis

Re: How hardcode different default prefix? Hack Makefile.inbestway?use autoconf macro?

2003-06-12 Thread Thomas E. Dickey
On Thu, 12 Jun 2003, Steve M. Robbins wrote: > However: if you plan to release the code for general consumption, > think twice before using it. There are few things that irritate this > software installer more than having "./configure; make install" put > stuff somewhere OTHER than /usr/local. a

Re: How hardcode different default prefix? Hack Makefile.in bestway?use autoconf macro?

2003-06-12 Thread Steve M. Robbins
On Wed, Jun 11, 2003 at 04:11:24PM -0500, Raja R Harinath wrote: > Hi, > > <[EMAIL PROTECTED]> writes: > > > Is hacking definition of $(prefix) in Makefile.in the > > best way to change default prefix from something other > > than /usr/local??? > > >

Re: How hardcode different default prefix? Hack Makefile.in bestway? use autoconf macro?

2003-06-11 Thread Raja R Harinath
Hi, <[EMAIL PROTECTED]> writes: > Is hacking definition of $(prefix) in Makefile.in the > best way to change default prefix from something other > than /usr/local??? > > Is there some macro to add to configure.in that would > do the same? That seems like the ideal. Tr

How hardcode different default prefix? Hack Makefile.in best way?use autoconf macro?

2003-06-11 Thread cs
Is hacking definition of $(prefix) in Makefile.in the best way to change default prefix from something other than /usr/local??? Is there some macro to add to configure.in that would do the same? That seems like the ideal. Chris

--prefix and include/library path

2003-04-04 Thread Andrey Borzenkov
So far all configure I have seen hard code /usr/local as base for additional include/library path when doing checks (i.e. -I/usr/local/include, -L/usr/local/lib, ...) Is there any reason why autoconf does not automatically adds $prefix/include, $prefix/lib etc (or more specific variants)? It is

Re: keeping $exec-prefix et al unexpanded

2003-03-06 Thread Earnie Boyd
IIRC, ``make install prefix=/tmp/foo'' is a GNU standard mandate where prefix for the install does not modify the prefix for the build. Earnie. Harlan Stenn wrote: Why don't you use DESTDIR instead? IE: > ./configure --prefix=/usr > make > make DESTDIR=/tmp insta

Re: keeping $exec-prefix et al unexpanded

2003-03-06 Thread Richard Dawe
or DJGPP only use autoconf. > IE: > > > ./configure --prefix=/usr > > make > > make DESTDIR=/tmp install > > cd /tmp > > tar cfz binary-tarball.tgz usr Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Harlan Stenn
> > Why don't you use DESTDIR instead? > > The install location is not always simply constructed by adding a set > prefix to the run-time location. The example I saw was just rolling a tarball for later installation. > We have this discussion like clockwork about every

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Russ Allbery
Harlan Stenn <[EMAIL PROTECTED]> writes: > Why don't you use DESTDIR instead? The install location is not always simply constructed by adding a set prefix to the run-time location. We have this discussion like clockwork about every three months. -- Russ Allbery ([E

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Harlan Stenn
Why don't you use DESTDIR instead? IE: > ./configure --prefix=/usr > make > make DESTDIR=/tmp install > cd /tmp > tar cfz binary-tarball.tgz usr H

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Richard Dawe
Hello. Philip Willoughby wrote: [snip] > Since the only reason I've been given to keep the variables unexpanded is > so that you can do: > > ./configure --prefix=/usr > make > make prefix=/tmp/usr install > cd /tmp > tar cfz binary-tarball.tgz usr > > this see

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Philip Willoughby
Today, Dan Kegel wrote: >Philip Willoughby wrote: >> Since the only reason I've been given to keep the variables unexpanded is >> so that you can do: >> >> ./configure --prefix=/usr >> make >> make prefix=/tmp/usr install >> cd /tmp >> tar c

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Dan Kegel
Philip Willoughby wrote: I've been thinking (shock!), and it seems to me that it wouldn't break anything majorly if we did expand all the $prefix-dependant variables. The reason being, practically everyone uses automake these days, and automake defines all installation paths to be p

Re: keeping $exec-prefix et al unexpanded

2003-03-05 Thread Ralf Corsepius
Am Mit, 2003-03-05 um 14.34 schrieb Philip Willoughby: > I've been thinking (shock!), and it seems to me that it wouldn't break > anything majorly if we did expand all the $prefix-dependant variables. The > reason being, practically everyone uses automake these days, and aut

keeping $exec-prefix et al unexpanded

2003-03-05 Thread Philip Willoughby
I've been thinking (shock!), and it seems to me that it wouldn't break anything majorly if we did expand all the $prefix-dependant variables. The reason being, practically everyone uses automake these days, and automake defines all installation paths to be prefixed by $DESTDIR, which i

ac-archive: obsolete detection and AX_ prefix

2003-01-05 Thread Guido Draheim
with the ongoing expansion of ac-archive, it started to problematic to keep the macros sorted out. There has been a discussion a while back whether it might make sense to reserve a macro-prefix for those registered in the ac-archive - the usage of AX_ sounds best. This AX_ prefix is now detected

Re: Defining prefix

2002-12-12 Thread Dan Kegel
John Poltorak wrote: If I have prefix defined in config.site and use a diferent value on the command line, which should take precedence? I never use config.site, but I imagine the commandline should always have the last word...

Re: Defining prefix

2002-12-12 Thread Earnie Boyd
John Poltorak wrote: If I have prefix defined in config.site and use a diferent value on the command line, which should take precedence? The command line. Earnie.

Defining prefix

2002-12-12 Thread John Poltorak
If I have prefix defined in config.site and use a diferent value on the command line, which should take precedence? -- John

Re: AC_TRY_CPP/AC_CHECK_HEADER and --prefix != /usr/local

2002-10-28 Thread Duncan Gibson
Apologies for not replying sooner: I've been away for a week. Duncan Gibson asked: DG> Is there any reason why the includedir related to a user-supplied DG> --prefix (i.e. not /usr/local) isn't automatically added to the DG> CPPFLAGS or internal search path when looking for

Re: AC_TRY_CPP/AC_CHECK_HEADER and --prefix != /usr/local

2002-10-19 Thread Bob Proulx
Duncan Gibson <[EMAIL PROTECTED]> [2002-10-17 11:57:21 +0200]: > Is there any reason why the includedir related to a user-supplied --prefix > (i.e. not /usr/local) isn't automatically added to the CPPFLAGS or internal > search path when looking for header files? Th

AC_TRY_CPP/AC_CHECK_HEADER and --prefix != /usr/local

2002-10-19 Thread Duncan Gibson
Is there any reason why the includedir related to a user-supplied --prefix (i.e. not /usr/local) isn't automatically added to the CPPFLAGS or internal search path when looking for header files? I installed fltk-1.1.0 with --prefix=/scratch/duncan I'm trying to create a configure.in

Re: how to prefix definitions in config.h

2002-03-18 Thread Guido Draheim
ement it. the syntax model of automake isn't that well-suited to the problem, since the input-file might something different, nor is the output file always the same or the prefix that is to be used. Those are the three optional arguments of the prefix-config macros. If you have a prop

Re: how to prefix definitions in config.h

2002-03-18 Thread Paul Eggert
> Date: Mon, 18 Mar 2002 10:40:44 +0100 > From: Guido Draheim <[EMAIL PROTECTED]> > If you have a proposal how to express that in automake-terms, don't > hide it... Sorry, I don't understand the overall problem well enough to draft a solution. The only part of the problem that I understand has

Re: how to prefix definitions in config.h

2002-03-18 Thread Guido Draheim
Es schrieb Akim Demaille: > > > "Paul" == Paul Eggert <[EMAIL PROTECTED]> writes: > > Paul> Sorry, I don't understand the question. I went back and read > Paul> the thread, and I still don't understand the question. > > Sorry for being confuse. > > Paul> I did understand Russ Allbery's po

Re: how to prefix definitions in config.h

2002-03-18 Thread Guido Draheim
>> $(output) > echo "#endif /* PREFIX_CONFIG_H */" >> $(output) > > Pretty icky, but it does get the job done. > yes, that was my first shot too ;-) - it's seems to be the canonical answer to the problem we have to handle and it seems to be a very commo

Re: how to prefix definitions in config.h

2002-03-18 Thread Akim Demaille
> "Paul" == Paul Eggert <[EMAIL PROTECTED]> writes: Paul> Sorry, I don't understand the question. I went back and read Paul> the thread, and I still don't understand the question. Sorry for being confuse. Paul> I did understand Russ Allbery's point. He wrote that if you Paul> need a confi

Re: how to prefix definitions in config.h

2002-03-18 Thread Clinton Roy
> > my_config.h: config.h > > sed 's/#define /#define MY_/; s/#undef /#undef MY_/' $@ It would appear I can air my dirty code :) We define some of our own defines, that are already prefixed, so we have to take care of the case of double prefixing. We also wrap the header in an `#ifndef

Re: how to prefix definitions in config.h

2002-03-17 Thread Paul Eggert
> Date: Sun, 17 Mar 2002 13:48:30 +0100 > From: Guido Draheim <[EMAIL PROTECTED]> > your point is quite fine - why not let the lines > go into the makefile instead of config.status. I just wonder how to > do this - if it would be possible then it would be fr better > since `make` can take of

Re: how to prefix definitions in config.h

2002-03-17 Thread Guido Draheim
y_config.h: config.h > sed 's/#define /#define MY_/; s/#undef /#undef MY_/' $@ > > and once you do that, you don't nee Autoconf to generate my_config.h. > > Guido Draheim's rejoinder > <http://mail.gnu.org/pipermail/autoconf/2002-February/012583.ht

Re: how to prefix definitions in config.h

2002-03-16 Thread Paul Eggert
> From: Akim Demaille <[EMAIL PROTECTED]> > Date: 13 Mar 2002 11:23:10 +0100 > > My question is merely one of interface. > > Currently > > AC_INIT > AC_CONFIG_HEADERS(config.h) > AC_CONFIG_COMMANDS(config.h, [echo Hello, world]) > AC_OUTPUT > > is wrong (grr, it is not caught, I don't know why

Re: how to prefix definitions in config.h

2002-03-13 Thread Akim Demaille
> "Clinton" == Clinton Roy <[EMAIL PROTECTED]> writes: Clinton> Guido Draheim <[EMAIL PROTECTED]> writes: >> ... the other problem is that the prefixing is not done during >> reconfig, and in fact, the items in my ac-macro should be appended >> to the config.status file, which I didn't bother

Re: how to prefix definitions in config.h

2002-02-19 Thread Guido Draheim
ant depends on the generated header > file, it will take care of making sure it's generated. > well, my ac-macro started out as some sed-lines in the makefile, but I didn't wanted to copy it from project to project exchanging the prefix which was always derived from the package name.

  1   2   >