]> granicus.if.org Git - postgresql/commitdiff
Fix configure check for typeof
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 29 Mar 2017 02:28:56 +0000 (22:28 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 29 Mar 2017 02:28:56 +0000 (22:28 -0400)
config/c-compiler.m4
configure

index b366e40cff0df236af9d2ff2077b8dadbd4ba7f2..7275ea69fef7c4c2f0e92de45ed73280c33af5cd 100644 (file)
@@ -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
 
index 3c92cabb924de355566a8605f12e02f3d5605008..56e3f8f242539afc2e684b6c52abb02d11a408c8 100755 (executable)
--- 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