From f719d454329a1a54ff2d569feaf10ceee7cead50 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 17 Apr 2009 16:23:42 +0200 Subject: configure.in: not all gccs support -Wno-pointer-sign Signed-off-by: Thiago Macieira --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 6992487b..fd972b49 100644 --- a/configure.in +++ b/configure.in @@ -284,7 +284,10 @@ if test "x$GCC" = "xyes"; then esac case " $CFLAGS " in *[\ \ ]-Wno-pointer-sign[\ \ ]*) ;; - *) CFLAGS="$CFLAGS -Wno-pointer-sign" ;; + *) if cc_supports_flag -Wno-pointer-sign; then + CFLAGS="$CFLAGS -Wno-pointer-sign" + fi + ;; esac # http://bugs.freedesktop.org/show_bug.cgi?id=19195 -- cgit From 6eddb6e1229b617ad44c8d61107983229dc7d589 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 7 Jan 2009 12:46:53 +0100 Subject: configure.in: fail abstract socket test gracefully when cross-compiling * configure.in: only run AC_CACHE_CHECK if enable_abstract_sockets=auto * configure.in: warn that, when cross-compiling, we're unable to detect abstract sockets availability automatically Signed-off-by: Thiago Macieira --- configure.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index fd972b49..9e047eae 100644 --- a/configure.in +++ b/configure.in @@ -814,8 +814,9 @@ AC_CHECK_FUNCS(getpeerucred getpeereid) #### Abstract sockets -if ! test x$enable_abstract_sockets = xno; then +if test x$enable_abstract_sockets = xauto; then AC_LANG_PUSH(C) +warn_on_xcompile=no AC_CACHE_CHECK([abstract socket namespace], ac_cv_have_abstract_sockets, [AC_RUN_IFELSE([AC_LANG_PROGRAM( @@ -855,8 +856,15 @@ AC_CACHE_CHECK([abstract socket namespace], exit (0); ]])], [ac_cv_have_abstract_sockets=yes], - [ac_cv_have_abstract_sockets=no] + [ac_cv_have_abstract_sockets=no], + [ + ac_cv_have_abstract_sockets=no + warn_on_xcompile=yes + ] )]) +if test x$warn_on_xcompile = xyes ; then + AC_MSG_WARN([Cannot check for abstract sockets when cross-compiling, please use --enable-abstract-sockets]) +fi AC_LANG_POP(C) fi -- cgit