2 AC_INIT([libnfs], [0.0.0])
3 AC_CONFIG_HEADERS([config.h])
4 AM_INIT_AUTOMAKE([foreign])
7 # Work around stupid autoconf default cflags. pt 1
8 SAVE_CFLAGS="x${CFLAGS}"
15 # Work around stupid autoconf default cflags. pt 2
16 if test "$SAVE_CFLAGS" = "x"; then
20 AC_CHECK_PROG([HAVE_RPCGEN], [rpcgen], [yes], [no])
21 if test x$HAVE_RPCGEN != xyes; then
22 AC_MSG_ERROR([Can not find required program])
27 [AC_HELP_STRING([--with-logdir=DIR],
28 [path to log directory [[LOCALSTATEDIR/log]]])],
30 [LOGDIR='${localstatedir}/log'])
32 #if test ! -d "$LOGDIR"; then
33 # AC_MSG_ERROR([--with-logdir must specify a path])
38 AC_ARG_ENABLE([examples],
39 [AC_HELP_STRING([--enable-examples],
40 [Build example programs])],
41 [ENABLE_EXAMPLES=$enableval],
42 [ENABLE_EXAMPLES="no"])
43 AM_CONDITIONAL(EXAMPLES, [test x$ENABLE_EXAMPLES = xyes])
45 [MAYBE_EXAMPLES="examples"]
46 [config_examples="examples/Makefile"])
47 AC_SUBST(MAYBE_EXAMPLES)
50 AC_CONFIG_FILES([Makefile]