PTHREAD_CFLAGS and PTHREAD_LIBS to avoid duplicating the options
later.
(WITH_CC): If on AIX and not using gcc, add -qhalt=e and -O to
- CFLAGS if similar options are not already present.
+ CFLAGS if similar options are not already present. Log messages
+ when doing so.
2004-07-16 Ken Raeburn <raeburn@mit.edu>
# in function calls. Let's try to fix that with -qhalt=e.
case "$CC $CFLAGS" in
*-qhalt=*) ;;
- *) CFLAGS="$CFLAGS -qhalt=e" ;;
+ *)
+ CFLAGS="$CFLAGS -qhalt=e"
+ AC_MSG_NOTICE(adding -qhalt=e for better error reporting)
+ ;;
esac
# Also, the optimizer isn't turned on by default, which means
# the static inline functions get left in random object files,
# includes k5-int.h whether it uses threads or not.
case "$CC $CFLAGS" in
*-O*) ;;
- *) CFLAGS="$CFLAGS -O" ;;
+ *)
+ CFLAGS="$CFLAGS -O"
+ AC_MSG_NOTICE(adding -O for inline thread-support function elimination)
+ ;;
esac
fi
fi