2 AC_INIT([libnfs], [0.0.0])
3 AC_CONFIG_HEADERS([config.h])
4 AM_INIT_AUTOMAKE([foreign])
9 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
17 # Work around stupid autoconf default cflags. pt 1
18 SAVE_CFLAGS="x${CFLAGS}"
25 # Work around stupid autoconf default cflags. pt 2
26 if test "$SAVE_CFLAGS" = "x"; then
30 AC_CHECK_PROG([HAVE_RPCGEN], [rpcgen], [yes], [no])
31 if test x$HAVE_RPCGEN != xyes; then
32 AC_MSG_ERROR([Can not find required program])
37 [AC_HELP_STRING([--with-logdir=DIR],
38 [path to log directory [[LOCALSTATEDIR/log]]])],
40 [LOGDIR='${localstatedir}/log'])
42 #if test ! -d "$LOGDIR"; then
43 # AC_MSG_ERROR([--with-logdir must specify a path])
48 AC_ARG_ENABLE([examples],
49 [AC_HELP_STRING([--enable-examples],
50 [Build example programs])],
51 [ENABLE_EXAMPLES=$enableval],
52 [ENABLE_EXAMPLES="no"])
54 if test x$ENABLE_EXAMPLES = xyes; then
55 MAYBE_EXAMPLES="examples"
57 AC_SUBST(MAYBE_EXAMPLES)
60 AC_CONFIG_FILES([Makefile]