File: fix-build-with-autoconf-2.7.patch

package info (click to toggle)
kannel 1.4.5-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,240 kB
  • sloc: ansic: 105,659; sh: 32,059; xml: 20,360; php: 1,103; perl: 711; makefile: 575; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (22 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Santiago Vila <sanvila@debian.org>
Date: Mon, 9 Sep 2024 19:52:06 +0200
Subject: fix build with autoconf-2.7

Bug-Debian: https://bugs.debian.org/1080146
---
 configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.in b/configure.in
index 16b7db0..a06c77e 100644
--- a/configure.in
+++ b/configure.in
@@ -206,7 +206,7 @@ AC_C_INLINE
 dnl Check for how to do large files
 
 AC_SYS_LARGEFILE(CFLAGS)
-if test "${ac_cv_sys_file_offset_bits}" != no ; then
+if test "${ac_cv_sys_file_offset_bits}" != no && test -n "${ac_cv_sys_file_offset_bits}" ; then
     CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
 fi
 if test "${ac_cv_sys_large_files}" != no ; then