AC_INIT(configure.in) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(c/config.h) AC_LIBLTDL_CONVENIENCE AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL AC_PROG_CC AC_ARG_WITH(scsh-includes, AC_HELP_STRING([--with-scsh-includes=DIR], [scsh include files are in DIR [/usr/local/include]]), scsh_includes=$withval, scsh_includes=/usr/local/include) AC_SUBST(scsh_includes) AC_ARG_WITH(scsh-libraries, AC_HELP_STRING([--with-scsh-libraries=DIR], [scsh libraries are in DIR [/usr/local/lib/scsh]]), scsh_libraries=$withval, scsh_libraries=/usr/local/lib/scsh) AC_SUBST(scsh_libraries) AC_CHECK_LIB(crypt, crypt) AC_CHECK_LIB(m, exp) AC_CHECK_FUNCS(yp_get_default_domain yp_bind yp_unbind) AC_CHECK_FUNCS(yperr_string ypprot_err) AC_CHECK_FUNCS(yp_match yp_order) AC_CHECK_FUNCS(yp_master yp_first yp_next) AC_SUBST(LIBS) AC_SUBST(CC) AC_OUTPUT([Makefile c/Makefile])