Supressing output with AC_CHECK_DECL, etc.

2007-05-05 Thread Jason Curl
Hello, I've had to invent a new check for 'localtime_r()' if we need to define _REENTRANT or not. For example: Cygwin/Linux: #include time.h Solaris/Interix-3.5: #define _REENTRANT #include time.h Then we can use localtime_r() without warnings. However, my macro that I've written prints out

Getting the 'sysconfdir'

2007-06-04 Thread Jason Curl
From previous posts to automake, it appears the best way to manage my configuration files is using $(sysconfdir) So in my configure.ac I have the following that my program can use to find out where the configuration directory was configured to pull in the default when the user doesn't provide

Autoconf and Solaris Lint

2007-06-20 Thread Jason Curl
Hello, I've searched in vain on the Web how I might run configure to use Solaris' 'lint' program. It appears that their 'lint' is very much like a compiler where it produces objects that can be linked together to form a final result. The command below doesn't work. CC=lint ./configure

Re: Autoconf and Solaris Lint

2007-06-22 Thread Jason Curl
Ralf Wildenhues wrote: * Jason Curl wrote on Wed, Jun 20, 2007 at 11:55:54PM CEST: I've searched in vain on the Web how I might run configure to use Solaris' 'lint' program. It appears that their 'lint' is very much like a compiler where it produces objects that can be linked together to form

Re: beginner problem in Solaris

2007-07-19 Thread Jason Curl
Bob Friesenhahn wrote: On Mon, 16 Jul 2007, Joao Miguel Ferreira wrote: I can confirm that the problem should be in the false cru ... line because all the above stuff gets done. On Linux and on HP-UX I read the word ar instead of false on that line ?!? I should also add that the Solaris

Re: configure.ac:27: error: possibly undefined macro: AS_IF

2007-08-16 Thread Jason Curl
ying lcs wrote: Hi, I am running '.bootstrap' of VLC source under RHEL4. But I am getting the following error: I have 'automake 1.9.6' 'autoconf 2.61' 'aclocal 1.9.6' 'm4 1.4.8' in my system: I've got autoconf-2.61, libtool-1.5.24, automake-1.10 and it works for my on SuSE 10.0 Copying

Re: configure.ac:27: error: possibly undefined macro: AS_IF

2007-08-17 Thread Jason Curl
ying lcs wrote: On 8/16/07, Jason Curl [EMAIL PROTECTED] wrote: ying lcs wrote: Hi, I am running '.bootstrap' of VLC source under RHEL4. But I am getting the following error: I have 'automake 1.9.6' 'autoconf 2.61' 'aclocal 1.9.6' 'm4 1.4.8' in my system: I've got autoconf

Re: Multi options library

2007-09-02 Thread Jason Curl
Roman Rumisek wrote: Exists easy way to build multi option libraries (for example: with/without debug feature) into different library names (for example: liba_d.so and liba.so)? I can think of three things, the last one might be the most applicable. 1. I believe the libtool manual has some

Re: Implementing a segfault test

2007-09-23 Thread Jason Curl
Andrej Prsa wrote: Hi, my project uses a mixture of C and Fortran functions by translating Fortran to C with f2c, compiling the generated sources into a library, and linking the rest of the project to that library. For this scheme to work, the executable also needs to be linked with g2c *or*

Windows DLLs from Unix with minimum effort

2007-10-29 Thread Jason Curl
Hello, Normally I write software for Posix like operating systems, but to assist somebody I'm writing a Windows DLL that I'd like to later use the source for in my Posix application without having to maintain two code bases. I'm using ./configure CC=gcc -mno-cygwin LDFLAGS=-Wl,--kill-at

Re: Windows DLLs from Unix with minimum effort

2007-10-31 Thread Jason Curl
Brian Dessent wrote: Jason Curl wrote: ./configure CC=gcc -mno-cygwin LDFLAGS=-Wl,--kill-at --target=i586-pc-mingw32 --disable-static on Cygwin to generate the Windows DLL Target is not the right thing to use here. Target only has meaning in the context of building tools

Re: checking whether a list of commands exists (e.g. gawk mail rcp) all with one macro, how?

