[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Patch so rdiff-backup builds with librsync CVS
From: |
dean gaudet |
Subject: |
Re: [rdiff-backup-users] Patch so rdiff-backup builds with librsync CVS |
Date: |
Sat, 26 Jul 2003 09:14:31 -0700 (PDT) |
> Yep, when 0.9.6 comes out I will release new rdiff-backup versions with
> this change.
you could do something like the shell script below... except then you run
into sh portability issues. i'm guessing you can convert this into python
:)
or perhaps it's just best to require 0.9.6 when it comes out since it has
all the necessary bugfixes.
-dean
#!/bin/sh
if [ "X$CC" = "X" ]; then
CC=gcc
fi
cat >test$$.c <<EOF
#include <stdio.h>
#include <librsync.h>
int main(int argc, char **argv)
{
return 0;
}
EOF
if $CC $CFLAGS -c -o test$$.o test$$.c >/dev/null 2>&1; then
echo "#define HAVE_LIBRSYNC_H 1"
rm -f test$$.[co] 2>/dev/null 1>&2
exit 0
fi
cat >test$$.c <<EOF
#include <stdio.h>
#include <rsync.h>
int main(int argc, char **argv)
{
return 0;
}
EOF
if $CC $CFLAGS -c -o test$$.o test$$.c >/dev/null 2>&1; then
echo "#define HAVE_RSYNC_H 1"
rm -f test$$.[co] 2>/dev/null 1>&2
exit 0
fi
rm -f test$$.[co] 2>/dev/null 1>&2
exit 1