what's the effect of test in ac_define_dir.m4

2002-06-24 Thread Ionutz Borcoman
Hi, I'm new to autotools an need something like missing facility --*dir. I've started playing with ac_define_dir.m4 from the autoconf archive: http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html My modified version looks to produce what I want, but I fail to understand how

Re: what's the effect of test in ac_define_dir.m4

2002-06-24 Thread Ionutz Borcoman
I don't argue with this, but what can do a test statement outside an if (or other conditional) ? Until now, I thought test is used for it's returned value, but here I don't see anybody using that value... TIA, Ionutz Andreas Schwab wrote: > > This is standard Bourne shell syntax. There is n

Re: what's the effect of test in ac_define_dir.m4

2002-06-24 Thread Ionutz Borcoman
Evrika :-) Yes, you're right. But I've been for too long a C programmer (and never a shell one). I've thought '&&' was for test command. Something like in: if ( xxx == TRUE && yyy == TRUE ) {}; So the C++ equivalent of this bash line: test xxx="xxx" && xxx="zzz" is if( xxx == "xxx" ) {

Re: what's the effect of test in ac_define_dir.m4

2002-06-24 Thread Ionutz Borcoman
r, with without or with no, then it bindir will default dnl to bindir. dnl dnl @author Ionutz Borcoman <[EMAIL PROTECTED]> based on ac_define_dir.m4 by Guido Draheim AC_DEFUN([AC_WITH_DIR], [ AC_ARG_WITH($1, $3, $1=$withval, $1=no)

how to make multiple libs ?

2002-06-24 Thread Ionutz Borcoman
Hi, I have a package organized like this: top |_ lib1 |_ lib2 |_ lib3 |_ prog1 |_ prog2 lib2 uses on lib1 and prog1 uses lib2. How do I correctly build the lib2 and prog1 ? I have try this (but it doesn't work as I have expected): 1) In lib2/Makefile.am lib2_la_LIBADD = $(top_bui

Undefined symbols( was: how to make multiple libs ?)

2002-06-25 Thread Ionutz Borcoman
k too elegant to me. TIA, Ionutz Ionutz Borcoman wrote: > Hi, > > I have a package organized like this: > > top > |_ lib1 > |_ lib2 > |_ lib3 > |_ prog1 > |_ prog2 > > lib2 uses on lib1 and prog1 uses lib2. > > How do I correctly build the lib2 a

auto-regenerating Makefile.in and Makefile files

2002-07-03 Thread Ionutz Borcoman
Hi, Is there any way to set the autotools or something else to regenerate Makefile.in and Makefile files if I change the Makefile.am ? Or is there a simple command to do this (but keeping all the options I've give to configure) ? What about file xxx generated from xxx.in ? The problem is tha

daemon pid file location

2002-07-08 Thread Ionutz Borcoman
Hi, For a daemon, how do I code the location of the pidfile ? Normaly it in /var/run, but some systems, like our old SCO, don't have this directory. So where should I put this pidfile, by default ? TIA, Ionutz

why check for config.h ?

2002-07-12 Thread Ionutz Borcoman
Hi, Why all to docs about autotools suggest to guard the include of config.h like this ? #ifdef HAVE_CONFIG_H #include "config.h" #endif Is it possible to don't have it, if I've explicitly requested it to be generated by AM_CONFIG_HEADERS ? Why can't I just say ? #include "config.h" TIA,