$NetBSD: patch-aa,v 1.12 2003/05/23 09:26:59 wiz Exp $ --- configure.orig Thu Nov 15 18:21:05 2001 +++ configure @@ -59,7 +59,7 @@ LIBGL=auto # auto-enable build of SGI LIBIMAGE=auto # auto-enable build of SGI -limage apps : ${CC=} # name of C compiler to use : ${CCOMPILER=} # full pathname of C compiler -: ${OPTIMIZER=-O} # Optimization flag +: ${OPTIMIZER=} # Optimization flag : ${ENVOPTS=} # CC opts for ANSI C compilation : ${MAKE=make} # make to use @@ -487,7 +487,7 @@ EOF checkCompiler() { - compiler=$1 + compiler="$*" if isGNU $compiler; then ISGCC=yes else @@ -513,7 +513,7 @@ checkCompiler() $RM dummy dummy.o capture $compiler -o dummy ${C_ANSI} dummy.c && { CC=$compiler; - test -z "${CCOMPILER-}" && CCOMPILER=`findApp $compiler $PATH` + test -z "${CCOMPILER-}" && CCOMPILER=$compiler test -z "${ENVOPTS-}" && ENVOPTS="${C_ANSI-}" return 0 } @@ -1705,6 +1705,7 @@ relativize() -[LR]/*) echo "$i" ;; -L*) echo "$i" | sed 's;^-L;-L../;' ;; -R*) echo "$i" | sed 's;^-R;-R../;' ;; + -W*) echo "$i" ;; *) echo "../$i" ;; esac done) | tr '\012' ' '