-From df3a3e708653ca1cdb0eda77bbda5cb8de177571 Mon Sep 17 00:00:00 2001
+From f411b502222c8fe442d7b3beb00b530c9e16b7a2 Mon Sep 17 00:00:00 2001
From: "Van Bemten, Lionel (Nokia - BE/Antwerp)" <lionel.van_bemten@nokia.com>
-Date: Tue, 10 Oct 2017 19:51:18 +0200
+Date: Sun, 29 Apr 2018 19:53:40 +0200
Subject: [PATCH] No runtime tests for type sizes
Replace build and execution of runtime test programs for determining
Signed-off-by: "Van Bemten, Lionel (Nokia - BE/Antwerp)" <lionel.van_bemten@nokia.com>
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
---
- configure | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------
- 1 file changed, 61 insertions(+), 16 deletions(-)
+ configure | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------
+ 1 file changed, 60 insertions(+), 15 deletions(-)
diff --git a/configure b/configure
-index f2a77f3..8348b1f 100755
+index 434eec8..c09e9c8 100755
--- a/configure
+++ b/configure
-@@ -154,25 +154,70 @@ choose () {
+@@ -155,23 +155,69 @@ choose () {
fi
}
+}
+EOF
+ if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST $LDFLAGS_AUTO $LDFLAGS $LDFLAGS_POST -o trysignof${abbr} trysignof${abbr}.c 2>/dev/null; then
-+ echo "#define ${package_macro_name}_HASSIGNED${caps}" >> $sysdeps/sysdeps.h
-+ echo "#undef ${package_macro_name}_HASUNSIGNED${caps}" >> $sysdeps/sysdeps.h
++ echo "#define ${package_macro_name}_HAS${caps}" >> $sysdeps/sysdeps.h
++ echo "#undef ${package_macro_name}_HASUN${caps}" >> $sysdeps/sysdeps.h
+ echo "signed${abbr}: yes" >> $sysdeps/sysdeps
+ else
-+ echo "#undef ${package_macro_name}_HASSIGNED${caps}" >> $sysdeps/sysdeps.h
-+ echo "#define ${package_macro_name}_HASUNSIGNED${caps}" >> $sysdeps/sysdeps.h
++ echo "#undef ${package_macro_name}_HAS${caps}" >> $sysdeps/sysdeps.h
++ echo "#define ${package_macro_name}_HASUN${caps}" >> $sysdeps/sysdeps.h
+ echo "signed${abbr}: no" >> $sysdeps/sysdeps
+ fi
+ rm -f trysignof${abbr} trysignof${abbr}.c
- ./output-types | grep -F signed | while read key value ; do
- caps=$(echo $key | sed s/:\$// | tr a-z A-Z)
- if test $value = yes ; then
-- echo "#define ${package_macro_name}_HASSIGNED${caps}"
-- echo "#undef ${package_macro_name}_HASUNSIGNED${caps}"
+- echo "#define ${package_macro_name}_HAS${caps}"
+- echo "#undef ${package_macro_name}_HASUN${caps}"
- else
-- echo "#undef ${package_macro_name}_HASSIGNED${caps}"
-- echo "#define ${package_macro_name}_HASUNSIGNED${caps}"
+- echo "#undef ${package_macro_name}_HAS${caps}"
+- echo "#define ${package_macro_name}_HASUN${caps}"
- fi >> $sysdeps/sysdeps.h
+ for t in size uid gid pid time dev ino; do
+ findtypesize "${t}_t" "$t"
+ findtypesign "${t}_t" "$t"
done
-- rm -f output-types
+ rm -f output-types
echo " ... done"
- }
+@@ -548,7 +594,6 @@ EOF
+ choose cl itimer ITIMER 'setitimer()'
+ choose cl namespaces NAMESPACES 'namespaces'
+ choose cl nsgetparent NSGETPARENT 'NS_GET_PARENT'
+- choose cl explicit_bzero EXPLICIT_BZERO 'explicit_bzero()'
+ echo '#endif' >> $sysdeps/sysdeps.h
+ fi
--
-2.13.6
+2.14.3