Discussion:
Issues using autoconf or automake
Jim Galarowicz
2014-03-11 04:07:20 UTC
Permalink
Hi all,

We've been struggling to figure out a problem that we are seeing when we
use the newer default auto tools suite.
I've been building an older set of tools to get around the issue that is
described below.

I'm hoping someone might be able to see something obvious and give us a
hint on how to fix the issue.

Using these tools, our build is successful.

aclocal (GNU automake) 1.11.1
automake (GNU automake) 1.11.1
autoconf (GNU Autoconf) 2.68
libtool (GNU libtool) 2.4.2
m4 (GNU M4) 1.4.13

Using these tools, we run into problems:

aclocal (GNU automake) 1.13.4
automake (GNU automake) 1.13.4
autoconf (GNU Autoconf) 2.69
libtool (GNU libtool) 2.4.2
m4 (GNU M4) 1.4.16


We are able to bootstrap and configure successfully (it appears):
$ ./bootstrap
running bootstrap on top level source directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `libltdl/config'.
libtoolize: copying file `libltdl/config/compile'
libtoolize: copying file `libltdl/config/config.guess'
libtoolize: copying file `libltdl/config/config.sub'
libtoolize: copying file `libltdl/config/depcomp'
libtoolize: copying file `libltdl/config/install-sh'
libtoolize: copying file `libltdl/config/missing'
libtoolize: copying file `libltdl/config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `libltdl/m4'.
libtoolize: copying file `libltdl/m4/argz.m4'
libtoolize: copying file `libltdl/m4/libtool.m4'
libtoolize: copying file `libltdl/m4/ltdl.m4'
libtoolize: copying file `libltdl/m4/ltoptions.m4'
libtoolize: copying file `libltdl/m4/ltsugar.m4'
libtoolize: copying file `libltdl/m4/ltversion.m4'
libtoolize: copying file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `libltdl'.
libtoolize: copying file `libltdl/COPYING.LIB'
libtoolize: copying file `libltdl/README'
libtoolize: copying file `libltdl/Makefile.am'
libtoolize: copying file `libltdl/configure.ac'
libtoolize: copying file `libltdl/aclocal.m4'
libtoolize: copying file `libltdl/Makefile.in'
libtoolize: copying file `libltdl/config-h.in'
libtoolize: copying file `libltdl/configure'
libtoolize: copying file `libltdl/argz_.h'
libtoolize: copying file `libltdl/argz.c'
libtoolize: copying file `libltdl/loaders/dld_link.c'
libtoolize: copying file `libltdl/loaders/dlopen.c'
libtoolize: copying file `libltdl/loaders/dyld.c'
libtoolize: copying file `libltdl/loaders/load_add_on.c'
libtoolize: copying file `libltdl/loaders/loadlibrary.c'
libtoolize: copying file `libltdl/loaders/shl_load.c'
libtoolize: copying file `libltdl/lt__dirent.c'
libtoolize: copying file `libltdl/lt__strl.c'
libtoolize: copying file `libltdl/libltdl/lt__alloc.h'
libtoolize: copying file `libltdl/libltdl/lt__dirent.h'
libtoolize: copying file `libltdl/libltdl/lt__glibc.h'
libtoolize: copying file `libltdl/libltdl/lt__private.h'
libtoolize: copying file `libltdl/libltdl/lt__strl.h'
libtoolize: copying file `libltdl/libltdl/lt_dlloader.h'
libtoolize: copying file `libltdl/libltdl/lt_error.h'
libtoolize: copying file `libltdl/libltdl/lt_system.h'
libtoolize: copying file `libltdl/libltdl/slist.h'
libtoolize: copying file `libltdl/loaders/preopen.c'
libtoolize: copying file `libltdl/lt__alloc.c'
libtoolize: copying file `libltdl/lt_dlloader.c'
libtoolize: copying file `libltdl/lt_error.c'
libtoolize: copying file `libltdl/ltdl.c'
libtoolize: copying file `libltdl/ltdl.h'
libtoolize: copying file `libltdl/slist.c'
finished - running bootstrap on all directories

Our bootstrap script:

aclocal --force -I m4
libtoolize --force --ltdl --copy
autoheader -f
automake --foreign --add-missing --copy
autoconf

But when we do a make clean or make of any sort, we see this:

make clean
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I libltdl/m4
cd . && automake-1.13 --foreign
Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL
libopenss-runtime/Makefile.am:31: error: HAVE_LIBMONITOR does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:72: error: HAVE_LIBMONITOR does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:80: error: HAVE_PAPI does not appear in
AM_CONDITIONAL
libopenss-runtime/Makefile.am:92: error: HAVE_BINUTILS does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:104: error: HAVE_LIBUNWIND does not appear
in AM_CONDITIONAL
....
....
....

We don't see these errors with the older set of tools.

I've seen from internet searches that this can be caused by using newer
versions with AM_INIT_AUTOMAKE that has arguments, but ours doesn't.
I think we are using the correct forms of the autoconf and automake
commands, but something must not be correct.

Here are the key non-comment portions of our configure.ac file: (I
attached the entire configure.ac file)

20
21 AC_INIT([OpenSpeedShop],[2.1_u2])
22 AC_COPYRIGHT([[Copyright (c) 2006-2014 Krell Institute. All
Rights Reserved.]])
23 AC_CONFIG_MACRO_DIR([m4])
24 AC_CONFIG_AUX_DIR([libltdl/config])
25 AM_INIT_AUTOMAKE
26

