Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-01-13 Thread David Bruce
Hi Rhys, > I ran into this myself in the past few days.  Add the offending files > to DISTCLEANFILES within your toplevel Makefile.am and your distclean > target will work again. > > For example, in a package called ESIO within configure.ac I call >    AX_PREFIX_CONFIG_H([esio/esio-config.h]) > an

Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-01-13 Thread Eric Blake
On 01/13/2011 08:16 AM, David Bruce wrote: > Hi Rhys, > >> I ran into this myself in the past few days. Add the offending files >> to DISTCLEANFILES within your toplevel Makefile.am and your distclean >> target will work again. > But if I try simply "DISTCLEANFILES = _configs.sed > t4k_common-co

Macro for compile, run, and return output

2011-01-13 Thread Lyle Brooks
I am relatively new to the use of autoconf. I have been attempting to copy and modify a macro for a new library. I was looking at ax_lib_oracle_oci.m4 and ax_lib_xerces.m4 as the basis for a start. What I'd like to do is obtain the library version info for this new shared library. The above ma

Enforcing cross-compilation

2011-01-13 Thread David Nečas
Hello, is it possible to enforce cross-compilation by some configure arugments or env vars? I cross-compile for win32 using the mingw32 cross-compiler toolchain but I *can* run the created excutables as I have wine installed. So configure concludes I am not cross-compiling and this leads to var

Re: Enforcing cross-compilation

2011-01-13 Thread Eric Blake
On 01/13/2011 08:44 AM, David Nečas wrote: > > Hello, > > is it possible to enforce cross-compilation by some configure arugments > or env vars? Yes: call configure with explicit --build and --host arguments that differ. > > I cross-compile for win32 using the mingw32 cross-compiler toolchain

Re: [autoconf] Enforcing cross-compilation

2011-01-13 Thread suzuki toshiya
In your case that the prefix of compilers are clearly different, something like ./configure --host=i586-mingw32msvc --build=i386-pc-linux-gnu may configure recognize that now it is working for cross compiling. Please try. Regards, mpsuzuki David Nečas wrote: Hello, is it possible to enforce

Re: Enforcing cross-compilation

2011-01-13 Thread Nick Bowler
On 2011-01-13 16:44 +0100, David Nečas wrote: > I cross-compile for win32 using the mingw32 cross-compiler toolchain but > I *can* run the created excutables as I have wine installed. So > configure concludes I am not cross-compiling and this leads to various > problems later. >From the autoconf

Re: Enforcing cross-compilation

2011-01-13 Thread Robert Woodworth
I have a configure.ac with the following just after AC_INIT It works well. host=mips-elf host_alias=mips-elf ac_tool_prefix=mips-elf- cross_compiling=yes This works fine, and when the AC_PROG_CC executes it looks exclusively for 'mips-elf-gcc' and fails if not found. It also sets 'CC=mips-

Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-01-13 Thread Ralf Wildenhues
* David Bruce wrote on Thu, Jan 13, 2011 at 04:16:34PM CET: > >   DISTCLEANFILES = _configs.sed esio/esio-config.h > > Thanks - I had come up with another workaround, which was to manually > add the offending files to be removed in distclean-hdr: > > # If using AX_PREFIX_CONFIG_H, distclean leave

Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-01-13 Thread David Bruce
Hi, > If you need a Makefile.am snippet that does what you want but doesn't > override part of automake's output (yeah, it's not great style to have > an internal helper rule named so non-internally), then please use > > distclean-local: distclean-ax-prefix-config-h > distclean-ax-prefix-config-h:

Re: Macro for compile, run, and return output

2011-01-13 Thread Ralf Wildenhues
Hello Lyle, * Lyle Brooks wrote on Thu, Jan 13, 2011 at 05:51:27PM CET: > I have been attempting to copy and modify a macro for a > new library. I was looking at ax_lib_oracle_oci.m4 and > ax_lib_xerces.m4 as the basis for a start. > > What I'd like to do is obtain the library version info for