aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2014-04-02 10:31:34 +0900
committerCedric BAIL <cedric.bail@free.fr>2014-04-02 10:31:34 +0900
commit2c4ae3fe6f9bb40a6c941d6fef70ee0eea225c73 (patch)
treee37d4ca3cf531e2517ffed739812b8dd9df3ff05 /configure.ac
parentrg_etc: fix typo in debug code. (diff)
downloadefl-2c4ae3fe6f9bb40a6c941d6fef70ee0eea225c73.tar.gz
autotools: better fix for rewriting content of src/Makefile
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files 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