From: Martin Pool Date: Wed, 28 Nov 2001 02:55:20 +0000 (+0000) Subject: HP's cpp chokes on preprocessor directives that have whitespace before X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/6a5ef41fb3bd36e7ac0e3b209bf5e483f5cbe2f5 HP's cpp chokes on preprocessor directives that have whitespace before the '#'. Off to the Implant Office with you! --- diff --git a/configure.in b/configure.in index 21bbab74..52f88906 100644 --- a/configure.in +++ b/configure.in @@ -285,12 +285,14 @@ AC_CHECK_FUNCS(memmove lchown vsnprintf snprintf asprintf setsid glob strpbrk) AC_CHECK_FUNCS(strlcat strlcpy mtrace) AC_CACHE_CHECK([for working socketpair],rsync_cv_HAVE_SOCKETPAIR,[ -AC_TRY_RUN([#include - #include - main() { - int fd[2]; - exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1); - }], +AC_TRY_RUN([ +#include +#include + +main() { + int fd[2]; + exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1); +}], rsync_cv_HAVE_SOCKETPAIR=yes,rsync_cv_HAVE_SOCKETPAIR=no,rsync_cv_HAVE_SOCKETPAIR=cross)]) if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then AC_DEFINE(HAVE_SOCKETPAIR, 1, [ ])