AM_CONDITIONAL

2005-08-14 Thread Russell Shaw
Hi, In configure.in, i have: AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) and it gets turned into: if test x$enable_gtk_doc = xyes; then ENABLE_GTK_DOC_TRUE= ENABLE_GTK_DOC_FALSE='#' else ENABLE_GTK_DOC_TRUE='#' ENABLE_GTK_DOC_FALSE= fi Isn't this backward? When

Re: How to remove -O2 on Makefile generated by autoconf/make

2005-11-29 Thread Russell Shaw
Feng QIN wrote: Hello all, When I use autoconf/automake tools to generate makefile for my package, the CXXFLAGS is always added -O2 by tools, while I don't want to use for debuging. Is it possible to remove it from options of configure command or some other ways better than removing it manually

Re: debug builds with NO optimizations

2006-02-06 Thread Russell Shaw
John Calcote wrote: Generally, when I build with the DEBUG macro defined, it's because I want to step through a portion of my code with the debugger. However, I've noticed that using AC_PROG_CC sets CFLAGS to -g -O2 on GCC - and tries to use similar options on other compilers. I really like

Grouping header files during build

2006-02-24 Thread Russell Shaw
Hi, I have a build tree consisting of various programs and libraries, all in separate subdirectories. The programs are built using these libraries. Both programs and libraries get installed. When each library is built, i want to copy its header to a header-directory and its object to a

Re: nested packages

2006-04-11 Thread Russell Shaw
Bob Rossi wrote: Hi, I have 2 projects, CGDB and libgdbmi. CGDB depends on libgdbmi. I would like to make libgdbmi an autoconf package so that other people can benefit from it. Is there a nice way to have CGDB's package use libgdbmi's package as if it were all 1 package? I would like to avoid

Re: String functions with end pointers?

