<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Thu, 11 Aug 2022 17:16:42 +0000 (18:16 +0100)
committerCamm Maguire <camm@debian.org>
Thu, 11 Aug 2022 17:16:42 +0000 (18:16 +0100)
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.

gcl (2.6.12-121) unstable; urgency=medium

  * Version_2.6.13pre121

Gbp-Pq: Name Version_2.6.13pre121

configure
configure.in

index 648020992ed1a57bb5b1d3562bf994f57a30a162..c7d49cd5608b43899aa0dba85bc86b318fde0453 100755 (executable)
--- a/configure
+++ b/configure
@@ -4552,15 +4552,12 @@ add_args_to_cflags  -fsigned-char -pipe -fcommon \
 
 add_args_to_ldflags -no-pie # -Wl,-z,lazy
 
-CC=gcc
-GCL_CC=gcc
-
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline semantics" >&5
 printf %s "checking for inline semantics... " >&6; }
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
-                       extern inline int foo(int i) {return i;}
+                       inline int foo(int i) {return i;}
 
                        int
                        bar(int i) {return foo(i);}
@@ -4568,17 +4565,14 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 then :
-  if ! `nm conftest.o |grep -q "T foo"` ; then
-       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5
-printf "%s\n" "old" >&6; }
-
-printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
-
+  if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
+       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new" >&5
+printf "%s\n" "new" >&6; }
      else
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
-                               inline int foo(int i) {return i;}
+                               extern inline int foo(int i) {return i;}
 
                                int
                                bar(int i) {return foo(i);}
@@ -4586,9 +4580,12 @@ printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 then :
-  if ! `nm conftest.o |grep -q "T foo"` ; then
-               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new" >&5
-printf "%s\n" "new" >&6; }
+  if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
+               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5
+printf "%s\n" "old" >&6; }
+
+printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
+
             else
                as_fn_error $? "need working inline semantics" "$LINENO" 5
             fi
index 08c145912dbbb9ad705f0ed35bef6adac2855738..4785dd6a976924bad1302244cf9e2e4c3ed10a87 100644 (file)
@@ -266,24 +266,24 @@ add_args_to_ldflags -no-pie # -Wl,-z,lazy
 AC_MSG_CHECKING([for inline semantics])
 AC_COMPILE_IFELSE(
     [AC_LANG_SOURCE([[
-                       extern inline int foo(int i) {return i;}
+                       inline int foo(int i) {return i;}
 
                        int
                        bar(int i) {return foo(i);}
                     ]])],
-    [if ! `nm conftest.o |grep -q "T foo"` ; then
-       AC_MSG_RESULT([old])
-       AC_DEFINE([OLD_INLINE],[1],[extern inline semantics])
+    [if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
+       AC_MSG_RESULT([new])
      else
        AC_COMPILE_IFELSE(
            [AC_LANG_SOURCE([[
-                               inline int foo(int i) {return i;}
+                               extern inline int foo(int i) {return i;}
 
                                int
                                bar(int i) {return foo(i);}
                            ]])],
-           [if ! `nm conftest.o |grep -q "T foo"` ; then
-               AC_MSG_RESULT([new])
+           [if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
+               AC_MSG_RESULT([old])
+               AC_DEFINE([OLD_INLINE],[1],[extern inline semantics])
             else
                AC_MSG_ERROR([need working inline semantics])
             fi],