Re: Problems with AMDEP does not appear in AM_CONDITIONAL

2001-10-12 Thread Robert Collins

Have you run aclocal ?

Rob
- Original Message -
From: Adam Tee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 12, 2001 6:47 PM
Subject: Problems with AMDEP does not appear in AM_CONDITIONAL


 Hi all,

 I've just upgraded my machine to use automake 1.5 and autoconf 2.5
 and am having problems with the automake and autoconf process.
 I get the following messages:

 /usr/share/automake/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
 /usr/share/automake/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
 /usr/share/automake/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
 /usr/share/automake/am/lang-compile.am: AMDEP does not appear in
 AM_CONDITIONAL

 The toplevel makefile.am is as follows:

 SUBDIRS = src macros TestCode

 and the configure.in is

 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(src/kscore.cc)


 AM_CONFIG_HEADER(config.h)
 AC_CANONICAL_SYSTEM
 AM_INIT_AUTOMAKE(Simulation, 0.2.6)

 dnl Checks for programs.
 #AM_ACLOCAL_INCLUDE(macros)

 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_CXX
 AM_PROG_LEX
 AC_PROG_YACC

 dnl Checks for libraries.
 #AM_PATH_GTK(1.2.0, [LIBS=$LIBS $GTK_LIBS
 #   CFLAGS=$CFLAGS $GTK_CFLAGS
 #   LDFLAGS=$LDFLAGS $GTK_LDFLAGS],
 #   AC_MSG_ERROR(Cannot find GTK: Is gtk-config in
path?))
  #AM_PATH_SIGC(1.0.0,,
 #AC_MSG_ERROR(Cannot find libsigc++ = 1.0.0))
 #AM_PATH_GTKMM(1.2.0,,
 #   AC_MSG_ERROR(Cannot find GTK-- = 1.2.0))

 #AM_PATH_GTKEXTRA(0.99.13, [LIBS=$LIBS $GTK_EXTRA_LIBS
 #   CFLAGS=$CFLAGS $GTK_EXTRA_CFLAGS],
 #   AC_MSG_ERROR(Cannot find GTK+Extra: Is
 #gtkextra-config in path?))

 CXXFLAGS=$CFLAGS -g -Wall -O2

 dnl Checks for header files.

 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST

 dnl Checks for library functions.
 AC_SUBST(CFLAGS)
 AC_SUBST(CPPFLAGS)
 AC_SUBST(LDFLAGS)

 AC_OUTPUT([Makefile src/Makefile macros/Makefile TestCode/Makefile])

 Other projects that I have do not have this problem.


 Adam








Re: Problems with AMDEP does not appear in AM_CONDITIONAL

2001-10-12 Thread Adam Tee

On Friday 12 Oct 2001 11:40 am, you wrote:
 Have you run aclocal ?

yes, but still the error messages occur.

Adam




Re: several automake questions

2001-10-12 Thread Alexandre Duret-Lutz

 mcmahill == mcmahill  [EMAIL PROTECTED] writes:

[...]

 mcmahill 1) How can I specify a different directory or
 mcmahill subdirectory for a program?  The application is a cgi
 mcmahill program which might, for example, end up in
 mcmahill /usr/local/libexec/cgi-bin.  The standard things like
 mcmahill bin_PROGRAMS or libexec_PROGRAMS just don't get me to
 mcmahill the right place.  I somehow need a cgibin_PROGRAMS...

cgibindir = $(libexecdir)/cgi-bin
cgibin_PROGRAMS = mumble
mumble_SOURCES = ...

[...]

 mcmahill 3)  I have some C files which get generated with a gawk script.
[...]
 mcmahill Whats a good way to have these generated files end up
 mcmahill in the distribution tarball for those users who may
 mcmahill not have gawk installed?  Right now I do something
 mcmahill like:

 mcmahill BUILT_SOURCES = \
 mcmahill air_coil_html.c \
 mcmahill .

 mcmahill SUFFIXES = .html 

 mcmahill %_html.c : %.html
(BTW, % rules are not portable)
 mcmahill @AWK_GENSUB_YES@ $(HTML2C) $(srcdir)/$  $(srcdir)/$@
 mcmahill @AWK_GENSUB_NO@ echo Your awk (${AWK}) does not have gensub()
 mcmahill @AWK_GENSUB_NO@ touch $(srcdir)/$@

They will be ditributed if you list them with the other _SOURCES
of the program they belong to.  

Also, if the only thing you'll do with these C files is to
compile them (i.e. you don't include them from another source) I
believe you don't need BUILT_SOURCE at all: your program depends
on its sources, and Make knows how to build the missing files
using the rule you added.

[...]

-- 
Alexandre Duret-Lutz




Re: several automake questions

2001-10-12 Thread Raja R Harinath

Hi,

Alexandre Duret-Lutz [EMAIL PROTECTED] writes:
 mcmahill == mcmahill  [EMAIL PROTECTED] writes:
  mcmahill 1) How can I specify a different directory or
  mcmahill subdirectory for a program?  The application is a cgi
  mcmahill program which might, for example, end up in
  mcmahill /usr/local/libexec/cgi-bin.  The standard things like
  mcmahill bin_PROGRAMS or libexec_PROGRAMS just don't get me to
  mcmahill the right place.  I somehow need a cgibin_PROGRAMS...
 
 cgibindir = $(libexecdir)/cgi-bin
 cgibin_PROGRAMS = mumble
 mumble_SOURCES = ...

That should be

  cgibinexecdir = $(libexecdir)/cgi-bin
  cgibinexec_PROGRAMS = mumble

so that things work as expected with 'make install-exec'.

- Hari
-- 
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions.  -- Cahn's Axiom
Our policy is, when in doubt, do the right thing.   -- Roy L Ash




Re: several automake questions

2001-10-12 Thread mcmahill



cool!  Thanks for the help.

-Dan


On Fri, 12 Oct 2001, Raja R Harinath wrote:

 Hi,
 
 Alexandre Duret-Lutz [EMAIL PROTECTED] writes:
  mcmahill == mcmahill  [EMAIL PROTECTED] writes:
   mcmahill 1) How can I specify a different directory or
   mcmahill subdirectory for a program?  The application is a cgi
   mcmahill program which might, for example, end up in
   mcmahill /usr/local/libexec/cgi-bin.  The standard things like
   mcmahill bin_PROGRAMS or libexec_PROGRAMS just don't get me to
   mcmahill the right place.  I somehow need a cgibin_PROGRAMS...
  
  cgibindir = $(libexecdir)/cgi-bin
  cgibin_PROGRAMS = mumble
  mumble_SOURCES = ...
 
 That should be
 
   cgibinexecdir = $(libexecdir)/cgi-bin
   cgibinexec_PROGRAMS = mumble
 
 so that things work as expected with 'make install-exec'.
 
 - Hari
 -- 
 Raja R Harinath -- [EMAIL PROTECTED]
 When all else fails, read the instructions.  -- Cahn's Axiom
 Our policy is, when in doubt, do the right thing.   -- Roy L Ash