make dependencies not working for me...

2005-01-27 Thread Ed Hartnett
nerate dependencies you must specify either -M or -MM Where do I specify -M or -MM? Any advice would be appreciated. Thanks! -- Ed Hartnett -- [EMAIL PROTECTED]

Re: make dependencies not working for me...

2005-01-30 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, Ralf, > > * Ralf Corsepius wrote on Fri, Jan 28, 2005 at 07:39:48AM CET: > > On Thu, 2005-01-27 at 09:42 -0700, Ed Hartnett wrote: > > > Howdy all! > > > > > > I'm a developer working on n

is there a better way to solve this problem: building a library with code from another directory?

2005-03-13 Thread Ed Hartnett
automatic dependency tracking. Is there a good solution to this problem? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

is there a way to ensure that at least a certain automake version is used?

2005-05-29 Thread Ed Hartnett
than autoconf 2.59 is used. Is there a similar macro for automake? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

using same automake conditional twice doesn't work?

2005-06-07 Thread Ed Hartnett
n TEST_F77, automake does things in the correct order. Any comments or observations would be helpful. Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

how to run a test file with command line options...

2005-06-16 Thread Ed Hartnett
command line options. check_PROGRAMS = tst_parallel TESTS = run_par_test.sh Where run_par_test.sh is: MP_TASKS_PER_NODE=4 MP_PROCS=4 poe ./tst_parallel This works, but is there a way to do this in the Makefile.am, and not use a shell script? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: how to run a test file with command line options...

2005-06-17 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, > > * Ed Hartnett wrote on Thu, Jun 16, 2005 at 10:09:05PM CEST: >> >> If I have some tests, and want to run them with command line options, >> how do I do it? > > You are using the Automake builtin s

question about directory names in makeinfo --html invocation...

2005-06-21 Thread Ed Hartnett
\ fi It seems that makeinfo is creating the output in the netcdf directory, but automake has inserted some commands into the makefile to copy that to netcdf.html. Why? Can I stop it? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

broken make distclean...

2005-06-26 Thread Ed Hartnett
directory Makefile:375: .deps/var.Plo: No such file or directory make[1]: *** No rule to make target `.deps/var.Plo'. Stop. make[1]: Leaving directory `/home/ed/netcdf-3/libsrc' make: *** [ distclean-recursive] Error 1 I've got no clue what's going on here. Anyone seen this before?

Re: broken make distclean...

2005-06-27 Thread Ed Hartnett
ckage is at fault > here, though. > > Regards, > Ralf > > Thanks Ralf, I fixed this by turning netcdf-2 into a convenience library. I'll have another alpha release soon. The challenge was to have the netcdf-2 code build using either netcdf-3 or netcdf-4 as a base, and have that be decided at configure time. Using a convenience library made it work great. Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

question about test dependencies on libraries in makefile.am

2005-07-08 Thread Ed Hartnett
, and I am wondering if there is any easy way to specify that they *all* depend on tests.h, instead of listing it for each. Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: question about test dependencies on libraries in makefile.am

2005-07-10 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > * Ralf Wildenhues wrote on Fri, Jul 08, 2005 at 08:15:08PM CEST: >> * Ed Hartnett wrote on Fri, Jul 08, 2005 at 07:28:38PM CEST: > > >> > I have a slew of test programs, and my Makefile.am contains something >

making tests dependent on the library that they test...

2005-07-21 Thread Ed Hartnett
s.h5 tst_h_wrt_cmp.h5 \ tst_h_vl.h5 tst_h_opaques.h5 tst_h_strings.h5 tst_h_converts.h5 \ tst_h_dimscales.h5 tst_h_dimscales2.h5 tst_lists.nc tst_dims.nc \ tst_files.nc tst_vars.nc tst_unlim_vars. nc tst_atts.nc \ tst_converts.nc tst_grps.nc tst_compounds.nc ts

automake configure script hangs on OSF1...

2005-10-06 Thread Ed Hartnett
king for perl... /usr/bin/perl checking for tex... no checking whether autoconf is installed... yes checking whether autoconf works... And there it sits, until I kill it. Any thoughts? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: automake configure script hangs on OSF1...

2005-10-07 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, > > * Ed Hartnett wrote on Fri, Oct 07, 2005 at 12:57:26AM CEST: >> >> I am trying to install automake and an OSF1 system. I just installed >> autoconf, but the automake configure hangs looking for it... >

strange warnings from aclocal...

2005-10-24 Thread Ed Hartnett
TH_AO bash-3.00$ aclocal --version aclocal (GNU automake) 1.9.5 bash-3.00$ autoconf --version autoconf (GNU Autoconf) 2.59 bash-3.00$ m4 --version GNU M4 1.4.3 -- Ed Hartnett -- [EMAIL PROTECTED]

