From: Jim Meyering Date: Wed, 19 Mar 2003 09:03:40 +0000 (+0000) Subject: (jm_MACROS): Include $(EXEEXT) in DF_PROG's program X-Git-Tag: v4.5.11~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a54791dc18a8dbc7bd576eedbaacb6f055f05ef9;p=thirdparty%2Fcoreutils.git (jm_MACROS): Include $(EXEEXT) in DF_PROG's program name, since automake only adds $(EXEEXT) to programs in its *_PROGRAMS. Arrange to compile the corresponding stub function if fchdir is missing. --- diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 1a3f317e18..f4143b1a3b 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -1,4 +1,4 @@ -#serial 60 -*- autoconf -*- +#serial 61 -*- autoconf -*- m4_undefine([AC_LANG_SOURCE(C)]) dnl The following is identical to the definition in c.m4 @@ -220,7 +220,7 @@ AC_DEFUN([jm_MACROS], jm_FSTYPENAME jm_FILE_SYSTEM_USAGE([space=yes], [space=no]) if test $list_mounted_fs = yes && test $space = yes; then - DF_PROG=df + DF_PROG='df$(EXEEXT)' AC_LIBOBJ(fsusage) AC_LIBOBJ(mountlist) fi @@ -229,6 +229,7 @@ AC_DEFUN([jm_MACROS], # If any of these functions don't exist (e.g. DJGPP 2.03), # use the corresponding stub. + AC_CHECK_FUNC([fchdir], , [AC_LIBOBJ(fchdir-stub)]) AC_CHECK_FUNC([fchown], , [AC_LIBOBJ(fchown-stub)]) AC_CHECK_FUNC([lstat], , [AC_LIBOBJ(lstat-stub)]) AC_CHECK_FUNC([readlink], , [AC_LIBOBJ(readlink-stub)])