i'm trying to follow the "simple example, start to finish" from the automake manual (http://www.gnu.org/software/automake/manual/html_node/Complete.html). and it's not working out.
$ ls -l total 16 -rw-r--r-- 1 cook cook 21 Nov 26 17:33 Makefile.am -rw-r--r-- 1 cook cook 73 Nov 26 17:42 configure.in -rw-r--r-- 1 cook cook 74 Nov 26 14:28 hello.c $ cat -n Makefile.am 1 bin_PROGRAMS = hello $ cat -n configure.in 1 AC_INIT(hello, 1.0) 2 AM_INIT_AUTOMAKE 3 AC_PROG_INSTALL 4 AC_OUTPUT(Makefile) $ cat -n hello.c 1 #include <stdio.h> 2 int main() 3 { 4 printf("hello, world\n"); 5 return 0; 6 } $ aclocal /usr/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal /usr/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS /usr/share/aclocal/xdelta.m4:7: warning: underquoted definition of AM_PATH_XDELTA /usr/share/aclocal/vorbis.m4:9: warning: underquoted definition of XIPH_PATH_VORBIS /usr/share/aclocal/rep.m4:7: warning: underquoted definition of AM_PATH_REP /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES /usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK /usr/share/aclocal/openhbci.m4:8: warning: underquoted definition of AM_PATH_OPENHBCI /usr/share/aclocal/ogg.m4:8: warning: underquoted definition of XIPH_PATH_OGG /usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF /usr/share/aclocal/netatalk.m4:9: warning: underquoted definition of AM_PATH_NETATALK /usr/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC /usr/share/aclocal/libraw1394.m4:6: warning: underquoted definition of AC_LIB_RAW1394_FLAGS /usr/share/aclocal/libraw1394.m4:19: warning: underquoted definition of AC_LIB_RAW1394_HEADERS /usr/share/aclocal/libraw1394.m4:41: warning: underquoted definition of AC_LIB_RAW1394_LIBVERSION /usr/share/aclocal/libraw1394.m4:75: warning: underquoted definition of AC_LIB_RAW1394_RUNTEST /usr/share/aclocal/libraw1394.m4:138: warning: underquoted definition of AC_LIB_RAW1394 /usr/share/aclocal/libole2.m4:18: warning: underquoted definition of AM_PATH_LIBOLE2 /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD /usr/share/aclocal/libguppi.m4:11: warning: underquoted definition of AM_PATH_LIBGUPPI /usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIBGLADE /usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of AM_PATH_LIBGCRYPT /usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART /usr/share/aclocal/libOggFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBOGGFLAC /usr/share/aclocal/libOggFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBOGGFLACPP /usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBIDL /usr/share/aclocal/libFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBFLAC /usr/share/aclocal/libFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBFLACPP /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK /usr/share/aclocal/gsl.m4:5: warning: underquoted definition of AM_PATH_GSL /usr/share/aclocal/gpg-error.m4:7: warning: underquoted definition of AM_PATH_GPG_ERROR /usr/share/aclocal/gob2.m4:7: warning: underquoted definition of GOB2_HOOK /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB /usr/share/aclocal/gconf-2.m4:8: warning: underquoted definition of AM_GCONF_SOURCE_2 /usr/share/aclocal/gconf-1.m4:4: warning: underquoted definition of AM_PATH_GCONF /usr/share/aclocal/gconf-1.m4:71: warning: underquoted definition of AM_GCONF_SOURCE /usr/share/aclocal/g-wrap.m4:7: warning: underquoted definition of AC_GWRAP_CHECK_GUILE /usr/share/aclocal/g-wrap.m4:23: warning: underquoted definition of AM_PATH_GWRAP /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO /usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of AM_PATH_ORBIT $ autoconf $ automake --add-missing configure.in: installing `./install-sh' configure.in: installing `./missing' Makefile.am: installing `./INSTALL' Makefile.am: required file `./NEWS' not found Makefile.am: required file `./README' not found Makefile.am: required file `./AUTHORS' not found Makefile.am: required file `./ChangeLog' not found Makefile.am: installing `./COPYING' Makefile.am: installing `./depcomp' /usr/share/automake-1.8/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.8/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL Makefile.am: C source seen but `CC' is undefined Makefile.am: Makefile.am: The usual way to define `CC' is to add `AC_PROG_CC' Makefile.am: to `configure.in' and run `autoconf' again. i assume all the aclocal warnings are harmless. and the "required file" errors are easy enough to fix. but what about the others? in particular, automake tells me to add AC_PROC_CC to configure.in, but if i do that, autoconf complains: $ autoconf configure.in:3: error: possibly undefined macro: AC_PROC_CC If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. m.