summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-01-21 02:20:55 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-01-21 03:38:10 +0100
commit0ef7dc215071c486495bf86e85661f21733f200e (patch)
tree2df91c8fbbf8e54384873598b8d41d4e22d1c2f0
parent8376efac671aee91de711d54eeb33d453ca5902e (diff)
downloadratpoison-0ef7dc215071c486495bf86e85661f21733f200e.zip
configure.in: compiler handling
* no need to explicitely check for gcc, it will be picked up if available * prepend to CFLAGS instead of appending * no need to add -O2 if gcc, autoconf automatically does that when appropriate
-rw-r--r--configure.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index d7d2999..858ddac 100644
--- a/configure.in
+++ b/configure.in
@@ -77,11 +77,10 @@ AC_SUBST(XFT_CFLAGS)
AC_SUBST(XFT_LIBS)
dnl Checks for programs.
-AC_CHECK_TOOL(CC, gcc)
AC_PROG_CC
if test "x$CC" = "xgcc"; then
- CFLAGS="$CFLAGS -Wall -O2"
+ CFLAGS="-Wall $CFLAGS"
fi
dnl check for an x terminal emulator