Re: Parallel build sometimes resulting in "fatal error: config.h: No such file or directory"

2017-10-19 Thread Simon Sobisch
,-O1 /home/simon/gnucobol/cobc/../cobc/cobc.c -o >> ../cobc/cobc >> /home/simon/gnucobol/cobc/../cobc/cobc.c:26:10: fatal error: config.h: >> No such file or directory >> #include "config.h" >> ^~ >> compilation terminated. > > I

Re: Parallel build sometimes resulting in "fatal error: config.h: No such file or directory"

2017-10-16 Thread Nick Bowler
-Wno-format-y2k -U_FORTIFY_SOURCE > -Wl,-z,relro,-z,now,-O1 /home/simon/gnucobol/cobc/../cobc/cobc.c -o > ../cobc/cobc > /home/simon/gnucobol/cobc/../cobc/cobc.c:26:10: fatal error: config.h: > No such file or directory > #include "config.h" > ^~ > compilation te

Parallel build sometimes resulting in "fatal error: config.h: No such file or directory"

2017-10-16 Thread Simon Sobisch
bc/../cobc/cobc.c -o ../cobc/cobc /home/simon/gnucobol/cobc/../cobc/cobc.c:26:10: fatal error: config.h: No such file or directory #include "config.h" ^~ compilation terminated. ~~~ where it should be (and normally does and also does on a second/third try): ~~~ gcc -D

Re: Manual dependency: specifying config.h on Automake.am

