Module Name: othersrc
Committed By: lukem
Date: Fri Feb 12 12:39:18 UTC 2021
Modified Files:
othersrc/usr.bin/tnftp: configure.ac
Log Message:
configure: soft-fail cross-compile check for va_copy()
Be consistent with other AC_RUN_IFELSE() checks and change the va_copy()
checks to soft-fail (instead of hard fail) when cross-compiling.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 othersrc/usr.bin/tnftp/configure.ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/usr.bin/tnftp/configure.ac
diff -u othersrc/usr.bin/tnftp/configure.ac:1.38 othersrc/usr.bin/tnftp/configure.ac:1.39
--- othersrc/usr.bin/tnftp/configure.ac:1.38 Sun Jul 5 11:37:02 2020
+++ othersrc/usr.bin/tnftp/configure.ac Fri Feb 12 12:39:18 2021
@@ -1,4 +1,4 @@
-# $NetBSD: configure.ac,v 1.38 2020/07/05 11:37:02 lukem Exp $
+# $NetBSD: configure.ac,v 1.39 2021/02/12 12:39:18 lukem Exp $
#
# Process this file with autoconf to produce a configure script.
@@ -6,10 +6,10 @@ AC_INIT([tnftp], [20200705], [lukem@NetB
AC_PREREQ([2.69])
AC_COPYRIGHT([
-Copyright (c) 1999-2020 The NetBSD Foundation, Inc.
+Copyright (c) 1999-2021 The NetBSD Foundation, Inc.
All rights reserved.
])
-AC_REVISION([$Revision: 1.38 $])
+AC_REVISION([$Revision: 1.39 $])
AS_SHELL_SANITIZE()
@@ -412,7 +412,8 @@ return 0;
]])],
[AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_VA_COPY], [1])],
- [AC_MSG_RESULT([no])])
+ [AC_MSG_RESULT([no])],
+ [AC_MSG_RESULT([unknown - cross-compiling])])
AC_MSG_CHECKING([for __builtin_va_copy])
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
@@ -424,7 +425,8 @@ return 0;
]])],
[AC_MSG_RESULT([yes])
AC_DEFINE([HAVE___BUILTIN_VA_COPY], [1])],
- [AC_MSG_RESULT([no])])
+ [AC_MSG_RESULT([no])],
+ [AC_MSG_RESULT([unknown - cross-compiling])])
AS_IF([test "$ac_cv_func_strptime" = yes],
[AC_MSG_CHECKING([if strptime() needs separators between conversions])