From 92ff7f21ad0b167f8d742a9d7b5f93704a57619c Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 24 Apr 2008 02:02:49 +0000 Subject: Major coding style cleanup. Updated all shared code from my other projects. The configure option requesting AFS kaserver support (and thus building kasetkey) is now --with-kaserver instead of --with-afs. If KRB5_CONFIG was explicitly set in the environment, don't use a different krb5-config based on --with-krb4 or --with-krb5. If krb5-config isn't executable, don't use it. This allows one to force library probing by setting KRB5_CONFIG to point to a nonexistent file. Sanity-check the results of krb5-config before proceeding and error out in configure if they don't work. Stop setting Stanford-specific compile-time defaults for the wallet server and port. --- m4/snprintf.m4 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'm4/snprintf.m4') diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 index 335a937..8ab3689 100644 --- a/m4/snprintf.m4 +++ b/m4/snprintf.m4 @@ -11,7 +11,7 @@ dnl Provides RRA_FUNC_SNPRINTF, which adds snprintf.o to LIBOBJS unless a dnl fully working snprintf is found. dnl dnl Written by Russ Allbery -dnl Copyright 2006 Board of Trustees, Leland Stanford Jr. University +dnl Copyright 2006, 2008 Board of Trustees, Leland Stanford Jr. University dnl See LICENSE for licensing terms. dnl Source used by RRA_FUNC_SNPRINTF. @@ -47,9 +47,7 @@ AC_DEFUN([RRA_FUNC_SNPRINTF], [rra_cv_func_snprintf_works=yes], [rra_cv_func_snprintf_works=no], [rra_cv_func_snprintf_works=no])]) -if test "$rra_cv_func_snprintf_works" = yes ; then - AC_DEFINE([HAVE_SNPRINTF], 1, - [Define if your system has a working snprintf function.]) -else - AC_LIBOBJ([snprintf]) -fi]) +AS_IF([test "$rra_cv_func_snprintf_works" = yes], + [AC_DEFINE([HAVE_SNPRINTF], 1, + [Define if your system has a working snprintf function.])], + [AC_LIBOBJ([snprintf])])]) -- cgit v1.2.3