On Apr 6, 2007, at 11:28 AM, Benjamin Reed wrote:
>> As already said, the processor should be irrelevant in such
>> issues, it
>> is the OS that matters (like "__FreeBSD__").
>> So if there is a macro like "darwin" known during the build, use that
>> instead
>> of __ppc__ ; else you can always use the catchall "__APPLE__"
>
> or fix the autoconf test to check for the header "crypt.h" and
> change it
> to #ifdef HAVE_CRYPT_H -- which is the proper, cross-platform way
> to do
> things.
There is no check for crypt.h during the configure phase, so I will
try JFM's suggestion, using "darwin".
Bill, I will sent you an updated info and patch file later today, so
you can test it on your intel Mac.
BTW, the upstream code does differentiate between PPC and Intel Macs
at other places, eg:
....
dnl Intel MacOSX requires reduced optimisation for PCRE code
if test "`uname -a | grep Darwin`"; then
if test "`uname -a | grep i386`"; then
CFLAGS="$CFLAGS -O1"
else
CFLAGS="$CFLAGS -O2"
fi
else
CFLAGS="$CFLAGS -O2"
fi
...
thanks everyone for their input.
- Koen.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel