automake
[Top][All Lists]
Advanced

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

2 Questions regarding Conditional builds and DESTDIR ignored


From: mallum
Subject: 2 Questions regarding Conditional builds and DESTDIR ignored
Date: Mon, 25 Feb 2002 10:42:34 +0000
User-agent: Mutt/1.3.27i

Hi;

I've a project that builds a number of binarys, 1 of which should only
be built if apm.h is found.

In configure.ac, I have;

AC_CHECK_HEADERS(apm.h,APMLIB="-lapm",APMLIB=)

and in my Makefile.am I have;

if @APMLIB@
  APM_PROGS = miniapm
endif

bin_PROGRAMS = minitime monolaunch mbcontrol $(APM_PROGS)

miniapm_SOURCES = miniapm.c
miniapm_LDADD = @APMLIB@

minitime_SOURCES = minitime.c

monolaunch_SOURCES = monolaunch.c

mbcontrol_SOURCES = mbcontrol.c

However when I run automake I get the following;

Use of uninitialized value in concatenation (.) or string at
/usr/bin/automake line 5524, <GEN65> line 5.
Use of uninitialized value in concatenation (.) or string at
/usr/bin/automake line 5524, <GEN65> line 5.
util/Makefile.am:5: endif without if: 
Use of uninitialized value in string ne at /usr/bin/automake line
6612, <GEN65> line 7.
Use of uninitialized value in string ne at /usr/bin/automake line
6612, <GEN65> line 9.
Use of uninitialized value in string ne at /usr/bin/automake line
6612, <GEN65> line 10.
Use of uninitialized value in string ne at /usr/bin/automake line
6612, <GEN65> line 12.
Use of uninitialized value in string ne at /usr/bin/automake line
6612, <GEN65> line 14.
Use of uninitialized value in string ne at /usr/bin/automake line
6612, <GEN65> line 16.

I cant seem to figure out the correct way of the if definition. Im
sure its something very silly Im doing wrong here.

Also In the same project I have another makefile for building packages
of the project. It uses the line;

       DESTDIR=`pwd`/build fakeroot make install-strip -C ../../

On my x86 machine DESTDIT is honoured and everything works fine. Yet
on my ARM machine DESTDIR is ignored and the install is attempted to
the prefix directory. Both machines are running debian unstable. 

Many thanks;

  Matthew Allum





reply via email to

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