57 AC_USE_SYSTEM_EXTENSIONS
58 AC_PROG_CC
59 AC_PROG_CXX
60 AC_PROG_FC
61 AC_PROG_F77
62
63 AC_SUBST([build])
64 AC_SUBST([build_cpu])
65 AC_SUBST([build_os])
66 AC_SUBST([host])
67 AC_SUBST([host_cpu])
68 AC_SUBST([host_os])
69 AC_SUBST([is_cross_compile])
70 AC_SUBST([prefix])
71
72 AC_CANONICAL_BUILD
73 AC_CANONICAL_HOST
74
75 AC_DISABLE_STATIC
76
77 # Name the subdirectory that contains libltdl sources
78 LT_CONFIG_LTDL_DIR([libltdl])
79
80 AC_CONFIG_MACRO_DIR([libltdl/m4])
81
82 # Configure libtool with dlopen support if possible
83 LT_INIT([dlopen])
84
85 # Enable building of the installable libltdl library
86 LTDL_INIT([installable])
87
88 LT_INIT
89
90 AC_PATH_PROG([DOXYGEN], doxygen)
91 AC_PROG_INSTALL
92 AC_PROG_LEX
93 AC_PATH_PROG([RPCGEN], rpcgen)
94 AC_PROG_YACC
95 # Is ln available
96 AC_PROG_LN_S
97

Thank you for your time in looking at this.
I can send additional information.

Jim G.
Patrick Welche
2014-03-11 08:19:13 UTC
Permalink
On Mon, Mar 10, 2014 at 09:07:20PM -0700, Jim Galarowicz wrote:
...
Post by Jim Galarowicz
cd . && automake-1.13 --foreign
Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL
In

http://openss.cvs.sourceforge.net/viewvc/openss/OpenSpeedShop/m4/ax_qt3.m4?revision=1.2&view=markup

I see

if test $found_all_qt -eq 0; then
...
AM_CONDITIONAL(HAVE_QTLIB, false)
fi

if test $found_all_qt -eq 1; then
AM_CONDITIONAL(HAVE_QTLIB, true)
...
fi

This should read

if test $found_all_qt -eq 0; then
...
fi

if test $found_all_qt -eq 1; then
...
fi
AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])

I suspect that the other cases are similar...

Cheers,

Patrick
Jim Galarowicz
2014-03-11 14:56:20 UTC
Permalink
Hi Patrick, all,

Thanks for the quick response! It is much appreciated.
I tried the suggestion, but it didn't seem to fix the issue. Here are
the outputs.

...
...
450 AC_SUBST(QTLIB_LIBS)
451 if test $found_all_qt -eq 1; then
452 #AM_CONDITIONAL(HAVE_QTLIB, true)
453 AC_DEFINE(HAVE_QTLIB, 1, [Define to 1 if you have Qt
library 3.3 >])
454 fi
455
456 #AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
457 if test $found_all_qt -eq 0; then
458 AM_CONDITIONAL(HAVE_QTLIB, false)
459 elif test $found_all_qt -eq 1; then
460 AM_CONDITIONAL(HAVE_QTLIB, true)
461 fi
462
463 ])

I changed the m4/qt3.m4 file to the above. First trying line 456 as you
suggested and then the 457-461 conditional, but both still give the
"Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL"
error message.

1149 ./bootstrap
1150 ./configure --prefix=/opt/osscbtf_v2.1u2
--libdir=/opt/osscbtf_v2.1u2/lib64 --with-included-ltdl
--with-instrumentor=cbtf --with-tls=implicit
--with-libdwarf=/opt/krellroot_v2.1u2 --with-binutils=/usr
--with-libunwind=/opt/krellroot_v2.1u2 --with-papi=/opt/krellroot_v2.1u2
--with-qtlib=/usr/lib64/qt-3.3 --with-dyninst=/opt/krellroot_v2.1u2
--with-dyninst-version=8.1.2 --with-openmpi=/opt/openmpi-1.6.5
--with-otf=/opt/krellroot_v2.1u2 --with-vt=/opt/krellroot_v2.1u2
--with-libmonitor=/opt/krellroot_v2.1u2
--with-mrnet=/opt/krellroot_v2.1u2 --with-mrnet-version=4.0.0
--with-libxerces-c-prefix=/opt/krellroot_v2.1u2 --with-python=/usr
--with-symtabapi=/opt/krellroot_v2.1u2 --with-symtabapi-version=8.1.2
--enable-resolve-symbols=symtabapi --with-cbtf=/opt/cbtf_only_v1.1u2
--with-cbtf-xml=/opt/cbtf_only_v1.1u2
--with-cbtf-mrnet=/opt/cbtf_only_v1.1u2
--with-cbtf-messages=/opt/cbtf_only_v1.1u2
--with-cbtf-services=/opt/cbtf_only_v1.1u2
--with-boost=/opt/krellroot_v2.1u2
--with-boost-libdir=/opt/krellroot_v2.1u2/lib

end of configure output:

config.status: executing depfiles commands
config.status: executing libtool commands

I then tried a make:

[***@jeghost OpenSpeedShop]$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I libltdl/m4
cd . && automake-1.13 --foreign
Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL
libopenss-runtime/Makefile.am:31: error: HAVE_LIBMONITOR does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:72: error: HAVE_LIBMONITOR does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:80: error: HAVE_PAPI does not appear in
AM_CONDITIONAL
libopenss-runtime/Makefile.am:92: error: HAVE_BINUTILS does not appear
in AM_CONDITIONAL


I'm including a section of m4/ax_libmonitor.m4 where HAVE_LIBMONITOR
code looks like this:

52 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
53 #include <monitor.h>
54 ]], [[
55 monitor_init_library();
56 ]])], [ AC_MSG_RESULT(yes)
57
58 AM_CONDITIONAL(HAVE_LIBMONITOR, true)
59 AC_DEFINE(HAVE_LIBMONITOR, 1, [Define to 1 if you
have libmonitor.])
60
61 ], [ AC_MSG_RESULT(no)
62
63 AM_CONDITIONAL(HAVE_LIBMONITOR, false)
64 LIBMONITOR_CPPFLAGS=""
65 LIBMONITOR_LDFLAGS=""
66 LIBMONITOR_LIBS=""
67 LIBMONITOR_DIR=""
68
69 ]
70 )

Does that follow the needed conventions?
Any other thoughts or ideas?

