Running on Solaris 10 SPARC and compiling Samba with gcc 3.4.5,
Solaris make and the autoconf 2.59 from blastwave (aka http://ibiblio.org/pub/packages/solaris/csw/stable) I get
the following on an initial configure and compile:
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'version.h' created for Samba("4.0.0tp6-SVN-build-23605")
./autogen.sh: running autoheader -I. -Ilib/replace
./autogen.sh: running autoconf -I. -Ilib/replace
./autogen.sh: building Web Application Framework (SWAT)
Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
[ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ]
[ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro +=value"... ]
make: Fatal error: Unknown option `-C'
*** Error code 1
It's looking for a gnu make.
I agree, it's not the right spot, but for the moment the easy option for you is to download this from the unpacked rsync area, which has the ./autogen.sh already run.
OK, I'll look for the appropriate place to test for
gnu make and propose a fix...
Created attachment 2820 [details]
A trivial patch to fix a non-portable autogen.sh
A trivial bug: The script contained the idiom
make -C <dir> <targets> || exit 1
which is non-portable to standard makes,
and turns out to be not how the Gnu
make folks say to do subdirectories anyway.
I've attached an equally trivial patch to
change it to
(cd <dir>; make <targets> || exit 1)
I'll CC the list, too.
Fixed in SVN.