summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/m4/check_cc.m41
-rw-r--r--source4/build/smb_build/env.pm4
2 files changed, 5 insertions, 0 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 277afc18c6..99e6bd5d23 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -65,6 +65,7 @@ AC_CACHE_CHECK([for immediate structures],samba_cv_immediate_structures, [
if test x"$samba_cv_immediate_structures" = x"yes"; then
AC_DEFINE(HAVE_IMMEDIATE_STRUCTURES,1,[Whether the compiler supports immediate structures])
fi
+AC_SUBST(samba_cv_immediate_structures)
############################################
# check if the compiler handles c99 struct initialization
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm
index 184d094d2d..7ff6627494 100644
--- a/source4/build/smb_build/env.pm
+++ b/source4/build/smb_build/env.pm
@@ -57,6 +57,10 @@ sub PkgConfig($$$$$$$$)
print __FILE__.": creating $path\n";
+ if ($self->{config}->{samba_cv_immediate_structures} eq "yes") {
+ $cflags .= " -DHAVE_IMMEDIATE_STRUCTURES=1";
+ }
+
open(OUT, ">$path") or die("Can't open $path: $!");
print OUT <<"__EOF__";