any way to set an automake variable in a top-level automake file, and have it apply to subdirs?

2005-11-04 Thread Ed Hartnett
Howdy all! Is there any way to set an automake variable in the top-level automake file? (That is, the file which contains SUBDIRS = ...) I find myself setting AM_CFLAGS=-g in many subdirectories. Also I am setting AM_LDFLAGS everywhere to point to a library directory that the user can specify at

Re: any way to set an automake variable in a top-level automake file, and have it apply to subdirs?

2005-11-04 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, > > * Ed Hartnett wrote on Fri, Nov 04, 2005 at 02:57:44PM CET: >> >> Is there any way to set an automake variable in the top-level automake >> file? (That is, the file which contains SUBDIRS = ...) >> &

AM_FCFLAGS not working as I expect...

2005-11-04 Thread Ed Hartnett
;, `RFLAGS', and `YFLAGS'." What am I missing? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: strange warnings from aclocal...

2005-11-05 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, > > * Ed Hartnett wrote on Mon, Oct 24, 2005 at 04:34:27PM CEST: >> >> I am getting warnings from aclocal about a bunch of macros being >> underquoted. But these are not my macros! They seem to be part of >

make distcheck creates directory that I don't have write permissions for - is this expected?

2005-11-05 Thread Ed Hartnett
pected behavior from make dist? Is this what the user see when he unpacks my package - a bunch of read-only files? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: make distcheck creates directory that I don't have write permissions for - is this expected?

2005-11-05 Thread Ed Hartnett
fo files and around the web. There must be a better way to run this cmp test without a whole extra shell script! Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: strange warnings from aclocal...

2005-11-05 Thread Ed Hartnett
ep through my many configuration and test files, trying to get everything to be more well-behaved, in the hopes that this might clear up some of the problems I'm having on other platforms... Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED]

environment for tests (was: Re: make distcheck creates directory that I don't have write permissions for - is this expected?)

2005-11-06 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, > > * Ed Hartnett wrote on Sat, Nov 05, 2005 at 07:52:01PM CET: >> >> My current problem is that I have some reference netCDF files, which >> ship with the distribution. I also have a test program, which produ

Re: AM_FCFLAGS not working as I expect...

2005-11-07 Thread Ed Hartnett
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hi Ed, > > * Ed Hartnett wrote on Sat, Nov 05, 2005 at 02:18:40AM CET: >> >> What am I missing here? I define the following in my Makefile.am: >> >> # Point the fortran compiler to current directory. >>

Re: AM_FCFLAGS not working as I expect...

2005-11-08 Thread Ed Hartnett
-o $@ $(AM_FCFLAGS) $(FCFLAGS_f90) `$(CYGPATH_W) '$<'` .f90.lo: $(LTFCCOMPILE) -c -o $@ $(FCFLAGS_f90) $< as you suggested. Unfortunately, that didn't seem to help libtools tag problem. Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED]

make dvi expected during make distcheck?

2005-11-08 Thread Ed Hartnett
bsrc make[2]: Entering directory `/shecky/netcdf-3/netcdf-4.0-alpha10/_build/libsrc' make[2]: Nothing to be done for `dvi'. ... Is there a way to turn this off? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

no TEXI2DVIFLAGS?

2005-11-08 Thread Ed Hartnett
texi2dvi? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: AM_FCFLAGS not working as I expect...

2005-11-08 Thread Ed Hartnett
hat I would say about netCDF-4.0 beta!! Actually I can't release until HDF5 (another data package) comes out with its next version, sometime next year. How long until libtool 2.0 comes out in beta? Thanks for the help, you've given me a lot to try! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

setting compiler flags (was: Re: any way to set an automake variable in a top-level automake file, and have it apply to subdirs?)

2005-11-16 Thread Ed Hartnett
the help. You are assisting in the study of the global climate, which is certainly one of our greatest computational challenges! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

way to specify dependencies for lots of code files easily?

2005-12-06 Thread Ed Hartnett
erent if I used the SOURCES primary? Like this: tst_h_files_SOURCES tst_h_files.c ../nc_test.h tst_h_atts_SOURCES tst_h_atts.c ../nc_test.h etc. Any suggestions would be welcome! Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: way to specify dependencies for lots of code files easily?

2005-12-06 Thread Ed Hartnett
Bruce Korb <[EMAIL PROTECTED]> writes: > Ed Hartnett wrote: >> Howdy all! >> I am using automake to build my library, and I have a slew of test >> programs: >> # These programs are all built for make check in this directory. >> check_PROGRAMS = tst_h

what happens to EXTRA_DIST during distcheck?

2005-12-12 Thread Ed Hartnett
? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

what's a good way to check a file size (as part of a "make check") from automake?

2005-12-26 Thread Ed Hartnett
ls -l $file' with sed to parse the output for the file size? If so, do we have to check for the existence of ls and sed during the configure? Or is going to be found everywhere? Or is there some more clever way to check the size of a file? Any comments would be appreciated. Thanks!

Re: what's a good way to check a file size (as part of a "make check") from automake?

2005-12-26 Thread Ed Hartnett
Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: >>>> "EH" == Ed Hartnett <[EMAIL PROTECTED]> writes: > > EH> Should we just use 'ls -l $file' with sed to parse the output for the > EH> file size? > > Depending on how portable yo

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

2006-01-07 Thread Ed Hartnett
wand, and make AC_PROG_FC do everything, 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]

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]

