Re: Cross-compile tar-1.13

2008-09-07 Thread Steven Woody
On Sun, Sep 7, 2008 at 2:11 PM, Ralf Wildenhues [EMAIL PROTECTED] wrote: * Steven Woody wrote on Sun, Sep 07, 2008 at 07:53:43AM CEST: On Tue, Sep 2, 2008 at 2:35 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Erm, have you tried CC=arm-linux-gcc ./configure yet? If I did that, I

Re: Cross-compile tar-1.13

2008-09-06 Thread Steven Woody
On Tue, Sep 2, 2008 at 2:35 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Sun, Aug 31, 2008 at 09:50:26AM CEST: On Sun, Aug 31, 2008 at 11:21 AM, Ralf Wildenhues wrote: Please try ./configure arm-linux which was IIRC the way to do

Re: Cross-compile tar-1.13

2008-08-31 Thread Steven Woody
On Sun, Aug 31, 2008 at 11:21 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Sat, Aug 30, 2008 at 05:10:06PM CEST: For some reasons I need to cross-compile a tar-1.13, the target is ARM and the build host is i686-pc-linux-gnu. The tar-1.13's source come

Cross-compile tar-1.13

2008-08-30 Thread Steven Woody
Hi, For some reasons I need to cross-compile a tar-1.13, the target is ARM and the build host is i686-pc-linux-gnu. The tar-1.13's source come with a configure, that seems generated from a very old version of automake. For recent automake version, I have success experience to do

Re: Warn: non-POSIX variable name

2008-08-21 Thread Steven Woody
Thanks! On Thu, Aug 21, 2008 at 1:42 PM, Ralf Wildenhues [EMAIL PROTECTED] wrote: * Peter Johansson wrote on Wed, Aug 20, 2008 at 05:23:10AM CEST: Steven Woody wrote: 2. What's the difference between @varname@ and $(varname) in a Makefile.am? I noted you use many @@ I think

Re: Warn: non-POSIX variable name

