equal
deleted
inserted
replaced
241 ]) |
241 ]) |
242 |
242 |
243 # Register a --enable argument but mark it as deprecated |
243 # Register a --enable argument but mark it as deprecated |
244 # $1: The name of the with argument to deprecate, not including --enable- |
244 # $1: The name of the with argument to deprecate, not including --enable- |
245 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) |
245 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) |
|
246 # $3: Messages to user. |
246 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE], |
247 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE], |
247 [ |
248 [ |
248 AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1], |
249 AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1], |
249 [Deprecated. Option is kept for backwards compatibility and is ignored])]) |
250 [Deprecated. Option is kept for backwards compatibility and is ignored])]) |
250 if test "x$enable_$2" != x; then |
251 if test "x$enable_$2" != x; then |
251 AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.]) |
252 AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.]) |
|
253 |
|
254 if test "x$3" != x; then |
|
255 AC_MSG_WARN([$3]) |
|
256 fi |
|
257 |
252 fi |
258 fi |
253 ]) |
259 ]) |
254 |
260 |
255 AC_DEFUN_ONCE([BASIC_INIT], |
261 AC_DEFUN_ONCE([BASIC_INIT], |
256 [ |
262 [ |