2000-12-20 21:41:21 +00:00
|
|
|
AC_INIT(isync.h)
|
2001-06-18 21:38:44 +00:00
|
|
|
AM_INIT_AUTOMAKE(isync,0.6)
|
2000-12-20 21:41:21 +00:00
|
|
|
AM_PROG_CC_STDC
|
|
|
|
if test $CC = gcc; then
|
|
|
|
CFLAGS="$CFLAGS -pipe"
|
|
|
|
fi
|
2001-01-05 21:20:48 +00:00
|
|
|
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])
|
2001-10-30 22:57:03 +00:00
|
|
|
AC_REPLACE_FUNCS(strndup)
|
2000-12-20 21:41:21 +00:00
|
|
|
AC_CHECK_FUNCS(getopt_long)
|
2000-12-21 06:51:14 +00:00
|
|
|
AC_CHECK_LIB(socket,socket)
|
|
|
|
AC_CHECK_LIB(nsl,inet_ntoa)
|
2000-12-21 06:27:05 +00:00
|
|
|
AC_CHECK_LIB(crypto,ERR_error_string)
|
|
|
|
AC_CHECK_LIB(ssl,SSL_library_init)
|
2000-12-20 21:41:21 +00:00
|
|
|
CFLAGS="$CFLAGS -W -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
|
|
|
|
AC_OUTPUT(Makefile)
|