From f641d1caefe247a196fce5668ea15c6060f27229 Mon Sep 17 00:00:00 2001
From: geoffk1 <geoffk1@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Wed, 26 Jul 2006 05:09:16 +0000
Subject: [PATCH] Allow cross-compilation to work by supplying a default for
 'has working snprintf'.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2229 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/configure.in | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sm5/configure.in b/sm5/configure.in
index 36fd17231..ea1b3f5d6 100644
--- a/sm5/configure.in
+++ b/sm5/configure.in
@@ -1,5 +1,5 @@
 #
-# $Id: configure.in,v 1.115 2006/04/12 18:00:16 ballen4705 Exp $
+# $Id: configure.in,v 1.116 2006/07/26 05:09:16 geoffk1 Exp $
 #
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.50)
@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.37, smartmontools-support@lists.sourceforge.net)
 AC_CONFIG_SRCDIR(smartctl.c)
 
 smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"`
-smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.115 2006/04/12 18:00:16 ballen4705 Exp $'`
+smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.116 2006/07/26 05:09:16 geoffk1 Exp $'`
 smartmontools_release_date=2006/04/12
 smartmontools_release_time="17:39:01 UTC"
 
@@ -78,7 +78,9 @@ AH_TEMPLATE(HAVE_WORKING_SNPRINTF, [Define to 1 if the `snprintf' function is sa
 AC_MSG_CHECKING([for working snprintf])
 AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[ char buf[]="ABCDEFGHI";
                int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8); ]])],
-              [libc_have_working_snprintf=yes], [libc_have_working_snprintf=no])
+              [libc_have_working_snprintf=yes],
+	      [libc_have_working_snprintf=no],
+	      [libc_have_working_snprintf=no])
 AC_SUBST(libc_have_working_snprintf)
 if test "$libc_have_working_snprintf" = "yes"; then
   AC_DEFINE(HAVE_WORKING_SNPRINTF)
-- 
GitLab