[systemd-commits] 2 commits - m4/acx_libwrap.m4 m4/attributes.m4 TODO

Lennart Poettering lennart at kemper.freedesktop.org
Tue Feb 8 03:30:44 PST 2011


 TODO              |    2 ++
 m4/acx_libwrap.m4 |    4 ++--
 m4/attributes.m4  |   12 ++++++------
 3 files changed, 10 insertions(+), 8 deletions(-)

New commits:
commit e2811d6fa5ff6de6d7346cbc7b07f999acf82427
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Feb 8 12:12:23 2011 +0100

    update TODO

diff --git a/TODO b/TODO
index bb42006..2152f69 100644
--- a/TODO
+++ b/TODO
@@ -14,6 +14,8 @@ Bugs:
 
 Features:
 
+* pull in by udev change event instead of only start event
+
 * PID heuristik bei Type=forking ausmachbar machen
 
 * maybe introduce ExecRestartPre=

commit c18514440d7edce2ca7ae14cc2c88cfbac436e67
Author: Lucas De Marchi <lucas.demarchi at profusion.mobi>
Date:   Wed Jan 26 17:59:11 2011 -0200

    build-sys: fix AC_COMPILE_IFELSE tests
    
    This removes some warnings when bootstrapping. The warnings were introduced
    in autoconf 2.68. Reference:
    
    http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html
    
    The following code
    
    	AC_COMPILE_IFELSE([
    		<MY C CODE HERE>
    		], ...)
    
    is changed to
    
    	AC_COMPILE_IFELSE(
    		[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
    		<MY C CODE HERE>
    		])], ...)

diff --git a/m4/acx_libwrap.m4 b/m4/acx_libwrap.m4
index e160214..ccf8afc 100644
--- a/m4/acx_libwrap.m4
+++ b/m4/acx_libwrap.m4
@@ -4,13 +4,13 @@ saved_LIBS="$LIBS"
 LIBS="$LIBS -lwrap"
 AC_MSG_CHECKING([for tcpwrap library and headers])
 AC_LINK_IFELSE(
-AC_LANG_PROGRAM(
+[AC_LANG_PROGRAM(
 [#include <tcpd.h>
 #include <syslog.h>
 int allow_severity = LOG_INFO;
 int deny_severity = LOG_WARNING;],
 [struct request_info *req;
-return hosts_access (req);]),
+return hosts_access (req);])],
 [AC_DEFINE(HAVE_LIBWRAP, [], [Have tcpwrap?])
 LIBWRAP_LIBS="-lwrap"
 AC_MSG_RESULT(yes)],
diff --git a/m4/attributes.m4 b/m4/attributes.m4
index 3bf96a3..9d561c2 100644
--- a/m4/attributes.m4
+++ b/m4/attributes.m4
@@ -39,7 +39,7 @@ AC_DEFUN([CC_CHECK_CFLAGS_SILENT], [
   AC_CACHE_VAL(AS_TR_SH([cc_cv_cflags_$1]),
     [ac_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $1"
-     AC_COMPILE_IFELSE([int a;],
+     AC_COMPILE_IFELSE([AC_LANG_SOURCE([int a;])],
        [eval "AS_TR_SH([cc_cv_cflags_$1])='yes'"],
        [eval "AS_TR_SH([cc_cv_cflags_$1])='no'"])
      CFLAGS="$ac_save_CFLAGS"
@@ -147,7 +147,7 @@ AC_DEFUN([CC_CHECK_ATTRIBUTE], [
     AS_TR_SH([cc_cv_attribute_$1]),
     [ac_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $cc_cv_werror"
-     AC_COMPILE_IFELSE([$3],
+     AC_COMPILE_IFELSE([AC_LANG_SOURCE([$3])],
        [eval "AS_TR_SH([cc_cv_attribute_$1])='yes'"],
        [eval "AS_TR_SH([cc_cv_attribute_$1])='no'"])
      CFLAGS="$ac_save_CFLAGS"
@@ -271,11 +271,11 @@ AC_DEFUN([CC_FUNC_EXPECT], [
     [cc_cv_func_expect],
     [ac_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $cc_cv_werror"
-     AC_COMPILE_IFELSE(
+     AC_COMPILE_IFELSE([AC_LANG_SOURCE(
        [int some_function() {
         int a = 3;
         return (int)__builtin_expect(a, 3);
-	}],
+	}])],
        [cc_cv_func_expect=yes],
        [cc_cv_func_expect=no])
      CFLAGS="$ac_save_CFLAGS"
@@ -295,11 +295,11 @@ AC_DEFUN([CC_ATTRIBUTE_ALIGNED], [
     [ac_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $cc_cv_werror"
      for cc_attribute_align_try in 64 32 16 8 4 2; do
-        AC_COMPILE_IFELSE([
+        AC_COMPILE_IFELSE([AC_LANG_SOURCE([
           int main() {
             static char c __attribute__ ((aligned($cc_attribute_align_try))) = 0;
             return c;
-          }], [cc_cv_attribute_aligned=$cc_attribute_align_try; break])
+          }])], [cc_cv_attribute_aligned=$cc_attribute_align_try; break])
      done
      CFLAGS="$ac_save_CFLAGS"
   ])



More information about the systemd-commits mailing list