X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Freadlink.m4;h=1c347a0c9aea01c66c530eb37127403b88ed8847;hb=74f8d5870e0fd68701ff379775a5f0a439bfb5b3;hp=ec53e14db86a6316fab7be3c1d6d94c40d07b43d;hpb=2b2d00f3641023f822d6f0aa981b1570de2196ce;p=gnulib.git diff --git a/m4/readlink.m4 b/m4/readlink.m4 index ec53e14db..1c347a0c9 100644 --- a/m4/readlink.m4 +++ b/m4/readlink.m4 @@ -1,20 +1,27 @@ -# readlink.m4 serial 2 -dnl Copyright (C) 2003 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. +# readlink.m4 serial 4 +dnl Copyright (C) 2003, 2007 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_FUNC_READLINK], [ - AC_CHECK_FUNCS(readlink) + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([readlink]) if test $ac_cv_func_readlink = no; then + HAVE_READLINK=0 AC_LIBOBJ(readlink) gl_PREREQ_READLINK fi ]) +# Like gl_FUNC_READLINK, except prepare for separate compilation (no AC_LIBOBJ). +AC_DEFUN([gl_FUNC_READLINK_SEPARATE], +[ + AC_CHECK_FUNCS_ONCE([readlink]) + gl_PREREQ_READLINK +]) + # Prerequisites of lib/readlink.c. AC_DEFUN([gl_PREREQ_READLINK], [