[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2 of 3] tools/m4: add AC_LANG_SOURCE to fix autoconf warnings



On Wed, 2012-06-13 at 14:10 +0100, Olaf Hering wrote:
> Please rerun autoconf after applying this.

I did this but there was no change to the configure script.

I'm going to assume this is normal with the 2.67 version of autoconf and
that changes would only be expected with 2.68 which you are using. IOW
I'll commit as is.

> Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
> 
> diff -r 0dfe08c91739 -r 59762b446ab4 tools/m4/pthread.m4
> --- a/tools/m4/pthread.m4
> +++ b/tools/m4/pthread.m4
> @@ -24,13 +24,13 @@ AC_DEFUN([AX_CHECK_PTHREAD],[
>          AX_PTHREAD_CV2VARS
>          AX_PTHREAD_VARS([AX_SAVEVAR_SAVE])
>          AX_PTHREAD_VARS([AX_PTHREAD_VAR_APPLY])
> -        AC_LINK_IFELSE([
> +        AC_LINK_IFELSE([AC_LANG_SOURCE([
>  #include <pthread.h>
>  int main(void) {
>    pthread_atfork(0,0,0);
>    pthread_create(0,0,0,0);
>  }
> -],[],[ax_cv_pthread_flags=failed])
> +])],[],[ax_cv_pthread_flags=failed])
>          AX_PTHREAD_VARS([AX_SAVEVAR_RESTORE])
>      ])
>      if test "x$ax_cv_pthread_flags" = xfailed; then
> diff -r 0dfe08c91739 -r 59762b446ab4 tools/m4/ptyfuncs.m4
> --- a/tools/m4/ptyfuncs.m4
> +++ b/tools/m4/ptyfuncs.m4
> @@ -9,7 +9,7 @@ AC_DEFUN([AX_CHECK_PTYFUNCS], [
>              fi
>              AX_SAVEVAR_SAVE(LIBS)
>              LIBS="$LIBS $ax_cv_ptyfuncs_libs"
> -            AC_LINK_IFELSE([
> +            AC_LINK_IFELSE([AC_LANG_SOURCE([
>  #ifdef INCLUDE_LIBUTIL_H
>  #include INCLUDE_LIBUTIL_H
>  #endif
> @@ -17,7 +17,7 @@ int main(void) {
>    openpty(0,0,0,0,0);
>    login_tty(0);
>  }
> -],[
> +])],[
>                  break
>              ],[])
>              AX_SAVEVAR_RESTORE(LIBS)
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.