isync/configure.in
Michael Elkins 087fb470e7 update version to 0.7
detect short write in write_strip()

fix compilation warnings with gcc-2.95.4
2001-11-09 00:23:50 +00:00

22 lines
690 B
Plaintext

AC_INIT(isync.h)
AM_INIT_AUTOMAKE(isync,0.7)
AM_PROG_CC_STDC
AC_ARG_WITH(ssl-dir, [ --with-ssl-dir=DIR location where openssl is insalled],
[if test -d $withval/lib; then
LIBS="$LIBS -L$withval/lib"
CFLAGS="$CFLAGS -I$withval/include"
else
AC_MSG_ERROR(can't find OpenSSL in $withval)
fi])
AC_REPLACE_FUNCS(strndup)
AC_CHECK_FUNCS(getopt_long)
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(nsl,inet_ntoa)
AC_CHECK_LIB(crypto,ERR_error_string)
AC_CHECK_LIB(ssl,SSL_library_init)
dnl test for gcc. use the prefix so we know that gcc-3.0 is also gcc
if test `echo $CC | sed s,^gcc.*,gcc,` = gcc; then
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wmissing-prototypes"
fi
AC_OUTPUT(Makefile)