2006-04-25 Thread Russell Shaw
Paul D. Smith wrote: %% Russell Shaw [EMAIL PROTECTED] writes: rs man stpcpy ??? char *stpcpy(char *dest, const char *src); DESCRIPTION The stpcpy() function copies the string pointed to by src (including the terminating `\0' character) to the array pointed to by dest

Re: Autoconf manual's coverage of signed integer overflow portability

2007-01-02 Thread Russell Shaw
Richard Kenner wrote: A few comments: Many portable C programs assume that signed integer overflow wraps around reliably using two's complement arithmetic. I'd replace portable C programs with widely-used C programs. The normal use of portable means that it conforms to the standard.

Re: How to specify /var/lib in autoconf?

2009-04-22 Thread Russell Shaw
David Bruce wrote: Hi, I'm about to start modifying my program (Tux Typing) so as to allow creation of custom word lists. The gist is that I need to have modifiable files that are visible to all users. I have been told by knowledgable people that the appropriate location for these files would

What to run when config changed

2003-07-24 Thread Russell Shaw
Hi, I've just got autoconf 2.57 and automake 1.7 to compile a gtk 2.2.2 program. When i change configure.ac or Makefile.am, are you supposed to run autoreconf, or just run the appropriate autoheader/aclocal/autoconf/automake separately?

gthread linking

2003-08-26 Thread Russell Shaw
Hi, In configure.am, i have: AM_PATH_GTK_2_0(2.0.0,,,gthread) AM_PATH_GLIB_2_0(2.0.0,,,gthread) but i still get linker errors: gcc -g -O2 -o iongen main.o gui.o eventfifo.o event.o xmalloc.o -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm

Re: Help - I'm going mad!!! /bin/bash: --gnu: command not found

2003-09-08 Thread Russell Shaw
Dr. David Kirkby wrote: Can anyone throw any light on the situation below? I'm just about fed up trying all manner of things to build a configure.ac that generates no error messages from autoreconf, configure or make. 'autoreconf' runs without any errors and generates a configure script. The

Gtk

2004-03-11 Thread Russell Shaw
Hi, Which configure.ac macro should i use for a gtk2 app? AM_PATH_GTK_2_0() PKG_CHECK_MODULES() AC_PATH_LIB() Is there redundancy here, or does one macro supercede the others? Why aren't the first two macros in the archive?: http://www.gnu.org/software/ac-archive/htmldoc/index.html

Re: /usr/local [was: CPPFLAGS prob]

2004-06-14 Thread Russell Shaw
Hal Snyder wrote: Ralf Corsepius [EMAIL PROTECTED] writes: BTW: Having to pass /usr/local almost always indicates a massively mis-configured toolchain or configure script. Sorry if this is an F.A.Q. I see various ways of doing it but wonder, what is best practice? What are the recommended automake

Re: /usr/local [was: CPPFLAGS prob]

2004-06-14 Thread Russell Shaw
Dan Kegel wrote: Russell Shaw wrote: Hal Snyder wrote: Ralf Corsepius [EMAIL PROTECTED] writes: BTW: Having to pass /usr/local almost always indicates a massively mis-configured toolchain or configure script. Sorry if this is an F.A.Q. I see various ways of doing it but wonder, what is best

AC_ARG_WITH

2004-10-21 Thread Russell Shaw
Hi, I'm learning autoconf packaging. At the configure step, i want to specify: ./configure --with-default-size=5 and have appear in config.h: #define DEFAULT_SZ 5 In configure.ac, i have: AC_ARG_WITH( [border_size], AC_HELP_STRING([--with-default-border-size], [Set

Re: AC_ARG_WITH

2004-10-21 Thread Russell Shaw
Stepan Kasal wrote: Hello, On Thu, Oct 21, 2004 at 04:53:06PM +1000, Russell Shaw wrote: AC_DEFINE(DEFAULT_SZ,$default_size) you already have the short hint. Thus you should do: AC_ARG_WITH(border-size, [AS_HELP_STRING(--with-border-size=n, [Set default border size to `n

Re: AC_ARG_WITH

2004-10-22 Thread Russell Shaw
Stepan Kasal wrote: Hello, On Fri, Oct 22, 2004 at 04:20:18AM +1000, Russell Shaw wrote: /configure --with-default-size=5.8 I still think --enable-default-size=5.8 is best suited for your needs. But it's only cosmetic change. Maybe a new macro should be made for setting numerical defaults

Last configure args

2004-12-31 Thread Russell Shaw
Hi, If i've run ./configure CFLAGS=., then is there a way to find what CFLAGS were set to afterwards? I want to find what flags i used last time i configured a program a few weeks ago. ___ Autoconf mailing list Autoconf@gnu.org

Re: Last configure args

2004-12-31 Thread Russell Shaw
Russell Shaw wrote: Hi, If i've run ./configure CFLAGS=., then is there a way to find what CFLAGS were set to afterwards? I want to find what flags i used last time i configured a program a few weeks ago. oops never mind, i just looked in the generated Makefile

AC_CACHE

2005-02-07 Thread Russell Shaw
Hi, I'm updating a very old configure.in to a new configure.ac. I don't get what this does: # Check for the tigetstr/tigetnum functions. AC_MSG_CHECKING([for tigetstr/tigetstr]) AC_CACHE_VAL([gotch_cv_have_curses_tigetstr], [dnl

Re: AC_CACHE

2005-02-07 Thread Russell Shaw
Russell Shaw wrote: Hi, I'm updating a very old configure.in to a new configure.ac. I don't get what this does: Don't worry, figured it out;) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: multiple modules: HAVE_CONFIG_H

2005-02-15 Thread Russell Shaw
Carl Nicol wrote: I'm building a project with multiple modules and using AC_CONFIG_HEADERS. It seems to automatically define -DHAVE_CONFIG_H. Is there any way to have it define some other variable to base the inclusions upon? I have three different modules/libraries that I am building separately

Re: pkg-config wisdom

2009-10-24 Thread Russell Shaw
Alfred M. Szmidt wrote: pkg-config tries to solve an important problem, but it does so in the wrong way. pkg-config checks for an exact library name, PKG_CHECK_MODULES does not check for a library name at all, but for the name of the .pc file. This gives the administrator

Re: pkg-config wisdom

2009-10-25 Thread Russell Shaw
William Pursell wrote: Alfred M. Szmidt wrote: pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of libraries. It checks for the existence of a .pc file and

autoscan

2010-03-20 Thread Russell Shaw
Hi, I ran autoscan and it gives: configure.ac: warning: missing AC_PROG_RANLIB wanted by: ltmain.sh:1601 So i added AC_PROG_RANLIB and ran autoreconf and now it says: autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4

Re: Autotools book published

2010-07-26 Thread Russell Shaw
John Calcote wrote: Hi all. Just a quick note to let you all know that my Autotools book has been published (finally!) by No Starch Press: http://nostarch.com/autotools.htm I apologize in advance for the apparent self-promoting tone of this message but I know there are folks out there

AC_CACHE_CHECK

2010-09-04 Thread Russell Shaw
Hi, When should AC_CACHE_CHECK be used? Whenever the user uninstalls something, wouldn't the cache become invalid? ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: AC_CACHE_CHECK

2010-09-05 Thread Russell Shaw
Thomas Dickey wrote: On Sun, 5 Sep 2010, Russell Shaw wrote: Hi, When should AC_CACHE_CHECK be used? Whenever the user uninstalls something, wouldn't the cache become invalid? ...only if the user happened to uninstall something during the configure process. After that, AC_CACHE_CHECK

Bison

2011-01-11 Thread Russell Shaw
Hi, On debian, there is /usr/bin/bison, and /usr/bin/bison.yacc just does: exec '/usr/bin/bison' -y $@ How can i get autoconf to use bison? The problem with yacc is that you can't rename the output files and always get: y.tab.h y.tab.c Is there a way i can get yacc to give better output

Re: Bison

2011-01-11 Thread Russell Shaw
On 12/01/11 06:24, John Calcote wrote: On 01/11/2011 04:31 AM, Russell Shaw wrote: Hi, On debian, there is /usr/bin/bison, and /usr/bin/bison.yacc just does: exec '/usr/bin/bison' -y $@ How can i get autoconf to use bison? The problem with yacc is that you can't rename the output files

Re: configure -C by default?

2011-02-07 Thread Russell Shaw
On 07/02/11 23:45, Brian Gough wrote: At Sun, 6 Feb 2011 23:11:43 +0100, Ralf Wildenhues wrote: Back then, the consensus was to not make it the default because that was deemed too dangerous for users. Various reports are cited, and also the problem is mentioned that such kinds of failures tend

Re: Ggradebook; request for assistance

2017-02-11 Thread Russell Shaw
On 12/02/17 01:28, Norbert de Jonge wrote: Hi, The following is my reply to someone who recently sent me an e-mail with a modified Ggradebook 0.92 that includes autoconf/automake. First of all, I sincerely appreciate you looking into it. What you've created is not quite what I'm looking for.

m4_divert_text

2016-09-14 Thread Russell Shaw
Hi, In binutils/configure.ac there is: m4_divert_text([PARSE_ARGS], [case $srcdir in *" "*) m4_pushdef([AS_MESSAGE_LOG_FD], [])dnl AC_MSG_ERROR([path to source, $srcdir, contains spaces]) m4_popdef([AS_MESSAGE_LOG_FD])dnl ;; esac ac_subdirs_all=`cd $srcdir && echo */configure | sed

Re: Autoconf and a bare-metal host with no C library

2016-10-13 Thread Russell Shaw
On 13/10/16 13:11, Luca Saiu wrote: ... > So, what I'm asking you is: does a clean solution exist, or compiling > without a runtime library is just not supported by the Autotools? It > sounds weird to say that for configuring you need a cross-compiler with > support for a runtime that will

Re: How to change the shebang in 'configure' to require Bash

2018-03-20 Thread Russell Shaw
On 20/03/18 21:07, R. Diez wrote: ... Requiring a POSIX shell in the next version is an improvement, but POSIX is too limiting to really help. It is 2018. No wonder so many people want to ditch Autoconf! Autoconf is hard to learn because becoming properly familiar with shell programming

Re: How to change the shebang in 'configure' to require Bash

2018-03-20 Thread Russell Shaw
On 20/03/18 22:53, Russell Shaw wrote: On 20/03/18 21:07, R. Diez wrote: ... Requiring a POSIX shell in the next version is an improvement, but POSIX is too limiting to really help. It is 2018. No wonder so many people want to ditch Autoconf! Autoconf is hard to learn because becoming

Re: determine base type of a typedef

2020-10-23 Thread Russell Shaw
On 23/10/20 6:06 pm, Russell Shaw wrote: On 23/10/20 5:54 pm, Anatoli wrote: Russell, Thanks for your suggestion. The problem is, as I mentioned in the initial post, on amd64 sizeof(time_t) is always 8 bytes, as well as long and long long, so sizeof(time_t) == sizeof(long int) == sizeof(long

Re: determine base type of a typedef

2020-10-23 Thread Russell Shaw
On 23/10/20 5:54 pm, Anatoli wrote: Russell, Thanks for your suggestion. The problem is, as I mentioned in the initial post, on amd64 sizeof(time_t) is always 8 bytes, as well as long and long long, so sizeof(time_t) == sizeof(long int) == sizeof(long long int). I've actually tried the

Re: determine base type of a typedef

2020-10-23 Thread Russell Shaw
On 23/10/20 6:06 pm, Russell Shaw wrote: On 23/10/20 5:54 pm, Anatoli wrote: Russell, Thanks for your suggestion. The problem is, as I mentioned in the initial post, on amd64 sizeof(time_t) is always 8 bytes, as well as long and long long, so sizeof(time_t) == sizeof(long int) == sizeof(long

Re: determine base type of a typedef

2020-10-22 Thread Russell Shaw
On 23/10/20 9:23 am, Anatoli wrote: Hi All, Is there a way to determine with autoconf what's the base type of a typedef? I'm trying to accomplish the following: There are standard types time_t, off_t, size_t and similar that are defined differently on different platforms/OS. For example,