autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Autoconf 2.59d] testsuite: 202 failed


From: Paul Eggert
Subject: Re: [GNU Autoconf 2.59d] testsuite: 202 failed
Date: Thu, 18 May 2006 21:15:11 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

> you need a different method in the config.status code to
> detect whether you need to munge with $MKDIR_P for subdirectories,

Thanks for explaining that, and for the test case.  I installed this:

2006-05-18  Paul Eggert  <address@hidden>

        * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
        $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
        * tests/tools.at (autoconf: subdirectories): New test, taken from
        the corresponding problem report by Ralf Wildenhues in:
        http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html

Index: lib/autoconf/status.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v
retrieving revision 1.101
diff -p -u -r1.101 status.m4
--- lib/autoconf/status.m4      19 May 2006 02:57:46 -0000      1.101
+++ lib/autoconf/status.m4      19 May 2006 04:07:54 -0000
@@ -495,9 +495,10 @@ AC_PROVIDE_IFELSE([AC_PROG_INSTALL],
   esac
 ])dnl
 AC_PROVIDE_IFELSE([AC_PROG_MKDIR_P],
-[  case $MKDIR_P in
-  [[\\/$]]* | ?:[[\\/]]* ) ac_MKDIR_P=$MKDIR_P ;;
-  *) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+[  ac_MKDIR_P=$MKDIR_P
+  case $MKDIR_P in
+  [[\\/$]]* | ?:[[\\/]]* ) ;;
+  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   esac
 ])dnl
 _ACEOF
Index: tests/tools.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/tools.at,v
retrieving revision 1.83
diff -p -u -r1.83 tools.at
--- tests/tools.at      19 Apr 2006 04:13:48 -0000      1.83
+++ tests/tools.at      19 May 2006 04:07:54 -0000
@@ -309,6 +309,32 @@ AT_CHECK_AUTOCONF([], 1, [], [experr])
 AT_CLEANUP
 
 
+# autoconf: subdirectories
+# --------------------------------------
+AT_SETUP([autoconf: subdirectories])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+AC_PROG_MKDIR_P
+AC_CONFIG_FILES(sub/foo)
+AC_OUTPUT
+]])
+
+mkdir sub
+
+AT_DATA([sub/foo.in],
address@hidden@
+]])
+
+AT_DATA([install-sh])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE
+AT_CHECK([grep '/mkdir -p' sub/foo], 1)
+
+AT_CLEANUP
+
+
 
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]