]> granicus.if.org Git - sudo/commitdiff
Error message if user tries --with-CC
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 16 Sep 2011 13:04:58 +0000 (09:04 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 16 Sep 2011 13:04:58 +0000 (09:04 -0400)
configure
configure.in

index c023d9443b7cd514d6640bc80e50cf895942c594..159386a8b1efc2604b4992517eea424d13b26005 100755 (executable)
--- 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
index 12ea4ace7f04a7390fce925d18a2841755ae37f9..7e04e211bd66787aa3fdae156bd685ae6e4088c8 100644 (file)
@@ -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)    ;;