autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues using autoconf or automake


From: Jim Galarowicz
Subject: Re: Issues using autoconf or automake
Date: Wed, 12 Mar 2014 13:13:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Hi Gavin, all,

When I apply these changes (adding -I m4 to ACLOCAL_AMFLAGS in Makefile.am and -I libltdl/m4 to the aclocal call in bootstrap), I don't get the "Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL" (and others) any more.

But now, when I do the "make clean" after the bootstrap and configure, it reconfigures again, in stead of giving the errors:

(end of 1st configure):
config.status: executing depfiles commands
config.status: executing libtool commands

(first command after the configure):
address@hidden OpenSpeedShop]$ make clean
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I libltdl/m4 -I m4
 cd . && automake-1.13 --foreign
CDPATH="${ZSH_VERSION+.}:" && cd . && autoconf
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/opt/osscbtf_v2.1u3 --libdir=/opt/osscbtf_v2.1u3/lib64 --with-included-ltdl --with-instrumentor=cbtf --with-tls=implicit --with-libelf= --with-libdwarf=/opt/krellroot_v2.1u3 --with-binutils=/usr --with-libunwind=/opt/krellroot_v2.1u3 --with-papi=/opt/krellroot_v2.1u3 --with-sqlite= --with-qtlib=/usr/lib64/qt-3.3 --with-dyninst=/opt/krellroot_v2.1u3 --with-dyninst-version=8.2 --with-lampi= --with-openmpi=/opt/openmpi-1.6.5 .....................


If I start with a clean repository, then it doesn't reconfigure on the first bootstrap, configure, make clean. But if I bootstrap, configure, and then do a make clean, then it does the same recheck again:

address@hidden OpenSpeedShop]$ make clean
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I libltdl/m4 -I m4
 cd . && automake-1.13 --foreign
CDPATH="${ZSH_VERSION+.}:" && cd . && autoconf
/bin/sh ./config.status --recheck

That won't work well when the tarball is moved to another platform with other tools because I tried loading the old tool set in after the first bootstrap and configure. The "make clean" errors off saying there is a mis-match in automake versions.

Anyway, I thought I would report these findings to the list.

Thanks for everyone's help!
I will post on the automake or libtool list for more help with this.

Jim G

-------------- Changes that got rid of the "does not appear in AM_CONDITIONAL" messages. ------------

Index: Makefile.am
===================================================================
RCS file: /cvsroot/openss/OpenSpeedShop/Makefile.am,v
retrieving revision 1.92
diff -u -r1.92 Makefile.am
--- Makefile.am    12 Nov 2013 17:03:03 -0000    1.92
+++ Makefile.am    12 Mar 2014 20:57:57 -0000
@@ -16,7 +16,7 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 # Place, Suite 330, Boston, MA  02111-1307  USA
 
################################################################################
-ACLOCAL_AMFLAGS = -I libltdl/m4
+ACLOCAL_AMFLAGS = -I libltdl/m4 -I m4

 BASE_SUBDIRS =

Index: bootstrap
===================================================================
RCS file: /cvsroot/openss/OpenSpeedShop/bootstrap,v
retrieving revision 1.28
diff -u -r1.28 bootstrap
--- bootstrap    20 May 2012 21:46:57 -0000    1.28
+++ bootstrap    12 Mar 2014 20:57:57 -0000
@@ -19,11 +19,11 @@
 
################################################################################

 echo "running bootstrap on top level source directory"
-aclocal --force -I m4
+#aclocal --force -I m4
+aclocal --force -I libltdl/m4 -I m4
 libtoolize --force --ltdl --copy
 autoheader -f
 automake --foreign --add-missing --copy
 autoconf
 echo "finished - running bootstrap on all directories"

On 03/11/2014 03:30 PM, Gavin Smith wrote:
On Tue, Mar 11, 2014 at 9:43 PM, Jim Galarowicz <address@hidden> wrote:
The ] and ) at 456 are the terminators for the AC_DEFUN declaration.  That
(big bold characters) is where they go to when I do the % key when on the
two characters at 456.

AC_DEFUN([AX_QTLIB], [
dnl if QTDIR is not default to /usr

And I see that AX_QTLIB is called from configure.ac. I still wonder if
putting it inside a AC_DEFUN is what is causing the problem, although
it seems like a reasonable thing to do.

Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL
Can you post the Makefile.am? I tried looking at it at
http://openss.cvs.sourceforge.net/viewvc/openss/OpenSpeedShop/openss/
but am getting an error message.

You could try "autoconf --trace AM_CONDITIONAL" to see if it is seeing
the AM_CONDITIONAL macro.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]