2005-12-28 Tollef Fog Heen <tfheen@err.no>
* configure.in, Makefile.am: Only use -Wall and other gcc-only
flags when we don't have a set of CFLAGS already set and we're
using gcc. Freedesktop #4888.
+2005-12-28 Tollef Fog Heen <tfheen@err.no>
+
+ * configure.in, Makefile.am: Only use -Wall and other gcc-only
+ flags when we don't have a set of CFLAGS already set and we're
+ using gcc. Freedesktop #4888.
+
2005-10-17 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Do AC_MSG_RESULT([no]) even if $4 is set (so we don't
EXTRA_DIST = $(m4_DATA) $(man_MANS) README.win32
bin_PROGRAMS = pkg-config
-AM_CFLAGS=-g -Wall -O2
+AM_CFLAGS=@WARN_CFLAGS@
INCLUDES=-DPKG_CONFIG_PC_PATH="\"$(pc_path)\"" $(included_glib_includes)
esac
AC_MSG_RESULT($use_indirect_deps)
+#
+# Choose default CFLAGS and warnings depending on compiler.
+#
+
+WARN_CFLAGS=""
+if test "${GCC}" = "yes" && test "${ac_env_CFLAGS_set}" != "set"; then
+ WARN_CFLAGS="-g -Wall -O2"
+fi
+AC_SUBST(WARN_CFLAGS)
+
AC_DEFINE_UNQUOTED(ENABLE_INDIRECT_DEPS, `test $use_indirect_deps = no; echo $?`, [Link library to all dependent libraries, not only directly needed ones])
AC_MSG_CHECKING([for Win32])