mirror of https://github.com/artizirk/dvhtool.git
35 lines
755 B
Diff
35 lines
755 B
Diff
diff --git a/acinclude.m4 b/acinclude.m4
|
|
index 74f1e09..44cface 100644
|
|
--- a/acinclude.m4
|
|
+++ b/acinclude.m4
|
|
@@ -1,17 +1,16 @@
|
|
dnl AC_REPLACE_GNU_GETOPT
|
|
-AC_DEFUN(AC_REPLACE_GNU_GETOPT,
|
|
+AC_DEFUN([AC_REPLACE_GNU_GETOPT],
|
|
[AC_CHECK_FUNCS([getopt_long], , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"])
|
|
AC_SUBST(LIBOBJS)dnl
|
|
])
|
|
|
|
dnl Test for __attribute__
|
|
-AC_DEFUN(VH___ATTRIBUTE__, [
|
|
+AC_DEFUN([VH___ATTRIBUTE__], [
|
|
AC_MSG_CHECKING(for __attribute__)
|
|
AC_CACHE_VAL(ac_cv___attribute__, [
|
|
AC_TRY_COMPILE([
|
|
#include <stdlib.h>
|
|
-],
|
|
-[
|
|
+
|
|
static void foo(void) __attribute__ ((noreturn));
|
|
|
|
static void
|
|
@@ -20,6 +19,8 @@ foo(void)
|
|
exit(1);
|
|
}
|
|
],
|
|
+[
|
|
+],
|
|
ac_cv___attribute__=yes,
|
|
ac_cv___attribute__=no)])
|
|
if test "$ac_cv___attribute__" = "yes"; then
|