From 64535f8c1600f3501bec9aab107199a2c1293df6 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 9 Oct 2000 14:45:10 +0000 Subject: Misc. small fixes. --- acinclude.m4 | 3 ++- configure.in | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index c803b59..33e01db 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -82,7 +82,8 @@ dnl this was AC_PROG_CC. I had to include it manualy, since I had to patch it CFLAGS="$CFLAGS -W -ansi -pedantic" fi fi - + else + AC_MSG_RESULT(Using predefined CFLAGS $CFLAGS) fi case "$host" in diff --git a/configure.in b/configure.in index a7e2ca6..3b8a96c 100644 --- a/configure.in +++ b/configure.in @@ -16,10 +16,24 @@ AC_CHECK_COMPILERS AC_PROG_AWK AC_PATH_PROG(SED,sed) -CFLAGS="-O" -test "$GCC" = yes && CFLAGS="-O2 -Wall" -AC_PATH_PROG(CC_PATH, $CC) -test "$CC_PATH" = /opt/SUNWspro/bin/cc && CFLAGS="-xO2 -v" +dnl This is stupid for two resaons: +dnl +dnl 1. It doesn't save and restore CFLAGS if it's _not_ Sun's cc +dnl (these have been set already in AC_CHECK_COMPILERS +dnl 2. It assumes cc installed at a fixed path which may not be true +dnl pkgadd -r can install anywhere. +dnl +dnl A correct version should check by using cc's _behavior_, not path +dnl and save and restore CFLAGS, if it's not Sun's cc. +dnl +dnl -> Commented out for now because i have gcc on Solaris, no Sun cc. +dnl If somebody complains, (s)he should send me some cc output and i +dnl can add a correct check to AC_CHECK_COMPILERS (where it belongs). +dnl -Fritz +dnl +dnl test "$GCC" = yes && CFLAGS="-O2 -Wall" +dnl AC_PATH_PROG(CC_PATH, $CC) +dnl test "$CC_PATH" = /opt/SUNWspro/bin/cc && CFLAGS="-xO2 -v" dnl checking for aix AC_MSG_CHECKING(for AIX) -- cgit v1.2.3