aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-04-19 17:22:22 -0700
committerPaul Eggert2016-04-19 17:23:15 -0700
commit5c511ff597b4b541beb9ec4ce31cbb5363a0233e (patch)
treeb65d7b3ba5b5004b66b0ab220be2ab379327f18e
parented54b3ff9760e7b73172aa296949dfcc7aba106e (diff)
downloademacs-5c511ff597b4b541beb9ec4ce31cbb5363a0233e.tar.gz
emacs-5c511ff597b4b541beb9ec4ce31cbb5363a0233e.zip
Avoid AC_PREPROC_IFELSE glitch in configure.ac
Problem reported by Angelo Graziosi in: http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00545.html * configure.ac (gl_gcc_warnings): Work around an Autoconf glitch: AC_PREPROC_IFELSE doesn’t generate a simple shell command.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dbb5ad27c9b..1cd9017d19f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -879,8 +879,9 @@ AC_ARG_ENABLE([gcc-warnings],
879 # however, if there is also a .tarball-version file it is probably 879 # however, if there is also a .tarball-version file it is probably
880 # just a release imported into Git for patch management. 880 # just a release imported into Git for patch management.
881 gl_gcc_warnings=no 881 gl_gcc_warnings=no
882 test -e "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version && 882 if test -e "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version; then
883 gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])] 883 gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])]
884 fi
884) 885)
885 886
886# clang is unduly picky about some things. 887# clang is unduly picky about some things.