diff options
Diffstat (limited to 'libf2c')
-rw-r--r-- | libf2c/ChangeLog | 6 | ||||
-rw-r--r-- | libf2c/Makefile.in | 5 | ||||
-rw-r--r-- | libf2c/aclocal.m4 | 4 | ||||
-rwxr-xr-x | libf2c/configure | 2 |
4 files changed, 12 insertions, 5 deletions
diff --git a/libf2c/ChangeLog b/libf2c/ChangeLog index 547dfc7db69..c5e41bafc57 100644 --- a/libf2c/ChangeLog +++ b/libf2c/ChangeLog @@ -1,3 +1,9 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * Makefile.in: Allow for PWDCMD to override hardcoded pwd. + * aclocal.m4: Likewise. + * configure: Regenerate. + 2002-05-08 Alexandre Oliva <aoliva@redhat.com> * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at diff --git a/libf2c/Makefile.in b/libf2c/Makefile.in index ef42e39d1a7..35f77d1eb78 100644 --- a/libf2c/Makefile.in +++ b/libf2c/Makefile.in @@ -20,6 +20,7 @@ #02111-1307, USA. SHELL = /bin/sh +PWD = $${PWDCMD-pwd} MAKEOVERRIDES= .NOEXPORTS: @@ -255,8 +256,8 @@ rebuilt: configure installcheck installdirs all-unilib subdir_do: - @rootpre=`pwd`/; export rootpre; \ - srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ + @rootpre=`${PWD}`/; export rootpre; \ + srcrootpre=`cd $(srcdir); ${PWD}`/; export srcrootpre; \ for i in .. $(DODIRS); do \ if [ x$$i != x.. ]; then \ if [ -f ./$$i/Makefile ]; then \ diff --git a/libf2c/aclocal.m4 b/libf2c/aclocal.m4 index 5cd9369daff..6e635169bba 100644 --- a/libf2c/aclocal.m4 +++ b/libf2c/aclocal.m4 @@ -1,4 +1,4 @@ -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl Copyright (C) 1994, 1995-8, 1999, 2001, 2002 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. @@ -48,7 +48,7 @@ AC_SUBST(toplevel_srcdir) # These need to be absolute paths, yet at the same time need to # canonicalize only relative paths, because then amd will not unmount # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. -glibcpp_builddir=`pwd` +glibcpp_builddir=`${PWDCMD-pwd}` case $srcdir in [\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;; *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; diff --git a/libf2c/configure b/libf2c/configure index ff950127844..c55d97b2864 100755 --- a/libf2c/configure +++ b/libf2c/configure @@ -796,7 +796,7 @@ toplevel_srcdir=\${top_srcdir}/$toprel # These need to be absolute paths, yet at the same time need to # canonicalize only relative paths, because then amd will not unmount # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. -glibcpp_builddir=`pwd` +glibcpp_builddir=`${PWDCMD-pwd}` case $srcdir in \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; |