aboutsummaryrefslogtreecommitdiff
path: root/libgm2/config.h.in
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2024-02-12 14:01:41 +0100
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2024-02-12 14:01:41 +0100
commit0437cbdccb91da6a8c25b2c29e9f19a9585309fc (patch)
treeea18ea8306756710f5bd78a496076461fe4349a8 /libgm2/config.h.in
parent016fbd2d89972e0c44d9cd8375d2332108e447c4 (diff)
libgm2: Define missing configure macros [PR113888]
As detailed in PR modula2/113888, the 32-bit libm2pim/target.c doesn't assemble in a Linux/sparc64 multilib build. However, the root cause is that the HAVE_EXP10* macros are never defined. While I was at it, I checked for other cases where the code uses HAVE_* macros that are missing from config.h.in. This patch adds the missing checks, changes the configure checks where the names don't match what's used in the code, or corrects the code to use the right names. So far tested on sparc64-unknown-linux-gnu by building libgm2 (32 and 64-bit) and running the gm2 tests. 2024-02-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> libgm2: PR modula2/113888 * configure.ac (GM2_CHECK_LIB): Rename gettimeofday guard to HAVE_GETTIMEOFDAY. (GM_CHECK_LIB): Check for settimeofday. (GM2_CHECK_LIB): Check for exp10, exp10f, exp10l in libm. (AC_CHECK_DECLS): Check for getenv. * configure, config.h.in: Regenerate. * libm2pim/dtoa.cc: Rename <strings.h>, <string.h> guards to HAVE_STRINGS_H, HAVE_STRING_H. * libm2pim/ldtoa.cc: Likewise.
Diffstat (limited to 'libgm2/config.h.in')
-rw-r--r--libgm2/config.h.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/libgm2/config.h.in b/libgm2/config.h.in
index 0cf4906468d..7426cb26cf8 100644
--- a/libgm2/config.h.in
+++ b/libgm2/config.h.in
@@ -30,6 +30,10 @@
/* function daylight exists */
#undef HAVE_DAYLIGHT
+/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
+ */
+#undef HAVE_DECL_GETENV
+
/* Define to 1 if you have the <direct.h> header file. */
#undef HAVE_DIRECT_H
@@ -51,6 +55,15 @@
/* function exit exists */
#undef HAVE_EXIT
+/* function exp10 exists */
+#undef HAVE_EXP10
+
+/* function exp10f exists */
+#undef HAVE_EXP10F
+
+/* function exp10l exists */
+#undef HAVE_EXP10L
+
/* function fcntl exists */
#undef HAVE_FCNTL
@@ -79,7 +92,7 @@
#undef HAVE_GETPID
/* function gettimeofday exists */
-#undef HAVE_GETTIMEOFD
+#undef HAVE_GETTIMEOFDAY
/* function getuid exists */
#undef HAVE_GETUID
@@ -150,6 +163,9 @@
/* function setitimer exists */
#undef HAVE_SETITIMER
+/* function settimeofday exists */
+#undef HAVE_SETTIMEOFDAY
+
/* function setuid exists */
#undef HAVE_SETUID