1999-10-28 03:25:17 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1999-11-09 03:23:45 +00:00
|
|
|
|
1999-10-28 03:25:17 +00:00
|
|
|
AC_INIT(auth-krb4.c)
|
|
|
|
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
1999-11-08 23:28:04 +00:00
|
|
|
AC_CHECK_PROG(AR, ar, ar)
|
|
|
|
if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
|
1999-10-28 03:25:17 +00:00
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
dnl Replace `main' with a function in -lcrypto:
|
|
|
|
AC_CHECK_LIB(crypto, CRYPTO_lock, ,AC_MSG_ERROR([*** libcrypto missing - please install first ***]))
|
|
|
|
dnl Replace `main' with a function in -lutil:
|
|
|
|
AC_CHECK_LIB(util, logout, ,AC_MSG_ERROR([*** -lutil missing - this is part of libc. ***]))
|
|
|
|
dnl Replace `main' with a function in -lz:
|
|
|
|
AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
|
1999-10-29 02:37:01 +00:00
|
|
|
dnl check for nsl
|
|
|
|
AC_CHECK_LIB(nsl, yp_match, , )
|
1999-10-28 03:25:17 +00:00
|
|
|
dnl check for dl
|
1999-11-08 04:30:59 +00:00
|
|
|
AC_CHECK_LIB(dl, dlopen, , )
|
1999-10-28 03:25:17 +00:00
|
|
|
dnl check for pam
|
1999-11-08 04:30:59 +00:00
|
|
|
AC_CHECK_LIB(pam, pam_authenticate, , )
|
1999-10-28 03:25:17 +00:00
|
|
|
|
1999-11-08 23:28:04 +00:00
|
|
|
dnl Check for OpenSSL/SSLeay directories.
|
|
|
|
AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
|
|
|
|
for dir in /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg ; do
|
|
|
|
ssldir="$dir"
|
|
|
|
if test -f "$dir/include/openssl/crypto.h"; then
|
|
|
|
AC_DEFINE(HAVE_OPENSSL)
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
if test -f "$dir/include/ssl/crypto.h"; then
|
|
|
|
AC_DEFINE(HAVE_SSL)
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
if test -f "$dir/include/crypto.h"; then
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
AC_MSG_RESULT($ssldir)
|
|
|
|
AC_SUBST(ssldir)
|
|
|
|
AC_DEFINE_UNQUOTED(ssldir, "$ssldir")
|
|
|
|
if test "$ssldir" != "/usr"; then
|
|
|
|
CFLAGS="$CFLAGS -I$ssldir/include"
|
|
|
|
LIBS="$LIBS -L$ssldir/lib"
|
|
|
|
fi
|
|
|
|
LIBS="$LIBS -lssl -lcrypto"
|
1999-10-28 03:25:17 +00:00
|
|
|
|
1999-11-08 23:28:04 +00:00
|
|
|
dnl Check for RSAref library.
|
|
|
|
AC_MSG_CHECKING([for RSAref library])
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$saved_LIBS -lRSAglue -lrsaref"
|
|
|
|
AC_TRY_LINK([], [],
|
|
|
|
[AC_MSG_RESULT(yes); ],
|
|
|
|
[AC_MSG_RESULT(no)]; LIBS="$saved_LIBS")
|
1999-10-28 03:25:17 +00:00
|
|
|
|
|
|
|
dnl Checks for header files.
|
1999-11-08 04:30:59 +00:00
|
|
|
AC_CHECK_HEADERS(pty.h)
|
1999-10-28 03:25:17 +00:00
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
1999-11-08 04:30:59 +00:00
|
|
|
AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle)
|
1999-10-28 03:25:17 +00:00
|
|
|
|
1999-11-09 03:23:45 +00:00
|
|
|
dnl Check whether user wants GNOME ssh-askpass
|
|
|
|
AC_ARG_WITH(gnome-askpass,
|
|
|
|
[ --with-gnome-askpass Build and use the GNOME passphrase requester],
|
|
|
|
[GNOME_ASKPASS="gnome-ssh-askpass"])
|
|
|
|
AC_SUBST(GNOME_ASKPASS)
|
|
|
|
|
1999-10-28 03:25:17 +00:00
|
|
|
AC_OUTPUT(Makefile)
|