scsh-yp/configure.in

46 lines
1.1 KiB
Plaintext
Raw Normal View History

2004-03-29 06:42:33 -05:00
AC_INIT(scsh-yp, 0.2)
2003-11-08 07:40:14 -05:00
AM_INIT_AUTOMAKE
2004-03-29 06:42:33 -05:00
AC_CONFIG_SRCDIR(configure.in)
AC_LANG(C)
2003-12-02 05:41:33 -05:00
define([PREPEND], [[$2]="$[$2] [$1]"])
define([CHECK_YP_FUN], [AC_SEARCH_LIBS($1, nsl, [], PREPEND($1, missing_yp_funs))])
2003-12-02 05:41:33 -05:00
2003-11-11 09:19:09 -05:00
AC_PROG_LIBTOOL
2003-10-30 10:43:43 -05:00
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)
2003-12-02 05:41:33 -05:00
missing_yp_funs=""
2003-11-25 17:07:38 -05:00
CHECK_YP_FUN(yp_get_default_domain)
CHECK_YP_FUN(yp_bind)
CHECK_YP_FUN(yp_unbind)
CHECK_YP_FUN(yperr_string)
CHECK_YP_FUN(ypprot_err)
CHECK_YP_FUN(yp_match)
CHECK_YP_FUN(yp_order)
CHECK_YP_FUN(yp_master)
CHECK_YP_FUN(yp_first)
CHECK_YP_FUN(yp_next)
2003-11-25 17:07:38 -05:00
if test "$missing_yp_funs" != ""; then
AC_MSG_FAILURE([The following yp functions calls could not be found: $missing_yp_funs])
fi
2003-10-30 10:43:43 -05:00
2003-12-02 05:41:33 -05:00
schemedir='${prefix}'"/scheme"
libdir='${prefix}'"/lib"
libsysdir='${prefix}'
2003-12-02 05:41:33 -05:00
AC_SUBST(libdir)
AC_SUBST(libsysdir)
AC_SUBST(schemedir)
2003-10-30 10:43:43 -05:00
AC_SUBST(LIBS)
AC_SUBST(CC)
AC_OUTPUT([Makefile c/Makefile])