[Dune] trouble with autoconf

Alexander Schlaich schlaich at icp.uni-stuttgart.de
Thu Oct 25 10:36:30 CEST 2012


Dear Dune,

I have some trouble with the autotools. I already checked the web, but
the solutions commonly discussed didn't work for me. Maybe some of you
already run into the same trouble?
The pkg-config seems to work for me as only during autogen of pdelab I
obtain

node342:dune-2.2_svn> dune-common/bin/dunecontrol --opts=config.opts
--only=dune-pdelab autogen
--- going to build dune-pdelab  ---
--- calling autogen for dune-pdelab ---
Found am
directory /plx/userexternal/aschlaic/software/src/dune-2.2_svn/dune-common/am
--> dunedoxynize...
Generating doc/doxygen/Doxyfile.in from
    global style
    and dune-pdelab config
    ... done
--> libtoolize...
Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.
You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'.
--> writing dependencies.m4
    for dune-pdelab 1.0.1 dune-pdelab at dune-project.org
        requires  dune-common >= 2.2  dune-geometry >= 2.2  dune-grid >=
2.2  dune-localfunctions >= 2.2  dune-istl >= 2.2
--> aclocal...
--> linking dune-common/am...
--> autoheader...
--> automake...
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
dune/pdelab/benchmark/Makefile.am: installing `./depcomp'
am/documentation:12: doc-local was already defined in condition DUNEWEB,
which is included in condition TRUE ...
Makefile.am:29:   `am/global-rules' included from here
am/global-rules:19:   `am/documentation' included from here
am/top-rules:30: ... `doc-local' previously defined here
Makefile.am:28:   `am/top-rules' included from here
am/documentation:18: doc-clean was already defined in condition DUNEWEB,
which is included in condition TRUE ...
Makefile.am:29:   `am/global-rules' included from here
am/global-rules:19:   `am/documentation' included from here
am/top-rules:31: ... `doc-clean' previously defined here
Makefile.am:28:   `am/top-rules' included from here
am/top-rules:22: user target `distclean-libtool' defined here...
Makefile.am:28:   `am/top-rules' included from here
/usr/share/automake-1.9/am/libtool.am: ... overrides Automake target
`distclean-libtool' defined here
--> autoconf...
configure.ac:23: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use
m4_pattern_allow.
      See the Autoconf documentation.
configure:42340: error: possibly undefined macro: AS_CASE
configure:42342: error: possibly undefined macro: AC_CACHE_CHECK
configure:42358: error: possibly undefined macro: AC_MSG_RESULT
configure:42372: error: possibly undefined macro: AC_DEFINE
--- Failed to build dune-pdelab ---
Terminating dunecontrol due to previous errors!

whereas

node342:dune-2.2_svn> cd dune-pdelab/
node342:dune-2.2_svn> autoconf

works, but during configure I then obtain
(...)
checking whether clock_gettime()'s definition is available... yes
./configure: line 42340: syntax error near unexpected token
`"$dune_cv_defs_posix_clock",'
./configure: line 42340: `  AS_CASE("$dune_cv_defs_posix_clock",'
--- Failed to build dune-pdelab ---
Terminating dunecontrol due to previous errors!

I'm using dune-2.2 and pdelab-1.0.
Versions: 	autoconf 	2.59
		pkg-config 	0.21
		dune-common 	Rev:6815
		dune-geometry	Rev:113
		dune-grid 	Rev:8398
		dune-istl	Rev:1639
		dune-localfunctions 	Rev:1075
		dune-pdelab	Rev:2231


I also tried a never version of autoconf (2.65), but the error message
was the same. I'd be very grateful if you can provide me a hint as I
need the software urgently installed.

Thank you very much for any help!

Alex

PS: I also found that pdelab-howto didn't compile on my machine due to
bechnmarkhelper.hh not being installed. A patch for this is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: install_benchmarkhelper.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20121025/1a724251/attachment.bin>


More information about the Dune mailing list