2008-12-30 00:57:07 +01:00
|
|
|
AC_PREREQ(2.57)
|
2009-02-13 02:58:01 +01:00
|
|
|
AC_INIT(shellinabox, 2.4, markus@shellinabox.com)
|
2008-12-30 00:57:07 +01:00
|
|
|
AM_INIT_AUTOMAKE
|
2009-02-12 00:25:15 +01:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2008-12-30 00:57:07 +01:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
AC_C_CONST
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
2009-02-17 01:51:41 +01:00
|
|
|
AC_CHECK_HEADERS([libutil.h openssl/bio.h openssl/err.h openssl/ssl.h \
|
|
|
|
pthread.h security/pam_appl.h security/pam_client.h \
|
|
|
|
security/pam_misc.h sys/prctrl.h utmp.h utmpx.h])
|
2009-02-02 22:42:33 +01:00
|
|
|
AC_CHECK_FUNCS(dlopen, [],
|
2009-02-17 01:51:41 +01:00
|
|
|
[AC_CHECK_LIB(dl, dlopen,
|
|
|
|
[LIBS="-ldl $LIBS"
|
|
|
|
AC_DEFINE(HAVE_DLOPEN)])])
|
|
|
|
AC_CHECK_FUNCS(login_tty, [],
|
|
|
|
[AC_CHECK_LIB(util, login_tty,
|
|
|
|
[LIBS="-lutil $LIBS"
|
|
|
|
AC_DEFINE(HAVE_LOGIN_TTY)])])
|
2009-02-02 22:42:33 +01:00
|
|
|
AC_TRY_LINK([#ifndef _XOPEN_SOURCE
|
|
|
|
#define _XOPEN_SOURCE
|
|
|
|
#endif
|
|
|
|
#ifndef _GNU_SOURCE
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
#endif
|
|
|
|
#include <stdlib.h>],
|
|
|
|
[ptsname_r(0, 0, 0);],
|
|
|
|
[AC_DEFINE(HAVE_PTSNAME_R, 1,
|
|
|
|
Define to 1 if you have a re-entrant version of ptsname)])
|
2008-12-30 00:57:07 +01:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|