make the linux/solaris variant of CPP_NAME the default

This commit is contained in:
Bill Currie 2002-04-07 06:00:13 +00:00
parent e49672591a
commit bad8b0fcf2
1 changed files with 1 additions and 6 deletions

View File

@ -101,18 +101,13 @@ AC_ARG_WITH(cpp,
if test "x$cpp_name" != xauto; then if test "x$cpp_name" != xauto; then
CPP_NAME="$cpp_name" CPP_NAME="$cpp_name"
else else
CPP_NAME="cpp %d -o %o %i"
case "$target_os" in case "$target_os" in
*bsd*) *bsd*)
touch conftest.c touch conftest.c
CPP_NAME="`(f=\`$CC -v -E -Dfoo conftest.c -o conftest.i 2>&1 | grep -e -Dfoo\`; set $f; echo "$1")` %d %i %o" CPP_NAME="`(f=\`$CC -v -E -Dfoo conftest.c -o conftest.i 2>&1 | grep -e -Dfoo\`; set $f; echo "$1")` %d %i %o"
rm -f conftest.[ci] rm -f conftest.[ci]
;; ;;
linux*)
CPP_NAME="cpp %d -o %o %i"
;;
solaris*)
CPP_NAME="cpp %d -o %o %i"
;;
esac esac
fi fi