summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-09-14 15:43:03 +0100
committerColin Watson <cjwatson@debian.org>2013-09-14 15:43:03 +0100
commit8faf8c84430cf3c19705b1d9f8889d256e7fd1fd (patch)
treee6cb74192adb00fda5e4d1457547851d7e0d86af /aclocal.m4
parent328b60656f29db6306994d7498dede386ec2d1c3 (diff)
parentc41345ad7ee5a22689e2c009595e85fa27b4b39a (diff)
merge 6.3p1
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m413
1 files changed, 10 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 9bdea5ec2..1b3bed790 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
1dnl $Id: aclocal.m4,v 1.8 2011/05/20 01:45:25 djm Exp $ 1dnl $Id: aclocal.m4,v 1.9 2013/06/02 21:31:27 tim Exp $
2dnl 2dnl
3dnl OpenSSH-specific autoconf macros 3dnl OpenSSH-specific autoconf macros
4dnl 4dnl
@@ -14,8 +14,15 @@ AC_DEFUN([OSSH_CHECK_CFLAG_COMPILE], [{
14 _define_flag="$2" 14 _define_flag="$2"
15 test "x$_define_flag" = "x" && _define_flag="$1" 15 test "x$_define_flag" = "x" && _define_flag="$1"
16 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int main(void) { return 0; }]])], 16 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int main(void) { return 0; }]])],
17 [ AC_MSG_RESULT([yes]) 17 [
18 CFLAGS="$saved_CFLAGS $_define_flag"], 18if `grep -i "unrecognized option" conftest.err >/dev/null`
19then
20 AC_MSG_RESULT([no])
21 CFLAGS="$saved_CFLAGS"
22else
23 AC_MSG_RESULT([yes])
24 CFLAGS="$saved_CFLAGS $_define_flag"
25fi],
19 [ AC_MSG_RESULT([no]) 26 [ AC_MSG_RESULT([no])
20 CFLAGS="$saved_CFLAGS" ] 27 CFLAGS="$saved_CFLAGS" ]
21 ) 28 )