2008-08-19 Thread Steven Woody
On Tue, Aug 19, 2008 at 10:51 AM, Brian Dessent [EMAIL PROTECTED] wrote: Steven Woody wrote: How do I remove these warnings when do automake: src/rmeterd/Makefile.am:9: shell ../../svndate-sh: non-POSIX variable name src/rmeterd/Makefile.am:9: (probably a GNU make extension

Re: Warn: non-POSIX variable name

2008-08-19 Thread Steven Woody
On Tue, Aug 19, 2008 at 3:43 PM, Brian Dessent [EMAIL PROTECTED] wrote: Steven Woody wrote: Thank you. Adding -Wno-portablility to AM_INIT_AUTOMAKE works. But I don't understand your other words: For the former, run the script at configure-time rather than at make-time and AC_SUBST

Re: Warn: non-POSIX variable name

2008-08-19 Thread Steven Woody
Hi Steven, If I remember correctly a changed value in -D flag will not cause re-compilation, so if it is important that the version information propagates to your binary, it is likely better to generate a header file or even a source file than using these CPPFLAGS. I'm doing that in one of

Warn: non-POSIX variable name

2008-08-18 Thread Steven Woody
Hi, How do I remove these warnings when do automake: src/rmeterd/Makefile.am:9: shell ../../svndate-sh: non-POSIX variable name src/rmeterd/Makefile.am:9: (probably a GNU make extension) in the Makefile.am, I did something like this: rmeterd_CXXFLAGS = \

Re: Where to do post installation?

2008-07-25 Thread Steven Woody
On Tue, Jul 8, 2008 at 2:00 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: * Ralf Wildenhues wrote on Mon, Jul 07, 2008 at 07:58:01PM CEST: You'll want to use something like install-data-hook: mkdir -p $(DESTDIR)$(localstatedir)/run Erm, for portability, either $(mkdir_p) (Automake =

Re: Where to do post installation?

2008-07-07 Thread Steven Woody
On Mon, Jul 7, 2008 at 1:32 PM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Mon, Jul 07, 2008 at 07:20:44AM CEST: After 'make install', I want to do some post-install things such as creating some directories, run a script etc. What is valid method

Re: Where to do post installation?

2008-07-07 Thread Steven Woody
On Mon, Jul 7, 2008 at 3:17 PM, Steven Woody [EMAIL PROTECTED] wrote: On Mon, Jul 7, 2008 at 1:32 PM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Mon, Jul 07, 2008 at 07:20:44AM CEST: After 'make install', I want to do some post-install things

Where to do post installation?

2008-07-06 Thread Steven Woody
Hi, After 'make install', I want to do some post-install things such as creating some directories, run a script etc. What is valid method in Makefile.am to do this? Thank you.

Re: How to install shell script?

2008-06-30 Thread Steven Woody
On Mon, Jun 30, 2008 at 4:39 PM, Harlan Stenn [EMAIL PROTECTED] wrote: sysconf_SCRIPTS Hi, If I do that, 'automake' will fail and report: Makefile.am:10: `sysconfdir' is not a legitimate directory for `SCRIPTS' Did you miss somthing?

Re: How to install shell script?

2008-06-30 Thread Steven Woody
On Mon, Jun 30, 2008 at 7:15 PM, Harlan Stenn [EMAIL PROTECTED] wrote: On Mon, Jun 30, 2008 at 4:39 PM, Harlan Stenn [EMAIL PROTECTED] wrote: sysconf_SCRIPTS Hi, If I do that, 'automake' will fail and report: Makefile.am:10: `sysconfdir' is not a legitimate directory for `SCRIPTS'

Re: Why I can not overwrite CXXFLAGS values?

2008-06-07 Thread Steven Woody
On Sat, Jun 7, 2008 at 3:38 PM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Fri, Jun 06, 2008 at 08:54:59PM CEST: In my system, the default CXXFLAGS is '-g -O2'. But, for a particular program, I need -O0 and without -g. I tried something like

Re: A global _CFLAGS assigment?

2008-06-07 Thread Steven Woody
On Sat, Jun 7, 2008 at 3:46 PM, Ralf Wildenhues [EMAIL PROTECTED] wrote: * Steven Woody wrote on Fri, Jun 06, 2008 at 08:34:05PM CEST: Before received your post, I tried _CFLAGS = @AM_CFLAGS@ -additional-flags ... but failed, but _CFLAGS = @CXXFLAGS@ -additional-flags

A global _CFLAGS assigment?

2008-06-06 Thread Steven Woody
Hi, My project tree have many Makefile.am in a recursive directory tree and I want every Makefile.am has a line some thing like xxx_CFLAGS = -Wall. What's the way to do that? You see, there are many different xxx_ in different Makefile.am. Thanks. - narke

How to define a `prefix' other than the default vaule?

2008-06-06 Thread Steven Woody
Hi, I want all my stuff by default installed in /usr/local/mypkg unless user specified another 'preflex' value when run 'configure' script. How can I? Thank you. - narke

Re: A global _CFLAGS assigment?

2008-06-06 Thread Steven Woody
On Sat, Jun 7, 2008 at 12:22 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Fri, Jun 06, 2008 at 06:17:30PM CEST: My project tree have many Makefile.am in a recursive directory tree and I want every Makefile.am has a line some thing like xxx_CFLAGS

Re: How to define a `prefix' other than the default vaule?

2008-06-06 Thread Steven Woody
On Sat, Jun 7, 2008 at 12:30 AM, John Calcote [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steven Woody wrote: Hi, I want all my stuff by default installed in /usr/local/mypkg unless user specified another 'preflex' value when run 'configure' script. How can I

Re: A global _CFLAGS assigment?

2008-06-06 Thread Steven Woody
On Sat, Jun 7, 2008 at 1:23 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: * Steven Woody wrote on Fri, Jun 06, 2008 at 06:44:46PM CEST: On Sat, Jun 7, 2008 at 12:22 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: (you can also AC_SUBST([AM_CFLAGS], [...]) from within configure.ac) The big

Why I can not overwrite CXXFLAGS values?

2008-06-06 Thread Steven Woody
In my system, the default CXXFLAGS is '-g -O2'. But, for a particular program, I need -O0 and without -g. I tried something like: bin_PROGRAS = xxx xxx_CXXFLAGS = -O0 in Makefile.am. But, the final CXXFLAGS used when I compile is actually -O0 -g -O2, the default CXXFLAGS appended to my

How can I change shared library's version number?

2008-06-06 Thread Steven Woody
When I use autoconf/automake with its integrated libtool to build a shared library, I got shared libraray named 'libfoo.so.0.0.0'. I don't sure where the 0.0.0 comes from, and I don't like it. How can I change it? I searched info page but found no answer. Thanks in advance. - narke

Re: help, automake generated a buggy Makefile?

2007-10-15 Thread Steven Woody
On 10/15/07, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * Steven Woody wrote on Sun, Oct 14, 2007 at 05:51:45AM CEST: AC_INIT( [ motconv ], [ 0.1 ], [ [EMAIL PROTECTED] ] ) AM_INIT_AUTOMAKE( [ -Wall -Werror foreign ] ) AC_PROG_RANLIB AC_PROG_CXX

Re: help, automake generated a buggy Makefile?

2007-10-15 Thread Steven Woody
On 10/15/07, Ralf Wildenhues [EMAIL PROTECTED] wrote: * Steven Woody wrote on Mon, Oct 15, 2007 at 10:16:20AM CEST: ~/motconv/trunk/test$ grep -C2 TESTS Makefile.in sysconfdir = @sysconfdir@ target_alias = @target_alias@ TESTS = AllTests This looks like this file has been generated

help, automake generated a buggy Makefile?

2007-10-13 Thread Steven Woody
hi, i wrote a simple sample program as well as a cpp-unit test, and then use automake in both cygwin and linux to generate `configure' and Makefile.in. it works well in these platforms, but has problem when do configure/make in MinGW's MSYS. It seems the Makeifle generated from `./configure'

work with plain Makefiles under an automake'ed directory tree

2007-09-25 Thread Steven Woody
hi, in my automake-managed directory tree, there are some external sources which came with plain Makefiles. i want to ask you folks, when i type in a 'make' or 'make clean' at the top directory, how can i let the automake dive into those external source directories and run 'make ' and 'make

-pthread in Linux and CygWin

2006-09-20 Thread steven woody
i have a project which need to be build both on linux and cygwin. i have to set the LDFLAGS = -pthread in linux but it leads an error in cygwin. can automake help me? i inserted the LDFLAGS line in Makefile.am. thanks. -- woody then sun rose thinly from the sea and the old man could see the

Re: -pthread in Linux and CygWin

2006-09-20 Thread steven woody
On 9/20/06, Ralf Wildenhues [EMAIL PROTECTED] wrote: Hello Steven, * steven woody wrote on Wed, Sep 20, 2006 at 08:42:28AM CEST: i have a project which need to be build both on linux and cygwin. i have to set the LDFLAGS = -pthread in linux but it leads an error in cygwin. can automake

Re: How to make a 'pthread' program ?

2006-01-03 Thread steven woody
On 1/3/06, Bob Friesenhahn [EMAIL PROTECTED] wrote: On Tue, 3 Jan 2006, Steven Woody wrote: on linux, simplly adding a '-pthread' option to the command line gcc, i can make a multi-thread c program. but if using automake, i only got many undefined reference to pthread_xxx errors. i've

How to write a Makefile letting 'ld' print a link map?

2005-11-15 Thread Steven Woody
the 'ld' has an option letting me print a link map, but this option need an file name as argument. so i can not simply specify a LDFLAGS since that is different map file name for each object or executable. What do i do? thanks. -- steven woody (id: narke)

Re: How to write a Makefile letting 'ld' print a link map?

2005-11-15 Thread Steven Woody
Ralf Wildenhues [EMAIL PROTECTED] writes: Hi Steven, * Steven Woody wrote on Tue, Nov 15, 2005 at 02:23:50PM CET: the 'ld' has an option letting me print a link map, but this option need an file name as argument. so i can not simply specify a LDFLAGS since that is different map file name

Re: add '-pg' to compiler/linker

2005-11-11 Thread Steven Woody
Ralf Wildenhues [EMAIL PROTECTED] writes: thank you Ralf. you solved the problem! Hi Steven, * Steven Woody wrote on Thu, Nov 10, 2005 at 06:56:52PM CET: i have a main.cpp in top directory and some modules in sub-directories. each module compiled as a .a library and the main.cpp staticly

add '-pg' to compiler/linker

2005-11-10 Thread Steven Woody
. -- steven woody (id: narke) Virginia Woolf: You cannot find peace by avoiding life, Leonard. - The Hours (2002)

Re: configure can not determin 'HAVE_LIMITS'

2005-10-27 Thread Steven Woody
Ralf Corsepius [EMAIL PROTECTED] writes: To check for C++-headers you normally have to tell the configure script to switch languages/compilers. Example: # This uses the c-compiler AC_CHECK_HEADERS([limits.h]) # This uses the c++-compiler AC_LANG_PUSH([C++]) AC_CHECK_HEADERS([limits])

Re: configure can not determin 'HAVE_LIMITS'

2005-10-26 Thread Steven Woody
Stepan Kasal [EMAIL PROTECTED] writes: Hello, On Tue, Oct 25, 2005 at 10:23:55PM +0800, Steven Woody wrote: #ifdef HAVE_LIMITS add line AC_CHECK_HEADERS([limits]) to configure.ac (or configure.in). HTH, Stepan Kasal thanks. but still got problem. if i say, AC_CHECK_HEADERS

Re: configure can not determin 'HAVE_LIMITS'

2005-10-26 Thread Steven Woody
Andreas Schwab [EMAIL PROTECTED] writes: Ralf Corsepius [EMAIL PROTECTED] writes: limits.h is a POSIX header. On linux it is supplied by GCC. So if you want to check for limits, you should use AC_CHECK_HEADERS([limits]) If this fails, something else is broken and you will have to

Re: configure can not determin 'HAVE_LIMITS'

2005-10-26 Thread Steven Woody
Ralf Corsepius [EMAIL PROTECTED] writes: On Wed, 2005-10-26 at 21:52 +0800, Steven Woody wrote: Stepan Kasal [EMAIL PROTECTED] writes: Hello, On Tue, Oct 25, 2005 at 10:23:55PM +0800, Steven Woody wrote: #ifdef HAVE_LIMITS add line AC_CHECK_HEADERS([limits

configure can not determin 'HAVE_LIMITS'

2005-10-25 Thread Steven Woody
#endif so, my code including the header will never pass compile becase HAVE_LIMITS was not set by the ./configure, hence the header will ask the machine/limits.h which however does not exist on my system. does anyone know what's the cause and gets a solution? -- steven woody (id: narke) Can two