Thanks,
Jim G
Post by Patrick Welche
...
Post by Jim Galarowicz
cd . && automake-1.13 --foreign
Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL
In
http://openss.cvs.sourceforge.net/viewvc/openss/OpenSpeedShop/m4/ax_qt3.m4?revision=1.2&view=markup
I see
if test $found_all_qt -eq 0; then
...
AM_CONDITIONAL(HAVE_QTLIB, false)
fi
if test $found_all_qt -eq 1; then
AM_CONDITIONAL(HAVE_QTLIB, true)
...
fi
This should read
if test $found_all_qt -eq 0; then
...
fi
if test $found_all_qt -eq 1; then
...
fi
AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
I suspect that the other cases are similar...
Cheers,
Patrick
Eric Blake
2014-03-11 15:08:39 UTC
Permalink
Post by Jim Galarowicz
I'm including a section of m4/ax_libmonitor.m4 where HAVE_LIBMONITOR
52 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
53 #include <monitor.h>
54 ]], [[
55 monitor_init_library();
56 ]])], [ AC_MSG_RESULT(yes)
57
58 AM_CONDITIONAL(HAVE_LIBMONITOR, true)
Wrong place.
Post by Jim Galarowicz
59 AC_DEFINE(HAVE_LIBMONITOR, 1, [Define to 1 if you
have libmonitor.])
60
61 ], [ AC_MSG_RESULT(no)
62
63 AM_CONDITIONAL(HAVE_LIBMONITOR, false)
Also wrong.
Post by Jim Galarowicz
64 LIBMONITOR_CPPFLAGS=""
65 LIBMONITOR_LDFLAGS=""
66 LIBMONITOR_LIBS=""
67 LIBMONITOR_DIR=""
68
69 ]
70 )
AM_CONDITIONAL is designed to be called at the top level, outside of
AC_LINK_IFELSE. Try:


AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <monitor.h>
]], [[
monitor_init_library();
]])], [ AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_LIBMONITOR, 1, [Define to 1 if you have
libmonitor.])
], [ AC_MSG_RESULT(no)
LIBMONITOR_CPPFLAGS=""
LIBMONITOR_LDFLAGS=""
LIBMONITOR_LIBS=""
LIBMONITOR_DIR=""
]
)
AM_CONDITIONAL([HAVE_LIBMONITOR], [test "$HAVE_LIBMONITOR" = 1"])
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Jim Galarowicz
2014-03-11 17:00:26 UTC
Permalink
Hi Eric, Patrick, all,

I made those changes also. Here is what I have in the two m4 files now
(for that area).

m4/ax_qt3.m4:

450 if test $found_all_qt -eq 1; then
451 AC_DEFINE(HAVE_QTLIB, 1, [Define to 1 if you have Qt
library 3.3 >])
452 fi
453
454 AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
455
456 ])

m4/ax_libmonitor.m4:

52 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
53 #include <monitor.h>
54 ]], [[
55 monitor_init_library();
56 ]])], [ AC_MSG_RESULT(yes)
57
58 AC_DEFINE(HAVE_LIBMONITOR, 1, [Define to 1 if you
have libmonitor.])
59
60 ], [ AC_MSG_RESULT(no)
61
62 LIBMONITOR_CPPFLAGS=""
63 LIBMONITOR_LDFLAGS=""
64 LIBMONITOR_LIBS=""
65 LIBMONITOR_DIR=""
66
67 ]
68 )
69 AM_CONDITIONAL([HAVE_LIBMONITOR], [test
"$HAVE_LIBMONITOR" = 1])
70


Same results:

config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[***@jeghost OpenSpeedShop]$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I libltdl/m4
cd . && automake-1.13 --foreign
Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL
libopenss-runtime/Makefile.am:31: error: HAVE_LIBMONITOR does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:72: error: HAVE_LIBMONITOR does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:80: error: HAVE_PAPI does not appear in
AM_CONDITIONAL
libopenss-runtime/Makefile.am:92: error: HAVE_BINUTILS does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:104: error: HAVE_LIBUNWIND does not appear
in AM_CONDITIONAL
libopenss-runtime/Makefile.am:128: error: HAVE_LIBMONITOR does not
appear in AM_CONDITIONAL
l...


I removed the autom4te.cache directory before the bootstrap and then
grepped for HAVE_QTLIB after the bootstrap in that directory.
Does this help to see anything wrong? It appears to be showing that it
was not defined, even with the new syntax: AM_CONDITIONAL([HAVE_QTLIB],
[test $found_all_qt -eq 1])
greps for HAVE_LIBMONITOR shows similar output.

