File: AC_TRY_COMPILE

package info (click to toggle)
cxref 1.6e-9
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,332 kB
  • sloc: ansic: 16,598; yacc: 2,091; sh: 945; lex: 470; perl: 452; makefile: 439; lisp: 256; cpp: 188; python: 80
file content (52 lines) | stat: -rw-r--r-- 2,001 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 cxref (1.6e-5) unstable; urgency=medium
 .
   * Bug fix: "please make the build reproducible - non-reproducible
     timestamp in build log", thanks to Philip Rinn (Closes: #1014877).
   * Bug fix: "please rebuild with dh_elpa 2.x", thanks to David Bremner
     (Closes: #973966).  Remove build-dep on dh-elpa for now.
   * Bug fix: "cxref FTCBFS: uses AC_TRY_COMPILE", thanks to Helmut Grohne
     (Closes: #962163).  Apply AC_TRY_COMPILE patch
   * tempfile -> mktemp in cxref-cpp-wrap
Author: Camm Maguire <camm@debian.org>
Bug-Debian: https://bugs.debian.org/962163
Bug-Debian: https://bugs.debian.org/973966
Bug-Debian: https://bugs.debian.org/1014877

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2022-07-15

--- cxref-1.6e.orig/cpp/configure.in
+++ cxref-1.6e/cpp/configure.in
@@ -44,13 +44,13 @@ if test ! "x$GCC" = "x" ; then
 
    AC_MSG_CHECKING([if installed gcc is new enough to use instead of cxref-cpp])
 
-   AC_TRY_RUN([
+   AC_TRY_COMPILE([
    int main()
    {
    #if defined(__GNUC__) && ( ( __GNUC__==2 && __GNUC_MINOR__>=8 ) || __GNUC__>=3 )
     exit(0);
    #else
-    exit(1);
+   #error too old
    #endif
    }
    ],