[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: configure fails when CDPATH is set (ITS#551)



I've forwarded your bug report to bug-autoconf@gnu.org as
the problem is down deep in autoconf, the tool that generates
our configure scripts.

At 10:09 AM 5/31/00 GMT, Andreas.Ley@rz.uni-karlsruhe.de wrote:
>Full_Name: Andreas Ley
>Version: 1.2.10
>OS: IRIX 6.2
>URL: 
>Submission from: (NULL) (129.13.64.65)
>
>
>If the environment variable CDPATH is set, some operating systems print the
>directory they changed to after executing a cd command.
>
>openldap's configure script contains expressions like `cd $dir && pwd`
>which in fact gives the directory twice, garbling some sed commands later.
>
>One should change aclocal.m4 like this:
>
>*** aclocal.m4.orig     Tue Jul 20 02:20:54 1999
>--- aclocal.m4  Wed May 31 11:06:00 2000
>***************
>*** 35,41 ****
>  VERSION=[$2]
>  AC_SUBST(VERSION)
>  dnl test to see if srcdir already configured
>! if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status;
>then
>    AC_MSG_ERROR([source directory already configured; run "make distclean"
>there first])
>  fi
>  ifelse([$3],,
>--- 35,41 ----
>  VERSION=[$2]
>  AC_SUBST(VERSION)
>  dnl test to see if srcdir already configured
>! if test "`cd $srcdir >/dev/null && pwd`" != "`pwd`" && test -f
>$srcdir/config.status; then
>    AC_MSG_ERROR([source directory already configured; run "make distclean"
>there first])
>  fi
>  ifelse([$3],,
>***************
>*** 44,50 ****
>  AC_REQUIRE([AM_SANITY_CHECK])
>  AC_REQUIRE([AC_ARG_PROGRAM])
>  dnl FIXME This is truly gross.
>! missing_dir=`cd $ac_aux_dir && pwd`
>  AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
>  AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
>  AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
>--- 44,50 ----
>  AC_REQUIRE([AM_SANITY_CHECK])
>  AC_REQUIRE([AC_ARG_PROGRAM])
>  dnl FIXME This is truly gross.
>! missing_dir=`cd $ac_aux_dir >/dev/null && pwd`
>  AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
>  AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
>  AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
>
>or use a construct like ltconfig:
>
>if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
>
>
>
>