On Sun, 25 Jul 2004, Marc Gregoire wrote:
> I'm using the latest version of cygwin and was trying to compile the latest
> CVS version of mjpegtools on it. Unfortunately, I get a bunch of errors
> with automake related stuff ...
> Automake version:
> $ automake --version
> automake (GNU automake) 1.8.5
That's good. I'm still back on 1.7.9 on a couple systems but 1.8.3 or
.4 on a couple others.
> Libtool version:
> $ libtool --version
> ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
That's good.
> I also have installed SDL 1.2.7
Do you have GLIB1? Not having libglib-1.2.10 should be ok but reducing
the number of non-warning errors is a good thing ;)
> Btw: there is an error in the INSTALL file. That file tells you to do
> ./configure but in the CVS version you have to use ./autogen.sh.
Well, that's only for the *1st* time _or_ if configure.in has changed.
Once you have run autogen.sh you can get by with simply ./configure
unless the autoconf files change.
$ ./autogen.sh --enable-large-file --with-quicktime=no
processing .
Running libtoolize...
Running aclocal ...
Ignore all the 'underquoted' warnings - I get those too with automake
1.8.x but not with 1.7.9
aclocal: configure.in: 167: macro `AM_PATH_GLIB' not found in library
Ah - but there is non-warning error. Hopefully not fatal - but it
might be. If you can get GTK1 and GLIB1 installed that'd be great.
Running autoheader...
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
Hmm, autoheader is part of 'autoconf'. I have tested with
autoconf 2.57 and 2.59 and neither one of those complains about
AC_CONFIG_HEADERS. What version of autoconf are you using? If there
is more than one version of autoconf present then the wrong (older)
one is being invoked somehow. AC_CONFIG_HEADERS was replaced by
AM_CONFIG_HEADER some time ago.
Running automake --gnu ...
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
Which is bogus - if you look at configure.in you will see that line
11 is indeed "AM_INIT_AUTOMAKE(mjpegtools, $MJPEG_VERSION)".
Ignore the remaining errors - they're simply a cascade of errors because
autoconf didn't accept the AM_INIT_AUTOMAKE entry in configure.in
Running autoconf ...
Running ./configure --enable-maintainer-mode --enable-compile-warnings
--enable-large-file --with-quicktime=no ...
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
./configure: line 1618: syntax error near unexpected token `mjpegtools,'
./configure: line 1618: `AM_INIT_AUTOMAKE(mjpegtools, $MJPEG_VERSION)'
So the AM_INIT_AUTOMAKE line was passed _thru_ into configure rather
than being _expanded_.
The errors look very verbose but only the first non-warning errors
are relevant - thing to try and do is get rid of the AM_PATH_GLIB,
AC_CONFIG_HEADERS, and get AM_INIT_AUTOMAKE recognized and expanded.
Exactly how to do that is going to be a bit of trial and error. See
if you can get GLIB1 as a first step - get rid of the errors one at
a time.
Good Luck!
Steven Schultz
$ ./autogen.sh --enable-large-file --with-quicktime=no
processing .
Running libtoolize...
Running aclocal ...
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/libsmi.m4:8: warning: underquoted definition of AM_PATH_LIBSMI
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of
AM_PATH_LIBMCRYPT
/usr/share/aclocal/gsl.m4:5: warning: underquoted definition of AM_PATH_GSL
/usr/share/aclocal/freetype2.m4:7: warning: underquoted definition of AC_CHECK_FT2
/usr/share/aclocal/cppunit.m4:4: warning: underquoted definition of AM_PATH_CPPUNIT
/usr/share/aclocal/check.m4:5: warning: underquoted definition of AM_PATH_CHECK
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of
AM_PATH_AUDIOFILE
aclocal: configure.in: 167: macro `AM_PATH_GLIB' not found in library
Running autoheader...
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
Running automake --gnu ...
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
lavtools/Makefile.am:16: HAVE_V4L does not appear in AM_CONDITIONAL
lavtools/Makefile.am:22: HAVE_V4L_OR_SDL does not appear in AM_CONDITIONAL
lavtools/Makefile.am:65: HAVE_GTK does not appear in AM_CONDITIONAL
lavtools/Makefile.am:71: HAVE_SDL does not appear in AM_CONDITIONAL
lavtools/Makefile.am:77: HAVE_V4L does not appear in AM_CONDITIONAL
lavtools/Makefile.am:83: HAVE_V4L_OR_SDL does not appear in AM_CONDITIONAL
lavtools/Makefile.am:89: HAVE_PNG does not appear in AM_CONDITIONAL
lavtools/Makefile.am:155: HAVE_X does not appear in AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
mpeg2enc/Makefile.am:33: HAVE_ASM_MMX does not appear in AM_CONDITIONAL
mpeg2enc/Makefile.am:34: HAVE_ASM_NASM does not appear in AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCXX does not appear
in AM_CONDITIONAL
mpeg2enc/Makefile.am: Assembler source seen but `CCAS' is undefined
mpeg2enc/Makefile.am:
mpeg2enc/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS'
mpeg2enc/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
mpeg2enc/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined
mpeg2enc/Makefile.am:
mpeg2enc/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS'
mpeg2enc/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
mplex/Makefile.am:16: HAVE_ZALPHA does not appear in AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCXX does not appear
in AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
utils/Makefile.am:3: HAVE_ALTIVEC does not appear in AM_CONDITIONAL
utils/Makefile.am:6: HAVE_ASM_NASM does not appear in AM_CONDITIONAL
utils/Makefile.am:7: HAVE_ASM_MMX does not appear in AM_CONDITIONAL
utils/Makefile.am:43: HAVE_ALTIVEC does not appear in AM_CONDITIONAL
utils/Makefile.am:46: HAVE_ASM_NASM does not appear in AM_CONDITIONAL
utils/Makefile.am:47: HAVE_ASM_MMX does not appear in AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
utils/altivec/Makefile.am: Assembler source seen but `CCAS' is undefined
utils/altivec/Makefile.am:
utils/altivec/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS'
utils/altivec/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
utils/altivec/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined
utils/altivec/Makefile.am:
utils/altivec/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS'
utils/altivec/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
utils/mmxsse/Makefile.am: Assembler source seen but `CCAS' is undefined
utils/mmxsse/Makefile.am:
utils/mmxsse/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS'
utils/mmxsse/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
utils/mmxsse/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined
utils/mmxsse/Makefile.am:
utils/mmxsse/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS'
utils/mmxsse/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCXX does not appear
in AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in
AM_CONDITIONAL
/usr/autotool/devel/share/automake-1.8/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
Running autoconf ...
Running ./configure --enable-maintainer-mode --enable-compile-warnings
--enable-large-file --with-quicktime=no ...
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
./configure: line 1618: syntax error near unexpected token `mjpegtools,'
./configure: line 1618: `AM_INIT_AUTOMAKE(mjpegtools, $MJPEG_VERSION)'