[am_edit bug?] foo_CXXFLAGS doesn't seem to work

Marc Mutz mutz at kde.org
Mon Dec 9 13:41:04 GMT 2002


Hi!

When I have a Makefile.am like this:

<snip>
check_PROGRAMS = b64codectest qpcodectest ...

b64codectest_SOURCES = codectest.cpp
b64codectest_CXXFLAGS = -DCODECNAME=\"base64\"

qpcodectest_SOURCES = codectest.cpp
qpcodectest_CXXFLAGS = -DCODECNAME=\"quoted-printable\"
<snip>

I get the expected result when running
$ automake-1.6 path/to/Makefile
manually.

If I let Makefile.cvs do the job, then I get an error such as this:

--BEGIN--
source='codectest.cpp' object='bcodectest-codectest.o' libtool=no \
depfile='.deps/bcodectest-codectest.Po' 
tmpdepfile='.deps/bcodectest-codectest.TPo' \
depmode=gcc3 /bin/sh /home/mmutz/KDE/CVS/kdenetwork/admin/depcomp \
#>-     g++ -DHAVE_CONFIG_H -I. 
-I/home/mmutz/KDE/CVS/kdenetwork/libkmime/tests -I../.. 
-I/home/mmutz/KDE/CVS/kdenetwork/libkmime -I/opt/kde-HEAD/include 
-I/opt/kde-HEAD/qt-copy/include -I/usr/X11R6/include   
-DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64 
-DCODECDATA=b_tests -DCODECNAME=\"b\" -Wnon-virtual-dtor -Wno-long-long 
-Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -O2 -march=pentiumpro -fno-exceptions -fno-check-new 
-DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT 
-DKDE_NO_COMPAT_H -c -o bcodectest-codectest.o `test -f 'codectest.cpp' 
|| echo '/home/mmutz/KDE/CVS/kdenetwork/libkmime/tests/'`codectest.cpp
/home/mmutz/KDE/CVS/kdenetwork/admin/depcomp: -MT: command not found
make[1]: *** [bcodectest-codectest.o] Error 127
--END--

As you can see, there's a #>- before the g++ command, which is missing 
when I run automake manually:

--BEGIN--
source='codectest.cpp' object='bcodectest-codectest.o' libtool=no \
depfile='.deps/bcodectest-codectest.Po' 
tmpdepfile='.deps/bcodectest-codectest.TPo' \
depmode=gcc3 /bin/sh /home/mmutz/KDE/CVS/kdenetwork/admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I/home/mmutz/KDE/CVS/kdenetwork/libkmime/tests 
-I../.. -I/home/mmutz/KDE/CVS/kdenetwork/libkmime 
-I/opt/kde-HEAD/include -I/opt/kde-HEAD/qt-copy/include 
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-D_FILE_OFFSET_BITS=64 -DCODECDATA=b_tests -DCODECNAME=\"b\" 
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W 
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 
-march=pentiumpro -fno-exceptions -fno-check-new -DQT_NO_COMPAT 
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT 
-DKDE_NO_COMPAT_H -c -o bcodectest-codectest.o `test -f 'codectest.cpp' 
|| echo '/home/mmutz/KDE/CVS/kdenetwork/libkmime/tests/'`codectest.cpp
/bin/sh ../../libtool --silent --mode=link g++  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith 
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -Wcast-align -Wconversion -O2 -march=pentiumpro 
-fno-exceptions -fno-check-new -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE 
-DQT_NO_ASCII_CAST -DKDE_NO_COMPAT -DKDE_NO_COMPAT_H   -o bcodectest  
bcodectest-codectest.o ../codecs/libkmime_codecs.la
--END--

I have automake 1.6.3, autoconf 2.54 and am_edit 1.350 (Nov 26). admin/ 
isn't older than Friday (includes acinclude.m4.in 2.306).

Complete Makefile.am is attached.

What's more: If I edit Makefile.am and admin/missing --run automake-1.6 
kicks in, that doesn't lead to the error again.

Marc

-- 
"You're hackers, aren't you," the barman said, eyeing us. No one said
a thing. The darkness of the Eurotunnel rolled by. Apparently we'd
given ourselves away by talking too enthusiastically about IPv6. He
looked around conspiratorially, lowered his voice. "Can you get me
some credit card numbers?"
      -- James J. King "What's the shortest way to hack a Linux box?"
         Telepolis 2001/08/11 (#9293)






-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.am
Type: text/x-makefile
Size: 926 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021209/8edd4907/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021209/8edd4907/attachment.sig>


More information about the kde-core-devel mailing list