view m4/pthread.m4 @ 12909:86f1ff71881a

utime: remove obsolete module This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been unnecessary for years, and has been marked as obsolete for 10 months. * modules/utime: Remove file. * lib/utime.c: Remove file. * m4/utime.m4: Remove file. * m4/utimes-null.m4: Remove file. * doc/posix-functions/utime.texi (utime): Remove reference to the module. Move the sole "fixed by gnulib" item into the "problems not fixed by Gnulib" list. * MODULES.html.sh (func_all_modules): Remove reference to "utime".
author Jim Meyering <meyering@redhat.com>
date Thu, 04 Mar 2010 15:36:51 +0100
parents c2cbabec01dd
children b3e78c51aab6
line wrap: on
line source

# pthread.m4
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_PTHREAD_CHECK],
  [AC_CHECK_HEADERS_ONCE([pthread.h])

   LIB_PTHREAD=
   PTHREAD_H=
   if test "$ac_cv_header_pthread_h" = yes; then
     gl_saved_libs=$LIBS
     AC_SEARCH_LIBS([pthread_create], [pthread],
       [if test "$ac_cv_search_pthread_create" != "none required"; then
          LIB_PTHREAD="$ac_cv_search_pthread_create"
        fi])
     LIBS="$gl_saved_libs"
   else
     PTHREAD_H='pthread.h'
   fi

   AC_SUBST([LIB_PTHREAD])
   AC_SUBST([PTHREAD_H])

   AC_REQUIRE([AC_C_RESTRICT])
])