Dave Kirkby wrote:
I want to allow a configure script to be told the number of CPUs
to build some software for. The manual says 'AC_ARG_ENABLE' can read an
agument, but I can't for the life of me see how to get it. I basically
want to have something AC_DEFINE CPUS to be an integer read whilst
configuring the program.
I have no idea if this will work for your software, but:
Wouldn't it be better to detect the number of processors at runtime? See (for glibc on Linux):
info libc sysconf constant
and search for the constant "_SC_NPROCESSORS_ONLN".
Bye, Rich =]
-- Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]
"You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek