From cfc8bb62da40ad66cead6027ec3c4d10e3bb54a5 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 4 Feb 2012 19:09:28 +0000 Subject: *** empty log message *** --- Changes | 2 ++ configure.ac | 15 +++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index bf3bb77..c664503 100644 --- a/Changes +++ b/Changes @@ -29,6 +29,8 @@ TODO: EV_STANDALONE == NO_HASSEL (do not use clock_gettime in ev_standalone) - avoid "AVOIDING FINISHING BEFORE RETURNING" idiom. - support new EV_API_STATIC mode to make all libev symbols static. + - supply default CFLAGS of -g -O3 with gcc when original CFLAGS + were empty. 4.04 Wed Feb 16 09:01:51 CET 2011 - fix two problems in the native win32 backend, where reuse of fd's diff --git a/configure.ac b/configure.ac index 5ad67f2..31d0a25 100644 --- a/configure.ac +++ b/configure.ac @@ -1,3 +1,5 @@ +orig_CFLAGS="$CFLAGS" + AC_INIT AC_CONFIG_SRCDIR([ev_epoll.c]) @@ -5,13 +7,18 @@ AM_INIT_AUTOMAKE(libev,4.11) dnl also update ev.h! AC_CONFIG_HEADERS([config.h]) AM_MAINTAINER_MODE -AC_PROG_INSTALL -AC_PROG_LIBTOOL +AC_PROG_CC -if test "x$GCC" = xyes ; then - CFLAGS="-O3 $CFLAGS" +dnl Supply default CFLAGS, if not specified +if test -z "$orig_CFLAGS"; then + if test x$GCC = xyes; then + CFLAGS="-g -O3" + fi fi +AC_PROG_INSTALL +AC_PROG_LIBTOOL + m4_include([libev.m4]) AC_CONFIG_FILES([Makefile]) -- cgit v1.2.3