diff options
author | Fritz Elfert <felfert@to.com> | 2000-10-09 14:45:10 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2000-10-09 14:45:10 +0000 |
commit | 64535f8c1600f3501bec9aab107199a2c1293df6 (patch) | |
tree | fb4be8095dd6742762bab320a36c0fe1ab415f0c | |
parent | 088423c49e616c16f55bae5453b46cf810648afc (diff) | |
download | plptools-64535f8c1600f3501bec9aab107199a2c1293df6.tar.gz plptools-64535f8c1600f3501bec9aab107199a2c1293df6.tar.bz2 plptools-64535f8c1600f3501bec9aab107199a2c1293df6.zip |
Misc. small fixes.
-rw-r--r-- | acinclude.m4 | 3 | ||||
-rw-r--r-- | 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) |