File: emacsen-common

package info (click to toggle)
xemacs21 21.4.24-12
  • links: PTS
  • area: main
  • in suites: sid
  • size: 34,212 kB
  • sloc: ansic: 243,882; lisp: 94,071; cpp: 5,726; sh: 4,406; perl: 1,096; cs: 775; makefile: 765; python: 279; asm: 248; lex: 119; yacc: 95; sed: 22; csh: 9
file content (23 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Patches from Rob Browning for emacsen-common
Author: Rob Browning <rlb@defaultvalue.org>

Reviewed-By: broonie@debian.org
Last-Update: 2018-08-26

--- xemacs21-21.4.24.orig/configure.in
+++ xemacs21-21.4.24/configure.in
@@ -2866,8 +2866,12 @@ EOF
 	  *     ) val=1 ;;
 	esac
 dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above.
-	if grep "^#define $sym " confdefs.h >/dev/null; then :; else
-	  if test "$val" = "1"
+	if grep "^#define $sym " confdefs.h >/dev/null \
+           || test "$have_glibc" = "yes" -a "$sym" = "_BSD_SOURCE" \
+           || test "$have_glibc" = "yes" -a "$sym" = "_SVID_SOURCE"; \
+          then \
+            :; \
+          else if test "$val" = "1"
 	    then AC_DEFINE_UNQUOTED($sym)
 	    else AC_DEFINE_UNQUOTED($sym,$val)
 	  fi