2007-11-08 Thread Jason Curl
linuxjetaime wrote: Hi all, first of all, i need to check if one command exists in the path, find its path (unless the user specified --with-xxx) so i write(in configure.in) for the command 'gawk' AC_ARG_WITH(gawk, [ --with-gawk=FULLPATH set full path to gawk (default

Check types of structures

2007-11-20 Thread Jason Curl
Hello, There are the autoconf macros AC_CHECK_TYPE, AC_CHECK_SIZEOF and AC_CHECK_MEMBER. I would like to check the size of a member inside a structure. Does this already exist in autoconf? On Interix, the type for struct timeval.tv_usec is long, while on Linux it is suseconds_t. I'd rather

Re: Check types of structures

2007-11-26 Thread Jason Curl
Jason Curl wrote: On Interix, the type for struct timeval.tv_usec is long, while on Linux it is suseconds_t. Well, I've finally come to a solution and written some macros to deal with this. It is a good start for people who want to do something equivalent, but it assumes * gettimeofday

Re: Portable method to change sysconfdir

2008-02-05 Thread Jason Curl
Stephen Torri wrote: I am looking for a portable method that will allow me to change the location of files installed into the sysconfir ($prefix/etc). Right now my Makefile.am contains: dist_sysconf_DATA = \ db_config.xml \ file_config.xml \ memory_config.xml I want to

Checking versions and defining macros

2008-03-04 Thread Jason Curl
Hello, To achieve my goals, I've borrowed some of the internals of the auto* tools (and libtool). I'd like to somehow check the version of the autotools during autoreconf time and include macros specific to a particular version. If I see a version that I haven't tested with, then I'd like to

Re: Checking versions and defining macros

2008-03-11 Thread Jason Curl
Ralf Wildenhues wrote: Hello Jason, let's please limit replies to the autoconf list, thanks. Sorry, I wanted to check for various solutions for all the packages, not just autoconf. * Jason Curl wrote on Wed, Mar 05, 2008 at 06:47:04AM CET: To achieve my goals, I've borrowed some

Re: Checking versions and defining macros

2008-03-13 Thread Jason Curl
Ralf Wildenhues Ralf.Wildenhues at gmx.de writes: Hello Jason, * Jason Curl wrote on Tue, Mar 11, 2008 at 10:13:24PM CET: If I have autoconf 2.59, I would like to use macro A. But if I have autoconf 2.61, then I'd like to use macro B instead. Ideally, they would be the same name

Installing Autoconf 2.63 on MinGW

2008-12-07 Thread Jason Curl
Hello, I've just downloaded mingw-1.0.11, installed m4-1.4.12 and ActivePerl 5.10.0. When I run configure it succeeds, but building autoconf fails complaining about needing GNU m4 1.4 or later. I've made links to perl, removed the old version of m4 so there's only one and there's no change.

Re: Infos for Unix/Windows portable library making?

2010-04-29 Thread Jason Curl
On 25/04/2010 12:39, Ralf Wildenhues wrote: * Kārlis Repsons wrote on Sun, Apr 25, 2010 at 12:07:44PM CEST: On Sunday 25 April 2010 08:22:12 Ralf Wildenhues wrote: You can use libtool for portable creation of shared libraries. http://www.gnu.org/software/libtool is the place to go

modification of CFLAGS

2010-05-20 Thread Jason Curl
Hello, I'd like to write a macro, called LX_DEBUG. This checks if the user gives --enable-debug and then depending on the compiler, modify CFLAGS. However, I see that the autoconf macros already modify CFLAGS. Is there a way that I can obtain what the user originally entered *within* my

Re: modification of CFLAGS

2010-05-20 Thread Jason Curl
Hello Ralf, On 20/05/2010 20:45, Ralf Wildenhues wrote: Hello Jason, * Jason Curl wrote on Thu, May 20, 2010 at 08:40:39PM CEST: However, I see that the autoconf macros already modify CFLAGS. Is there a way that I can obtain what the user originally entered *within* my macro after

AC_SUBST for variables with AS_SET_VAR

2010-08-19 Thread Jason Curl
Hello, I'm trying to write a macro that will iterate through a list of libraries looking for a function. If it is found, I wish to do a AC_SUBST on a variable dependent on the name of the library. e.g. LX_SEARCH_LIBS([nsl socket], [gethostbyname], []) The output would either: AC_SUBST(LIBNSL,

Re: AC_SUBST for variables with AS_SET_VAR

2010-08-21 Thread Jason Curl
Hi Jason, * Jason Curl wrote on Thu, Aug 19, 2010 at 09:50:18PM CEST: I'm trying to write a macro that will iterate through a list of libraries looking for a function. If it is found, I wish to do a AC_SUBST on a variable dependent on the name of the library. The missing bit

Failure in make dist

2013-04-27 Thread Jason Curl
Hello, I'm running autoconf-2.69 and automake-1.11.6 on Lubuntu12.10 and when I run distmake for my project, it aborts with the error: jcurl@lubuntu1210:~/winlib/build/Linux$ make dist if test -d winproglib-1.1.0.50.svn_20130427; then find winproglib-1.1.0.50.svn_20130427 -type d ! -perm

Re: [possibly OT] Updated giant inventory of headers available on various OSes

2013-05-02 Thread Jason Curl
On 02/05/2013 05:34, Zack Weinberg wrote: A while ago I posted a call for help (only to autoconf@) taking inventories of which C headers are provided by which OSes. It rapidly became clear that my methodology was far too crude, and I've spent much of the past six weeks coding up something much