]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: workaround for autoconf "present but cannot be compiled"
authorKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2016 11:38:48 +0000 (13:38 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2016 09:38:36 +0000 (11:38 +0200)
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 <kzak@redhat.com>
configure.ac

index 70df8c6b43a12e0be568e80b9840fcf6b18fd787..8a0ce94c751805a9b404fb5c517a5503bc0b8693 100644 (file)
@@ -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 <linux/gsmmux.h>
+   #endif
+])
+
 AC_CHECK_HEADERS([security/pam_misc.h],
                [AM_CONDITIONAL([HAVE_LINUXPAM], [true])],
                [AM_CONDITIONAL([HAVE_LINUXPAM], [false])], [