]> sourceware.org Git - glibc.git/commitdiff
Check for pwd binary.
authorUlrich Drepper <drepper@redhat.com>
Fri, 14 Jul 2000 16:41:15 +0000 (16:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 14 Jul 2000 16:41:15 +0000 (16:41 +0000)
configure.in

index 4073ff190e9bce7b3186c7b0c776e843b10ae541..bf7b307e2ec832e17d443df65110d8c4a13ea9cf 100644 (file)
@@ -505,6 +505,16 @@ if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
 fi
 AC_PROG_LN_S
 
+# We need the physical current working directory.  We cannot use the
+# "pwd -P" shell builtin since that's not portable.  Instead we try to
+# find a pwd binary.  Note that assigning to the PWD environment
+# variable might have some interesting side effects, so we don't do
+# that.
+AC_PATH_PROG(PWD_P, pwd, no)
+if test "$PWD_P" = no; then
+  AC_MSG_ERROR(*** A pwd binary could not be found.)
+fi
+
 # These programs are version sensitive.
 AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
 AC_CHECK_PROG_VER(CC, ${ac_tool_prefix}gcc ${ac_tool_prefix}cc, -v,
This page took 0.038001 seconds and 5 git commands to generate.