summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-03-29 02:28:56 +0000
committerPeter Eisentraut2017-03-29 02:28:56 +0000
commitddce628971fb611f5ecd49d72e1612f983d99097 (patch)
treeb7f0c68c27c6c4092ed88fe6be8e13c332025f27
parente0eb5e0aeac7643c10b550e8067182cd08fc59a3 (diff)
Fix configure check for typeof
-rw-r--r--config/c-compiler.m42
-rwxr-xr-xconfigure4
2 files changed, 4 insertions, 2 deletions
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4
index b366e40cff..7275ea69fe 100644
--- a/config/c-compiler.m4
+++ b/config/c-compiler.m4
@@ -199,7 +199,7 @@ if test "$pgac_cv_c_typeof" != no; then
AC_DEFINE(HAVE_TYPEOF, 1,
[Define to 1 if your compiler understands `typeof' or something similar.])
if test "$pgac_cv_c_typeof" != typeof; then
- AC_DEFINE(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.])
+ AC_DEFINE_UNQUOTED(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.])
fi
fi])# PGAC_C_TYPEOF
diff --git a/configure b/configure
index 3c92cabb92..56e3f8f242 100755
--- a/configure
+++ b/configure
@@ -11704,7 +11704,9 @@ $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
if test "$pgac_cv_c_typeof" != typeof; then
-$as_echo "#define typeof \$pgac_cv_c_typeof" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define typeof $pgac_cv_c_typeof
+_ACEOF
fi
fi