SHA256
1
0
forked from pool/transfig

Avoid auto(re)config

OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=60
This commit is contained in:
Dr. Werner Fink 2020-01-21 13:09:30 +00:00 committed by Git OBS Bridge
parent fc3b4317e8
commit fab0225ae6
3 changed files with 45 additions and 9 deletions

View File

@ -19,21 +19,52 @@ be useful.
The replacement functions do not work, because a header file providing the
necessary function declarations is missing.
---
config.h.in | 3
configure | 11
configure.ac | 1
fig2dev/fig2dev.c | 4
fig2dev/fig2dev.h | 4
fig2dev/read.c | 908 +++++++++++++++++++++++++++-----------------------
fig2dev/read1_3.c | 12
fig2dev/tests/read.at | 29 +
6 files changed, 534 insertions(+), 424 deletions(-)
8 files changed, 548 insertions(+), 424 deletions(-)
--- configure.ac
+++ configure.ac 2020-01-21 11:31:32.048794834 +0000
@@ -327,6 +327,7 @@ dnl Just provide our own pi
# example.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
+AC_TYPE_SSIZE_T
|--- configure.ac
|+++ configure.ac 2020-01-21 11:31:32.048794834 +0000
|@@ -327,6 +327,7 @@ dnl Just provide our own pi
| # example.
| AC_HEADER_STDBOOL
| AC_TYPE_SIZE_T
|+AC_TYPE_SSIZE_T
|
| #
| # Checks for library functions.
--- config.h.in
+++ config.h.in 2020-01-21 14:01:55.145152807 +0100
@@ -184,3 +184,6 @@
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef ssize_t
--- configure
+++ configure 2020-01-21 14:01:54.953150514 +0100
@@ -6341,6 +6341,17 @@ _ACEOF
fi
+ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
+if test "x$ac_cv_type_ssize_t" = xyes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define ssize_t int
+_ACEOF
+
+fi
+
#
# Checks for library functions.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 21 13:08:49 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- Avoid auto(re)config
-------------------------------------------------------------------
Tue Jan 21 12:15:46 UTC 2020 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package transfig
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020 SUSE LLC.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed