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: Tue, 11 Mar 2014 07:56:20 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0


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:

address@hidden 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

On 03/11/2014 01:19 AM, Patrick Welche wrote:
On Mon, Mar 10, 2014 at 09:07:20PM -0700, Jim Galarowicz wrote:
...
  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




reply via email to

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