1.1 --- a/common/autoconf/basics.m4 Tue Sep 17 19:06:17 2013 -0700 1.2 +++ b/common/autoconf/basics.m4 Wed Sep 18 12:37:54 2013 +0200 1.3 @@ -203,6 +203,15 @@ 1.4 fi 1.5 ]) 1.6 1.7 +# Register a --with argument but mark it as deprecated 1.8 +# $1: The name of the with argument to deprecate, not including --with- 1.9 +AC_DEFUN([BASIC_DEPRECATED_ARG_WITH], 1.10 +[ 1.11 + AC_ARG_WITH($1, [AS_HELP_STRING([--with-$1], 1.12 + [Deprecated. Option is kept for backwards compatibility and is ignored])], 1.13 + [AC_MSG_WARN([Option --with-$1 is deprecated and will be ignored.])]) 1.14 +]) 1.15 + 1.16 AC_DEFUN_ONCE([BASIC_INIT], 1.17 [ 1.18 # Save the original command line. This is passed to us by the wrapper configure script.