[***@jeghost autom4te.cache]$ grep HAVE_QTLIB *
output.0:HAVE_QTLIB_FALSE
output.0:HAVE_QTLIB_TRUE
output.0:$as_echo "@%:@define HAVE_QTLIB 1" >>confdefs.h
output.0: HAVE_QTLIB_TRUE=
output.0: HAVE_QTLIB_FALSE='#'
output.0: HAVE_QTLIB_TRUE='#'
output.0: HAVE_QTLIB_FALSE=
output.0:if test -z "${HAVE_QTLIB_TRUE}" && test -z
"${HAVE_QTLIB_FALSE}"; then
output.0: as_fn_error $? "conditional \"HAVE_QTLIB\" was never defined.
output.1:HAVE_QTLIB_FALSE
output.1:HAVE_QTLIB_TRUE
output.1:$as_echo "@%:@define HAVE_QTLIB 1" >>confdefs.h
output.1: HAVE_QTLIB_TRUE=
output.1: HAVE_QTLIB_FALSE='#'
output.1: HAVE_QTLIB_TRUE='#'
output.1: HAVE_QTLIB_FALSE=
output.1:if test -z "${HAVE_QTLIB_TRUE}" && test -z
"${HAVE_QTLIB_FALSE}"; then
output.1: as_fn_error $? "conditional \"HAVE_QTLIB\" was never defined.
output.2:HAVE_QTLIB_FALSE
output.2:HAVE_QTLIB_TRUE
output.2:$as_echo "@%:@define HAVE_QTLIB 1" >>confdefs.h
output.2: HAVE_QTLIB_TRUE=
output.2: HAVE_QTLIB_FALSE='#'
output.2: HAVE_QTLIB_TRUE='#'
output.2: HAVE_QTLIB_FALSE=
output.2:if test -z "${HAVE_QTLIB_TRUE}" && test -z
"${HAVE_QTLIB_FALSE}"; then
output.2: as_fn_error $? "conditional \"HAVE_QTLIB\" was never defined.
traces.0: AC_DEFINE(HAVE_QTLIB, 1, [Define to 1 if you have Qt
library 3.3 >])
traces.0: AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
traces.0:m4trace:configure.ac:574: -1- m4_pattern_allow([^HAVE_QTLIB$])
traces.0:m4trace:configure.ac:574: -1- AM_CONDITIONAL([HAVE_QTLIB],
[test $found_all_qt -eq 1])
traces.0:m4trace:configure.ac:574: -1- m4_pattern_allow([^HAVE_QTLIB_TRUE$])
traces.0:m4trace:configure.ac:574: -1-
m4_pattern_allow([^HAVE_QTLIB_FALSE$])
traces.0:m4trace:configure.ac:574: -1- _AM_SUBST_NOTMAKE([HAVE_QTLIB_TRUE])
traces.0:m4trace:configure.ac:574: -1- _AM_SUBST_NOTMAKE([HAVE_QTLIB_FALSE])
traces.1: AC_DEFINE(HAVE_QTLIB, 1, [Define to 1 if you have Qt
library 3.3 >])
traces.1: AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
traces.1:m4trace:configure.ac:574: -1- m4_pattern_allow([^HAVE_QTLIB$])
traces.1:m4trace:configure.ac:574: -1- AM_CONDITIONAL([HAVE_QTLIB],
[test $found_all_qt -eq 1])
traces.1:m4trace:configure.ac:574: -1- m4_pattern_allow([^HAVE_QTLIB_TRUE$])
traces.1:m4trace:configure.ac:574: -1-
m4_pattern_allow([^HAVE_QTLIB_FALSE$])
traces.1:m4trace:configure.ac:574: -1- _AM_SUBST_NOTMAKE([HAVE_QTLIB_TRUE])
traces.1:m4trace:configure.ac:574: -1- _AM_SUBST_NOTMAKE([HAVE_QTLIB_FALSE])
traces.2:m4trace:configure.ac:574: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QTLIB])
traces.2:m4trace:configure.ac:574: -1- m4_pattern_allow([^HAVE_QTLIB$])
traces.2:m4trace:configure.ac:574: -1- AH_OUTPUT([HAVE_QTLIB], [/*
Define to 1 if you have Qt library 3.3 > */
traces.2:@%:@undef HAVE_QTLIB])
traces.2:m4trace:configure.ac:574: -1- AM_CONDITIONAL([HAVE_QTLIB],
[test $found_all_qt -eq 1])
traces.2:m4trace:configure.ac:574: -1- AC_SUBST([HAVE_QTLIB_TRUE])
traces.2:m4trace:configure.ac:574: -1- AC_SUBST_TRACE([HAVE_QTLIB_TRUE])
traces.2:m4trace:configure.ac:574: -1- m4_pattern_allow([^HAVE_QTLIB_TRUE$])
traces.2:m4trace:configure.ac:574: -1- AC_SUBST([HAVE_QTLIB_FALSE])
traces.2:m4trace:configure.ac:574: -1- AC_SUBST_TRACE([HAVE_QTLIB_FALSE])
traces.2:m4trace:configure.ac:574: -1-
m4_pattern_allow([^HAVE_QTLIB_FALSE$])
traces.2:m4trace:configure.ac:574: -1- _AM_SUBST_NOTMAKE([HAVE_QTLIB_TRUE])
traces.2:m4trace:configure.ac:574: -1- _AM_SUBST_NOTMAKE([HAVE_QTLIB_FALSE])
[***@jeghost autom4te.cache]$ cd ..

Thanks for any additional advice.

Jim G
Post by Eric Blake
Post by Jim Galarowicz
I'm including a section of m4/ax_libmonitor.m4 where HAVE_LIBMONITOR
52 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
53 #include <monitor.h>
54 ]], [[
55 monitor_init_library();
56 ]])], [ AC_MSG_RESULT(yes)
57
58 AM_CONDITIONAL(HAVE_LIBMONITOR, true)
Wrong place.
Post by Jim Galarowicz
59 AC_DEFINE(HAVE_LIBMONITOR, 1, [Define to 1 if you
have libmonitor.])
60
61 ], [ AC_MSG_RESULT(no)
62
63 AM_CONDITIONAL(HAVE_LIBMONITOR, false)
Also wrong.
Post by Jim Galarowicz
64 LIBMONITOR_CPPFLAGS=""
65 LIBMONITOR_LDFLAGS=""
66 LIBMONITOR_LIBS=""
67 LIBMONITOR_DIR=""
68
69 ]
70 )
AM_CONDITIONAL is designed to be called at the top level, outside of
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <monitor.h>
]], [[
monitor_init_library();
]])], [ AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_LIBMONITOR, 1, [Define to 1 if you have
libmonitor.])
], [ AC_MSG_RESULT(no)
LIBMONITOR_CPPFLAGS=""
LIBMONITOR_LDFLAGS=""
LIBMONITOR_LIBS=""
LIBMONITOR_DIR=""
]
)
AM_CONDITIONAL([HAVE_LIBMONITOR], [test "$HAVE_LIBMONITOR" = 1"])
Gavin Smith
2014-03-11 21:33:33 UTC
Permalink
Post by Jim Galarowicz
Hi Eric, Patrick, all,
I made those changes also. Here is what I have in the two m4 files now (for
that area).
450 if test $found_all_qt -eq 1; then
451 AC_DEFINE(HAVE_QTLIB, 1, [Define to 1 if you have Qt library
3.3 >])
452 fi
453
454 AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
455
456 ])
AM_CONDITIONAL is still appearing within an argument of another macro
(terminated at line 456). Are you sure this is right?
Jim Galarowicz
2014-03-11 21:43:06 UTC
Permalink
Post by Gavin Smith
Post by Jim Galarowicz
Hi Eric, Patrick, all,
I made those changes also. Here is what I have in the two m4 files now (for
that area).
450 if test $found_all_qt -eq 1; then
451 AC_DEFINE(HAVE_QTLIB, 1, [Define to 1 if you have Qt library
3.3 >])
452 fi
453
454 AM_CONDITIONAL([HAVE_QTLIB], [test $found_all_qt -eq 1])
455
456 ])
AM_CONDITIONAL is still appearing within an argument of another macro
(terminated at line 456). Are you sure this is right?
Hi Gavin,

