compile and run!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
634 B

24 years ago
AC_INIT(isync.h)
AM_INIT_AUTOMAKE(isync,0.6)
24 years ago
AM_PROG_CC_STDC
if test $CC = gcc; then
CFLAGS="$CFLAGS -pipe"
fi
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)
24 years ago
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)
24 years ago
CFLAGS="$CFLAGS -W -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
AC_OUTPUT(Makefile)