aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiziano Müller <tiziano.mueller@stepping-stone.ch>2015-04-08 13:29:42 +0200
committerWayne Davison <wayned@samba.org>2015-05-01 14:26:21 -0700
commit3bc319766d1b00da3989b5cf05bc5669fef54aec (patch)
tree502d68e4e5314ed0275364d7ae0edfa6f307149e
parenta689fb1f5f578ec6bbcb5aa1e89b88ee769fa430 (diff)
downloadandroid_external_rsync-3bc319766d1b00da3989b5cf05bc5669fef54aec.tar.gz
android_external_rsync-3bc319766d1b00da3989b5cf05bc5669fef54aec.tar.bz2
android_external_rsync-3bc319766d1b00da3989b5cf05bc5669fef54aec.zip
Use AS_IF instead of plain if/then/fi
-rw-r--r--configure.ac6
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 23cbd661..ca0c6fa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -511,7 +511,7 @@ AC_CACHE_CHECK([whether defines needed by getaddrinfo exist],
#endif],
rsync_cv_HAVE_GETADDR_DEFINES=yes,
rsync_cv_HAVE_GETADDR_DEFINES=no)])
-if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then
+AS_IF([test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"],[
# Tru64 UNIX has getaddrinfo() but has it renamed in libc as
# something else so we must include <netdb.h> to get the
# redefinition.
@@ -525,9 +525,7 @@ if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addri
[Define to 1 if you have the "getaddrinfo" function and required types.])],
[AC_MSG_RESULT([no])
AC_LIBOBJ([getaddrinfo])])])
-else
- AC_LIBOBJ([getaddrinfo])
-fi
+ ],[AC_LIBOBJ([getaddrinfo])])
AC_CHECK_MEMBER([struct sockaddr.sa_len],
[ AC_DEFINE(HAVE_SOCKADDR_LEN, 1, [Do we have sockaddr.sa_len?]) ],