question about how the html version of a texinfo file is named...

2006-05-15 Thread Ed Hartnett
t; Since all these manuals contain cross-references, I need the links to work so I can post the entire set of manuals on the web site. It seems like the best thing would be if there was a way to turn off this directory renaming. Is that possible? If not, how have other users of texinfo docs managed this? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

question about how the html version of a texinfo file is named...

2006-05-16 Thread Ed Hartnett
t "netcdf.html." Since all these manuals contain cross-references, I need the links to work so I can post the entire set of manuals on the web site. It seems like the best thing would be if there was a way to turn off this directory renaming. Is that possible? If not, how have other users of texinfo docs managed this? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

running tests with automake on windows with mingw...

2006-07-26 Thread Ed Hartnett
rom the command line, all works as expected: $ libsrc/t_nc dimrename: IXX nc_close ret = 0 reopen id = 3 for filename test.nc NC done GATTR VAR VATTR VATTR VATTR ... So how do I get automake to use the shell script, and not the .exe, when it builds the Makefile that runs the tests? Thanks! Ed -

Re: running tests with automake on windows with mingw...

2006-07-26 Thread Ed Hartnett
lly: http://sources.redhat.com/automake/automake.html#EXEEXT However it looks like this should not happen on mingw builds, because apparently some tool is constructing the shell script wrappers which make the EXEEXT unneeded. Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: running tests with automake on windows with mingw...

2006-07-26 Thread Ed Hartnett
Bob Friesenhahn <[EMAIL PROTECTED]> writes: > On Wed, 26 Jul 2006, Ed Hartnett wrote: >> >> I have no check target per se, just the automake primary. I have: >> >> # Test the netCDF-3 library. >> check_PROGRAMS = t_nc >> TESTS = ${chec

need to install (but not build or distribute) something to the bin directory...

2006-08-02 Thread Ed Hartnett
there is a file I would like installed, but not specially built nor included in the distribution? I'm sure there is something very easy I am missing here... Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

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.g

how to install man pages to directory man3f?

2006-08-11 Thread Ed Hartnett
, man3f, and man3f90. But according to automake the only valid extensions are 1 through 9, l, and n. Is there a way to get automake to create man3f0, and install my F90 API man page there? Any help appreciated. Thanks, Ed -- Ed Hartnett -- [EMAIL PROTECTED]

trying to install docs that are distributed with my package...

2006-08-28 Thread Ed Hartnett
e distribution, it rebuilds them all. I don't want it to rebuild the files, just to install the ones I've already shipped. Any thoughts on this? Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: trying to install docs that are distributed with my package...

2006-08-29 Thread Ed Hartnett
) Solution is to put > netcdf.dvi in EXTRA_DIST as well. Yep, you sure hit it that time! Works like a charm now! Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: trying to install docs that are distributed with my package...

2006-08-29 Thread Ed Hartnett
Stepan Kasal <[EMAIL PROTECTED]> writes: > Hello, > > On Mon, Aug 28, 2006 at 06:04:13PM -0700, Tyler MacDonald wrote: >> Ed Hartnett <[EMAIL PROTECTED]> wrote: >> It sounds like the best plan would be to add a flag to "configure" >> that in

how to turn off shared library notice in output of make install?

2006-09-27 Thread Ed Hartnett
t will confuse many users... Thanks, and thanks for the fine freeware too! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Re: how to turn off shared library notice in output of make install?

2006-09-27 Thread Ed Hartnett
hecky/n3_new/install/lib64 > | > | Modules have been installed in: > |/shecky/n3_new/install/lib/foopkg/ > [...] > > I don't see a trivial way to do this in Automake/Libtool yet, but I > suppose it could be solved at the same time as the inter-makefile > library-installation-order issue is solved. Well, no need to get too fancy. Ed -- Ed Hartnett -- [EMAIL PROTECTED]

