inadvisable to have configure script send me an email when user runs it?

2010-10-18 Thread Ed Hartnett
surprised that there is no existing AC_PROG_MAIL macro. I thought I would add a --disable-unidata-email parameter to disable the email attempt. (Which I would use myself with nightly testing.) Is there some good reason not to do this? But I have never seen it done... Thanks! Ed -- Ed

Re: question about using AC_SEARCH_LIBS with fortran...

2009-12-02 Thread Ed Hartnett
to tell AC_SEARCH_LIBS to add another directory to search for the library? Thanks! Ed -- Ed Hartnett -- e...@unidata.ucar.edu ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

question about using AC_SEARCH_LIBS with fortran...

2009-12-01 Thread Ed Hartnett
| end In fact, the smallest test program I can get gfortran to compile is: program main use netcdf res = nf90_open('lll', 0, ncid) end program main Does anyone use the AC_SEARCH_LIBS macro with fortran? Thanks! Ed -- Ed Hartnett -- e...@unidata.ucar.edu

question about how to continue a line of text in AC_MSG_ERROR macro call...

2009-04-21 Thread Ed Hartnett
this, but what is it? Thanks! Ed -- Ed Hartnett -- e...@unidata.ucar.edu ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: #define warnings when using various autotools projects

2008-05-13 Thread Ed Hartnett
. There is a need for a preferred method for doing this and documenting how you do it. Cheers - Bruce I use sed at configure time to muck with my package's main .h file. (But I don't install a config.h. That sounds a little scary.) Ed -- Ed Hartnett -- [EMAIL PROTECTED

Re: multiple inclusion guard for config.h

2007-01-20 Thread Ed Hartnett
suggestions how? I've seen people write scripts to modify/rename config.h but that seems overkill in this case. Thanks much. -DB How about something like: #ifndef MY_CONFIG_INCLUDED #include ../my/config.h #define MY_CONFIG_INCLUDED #endif -- Ed Hartnett -- [EMAIL PROTECTED

Re: Using --enable-debug and defining a macro from it...?

2007-01-17 Thread Ed Hartnett
.) To get the answer in config.h, use AC_DEFINE to define something. Good luck! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: proposal - command-line option checking

2006-12-14 Thread Ed Hartnett
, and as this is something I'm about to try myself, I might have a different viewpoint in six months... Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

note of thanks to Ralf in the netCDF RELEASE notes...

2006-12-14 Thread Ed Hartnett
Wildenhues for the patches, and all the autotools help in general!) Thanks Ralf! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: config.guess comments from our sysadmins

2006-08-09 Thread Ed Hartnett
Ralf Wildenhues [EMAIL PROTECTED] writes: * Ed Hartnett wrote on Wed, Aug 09, 2006 at 07:22:40PM CEST: Ralf Wildenhues [EMAIL PROTECTED] writes: * John Wohlbier wrote on Tue, Jul 25, 2006 at 04:12:57PM CEST: http://cvs.savannah.gnu.org/viewcvs/~checkout~/config/config/config.guess http

Re: CC=cc ./configure or ./configure CC=cc

2006-08-08 Thread Ed Hartnett
of shared libraries, they must run make clean first too, right?) Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: can autoconf determine if a preprocessor macro is defined or not?

2006-07-31 Thread Ed Hartnett
Keith MARSHALL [EMAIL PROTECTED] writes: Ed Hartnett wrote, quoting me: However, IMO that's a lazy hack -- it suggests that you aren't really thinking about *why* you specified those attributes in the first place, and what the implications are, when you port your code to a different OS

Re: why does autoconf check for all these extra compilers?

2006-07-28 Thread Ed Hartnett
should not be cross-compiling anyway, I should just be building under mingw. Which I now do. Thanks for all the help!! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

can autoconf determine if a preprocessor macro is defined or not?

2006-07-27 Thread Ed Hartnett
#endif #ifndef S_IWOTH #define S_IWOTH 002 #endif Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: can autoconf determine if a preprocessor macro is defined or not?

2006-07-27 Thread Ed Hartnett
lines of code in my C files. Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

why does autoconf check for all these extra compilers?

2006-07-20 Thread Ed Hartnett
compiler... yes What is with all the i686-pc-mingw32- stuff? Any help appreciated. Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: nonstandard library directories

2006-07-13 Thread Ed Hartnett
understand why doing this on the configure command line is better than setting environment variables. And what about the case where you set the value before ./configure? CPPFLAGS=-Dsomething ./configure Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED

Re: conditionally using libtool

2006-05-01 Thread Ed Hartnett
two different build methods for a minor gain in build speed in one of them. Buy a faster workstation instead, it's a lot cheaper than extra configuration maintenance. Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-08 Thread Ed Hartnett
platforms he uses as development environment, but that's it: * Compilers might not support -q64. * -q64 might have different meanings for different compilers. * -q64 could have different meanings for different architectures. This will cause errors when building his package. Yep. Ed -- Ed

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-04 Thread Ed Hartnett
me and ask me how to set it, so this saves us all the trouble.) Good luck! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

how to something from the configure script into one of the test programs?

2006-04-04 Thread Ed Hartnett
. This works if I supply TEMP_LARGE on the command line with the make command, but it doesn't pick up the TEMP_LARGE defined during configure. So how do I take TEMP_LARGE and get it into one of my test programs? Any suggestions welcome. Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED

Re: autoconf: Does it meet these cross-platform goals?

