X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=5b8f1fa994f3aae70125e80b5da93c128c7831be;hb=4a75cfa21496112df81d290fca2a8e0ec245c802;hp=ca6eead46108d78126204b9426a267bc0191eefc;hpb=6c437065d363dee7f14296e80ae34877e4e1e78c;p=deb_libnfs.git diff --git a/configure.ac b/configure.ac index ca6eead..5b8f1fa 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.50) -AC_INIT([libnfs], [1.0.0]) +AC_INIT([libnfs], [0.0.0]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST @@ -40,12 +40,29 @@ 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) +case $host in + *darwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; + *solaris*) + AC_CHECK_HEADERS([sys/filio.h]) + if test x$ENABLE_EXAMPLES = xyes; then + AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])]) + AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])]) + fi + ;; + *) + ;; +esac + +AC_SUBST(RPCGENFLAGS) + #output AC_CONFIG_FILES([Makefile] [include/Makefile]