any way to set AM_CPPFLAGS for all subdirs at one time?

2006-11-24 Thread Ed Hartnett
subdirs? Or must this be done in each directory's Makefile.am? Is there some more automakeish way to handle this situation? Thanks and Happy Thanksgiving to all U.S.A. readers! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

building texi files with make check under AIX - how to stop it!!

2007-01-04 Thread Ed Hartnett
The next thing I am going to try is to put the texi documentation into it's own directory, and see if I can cause the top level makefile to just skip that directory. But this will be dorky, because I still have to install built docs... Any thoughts appreciated... Ed -- Ed Hartnett -- [EMAIL PROTECTED]

problem with a test that is expected to fail, on cygwin only...

2007-01-15 Thread Ed Hartnett
] = make[2]: *** [check-TESTS] Error 1 The make version on cygwin is: sh-3.1$ make --version GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. Which seems reasonably recent. What's up with this? Is this kind of thing only handled by newer makes? Thanks! Ed -- Ed Har

Re: problem with a test that is expected to fail, on cygwin only...

2007-01-16 Thread Ed Hartnett
Brian Dessent <[EMAIL PROTECTED]> writes: > Ed Hartnett wrote: > >> TESTFILES = nctst tst_failure >> [...] >> TESTS = $(TESTFILES) run_nc_tests.sh >> XFAIL_TESTS = tst_failure >> [...] >> XFAIL: tst_failure >> [...] >> FAIL: tst_failure

problem on mingw builds when upgrading to 1.10

2007-02-27 Thread Ed Hartnett
xe [EMAIL PROTECTED] ~/ming/tmp6/mindll-1.0 $ echo $? 127 Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

Getting ARFLAGS to work...

2008-05-13 Thread Ed Hartnett
RFLAGS = -X64 cru But anyway, it's not working. Anyone who can suggest what I am doing wrong here would be very helpful... Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED]

bug in automake? Getting ARFLAGS to work...

2008-05-21 Thread Ed Hartnett
BST(ARFLAGS, ["$ARFLAGS"]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT() Makefile.am: AM_ARFLAGS = $(ARFLAGS) lib_LTLIBRARIES = libsmall.la libsmall_la_SOURCES = small.c small.c: int fun() { return 42; } -- Ed Hartnett -- [EMAIL PROTECTED]

how to link other libraries to *my* library...

2009-11-13 Thread Ed Hartnett
libnetcdf_la_LIBADD += -lmfhdf -ldf -ljpeg endif # USE_HDF4 if USE_SZIP libnetcdf_la_LIBADD += -lsz endif # USE_SZIP LDADD += -lhdf5_hl -lhdf5 -lz if USE_PNETCDF LDADD += -lpnetcdf libnetcdf_la_LIBADD += -lpnetcdf endif Is there a better way to do this? Thanks, Ed -- Ed Hartnett -- e...@unidata.ucar.edu

Re: how to link other libraries to *my* library...

2009-11-13 Thread Ed Hartnett
Ralf Wildenhues writes: > Hi Ed, > > * Ed Hartnett wrote on Fri, Nov 13, 2009 at 05:14:24PM CET: >> The netCDF C library uses other libraries, for example the hdf5, >> hdf5_hl, and zlib libraries. I was building the library without >> explicitly linking to these oth

make -j not working in my documentation directory - but why?

2009-11-27 Thread Ed Hartnett
rror 1 make[1]: *** Waiting for unfinished jobs /usr/bin/texi2dvi: pdfetex exited with bad status, quitting. make[1]: *** [netcdf.pdf] Error 1 /usr/bin/texi2dvi: line 733: cd: /machine/netcdf/n4_new6/man4/netcdf.t2d/dvi/bak: No such file or directory make[1]: *** [netcdf.dvi] Error 1 Any suggestions would be appreciated! Thanks, Ed -- Ed Hartnett -- e...@unidata.ucar.edu

question about having documentation output NOT be cleaned...

2010-04-02 Thread Ed Hartnett
netcdf.3 . cp $(top_srcdir)/fortran/netcdf_f77.3 . cp $(top_srcdir)/f90/netcdf_f90.3 . tar cf netcdf_man.tar netcdf.3 netcdf_f77.3 netcdf_f90.3 ncdump.1 ncgen.1 ncgen3.1 gzip -f netcdf_man.tar zip netcdf_man netcdf.3 netcdf_f77.3 netcdf_f90.3 ncdump.1 ncgen.1 ncgen3.1 tar cf netcdf_docs.tar $(html_dirs) *.pdf *.txt *.html *.tar.gz *.zip gzip -f netcdf_docs.tar -- Ed Hartnett -- e...@unidata.ucar.edu