Thanks for looking at this!

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

I've attached the two m4 files that I changed per the suggestions that
people have given me so far.

Thanks,
Jim G
Gavin Smith
2014-03-11 22:30:43 UTC
Permalink
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.
Jim Galarowicz
2014-03-11 22:53:48 UTC
Permalink
Hi Gavin,

I attached the main level Makefile.am file.
I will try:

autoconf --trace AM_CONDITIONAL

and post the results.

Thanks again!
Jim G
Post by Gavin Smith
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.
Jim Galarowicz
2014-03-12 14:34:29 UTC
Permalink
Hi Gavin, all,

I ran the

autoconf --trace AM_CONDITIONAL command in the bootstrap instead of just autoconf and here are the results.


configure.ac:567:AM_CONDITIONAL:HAVE_LIBMONITOR:test "$HAVE_LIBMONITOR" = 1
configure.ac:572:AM_CONDITIONAL:HAVE_PAPI:test "$HAVE_PAPI" = 1
configure.ac:574:AM_CONDITIONAL:HAVE_QTLIB:test $found_all_qt -eq 1

Looks like autoconf is seeing the modified conditionals.


[***@jeghost OpenSpeedShop]$ ./bootstrap
running bootstrap on top level source directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `libltdl/config'.
libtoolize: copying file `libltdl/config/compile'
libtoolize: copying file `libltdl/config/config.guess'
libtoolize: copying file `libltdl/config/config.sub'
libtoolize: copying file `libltdl/config/depcomp'
libtoolize: copying file `libltdl/config/install-sh'
libtoolize: copying file `libltdl/config/missing'
libtoolize: copying file `libltdl/config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `libltdl/m4'.
libtoolize: copying file `libltdl/m4/argz.m4'
libtoolize: copying file `libltdl/m4/libtool.m4'
libtoolize: copying file `libltdl/m4/ltdl.m4'
libtoolize: copying file `libltdl/m4/ltoptions.m4'
libtoolize: copying file `libltdl/m4/ltsugar.m4'
libtoolize: copying file `libltdl/m4/ltversion.m4'
libtoolize: copying file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `libltdl'.
libtoolize: copying file `libltdl/COPYING.LIB'
libtoolize: copying file `libltdl/README'
libtoolize: copying file `libltdl/Makefile.am'
libtoolize: copying file `libltdl/configure.ac'
libtoolize: copying file `libltdl/aclocal.m4'
libtoolize: copying file `libltdl/Makefile.in'
libtoolize: copying file `libltdl/config-h.in'
libtoolize: copying file `libltdl/configure'
libtoolize: copying file `libltdl/argz_.h'
libtoolize: copying file `libltdl/argz.c'
libtoolize: copying file `libltdl/loaders/dld_link.c'
libtoolize: copying file `libltdl/loaders/dlopen.c'
libtoolize: copying file `libltdl/loaders/dyld.c'
libtoolize: copying file `libltdl/loaders/load_add_on.c'
libtoolize: copying file `libltdl/loaders/loadlibrary.c'
libtoolize: copying file `libltdl/loaders/shl_load.c'
libtoolize: copying file `libltdl/lt__dirent.c'
libtoolize: copying file `libltdl/lt__strl.c'
libtoolize: copying file `libltdl/libltdl/lt__alloc.h'
libtoolize: copying file `libltdl/libltdl/lt__dirent.h'
libtoolize: copying file `libltdl/libltdl/lt__glibc.h'
libtoolize: copying file `libltdl/libltdl/lt__private.h'
libtoolize: copying file `libltdl/libltdl/lt__strl.h'
libtoolize: copying file `libltdl/libltdl/lt_dlloader.h'
libtoolize: copying file `libltdl/libltdl/lt_error.h'
libtoolize: copying file `libltdl/libltdl/lt_system.h'
libtoolize: copying file `libltdl/libltdl/slist.h'
libtoolize: copying file `libltdl/loaders/preopen.c'
libtoolize: copying file `libltdl/lt__alloc.c'
libtoolize: copying file `libltdl/lt_dlloader.c'
libtoolize: copying file `libltdl/lt_error.c'
libtoolize: copying file `libltdl/ltdl.c'
libtoolize: copying file `libltdl/ltdl.h'
libtoolize: copying file `libltdl/slist.c'
configure.ac:57:AM_CONDITIONAL:AMDEP:test "x$enable_dependency_tracking"
!= xno
configure.ac:57:AM_CONDITIONAL:am__fastdepCC: test
"x$enable_dependency_tracking" != xno && test
"$am_cv_CC_dependencies_compiler_type" = gcc3
configure.ac:58:AM_CONDITIONAL:am__fastdepCC: test
"x$enable_dependency_tracking" != xno && test
"$am_cv_CC_dependencies_compiler_type" = gcc3
configure.ac:59:AM_CONDITIONAL:am__fastdepCXX: test
"x$enable_dependency_tracking" != xno && test
"$am_cv_CXX_dependencies_compiler_type" = gcc3
configure.ac:86:AM_CONDITIONAL:INSTALL_LTDL:test
x"${enable_ltdl_install-no}" != xno
configure.ac:86:AM_CONDITIONAL:CONVENIENCE_LTDL:test
x"${enable_ltdl_convenience-no}" != xno
configure.ac:216:AM_CONDITIONAL:OPENSS_USE_SYMTABAPI:false
configure.ac:220:AM_CONDITIONAL:OPENSS_USE_SYMTABAPI:true
configure.ac:239:AM_CONDITIONAL:USE_EXPLICIT_TLS:false
configure.ac:243:AM_CONDITIONAL:USE_EXPLICIT_TLS:true
configure.ac:303:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:304:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:305:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:306:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:307:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:311:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:312:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:313:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:314:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:315:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:324:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:325:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:326:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:327:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:328:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:337:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:338:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:339:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:340:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:341:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:350:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:351:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:352:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:353:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:354:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:363:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:364:AM_CONDITIONAL:BUILD_TARGETED:true
configure.ac:365:AM_CONDITIONAL:BUILD_TARGETED_BGL:true
configure.ac:366:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:367:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:377:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:378:AM_CONDITIONAL:BUILD_TARGETED:true
configure.ac:379:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:380:AM_CONDITIONAL:BUILD_TARGETED_BGP:true
configure.ac:381:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:391:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:true
configure.ac:392:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:393:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:394:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:395:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:405:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:406:AM_CONDITIONAL:BUILD_TARGETED:true
configure.ac:407:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:408:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:409:AM_CONDITIONAL:BUILD_TARGETED_BGQ:true
configure.ac:419:AM_CONDITIONAL:FE_SETUP_BUILD_TARGETED:false
configure.ac:420:AM_CONDITIONAL:BUILD_TARGETED:false
configure.ac:421:AM_CONDITIONAL:BUILD_TARGETED_BGL:false
configure.ac:422:AM_CONDITIONAL:BUILD_TARGETED_BGP:false
configure.ac:423:AM_CONDITIONAL:BUILD_TARGETED_BGQ:false
configure.ac:451:AM_CONDITIONAL:HAVE_TARGET_TEST_POSIX_THREADS:test
x$enable_target_pthreads = xyes
configure.ac:548:AM_CONDITIONAL:HAVE_TARGET_SHARED:true
configure.ac:553:AM_CONDITIONAL:HAVE_TARGET_SHARED:false
configure.ac:563:AM_CONDITIONAL:HAVE_BINUTILS:true
configure.ac:563:AM_CONDITIONAL:HAVE_BINUTILS:false
configure.ac:563:AM_CONDITIONAL:HAVE_BINUTILS:true
configure.ac:564:AM_CONDITIONAL:HAVE_EPYDOC:true
configure.ac:564:AM_CONDITIONAL:HAVE_EPYDOC:false
configure.ac:565:AM_CONDITIONAL:HAVE_LIBELF:true
configure.ac:565:AM_CONDITIONAL:HAVE_LIBELF:true
configure.ac:565:AM_CONDITIONAL:HAVE_LIBELF:false
configure.ac:566:AM_CONDITIONAL:HAVE_LIBDWARF:true
configure.ac:566:AM_CONDITIONAL:HAVE_LIBDWARF:false
configure.ac:567:AM_CONDITIONAL:HAVE_LIBMONITOR:test "$HAVE_LIBMONITOR" = 1
configure.ac:568:AM_CONDITIONAL:HAVE_LIBUNWIND:true
configure.ac:568:AM_CONDITIONAL:HAVE_LIBUNWIND:false
configure.ac:569:AM_CONDITIONAL:HAVE_LAM:true
configure.ac:569:AM_CONDITIONAL:HAVE_LAM:true
configure.ac:569:AM_CONDITIONAL:HAVE_LAM:false
configure.ac:569:AM_CONDITIONAL:HAVE_LAMPI:true
configure.ac:569:AM_CONDITIONAL:HAVE_LAMPI:true
configure.ac:569:AM_CONDITIONAL:HAVE_LAMPI:false
configure.ac:569:AM_CONDITIONAL:HAVE_MPICH:true
configure.ac:569:AM_CONDITIONAL:HAVE_MPICH:true
configure.ac:569:AM_CONDITIONAL:HAVE_MPICH:true
configure.ac:569:AM_CONDITIONAL:HAVE_MPICH:false
configure.ac:569:AM_CONDITIONAL:HAVE_MPICH2:true
configure.ac:569:AM_CONDITIONAL:HAVE_MPICH2:false
configure.ac:569:AM_CONDITIONAL:HAVE_MVAPICH:true
configure.ac:569:AM_CONDITIONAL:HAVE_MVAPICH:false
configure.ac:569:AM_CONDITIONAL:HAVE_MVAPICH2:true
configure.ac:569:AM_CONDITIONAL:HAVE_MVAPICH2:false
configure.ac:569:AM_CONDITIONAL:HAVE_MPT:true
configure.ac:569:AM_CONDITIONAL:HAVE_MPT:false
configure.ac:569:AM_CONDITIONAL:HAVE_OPENMPI:true
configure.ac:569:AM_CONDITIONAL:HAVE_OPENMPI:false
configure.ac:569:AM_CONDITIONAL:HAVE_TARGET_MPICH2:true
configure.ac:569:AM_CONDITIONAL:HAVE_TARGET_MPICH2:false
configure.ac:569:AM_CONDITIONAL:HAVE_MPI:true
configure.ac:569:AM_CONDITIONAL:HAVE_MPI:false
configure.ac:569:AM_CONDITIONAL:HAVE_TARGET_MPI:true
configure.ac:569:AM_CONDITIONAL:HAVE_TARGET_MPI:false
configure.ac:570:AM_CONDITIONAL:HAVE_OPENMP:true
configure.ac:570:AM_CONDITIONAL:HAVE_OPENMP:false
configure.ac:571:AM_CONDITIONAL:HAVE_OTF:true
configure.ac:571:AM_CONDITIONAL:HAVE_OTF:false
configure.ac:572:AM_CONDITIONAL:HAVE_PAPI:test "$HAVE_PAPI" = 1
configure.ac:574:AM_CONDITIONAL:HAVE_QTLIB:test $found_all_qt -eq 1
configure.ac:575:AM_CONDITIONAL:HAVE_SQLITE:true
configure.ac:575:AM_CONDITIONAL:HAVE_SQLITE:false
configure.ac:576:AM_CONDITIONAL:HAVE_VT:true
configure.ac:576:AM_CONDITIONAL:HAVE_VT:false
configure.ac:580:AM_CONDITIONAL:HAVE_TARGET_OPENMP:true
configure.ac:580:AM_CONDITIONAL:HAVE_TARGET_OPENMP:false
configure.ac:581:AM_CONDITIONAL:HAVE_TARGET_STDC_PLUSPLUS:false
configure.ac:581:AM_CONDITIONAL:HAVE_TARGET_STDC_PLUSPLUS:true
configure.ac:582:AM_CONDITIONAL:HAVE_TARGET_BINUTILS:false
configure.ac:582:AM_CONDITIONAL:HAVE_TARGET_BINUTILS:true
configure.ac:583:AM_CONDITIONAL:HAVE_TARGET_PERSONALITY:false
configure.ac:583:AM_CONDITIONAL:HAVE_TARGET_PERSONALITY:true
configure.ac:584:AM_CONDITIONAL:HAVE_TARGET_LIBDWARF:false
configure.ac:584:AM_CONDITIONAL:HAVE_TARGET_LIBDWARF:true
configure.ac:584:AM_CONDITIONAL:HAVE_TARGET_LIBDWARF:false
configure.ac:585:AM_CONDITIONAL:HAVE_TARGET_LIBMONITOR:false
configure.ac:585:AM_CONDITIONAL:HAVE_TARGET_LIBMONITOR:true
configure.ac:585:AM_CONDITIONAL:HAVE_TARGET_LIBMONITOR:false
configure.ac:586:AM_CONDITIONAL:HAVE_TARGET_LIBPTHREAD:false
configure.ac:586:AM_CONDITIONAL:HAVE_TARGET_LIBPTHREAD:true
configure.ac:586:AM_CONDITIONAL:HAVE_TARGET_LIBPTHREAD:false
configure.ac:587:AM_CONDITIONAL:HAVE_TARGET_LIBRT:false
configure.ac:587:AM_CONDITIONAL:HAVE_TARGET_LIBRT:true
configure.ac:587:AM_CONDITIONAL:HAVE_TARGET_LIBRT:false
configure.ac:588:AM_CONDITIONAL:HAVE_TARGET_LIBUNWIND:false
configure.ac:588:AM_CONDITIONAL:HAVE_TARGET_LIBUNWIND:true
configure.ac:588:AM_CONDITIONAL:HAVE_TARGET_LIBUNWIND:false
configure.ac:589:AM_CONDITIONAL:HAVE_TARGET_OTF:true
configure.ac:589:AM_CONDITIONAL:HAVE_TARGET_OTF:false
configure.ac:590:AM_CONDITIONAL:HAVE_TARGET_PAPI:false
configure.ac:590:AM_CONDITIONAL:HAVE_TARGET_PAPI:true
configure.ac:590:AM_CONDITIONAL:HAVE_TARGET_PAPI_SHARED:true
configure.ac:590:AM_CONDITIONAL:HAVE_TARGET_PAPI_SHARED:false
configure.ac:591:AM_CONDITIONAL:HAVE_TARGET_SQLITE:false
configure.ac:591:AM_CONDITIONAL:HAVE_TARGET_SQLITE:true
configure.ac:592:AM_CONDITIONAL:HAVE_TARGET_SYMTABAPI:false
configure.ac:592:AM_CONDITIONAL:HAVE_TARGET_SYMTABAPI:true
configure.ac:592:AM_CONDITIONAL:HAVE_TARGET_SYMTABAPI:false
configure.ac:593:AM_CONDITIONAL:HAVE_TARGET_VT:true
configure.ac:593:AM_CONDITIONAL:HAVE_TARGET_VT:false
configure.ac:597:AM_CONDITIONAL:HAVE_TARGET_OPENMP:false
configure.ac:598:AM_CONDITIONAL:HAVE_TARGET_BINUTILS:false
configure.ac:599:AM_CONDITIONAL:HAVE_TARGET_PERSONALITY:false
configure.ac:600:AM_CONDITIONAL:HAVE_TARGET_LIBDWARF:false
configure.ac:601:AM_CONDITIONAL:HAVE_TARGET_LIBMONITOR:false
configure.ac:602:AM_CONDITIONAL:HAVE_TARGET_LIBPTHREAD:false
configure.ac:603:AM_CONDITIONAL:HAVE_TARGET_LIBRT:false
configure.ac:604:AM_CONDITIONAL:HAVE_TARGET_LIBUNWIND:false
configure.ac:605:AM_CONDITIONAL:HAVE_TARGET_OTF:false
configure.ac:606:AM_CONDITIONAL:HAVE_TARGET_PAPI:false
configure.ac:607:AM_CONDITIONAL:HAVE_TARGET_PAPI_SHARED:false
configure.ac:608:AM_CONDITIONAL:HAVE_TARGET_SQLITE:false
configure.ac:609:AM_CONDITIONAL:HAVE_TARGET_SYMTABAPI:false
configure.ac:610:AM_CONDITIONAL:HAVE_TARGET_VT:false
configure.ac:611:AM_CONDITIONAL:HAVE_TARGET_STDC_PLUSPLUS:false
configure.ac:624:AM_CONDITIONAL:HAVE_DYNINST:false
configure.ac:628:AM_CONDITIONAL:HAVE_XERCES:false
configure.ac:630:AM_CONDITIONAL:HAVE_SYMTABAPI:true
configure.ac:630:AM_CONDITIONAL:HAVE_SYMTABAPI:false
configure.ac:631:AM_CONDITIONAL:BUILD_CBTF:false
configure.ac:632:AM_CONDITIONAL:BUILD_DPCL:false
configure.ac:633:AM_CONDITIONAL:BUILD_OFFLINE:false
configure.ac:634:AM_CONDITIONAL:BUILD_MRNET:false
configure.ac:635:AM_CONDITIONAL:HAVE_MRNET:false
configure.ac:636:AM_CONDITIONAL:BUILD_INSTRUMENTOR:false
configure.ac:640:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:640:AM_CONDITIONAL:HAVE_RUNTIME_DIR:true
configure.ac:640:AM_CONDITIONAL:HAVE_RUNTIME_DIR:true
configure.ac:640:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:644:AM_CONDITIONAL:HAVE_XERCES:false
configure.ac:645:AM_CONDITIONAL:HAVE_SYMTABAPI:false
configure.ac:646:AM_CONDITIONAL:HAVE_DYNINST:true
configure.ac:646:AM_CONDITIONAL:HAVE_DYNINST:false
configure.ac:647:AM_CONDITIONAL:BUILD_CBTF:false
configure.ac:648:AM_CONDITIONAL:BUILD_DPCL:false
configure.ac:649:AM_CONDITIONAL:BUILD_MRNET:false
configure.ac:650:AM_CONDITIONAL:BUILD_OFFLINE:false
configure.ac:651:AM_CONDITIONAL:HAVE_MRNET:false
configure.ac:652:AM_CONDITIONAL:BUILD_INSTRUMENTOR:true
configure.ac:654:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:659:AM_CONDITIONAL:HAVE_DYNINST:true
configure.ac:659:AM_CONDITIONAL:HAVE_DYNINST:false
configure.ac:660:AM_CONDITIONAL:HAVE_SYMTABAPI:true
configure.ac:660:AM_CONDITIONAL:HAVE_SYMTABAPI:false
configure.ac:661:AM_CONDITIONAL:HAVE_MRNET:true
configure.ac:661:AM_CONDITIONAL:HAVE_MRNET:false
configure.ac:667:AM_CONDITIONAL:HAVE_XERCES:false
configure.ac:668:AM_CONDITIONAL:BUILD_CBTF:false
configure.ac:669:AM_CONDITIONAL:BUILD_MRNET:true
configure.ac:671:AM_CONDITIONAL:BUILD_DPCL:false
configure.ac:672:AM_CONDITIONAL:BUILD_OFFLINE:false
configure.ac:673:AM_CONDITIONAL:BUILD_INSTRUMENTOR:true
configure.ac:675:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:680:AM_CONDITIONAL:HAVE_DYNINST:true
configure.ac:680:AM_CONDITIONAL:HAVE_DYNINST:false
configure.ac:681:AM_CONDITIONAL:HAVE_SYMTABAPI:true
configure.ac:681:AM_CONDITIONAL:HAVE_SYMTABAPI:false
configure.ac:687:AM_CONDITIONAL:HAVE_XERCES:false
configure.ac:688:AM_CONDITIONAL:BUILD_CBTF:false
configure.ac:689:AM_CONDITIONAL:BUILD_DPCL:false
configure.ac:690:AM_CONDITIONAL:BUILD_MRNET:false
configure.ac:691:AM_CONDITIONAL:HAVE_MRNET:false
configure.ac:692:AM_CONDITIONAL:BUILD_OFFLINE:true
configure.ac:694:AM_CONDITIONAL:BUILD_INSTRUMENTOR:true
configure.ac:696:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:696:AM_CONDITIONAL:HAVE_RUNTIME_DIR:true
configure.ac:696:AM_CONDITIONAL:HAVE_RUNTIME_DIR:true
configure.ac:696:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:709:AM_CONDITIONAL:HAVE_DYNINST:true
configure.ac:709:AM_CONDITIONAL:HAVE_DYNINST:false
configure.ac:710:AM_CONDITIONAL:HAVE_SYMTABAPI:true
configure.ac:710:AM_CONDITIONAL:HAVE_SYMTABAPI:false
configure.ac:711:AM_CONDITIONAL:HAVE_XERCES:true
configure.ac:711:AM_CONDITIONAL:HAVE_XERCES:false
configure.ac:718:AM_CONDITIONAL:HAVE_MRNET:true
configure.ac:718:AM_CONDITIONAL:HAVE_MRNET:false
configure.ac:723:AM_CONDITIONAL:BUILD_DPCL:false
configure.ac:724:AM_CONDITIONAL:BUILD_MRNET:false
configure.ac:725:AM_CONDITIONAL:BUILD_OFFLINE:false
configure.ac:726:AM_CONDITIONAL:BUILD_CBTF:true
configure.ac:728:AM_CONDITIONAL:BUILD_INSTRUMENTOR:true
configure.ac:730:AM_CONDITIONAL:HAVE_RUNTIME_DIR:false
configure.ac:754:AM_CONDITIONAL:BUILD_RUNTIME_ONLY:true
configure.ac:757:AM_CONDITIONAL:BUILD_RUNTIME_ONLY:false
configure.ac:779:AM_CONDITIONAL:BUILD_GUI_ONLY:true
configure.ac:782:AM_CONDITIONAL:BUILD_GUI_ONLY:false
configure.ac:928:AM_CONDITIONAL:am__EXEEXT:test -n "$EXEEXT"
finished - running bootstrap on all directories
[***@jeghost OpenSpeedShop]$


