* aclocal.m4 (TRY_PEER_INT): Strip trailing spaces from defined macros
authorKen Raeburn <raeburn@mit.edu>
Fri, 5 Apr 2002 23:37:17 +0000 (23:37 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 5 Apr 2002 23:37:17 +0000 (23:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14360 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 44d6a2ec938be25f259d423d0bee585b7338a1cc..834cbc0caf866cef3f2abdd0292bc11f96f98c64 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-05  Ken Raeburn  <raeburn@mit.edu>
+
+       * aclocal.m4 (TRY_PEER_INT): Strip trailing spaces from defined
+       macros.
+
 2002-04-02  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in (install-strip): New rule to pass "-s" to install.
index 5a8b0951df3bc5b89568ebd7d350a94f1b634944..7896a3bb6c30ba47316a6a5b9de572037b68b96c 100644 (file)
@@ -1332,8 +1332,8 @@ extern int getpeername(int, $1, $2);
 if eval "test \"`echo '$krb5_cv_getpeername_proto'$krb5_lib_var`\" = yes"; then
        AC_MSG_RESULT(yes)
        peer_set=yes
-       res1=`echo "$1" | tr -d '*'`
-       res2=`echo "$2" | tr -d '*'`
+       res1=`echo "$1" | tr -d '*' | sed -e 's/ *$//'`
+       res2=`echo "$2" | tr -d '*' | sed -e 's/ *$//'`
        AC_DEFINE_UNQUOTED([GETPEERNAME_ARG2_TYPE],$res1)
        AC_DEFINE_UNQUOTED([GETPEERNAME_ARG3_TYPE],$res2)
 else