Blame m4/__inline.m4

Packit Service 4684c1
# Test for __inline keyword
Packit Service 4684c1
dnl Copyright 2017-2020 Free Software Foundation, Inc.
Packit Service 4684c1
dnl This file is free software; the Free Software Foundation
Packit Service 4684c1
dnl gives unlimited permission to copy and/or distribute it,
Packit Service 4684c1
dnl with or without modifications, as long as this notice is preserved.
Packit Service 4684c1
Packit Service 4684c1
AC_DEFUN([gl___INLINE],
Packit Service 4684c1
[
Packit Service 4684c1
  AC_CACHE_CHECK([whether the compiler supports the __inline keyword],
Packit Service 4684c1
    [gl_cv_c___inline],
Packit Service 4684c1
    [AC_COMPILE_IFELSE(
Packit Service 4684c1
       [AC_LANG_PROGRAM(
Packit Service 4684c1
         [[typedef int foo_t;
Packit Service 4684c1
           static __inline foo_t foo (void) { return 0; }]],
Packit Service 4684c1
         [[return foo ();]])],
Packit Service 4684c1
       [gl_cv_c___inline=yes],
Packit Service 4684c1
       [gl_cv_c___inline=no])])
Packit Service 4684c1
  if test $gl_cv_c___inline = yes; then
Packit Service 4684c1
    AC_DEFINE([HAVE___INLINE], [1],
Packit Service 4684c1
      [Define to 1 if the compiler supports the keyword '__inline'.])
Packit Service 4684c1
  fi
Packit Service 4684c1
])