[Spread-cvs] cvs commit: spread/daemon/buildtools aclocal.m4

jonathan at spread.org jonathan at spread.org
Sun Oct 3 01:15:03 EDT 2004


jonathan    04/10/03 01:15:03

  Modified:    daemon/buildtools aclocal.m4
  Log:
  Add new readme file for building from CVS and related issues.
  Apply correctly indented version of FreeBSD pthreads autoconf test from
  Daniel Rall.
  
  Revision  Changes    Path
  1.3       +17 -21    spread/daemon/buildtools/aclocal.m4
  
  Index: aclocal.m4
  ===================================================================
  RCS file: /storage/cvsroot/spread/daemon/buildtools/aclocal.m4,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- aclocal.m4	23 Sep 2002 20:10:29 -0000	1.2
  +++ aclocal.m4	3 Oct 2004 05:15:03 -0000	1.3
  @@ -1,23 +1,19 @@
  -dnl FreeBSD -pthread check - Jonathan McDowell <<EMAIL: PROTECTED>>
  +dnl FreeBSD -pthread check - Jonathan McDowell
   AC_DEFUN(AC_PTHREAD_FREEBSD,
  -[AC_MSG_CHECKING([if we need -pthread for threads])
  -AC_CACHE_VAL(ac_ldflag_pthread,
  -[ac_save_LDFLAGS="$LDFLAGS"
  -LDFLAGS="-pthread $LDFLAGS"
  -AC_TRY_LINK(
  -[
  -char pthread_create();
  -],
  -pthread_create();,
  -eval "ac_ldflag_pthread=yes",
  -eval "ac_ldflag_pthread=no"),
  -LIBS="$ac_save_LDFLAGS"
  -])
  -if eval "test \"`echo $ac_ldflag_pthread`\" = yes"; then
  -	AC_MSG_RESULT(yes)
  -else
  -	LDFLAGS="$ac_save_LDFLAGS"
  -	AC_MSG_RESULT(no)
  -fi
  -])
  +         [AC_MSG_CHECKING([if we need -pthread for threads])
  +          AC_CACHE_VAL(ac_ldflag_pthread,
  +                       [ac_save_LDFLAGS="$LDFLAGS"
  +                        LDFLAGS="-pthread $LDFLAGS"
  +                        AC_TRY_LINK([char pthread_create();],
  +                                    pthread_create();,
  +                                    eval "ac_ldflag_pthread=yes",
  +                                    eval "ac_ldflag_pthread=no"),
  +                                    LIBS="$ac_save_LDFLAGS"
  +                       ])
  +          if eval "test \"`echo $ac_ldflag_pthread`\" = yes"; then
  +            AC_MSG_RESULT(yes)
  +          else
  +            AC_MSG_RESULT(no)
  +          fi
  +         ])
   
  
  
  




More information about the Spread-cvs mailing list