From owner-freebsd-questions Fri Apr 4 23:42:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA25930 for questions-outgoing; Fri, 4 Apr 1997 23:42:42 -0800 (PST) Received: from popeye.remuda.com (fisbin.remuda.com [205.153.153.59]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id XAA25925 for ; Fri, 4 Apr 1997 23:42:37 -0800 (PST) Received: from localhost (scotto@localhost) by popeye.remuda.com (8.6.12/8.6.12) with SMTP id XAA00212; Fri, 4 Apr 1997 23:40:41 -0800 Date: Fri, 4 Apr 1997 23:40:41 -0800 (PST) From: Scott Overholser To: Zahemszky Gabor cc: FreeBSD questions Subject: Re: HylaFAX broken on 2.2.0-R? In-Reply-To: <199704031353.PAA01207@CoDe.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk just figured this out. runMake and some other functions "return" explicitly. apparently return returns it's own exit status. after removing the return statements from captureX(), capture(), runMake(), and runMakeX(), the configure script ran perfectly - and the code built too. my only question now is why didn't /bin/sh behave similarly in 2.1.x? thanks, -scotto On Thu, 3 Apr 1997, Zahemszky Gabor wrote: > > > > configure generates a log file which clearly shows the compiles failing. > > Somehow, configure thinks it succeeds. > > Please, send the runMake function, too! > > > CheckForLibrary() > > { > > f=$1; shift > > libs="$@"; > > cat>t.c< > int t() { $f(); return 0; } > > int main(){ t(); return 0; } > > EOF > > runMake t "t:; ${CCOMPILER} ${ENVOPTS} t.c $libs" > > } > > > > # > > # Look for an include file. > > # > > CheckForIncludeFile() > > { > > (for i do > > echo "#include \"$i\"" > > done)>t.c > > runMake t "t:; ${CCOMPILER} ${ENVOPTS} -E t.c" > > } > > > > if [ "$LIBIMAGE" = auto ]; then > > if CheckForLibrary iopen -limage && CheckForIncludeFile gl/image.h; > > then > > Note "Looks like there is support for SGI RGB images." > > LIBIMAGE=yes > > else > > LIBIMAGE=no > > fi > > Both CheckForLibrary, and CheckForIncludeFile return with the exit code of > runMake. I don't know why, runMake exit with 0. So the problem is with > runMake. >