repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compile error on solaris.
[deb_libnfs.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index ca6eead46108d78126204b9426a267bc0191eefc..9689a1f57a721d7a001fb5bfd872be57cc180329 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1,5
+1,5
@@
AC_PREREQ(2.50)
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
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
AC_CANONICAL_HOST
@@
-40,12
+40,25
@@
AC_ARG_ENABLE([examples],
[Build example programs])],
[ENABLE_EXAMPLES=$enableval],
[ENABLE_EXAMPLES="no"])
[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)
AC_SUBST(MAYBE_EXAMPLES)
+case $host in
+ *darwin*)
+ RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
+ ;;
+ *solaris*)
+ AC_CHECK_HEADERS([sys/filio.h])
+ ;;
+ *)
+ ;;
+esac
+
+AC_SUBST(RPCGENFLAGS)
+
#output
AC_CONFIG_FILES([Makefile]
[include/Makefile]
#output
AC_CONFIG_FILES([Makefile]
[include/Makefile]