From: Todd C. Miller Date: Fri, 16 Sep 2011 13:04:58 +0000 (-0400) Subject: Error message if user tries --with-CC X-Git-Tag: SUDO_1_8_3~43^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=523492af52768a07eb864e58db6e1b30b78f78d7;p=sudo Error message if user tries --with-CC --- diff --git a/configure b/configure index c023d9443..159386a8b 100755 --- a/configure +++ b/configure @@ -787,6 +787,7 @@ enable_option_checking with_otp_only with_alertmail with_devel +with_CC with_rpath with_blibpath with_bsm_audit @@ -1554,6 +1555,7 @@ Optional Packages: --with-otp-only deprecated --with-alertmail deprecated --with-devel add development options + --with-CC C compiler to use --with-rpath pass -R flag in addition to -L for lib paths --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths --with-bsm-audit enable BSM audit support @@ -2988,6 +2990,16 @@ fi +# Check whether --with-CC was given. +if test "${with_CC+set}" = set; then : + withval=$with_CC; case $with_CC in + *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5 + ;; +esac +fi + + + # Check whether --with-rpath was given. if test "${with_rpath+set}" = set; then : withval=$with_rpath; case $with_rpath in diff --git a/configure.in b/configure.in index 12ea4ace7..7e04e211b 100644 --- a/configure.in +++ b/configure.in @@ -222,6 +222,12 @@ AC_ARG_WITH(devel, [AS_HELP_STRING([--with-devel], [add development options])], ;; esac]) +AC_ARG_WITH(CC, [AS_HELP_STRING([--with-CC], [C compiler to use])], +[case $with_CC in + *) AC_MSG_ERROR([the --with-CC option is no longer supported, please set the CC environment variable instead.]) + ;; +esac]) + AC_ARG_WITH(rpath, [AS_HELP_STRING([--with-rpath], [pass -R flag in addition to -L for lib paths])], [case $with_rpath in yes|no) ;;