X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=97e191f6b6c4940de19615a4f170aeb1d780ead5;hb=13283beb698ae90fba9248b25b487d7c79ddd440;hp=4da0ef928bc7742198964d012ce8b8be47eaf246;hpb=2842ff15c8c62dce60a7988ad41a1e89316581a0;p=deb_libnfs.git diff --git a/configure.ac b/configure.ac index 4da0ef9..97e191f 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,16 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST +case $host in + *darwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; + *) + ;; +esac + +AC_SUBST(RPCGENFLAGS) + # Work around stupid autoconf default cflags. pt 1 SAVE_CFLAGS="x${CFLAGS}" @@ -40,10 +50,10 @@ AC_ARG_ENABLE([examples], [Build example programs])], [ENABLE_EXAMPLES=$enableval], [ENABLE_EXAMPLES="no"]) -AM_CONDITIONAL(EXAMPLES, [test x$ENABLE_EXAMPLES = xyes]) -AM_COND_IF(EXAMPLES, - [MAYBE_EXAMPLES="examples"] - [config_examples="examples/Makefile"]) + +if test x$ENABLE_EXAMPLES = xyes; then + MAYBE_EXAMPLES="examples" +fi AC_SUBST(MAYBE_EXAMPLES) #output