X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=12b33cd5c71cb9858665527e5897d8121bcdd624;hb=357f65c0e10b90e5bea7435d9b3925676e937c86;hp=70203ee1594b4b89fa3d20c819c5ed73e1211353;hpb=f7f931c7e3a382b964ed6464125cf261e7358bf8;p=deb_libnfs.git diff --git a/configure.ac b/configure.ac index 70203ee..12b33cd 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.50) -AC_INIT([libnfs], [0.0.0]) +AC_INIT([libnfs], [1.0.0], [ronniesahlberg@gmail.com]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST @@ -34,12 +34,22 @@ if test x$ENABLE_EXAMPLES = xyes; then fi AC_SUBST(MAYBE_EXAMPLES) +AC_ARG_ENABLE(tirpc, + [AC_HELP_STRING([--enable-tirpc], + [enable use of TI-RPC @<:@default=no@:>@])], + enable_tirpc=$enableval, + enable_tirpc='no') + case $host in *darwin*) RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" ;; + *cygwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; *solaris*) AC_CHECK_HEADERS([sys/filio.h]) + AC_CHECK_HEADERS([sys/sockio.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])]) @@ -61,6 +71,12 @@ AC_CHECK_MEMBER([struct sockaddr.sa_len], #include ]) +echo "Use TI-RPC: $enable_tirpc" +if test "$enable_tirpc" = "yes"; then + CFLAGS="${CFLAGS} -I /usr/include/tirpc" + LDFLAGS="${LDFLAGS} -ltirpc" +fi + #output AC_CONFIG_FILES([Makefile] [include/Makefile] @@ -72,4 +88,4 @@ AC_CONFIG_FILES([Makefile] [examples/Makefile] ) -AC_OUTPUT +AC_OUTPUT([libnfs.pc])