Thanks,
Jim G.
Post by Gavin Smith
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.
Gavin Smith
2014-03-12 19:04:27 UTC
Permalink
Post by Jim Galarowicz
Hi Gavin, all,
I ran the
autoconf --trace AM_CONDITIONAL command in the bootstrap instead of just
autoconf and here are the results.
It could be a problem with aclocal. You said that your bootstrap script worked:

aclocal --force -I m4
libtoolize --force --ltdl --copy
autoheader -f
automake --foreign --add-missing --copy
autoconf

But make clean didn't:

make clean
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I libltdl/m4
cd . && automake-1.13 --foreign
Makefile.am:63: error: HAVE_QTLIB does not appear in AM_CONDITIONAL

The first time aclocal is called it has "-I m4" as an argument, the
second it doesn't. I don't think it should be needed because I see you
have "AC_CONFIG_MACRO_DIR([m4])" in configure.ac, but it is something
to try. You also have a line "ACLOCAL_AMFLAGS = -I libltdl/m4" in
Makefile.am. Maybe you could try changing this to "ACLOCAL_AMFLAGS =
-I libltdl/m4 -I m4" to see if it makes a difference.

This is more likely a libtool or automake problem and not an autoconf
problem; I suggest asking on one of their mailing lists for help.
Jim Galarowicz
2014-03-12 20:13:04 UTC
Permalink
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):
[***@jeghost 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:

[***@jeghost 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"
Post by Gavin Smith
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.
Loading...