From 2c4ae3fe6f9bb40a6c941d6fef70ee0eea225c73 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 2 Apr 2014 10:31:34 +0900 Subject: [PATCH] autotools: better fix for rewriting content of src/Makefile --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f24400be0f..409e48e3b2 100644 --- a/configure.ac +++ b/configure.ac @@ -4188,9 +4188,12 @@ AC_OUTPUT #### Work around bug in automake check macro ## yes it is hugly, but no choice here for now. -sed -i "s/am__is_gnu_make = test -n '\$(MAKEFILE_LIST)' && test -n '\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\nifdef MAKELEVEL\nam__is_gnu_make = true\nelse\nam__is_gnu_make = false\nendif\nelse\nam__is_gnu_make = false\nendif/" src/Makefile - +$SED -i "s/am__is_gnu_make = test -n '\$(MAKEFILE_LIST)' && test -n '\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\nifdef MAKELEVEL\nam__is_gnu_make = true\nelse\nam__is_gnu_make = false\nendif\nelse\nam__is_gnu_make = false\nendif/" src/Makefile +if test -f $srcdir/config.status; then + TO="$SED -i \"s/am__is_gnu_make = test -n '\\\\\$(MAKEFILE_LIST)' \&\& test -n '\\\\\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\\\nifdef MAKELEVEL\\\nam__is_gnu_make = true\\\nelse\\\nam__is_gnu_make = false\\\nendif\\\nelse\\\nam__is_gnu_make = false\\\nendif/\" src/Makefile\nas_fn_exit 0" + $SED -i "s|as_fn_exit 0|$TO|" $srcdir/config.status +fi #### Info