On Apr 8, 2008, at 3:26 PM, [EMAIL PROTECTED] wrote:
[ ... ]
> configure: error: no acceptable C compiler found in $PATH]
>
> But I have GCC 4.0 and I have also copied it to /bin.
> How can I overcome this problem.Please help.

Take a look at the last part of config.log; it will probably indicate  
the problem.  Normally, a Mac user would install the Xcode developer  
tools and would get a /usr/bin/cc which is a modified version of GCC  
4.0.1 (currently).  Also note that this version of the compiler has an  
optimizer bug (I believe http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045) 
; you can either compile with CFLAGS='-O0', or manually specify all of  
the -f flags enabled by -O1 or -O2 by hand.

Something like this:

env CFLAGS='-O0 -fdefer-pop -fdelayed-branch -fguess-branch- 
probability -fcprop-registers -floop-optimize -fif-conversion -fif- 
conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse - 
ftree-ch -fmerge-constants -fthread-jumps -fcrossjumping -foptimize- 
sibling-calls -fcse-follow-jumps  -fcse-skip-blocks -fgcse  -fgcse-lm - 
fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop - 
frerun-loop-opt -fcaller-saves -fforce-mem -fpeephole2 -fschedule- 
insns  -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove - 
fno-strict-aliasing -fdelete-null-pointer-checks -freorder-blocks  - 
freorder-functions -funit-at-a-time -falign-functions -falign-jumps - 
falign-loops -falign-labels -ftree-pre'  LDFLAGS='-L/usr/local/lib'  
CPPFLAGS='-I/usr/local/include' ./configure --prefix=/usr -- 
sysconfdir=/etc/spam/clamav --with-dbdir=/var/clamav

...comes pretty close to setting ClamAV up using the same paths as the  
old 0.88.x version which came with OSX Server.

Regards,
-- 
-Chuck

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to