2012-03-02 Thread Stefano Lattarini
On 03/01/2012 03:22 PM, Fabrício Zimmerer Murta wrote: > Hello, > Hello Fabrício, sorry for the delay. > I am unable to use automatic dependency tracking as I have been doing > a project in Fortran 90. My problem is: when I change include/config.h, > src/*.F90 which have th

Manual dependency: specifying config.h on Automake.am

2012-03-01 Thread Fabrício Zimmerer Murta
Hello, I am unable to use automatic dependency tracking as I have been doing a project in Fortran 90. My problem is: when I change include/config.h, src/*.F90 which have the include/ file “included” are not recompiled (as would be expected). I wonder if it would be okay just to add to the

bug#7773: (lack of) config.h description in manual

2011-01-04 Thread Jack Kelly
I disagree that `make prefix=... install' is a poor man's DESTDIR. Installing using DESTDIR will install things in $(DESTDIR)/$(prefix)/bin (and so on), which is a right pain when it comes to using something like GNU Stow to manage /usr/local. -- Jack On Tue, Jan 4, 2011 at 6:13 PM, Ralf Wildenhu

Re: config.h as dependency

2009-04-22 Thread Jason Sewall
Hi Ralf - I figured out my problem. See below; basically, I'm a numbskull. On Wed, Apr 22, 2009 at 1:09 AM, Ralf Wildenhues wrote: > Here's a few reasons why this may not have worked as intended: > > - config.h wasn't even updated.  configure, more precisely > config

Re: config.h as dependency

2009-04-21 Thread Ralf Wildenhues
Hello Jason, * Jason Sewall wrote on Tue, Apr 21, 2009 at 05:22:40PM CEST: > I have a project using autoconf + automake + autoheader, and clearly > the results of my builds depends on what is in config.h. Thus, I would > expect that when I run ./configure, everything in the build tree w

config.h as dependency

2009-04-21 Thread Jason Sewall
I have a project using autoconf + automake + autoheader, and clearly the results of my builds depends on what is in config.h. Thus, I would expect that when I run ./configure, everything in the build tree would be marked as out-of-date and everything would be rebuilt - that is, I would expect

Re: Prefix in config.h

2008-02-20 Thread Ralf Wildenhues
> I'm trying to the prefix to my config.h file, but when > > > I do AC_DEFINE_UNQUOTED(PREFIX, $prefix) in my > > > configure.ac file, the PREFIX in config.h gets defined > > > to NONE. > > See > > <http://www.gnu.org/software/autoconf/manual/html_no

Re: Prefix in config.h

2008-02-20 Thread Conrad Achtenbaum
But I need it to be explicit, e.g. "/usr/share/", On Feb 20, 2008 8:25 PM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hello Conrad, > > * Conrad Achtenbaum wrote on Wed, Feb 20, 2008 at 08:20:46PM CET: > > > > I'm trying to the prefix to my config.h

Re: Prefix in config.h

2008-02-20 Thread Ralf Wildenhues
Hello Conrad, * Conrad Achtenbaum wrote on Wed, Feb 20, 2008 at 08:20:46PM CET: > > I'm trying to the prefix to my config.h file, but when > I do AC_DEFINE_UNQUOTED(PREFIX, $prefix) in my > configure.ac file, the PREFIX in config.h gets defined > to NONE. > > How do

Prefix in config.h

2008-02-20 Thread Conrad Achtenbaum
Hi there, I'm trying to the prefix to my config.h file, but when I do AC_DEFINE_UNQUOTED(PREFIX, $prefix) in my configure.ac file, the PREFIX in config.h gets defined to NONE. How do I export the prefix value? Thanks in advance,

Re: (Slightly OT) including svn revision in config.h

2006-07-25 Thread Bob Proulx
Jim Lynch wrote: > Does anyone have a suggestion as to how I can automatically keep the svn > revision number in a config file somewhere? http://subversion.tigris.org/faq.html#version-value-in-source Bob

(Slightly OT) including svn revision in config.h

2006-07-15 Thread Jim Lynch
I'd really like to be able to include the svn revision number somewhere I can reference it from my program so I know which source revision is running on a specific binary, in case I don't record that somewhere. Before I moved to the gnu configuration setup I had a target in my makefile that ch

Re: AC_DEFINE_DIR in autoconf (was: Re: SYSCONFDIR: config.h vs. AM_CFLAGS)

2005-03-11 Thread Stepan Kasal
$(datadir) part is expanded by make. So you can do ./configure --prefix=oneprefix make prefix=anotherprefix make prefix=yetanother install Your config.h approach doesn't allow the user to redifine prefix for "make all", even though it allows them to redefine it for "make install

AC_DEFINE_DIR in autoconf (was: Re: SYSCONFDIR: config.h vs. AM_CFLAGS)

2005-03-09 Thread Baurjan Ismagulov
[Taking the discussion to the autoconf list.] On Mon, Mar 07, 2005 at 09:57:31AM -0400, Leonardo Boiko wrote: > Isn't config.h created at configure time? AFAIK directory installation > variables should only be defined at make time. See > ``info Autoconf "Installation Directo

Re: SYSCONFDIR: config.h vs. AM_CFLAGS

2005-03-07 Thread Leonardo Boiko
[EMAIL PROTECTED] wrote: I'm using SYSCONFDIR in one of my C source files. Currently I pass it through the following definition: AM_CFLAGS = ... -DSYSCONFDIR=\"@[EMAIL PROTECTED]" This is cluttering the gcc command line, so I want to define it in config.h. Isn't config.h creat

SYSCONFDIR: config.h vs. AM_CFLAGS

2005-03-07 Thread ibr
Hello, I'm using SYSCONFDIR in one of my C source files. Currently I pass it through the following definition: AM_CFLAGS = ... -DSYSCONFDIR=\"@[EMAIL PROTECTED]" This is cluttering the gcc command line, so I want to define it in config.h. However, I can't figure out

Re: a general question about config.h files

2003-04-04 Thread Ronald Landheer-Cieslak
On Wed, 2 Apr 2003, Dale E Martin wrote: > > > "make install" clutils is installing it's generated config.h, which has > > ^ > > Don't do that. > Meaning that none of my headers can #inlude &

Re: a general question about config.h files

2003-04-02 Thread Dale E Martin
> > "make install" clutils is installing it's generated config.h, which has > ^ > Don't do that. Meaning that none of my headers can #inlude "config.h"? That seems ludicrous to me. > You s

Re: a general question about config.h files

2003-04-02 Thread Ronald Landheer-Cieslak
On Mon, 31 Mar 2003, Dale E Martin wrote: > Am I not getting some fundamental concept of the intention of config.h > files? Yep - see below. > Here's my problem; I've got several projects that depend on each other; > several libraries that depend on each other in an or

a general question about config.h files

2003-03-31 Thread Dale E Martin
Am I not getting some fundamental concept of the intention of config.h files? Here's my problem; I've got several projects that depend on each other; several libraries that depend on each other in an orderly fashion. All of them are using autotools for their build systems. One of the

Re: installing config.h

2002-09-04 Thread Thien-Thi Nguyen
Bruce Korb <[EMAIL PROTECTED]> writes: http://ac-archive.sf.net/Miscellaneous/ac_create_prefix_config_h.html thanks for the tip. fwiw, to try this i had to substitute AC_ECHO_MKFILE(foo,bar) with echo 'foo' > bar (the AC_ECHO_MKFILE from the website is empty.) thi

Re: installing config.h

2002-09-04 Thread Guido Draheim
due to missing extension packages. * some ac-checks define missing things, most prominently the ones for off_t and const. how to handle them: * place an pkg-conf.h along with the generated pkg-config.h, which includes the latter, and all the other headers include pkg-conf.h. This pk

Re: installing config.h

2002-09-04 Thread Raja R Harinath
Thien-Thi Nguyen <[EMAIL PROTECTED]> writes: > Waldemar Rosenbach <[EMAIL PROTECTED]> writes: > >Is there another way to solve this kind of problem? > > well, it's not clean, but you can process the headers on install. this could > be a provisional approach (i.e., kludge) while you make the

Re: installing config.h

2002-09-04 Thread Bruce Korb
Thien-Thi Nguyen wrote: > > Thien-Thi Nguyen <[EMAIL PROTECTED]> writes (imprecisely): > >you can process the headers on install. > > sorry, i forgot to emphasize: the headers processed are those other than > config.h -- the horrible approach described does

Re: installing config.h

2002-09-04 Thread Thien-Thi Nguyen
Thien-Thi Nguyen <[EMAIL PROTECTED]> writes (imprecisely): you can process the headers on install. sorry, i forgot to emphasize: the headers processed are those other than config.h -- the horrible approach described does not require you to install config.h. (did i mention that this ap

Re: installing config.h

2002-09-04 Thread Thien-Thi Nguyen
Waldemar Rosenbach <[EMAIL PROTECTED]> writes: Is there another way to solve this kind of problem? well, it's not clean, but you can process the headers on install. this could be a provisional approach (i.e., kludge) while you make the interface platform independent. see below for petrify-h

Re: installing config.h

2002-09-03 Thread Schleicher Ralph (LLI)
Waldemar Rosenbach <[EMAIL PROTECTED]> writes: > But what is the best way to deal with the platform depend stuff in the > interface? A platform independent interface! -- Ralph

installing config.h

2002-09-03 Thread Waldemar Rosenbach
config.h is platform depend, so it shouldn't be installed by make install. But what is the best way to deal with the platform depend stuff in the interface? For example: #ifdef HAVE_HASHMAP # include typedef std::hash_map myTableType; #else # include typedef std::map myTabl

Re: Q: Distributing config.h

2001-02-07 Thread Tom Tromey
>>>>> "David" == David Petrou <[EMAIL PROTECTED]> writes: David> include_HEADERS = pdl_config.h David> This seems to imply that config.h should _not_ be distributed, David> like I'm doing above. What's wrong with what I'm doing? If Dav

Q: Distributing config.h

2001-02-06 Thread David Petrou
Hi, I'm using automake 1.4 for a library called "pdl". I want to include the generated config.h file in the installed library because it sets crucial defines that are needed by users of the library. I'm doing this by setting the following in my configure.in: AM_CONFI

Re: config.h

2001-01-21 Thread Alexandre Oliva
On Jan 21, 2001, John Poltorak <[EMAIL PROTECTED]> wrote: > I'm not really sure where config.h falls into the scheme of building apps > using AUTO(MAKE|CONF), but I've found that for PATCH to get built on OS/2, > it requires this single addition to config.h:- >

config.h

2001-01-21 Thread John Poltorak
I'm not really sure where config.h falls into the scheme of building apps using AUTO(MAKE|CONF), but I've found that for PATCH to get built on OS/2, it requires this single addition to config.h:- #define strncasecmp strnicmp How would I go about getting this line included in c

Re: How to install "config.h"

2000-11-02 Thread Gary V. Vaughan
On Mon, Oct 30, 2000 at 09:18:42AM -0800, Ossama Othman wrote: > Hi Gary, > > On Fri, Oct 27, 2000 at 08:44:40PM +0100, Gary V. Vaughan wrote: > > Hmmm. I think that installing config.h is a bad idea under any > > circumstances. I talk about this in some detail in the ``P

Re: How to install "config.h"

2000-10-31 Thread Bob Friesenhahn
On Tue, 31 Oct 2000, Simon Richter wrote: > On Mon, 30 Oct 2000, Bob Friesenhahn wrote: > > > If we should not be installing config.h files, then it would be > > beneficial for Automake (or Autoconf) to support an automated way to > > provide the benefits of config

Re: How to install "config.h"

2000-10-31 Thread Lars J. Aas
On Mon, Oct 30, 2000 at 07:41:21PM -0600, Bob Friesenhahn wrote: : If we should not be installing config.h files, then it would be : beneficial for Automake (or Autoconf) to support an automated way to : provide the benefits of config.h, but in a better form. You can use the generated

Re: How to install "config.h"

2000-10-31 Thread Simon Richter
On Mon, 30 Oct 2000, Bob Friesenhahn wrote: > If we should not be installing config.h files, then it would be > beneficial for Automake (or Autoconf) to support an automated way to > provide the benefits of config.h, but in a better form. How about the bin/-config approach: configure

Re: How to install "config.h"

2000-10-30 Thread Assar Westerlund
Hi, Ossama. Ossama Othman <[EMAIL PROTECTED]> writes: > However, sometimes this can't be avoided in the case of inlined > functions (e.g. C++). It isn't always feasible, particularly in > terms of performance, to always keep function implementations hidden > within the library. One could argue

Re: How to install "config.h"

2000-10-30 Thread Bob Friesenhahn
On Mon, 30 Oct 2000, Ossama Othman wrote: > > On Tue, Oct 31, 2000 at 01:40:30AM +0100, Assar Westerlund wrote: > > I would agree with Gary here that the symptom is installing the > > config.h (or whatever it's called). The problem is that the interface > > exporte

Re: How to install "config.h"

2000-10-30 Thread Ossama Othman
Hi Assar, On Tue, Oct 31, 2000 at 01:40:30AM +0100, Assar Westerlund wrote: > I would agree with Gary here that the symptom is installing the > config.h (or whatever it's called). The problem is that the interface > exported from the library should not depend on the parameters

Re: How to install "config.h"

2000-10-30 Thread Assar Westerlund
Ossama Othman <[EMAIL PROTECTED]> writes: > If the macros placed in the package specific config.h are named so > that they are specific to the given package then why is installing > that header a problem. I would agree with Gary here that the symptom is installing the config.h (o

Re: How to install "config.h"

2000-10-30 Thread Ossama Othman
the headers more > readable. That's an interesting approach. I'll download the glib sources and take a look. Thanks for the pointer! > You can do that yourself > > sed 's,^#define ,#define FOO_,' < config.h > foo-config.h Quite right, though I don'

Re: How to install "config.h"

2000-10-30 Thread Raja R Harinath
Ossama Othman <[EMAIL PROTECTED]> writes: > On Fri, Oct 27, 2000 at 08:44:40PM +0100, Gary V. Vaughan wrote: > > Hmmm. I think that installing config.h is a bad idea under any > > circumstances. I talk about this in some detail in the ``Project'' > > chap

Re: How to install "config.h"

2000-10-30 Thread Robert Boehne
need to have the configure generated config.h > > > > What is the "best" way to coerce Automake into installing > > config.h in $(prefix) ? > > I must caution against installing config.h. You will collide with the > potential same config.h and HAVE* et al defines

Re: How to install "config.h"

2000-10-30 Thread Ossama Othman
Hi Gary, On Fri, Oct 27, 2000 at 08:44:40PM +0100, Gary V. Vaughan wrote: > Hmmm. I think that installing config.h is a bad idea under any > circumstances. I talk about this in some detail in the ``Project'' > chapters of the Goat Book (linked from my homepages), and

Re: How to install "config.h"

2000-10-30 Thread Gary V. Vaughan
Some food for thought: On Thu, Oct 26, 2000 at 02:20:10PM -0700, Ossama Othman wrote: > Hi Alexandre, > > On Thu, Oct 26, 2000 at 07:13:28PM -0200, Alexandre Oliva wrote: > > If you really want to have it installed, don't call it `config.h', or > > at le

Re: How to install "config.h"

2000-10-29 Thread Assar Westerlund
Robert Boehne <[EMAIL PROTECTED]> writes: > I have a massive set of C++ libraries that use > CVS libtool, autoconf and automake to build and install. > Since users then need to have _all_ the header files > they also need to have the configure generated config.h > > W

Re: How to install "config.h"

2000-10-27 Thread Raja R Harinath
Simon Richter <[EMAIL PROTECTED]> writes: > On 27 Oct 2000, Mark Galassi wrote: > [Installing config.h] > > > But be careful: if any of the C code in the package itself includes > > you might be in for a nasty surprise: if > > a version is already installed and

Re: How to install "config.h"

2000-10-27 Thread Ossama Othman
Hi, On Fri, Oct 27, 2000 at 09:30:47PM +0200, Simon Richter wrote: > On 27 Oct 2000, Mark Galassi wrote: > > [Installing config.h] > > > But be careful: if any of the C code in the package itself includes > > you might be in for a nasty surprise: if > > a vers

Re: How to install "config.h"

2000-10-27 Thread Simon Richter
On 27 Oct 2000, Mark Galassi wrote: [Installing config.h] > But be careful: if any of the C code in the package itself includes > you might be in for a nasty surprise: if > a version is already installed and a user is compiling a new version > from source, that user will pick up t

Re: How to install "config.h"

2000-10-27 Thread Mark Galassi
>> And use `#include ' in all other >> headers that include it. Ossama> BTW, I do exactly what Alexandre suggests in some of my Ossama> own packages. It works out quite nicely. But be careful: if any of the C code in the package itself includes you might be in for a nasty surp

Re: How to install "config.h"

2000-10-26 Thread Robert Boehne
Ossama Othman wrote: > > Hi Alexandre, > > On Thu, Oct 26, 2000 at 07:13:28PM -0200, Alexandre Oliva wrote: > > If you really want to have it installed, don't call it `config.h', or > > at least install it in include/. To accomplish > > that, us

Re: How to install "config.h"

2000-10-26 Thread Ossama Othman
Hi Alexandre, On Thu, Oct 26, 2000 at 07:13:28PM -0200, Alexandre Oliva wrote: > If you really want to have it installed, don't call it `config.h', or > at least install it in include/. To accomplish > that, use: > > pkginclude_HEADERS = config.h ... > > A

Re: How to install "config.h"

2000-10-26 Thread Alexandre Oliva
On Oct 26, 2000, Robert Boehne <[EMAIL PROTECTED]> wrote: > Since users then need to have _all_ the header files > they also need to have the configure generated config.h > What is the "best" way to coerce Automake into installing > config.h in $(prefix) ? I

Re: How to install "config.h"

2000-10-26 Thread Simon Richter
On Thu, 26 Oct 2000, Robert Boehne wrote: [Finding libraries from other packages] > What is the "best" way to coerce Automake into installing > config.h in $(prefix) ? Not at all. Instead, create m4 macros that search for the libraries somehow and place them in ${datadir}/a

Re: How to install "config.h"

2000-10-26 Thread Ossama Othman
Hi Robert, On Thu, Oct 26, 2000 at 01:32:42PM -0500, Robert Boehne wrote: > I have a massive set of C++ libraries that use > CVS libtool, autoconf and automake to build and install. > Since users then need to have _all_ the header files > they also need to have the configure genera

How to install "config.h"

2000-10-26 Thread Robert Boehne
I have a massive set of C++ libraries that use CVS libtool, autoconf and automake to build and install. Since users then need to have _all_ the header files they also need to have the configure generated config.h What is the "best" way to coerce Automake into installing config.h i