You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/09/21 13:20:07 UTC
More guessing?
If Configure could also guess the C compiler, the average user would have to do
no more than run it. The following script does the job, I think ... all those
in favour?
#!/bin/sh
# Attempt to guess which C compiler we should use...
for path in `echo $PATH | sed "s/:/ /g"`
do
if [ -x $path/gcc ]; then echo gcc; exit; fi
done
for path in `echo $PATH | sed "s/:/ /g"`
do
if [ -x $path/cc ]; then echo cc; exit; fi
done
Cheers,
Ben.
--
Ben Laurie Phone: +44 (181) 994 6435
Freelance Consultant and Fax: +44 (181) 994 6472
Technical Director Email: ben@algroup.co.uk
A.L. Digital Ltd, URL: http://www.algroup.co.uk
London, England. Apache Group member (http://www.apache.org)