summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2017-07-24 07:01:35 (GMT)
committerMichael Tuexen <tuexen@fh-muenster.de>2017-07-24 07:01:35 (GMT)
commit281024f8e2e61d1f29fed7cc7bccfa003167b4cb (patch)
tree6b1683bb049b90d120a0e535f2286c908bf24969
parent74842cbcd8e156096fc22d8092be99907c698e6a (diff)
downloadusrsctp-281024f8e2e61d1f29fed7cc7bccfa003167b4cb.tar.gz
usrsctp-281024f8e2e61d1f29fed7cc7bccfa003167b4cb.tar.xz
Add --enable-programs to configure script.
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7cc0176..2339ea7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,6 +132,14 @@ if test x$enable_inet6 = xyes; then
AC_DEFINE(INET6, 1, [Support IPv6])
fi
+AC_ARG_ENABLE(programs,
+ AC_HELP_STRING( [--enable-programs],
+ [build example programs @<:@default=yes@:>@]),
+ enable_programs=$enableval,enable_programs=yes)
+if test x$enable_programs = xyes; then
+ AC_CONFIG_FILES(programs/Makefile)
+fi
+
AC_CHECK_TYPE(size_t)
AC_CHECK_TYPE(ssize_t)
@@ -184,4 +192,4 @@ AC_C_BIGENDIAN
AC_SUBST([LIBCFLAGS])
AC_SUBST([APPCFLAGS])
dnl AC_CONFIG_FILES([usrsctp.pc])
-AC_OUTPUT(Makefile usrsctplib/Makefile programs/Makefile)
+AC_OUTPUT(Makefile usrsctplib/Makefile)