From: Karel Zak Date: Wed, 8 Jun 2016 11:38:48 +0000 (+0200) Subject: build-sys: workaround for autoconf "present but cannot be compiled" X-Git-Tag: v2.28.1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a12bc245d5c68549891f432917c9b6e2fba4b33;p=thirdparty%2Futil-linux.git build-sys: workaround for autoconf "present but cannot be compiled" See also: https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Present-But-Cannot-Be-Compiled.html Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 70df8c6b43..8a0ce94c75 100644 --- a/configure.ac +++ b/configure.ac @@ -216,7 +216,6 @@ AC_CHECK_HEADERS([ \ linux/fd.h \ linux/raw.h \ linux/tiocl.h \ - linux/gsmmux.h \ linux/version.h \ linux/securebits.h \ locale.h \ @@ -262,6 +261,12 @@ AC_CHECK_HEADERS([ \ utmp.h \ ]) +AC_CHECK_HEADERS([linux/gsmmux.h ], [], [], + [#ifdef LINUX_GSMMUX_H + # include + #endif +]) + AC_CHECK_HEADERS([security/pam_misc.h], [AM_CONDITIONAL([HAVE_LINUXPAM], [true])], [AM_CONDITIONAL([HAVE_LINUXPAM], [false])], [