< prev index next >

common/autoconf/basics.m4

Print this page




 225       [Deprecated. Option is kept for backwards compatibility and is ignored])],
 226       [AC_MSG_WARN([Option --with-$1 is deprecated and will be ignored.])])
 227 ])
 228 
 229 # Register a --enable argument but mark it as deprecated
 230 # $1: The name of the with argument to deprecate, not including --enable-
 231 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
 232 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE],
 233 [
 234   AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1],
 235       [Deprecated. Option is kept for backwards compatibility and is ignored])])
 236   if test "x$enable_$2" != x; then
 237     AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])
 238   fi
 239 ])
 240 
 241 AC_DEFUN_ONCE([BASIC_INIT],
 242 [
 243   # Save the original command line. This is passed to us by the wrapper configure script.
 244   AC_SUBST(CONFIGURE_COMMAND_LINE)



 245   DATE_WHEN_CONFIGURED=`LANG=C date`
 246   AC_SUBST(DATE_WHEN_CONFIGURED)
 247   AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
 248   AC_MSG_NOTICE([configure script generated at timestamp $DATE_WHEN_GENERATED.])
 249 ])
 250 
 251 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
 252 # $1: variable to check
 253 AC_DEFUN([BASIC_CHECK_NONEMPTY],
 254 [
 255   if test "x[$]$1" = x; then
 256     AC_MSG_ERROR([Could not find required tool for $1])
 257   fi
 258 ])
 259 
 260 # Check that there are no unprocessed overridden variables left.
 261 # If so, they are an incorrect argument and we will exit with an error.
 262 AC_DEFUN([BASIC_CHECK_LEFTOVER_OVERRIDDEN],
 263 [
 264   if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then




 225       [Deprecated. Option is kept for backwards compatibility and is ignored])],
 226       [AC_MSG_WARN([Option --with-$1 is deprecated and will be ignored.])])
 227 ])
 228 
 229 # Register a --enable argument but mark it as deprecated
 230 # $1: The name of the with argument to deprecate, not including --enable-
 231 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
 232 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE],
 233 [
 234   AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1],
 235       [Deprecated. Option is kept for backwards compatibility and is ignored])])
 236   if test "x$enable_$2" != x; then
 237     AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])
 238   fi
 239 ])
 240 
 241 AC_DEFUN_ONCE([BASIC_INIT],
 242 [
 243   # Save the original command line. This is passed to us by the wrapper configure script.
 244   AC_SUBST(CONFIGURE_COMMAND_LINE)
 245   # Save the path variable before it gets changed
 246   ORIGINAL_PATH="$PATH"
 247   AC_SUBST(ORIGINAL_PATH)
 248   DATE_WHEN_CONFIGURED=`LANG=C date`
 249   AC_SUBST(DATE_WHEN_CONFIGURED)
 250   AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
 251   AC_MSG_NOTICE([configure script generated at timestamp $DATE_WHEN_GENERATED.])
 252 ])
 253 
 254 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
 255 # $1: variable to check
 256 AC_DEFUN([BASIC_CHECK_NONEMPTY],
 257 [
 258   if test "x[$]$1" = x; then
 259     AC_MSG_ERROR([Could not find required tool for $1])
 260   fi
 261 ])
 262 
 263 # Check that there are no unprocessed overridden variables left.
 264 # If so, they are an incorrect argument and we will exit with an error.
 265 AC_DEFUN([BASIC_CHECK_LEFTOVER_OVERRIDDEN],
 266 [
 267   if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then


< prev index next >