2006-04-04 Thread Ed Hartnett
was a significant problem. Now I am much happier, my build system is far more robust, and adding a new system is no work or very little work. The autotools way is hard at first but scales very well. The hand-written makefile is even harder to write, and scales poorly. Ed -- Ed Hartnett -- [EMAIL PROTECTED

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-04 Thread Ed Hartnett
and the user emails me. Yes, in theory the user should read the documentation and pick the right parameters themselves. Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

question about handling dependent libraries...

2006-03-16 Thread Ed Hartnett
macro). However, how to handle cases where one of these is already installed on the end-user system? Anyone autotool-using library builder out there who has tried this? Any comments on this sort of problem, and solutions for it, would be very helpful. Thanks! Ed -- Ed Hartnett -- [EMAIL

telling the difference between g95 and f95...

2006-02-06 Thread Ed Hartnett
Howdy all! I have a configure script which needs to know whether it is dealing with the f95 distributed with gcc-4.x, or the g95, which is apparently an independent project, which handles slightly differently. In both cases ac_cv_fc_compiler_gnu is set to yes. At the moment I am distinguishing

using FC *and* F77, or FC *instead of* F77?

2006-01-07 Thread Ed Hartnett
, including telling me somehow whether it can handle F90 code. Is there a better way? Or is it required that I have AC_PROG_F77 and AC_PROG_FC? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org

Re: Autoconf and CVS

2005-12-26 Thread Ed Hartnett
.) I just use autoreconf -i, which seems to do everything needed without me having to remember which order to call various tools, or to maintain a bootstrap script... Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org

Re: Autoconf and CVS

2005-12-24 Thread Ed Hartnett
with some frequency, so many developers will have to keep up with autotools versions anyway. Since that's already the case for us, we are going to stop putting configure and Makefile(s) in the repository. Good luck! Ed -- Ed Hartnett -- [EMAIL PROTECTED

Re: Conditional compiling?

2005-12-21 Thread Ed Hartnett
makefiles and automakefiles, I am glad to leave makefiles behind forever. They are not that fun! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: question about whether to set CFLAGS in configure.ac

2005-12-01 Thread Ed Hartnett
it appear in the CFLAGS, FFLAGS and CPPFLAGS as -L and -I options. Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

question about whether to set CFLAGS in configure.ac

2005-11-29 Thread Ed Hartnett
that the user has specified. How do I get this to work without setting CFLAGS in configure? Thanks for any suggestions! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

FC and F77 at the same time?

2005-11-09 Thread Ed Hartnett
pgf90 epcf90 g77]) So here I call first AC_PROG_F77, then AC_PROG_FC. If I just call AC_PROG_FC, the later, when I call AC_PROG_LIBTOOL it will call AC_PROG_F77, ignoring the fact that FC is set to the fortran compiler. Is there a better way to handle this? Thanks! Ed -- Ed Hartnett

Re: Autoconf and optional arguments for the configure script

2005-06-25 Thread Ed Hartnett
], [AS_HELP_STRING([--disable-f77], [don't try to build Fortran 77 API])]) test x$enable_f77 = xno nc_build_f77=no test x$nc_null_fc = xyes nc_build_f77=no AC_MSG_RESULT([$nc_build_f77]) -- Ed Hartnett -- [EMAIL PROTECTED

warnings from AC_CHECK_HEADERS because header is present but cannot be compiled...

2005-06-04 Thread Ed Hartnett
sometimes accepted headers that clashed at compile-time. If you need to check whether a header is preprocessable, you can use `AC_PREPROC_IFELSE' (*note Running the Preprocessor::). Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf

is this a good way to use AC_CHECK_HEADERS

2005-06-03 Thread Ed Hartnett
to config\ ure.]) fi fi I have to append -I${with_hdf5}/include to the CPPFLAGS. Is this the usual way to do such a thing? Or is there a better way? THanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http

Re: is this a good way to use AC_CHECK_HEADERS

2005-06-03 Thread Ed Hartnett
Bob Friesenhahn [EMAIL PROTECTED] writes: On Fri, 3 Jun 2005, Ed Hartnett wrote: I have to append -I${with_hdf5}/include to the CPPFLAGS. Is this the usual way to do such a thing? Or is there a better way? Another way is to define a new variable HDF5INCLUDES and export for substitution

Re: --with-*-cflags?

2005-05-27 Thread Ed Hartnett
configure wants to set a flag, but the user wants to try a contradictory flag. So I allow a way to stop the configure from messing with the flags, so that the user can take complete control if need be. Ed -- Ed Hartnett -- [EMAIL PROTECTED

to conditionally test, or not to conditionally test?

2005-05-20 Thread Ed Hartnett
AM_CONDITIONAL(BUILD_CXX, [test x$nc_build_cxx = xyes]) -- Ed Hartnett -- [EMAIL PROTECTED] ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

where does autoconf look to find compilers? The path? The path plus something?

2004-09-07 Thread Ed Hartnett
Howdy all! We're using autoconf, which I love, to help install netcdf, a freeware scientific data library for Earth Science. Where does autoconf look for compilers? For example, I am on a mac, and autoconf finds a C++ compiler called CC, but it is not in my path. So how did autoconf find it?

Re: using getconf in autoconf macro to find 64 bit compile options?

2004-09-06 Thread Ed Hartnett
[EMAIL PROTECTED] (Bob Proulx) writes: Jeff Sheinberg wrote: Ed Hartnett writes: I wonder if there is any autoconf macro for running getconf to find the compile flags needed for 64-bit compilation on platforms that support it. For example, both the AIX and solaris platforms have