< prev index next >

common/autoconf/basics.m4

Print this page




 220         let COUNTER=COUNTER+1
 221       done
 222       cd $STARTDIR
 223       $1=$sym_link_dir/$sym_link_file
 224     fi
 225   fi
 226 ])
 227 
 228 # Register a --with argument but mark it as deprecated
 229 # $1: The name of the with argument to deprecate, not including --with-
 230 AC_DEFUN([BASIC_DEPRECATED_ARG_WITH],
 231 [
 232   AC_ARG_WITH($1, [AS_HELP_STRING([--with-$1],
 233       [Deprecated. Option is kept for backwards compatibility and is ignored])],
 234       [AC_MSG_WARN([Option --with-$1 is deprecated and will be ignored.])])
 235 ])
 236 
 237 # Register a --enable argument but mark it as deprecated
 238 # $1: The name of the with argument to deprecate, not including --enable-
 239 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)

 240 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE],
 241 [
 242   AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1],
 243       [Deprecated. Option is kept for backwards compatibility and is ignored])])
 244   if test "x$enable_$2" != x; then
 245     AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])





 246   fi
 247 ])
 248 
 249 AC_DEFUN_ONCE([BASIC_INIT],
 250 [
 251   # Save the original command line. This is passed to us by the wrapper configure script.
 252   AC_SUBST(CONFIGURE_COMMAND_LINE)
 253   # Save the path variable before it gets changed
 254   ORIGINAL_PATH="$PATH"
 255   AC_SUBST(ORIGINAL_PATH)
 256   DATE_WHEN_CONFIGURED=`LANG=C date`
 257   AC_SUBST(DATE_WHEN_CONFIGURED)
 258   AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
 259   AC_MSG_NOTICE([configure script generated at timestamp $DATE_WHEN_GENERATED.])
 260 ])
 261 
 262 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
 263 # $1: variable to check
 264 AC_DEFUN([BASIC_CHECK_NONEMPTY],
 265 [




 220         let COUNTER=COUNTER+1
 221       done
 222       cd $STARTDIR
 223       $1=$sym_link_dir/$sym_link_file
 224     fi
 225   fi
 226 ])
 227 
 228 # Register a --with argument but mark it as deprecated
 229 # $1: The name of the with argument to deprecate, not including --with-
 230 AC_DEFUN([BASIC_DEPRECATED_ARG_WITH],
 231 [
 232   AC_ARG_WITH($1, [AS_HELP_STRING([--with-$1],
 233       [Deprecated. Option is kept for backwards compatibility and is ignored])],
 234       [AC_MSG_WARN([Option --with-$1 is deprecated and will be ignored.])])
 235 ])
 236 
 237 # Register a --enable argument but mark it as deprecated
 238 # $1: The name of the with argument to deprecate, not including --enable-
 239 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
 240 # $3: Messages to user.
 241 AC_DEFUN([BASIC_DEPRECATED_ARG_ENABLE],
 242 [
 243   AC_ARG_ENABLE($1, [AS_HELP_STRING([--enable-$1],
 244       [Deprecated. Option is kept for backwards compatibility and is ignored])])
 245   if test "x$enable_$2" != x; then
 246     AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])
 247 
 248     if test "x$3" != x; then
 249       AC_MSG_WARN([$3])
 250     fi
 251 
 252   fi
 253 ])
 254 
 255 AC_DEFUN_ONCE([BASIC_INIT],
 256 [
 257   # Save the original command line. This is passed to us by the wrapper configure script.
 258   AC_SUBST(CONFIGURE_COMMAND_LINE)
 259   # Save the path variable before it gets changed
 260   ORIGINAL_PATH="$PATH"
 261   AC_SUBST(ORIGINAL_PATH)
 262   DATE_WHEN_CONFIGURED=`LANG=C date`
 263   AC_SUBST(DATE_WHEN_CONFIGURED)
 264   AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
 265   AC_MSG_NOTICE([configure script generated at timestamp $DATE_WHEN_GENERATED.])
 266 ])
 267 
 268 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
 269 # $1: variable to check
 270 AC_DEFUN([BASIC_CHECK_NONEMPTY],
 271 [


< prev index next >