2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-23 02:17:35 +00:00

Remove --with-CC option; it doesn't work correctly now that we use

libtool.  Users can get the same effect by setting the CC environment
variable when running configure.
This commit is contained in:
Todd C. Miller 2011-09-08 09:36:24 -04:00
parent f730cb7873
commit b3b268c3a4
3 changed files with 11 additions and 58 deletions

20
INSTALL
View File

@ -99,9 +99,6 @@ Directory and file names:
Find the sources in DIR [configure dir or ..] Find the sources in DIR [configure dir or ..]
Special features/options: Special features/options:
--with-CC=PATH
Specifies path to C compiler you wish to use.
--with-incpath=DIR --with-incpath=DIR
Adds the specified directory (or directories) to CPPFLAGS Adds the specified directory (or directories) to CPPFLAGS
so configure and the compiler will look there for include so configure and the compiler will look there for include
@ -715,14 +712,15 @@ Solaris 2.x:
CD. You can also get them from various places on the net, CD. You can also get them from various places on the net,
including http://www.sunfreeware.com/ including http://www.sunfreeware.com/
NOTE: sudo will *not* build with the sun C compiler in BSD NOTE: sudo will *not* build with the sun C compiler in BSD
compatibility mode (/usr/ucb/cc). Sudo is designed to compatibility mode (/usr/ucb/cc). Sudo is designed to
compile with the standard C compiler (or gcc) and will compile with the standard C compiler (or gcc) and will
not build correctly with /usr/ucb/cc. You can use the not build correctly with /usr/ucb/cc. You can set the
`--with-CC' option to point `configure' to the non-ucb CC environment variable to the non-ucb compiler when
compiler if it is not the first cc in your path. Some running `configure' if it is not the first cc in your
sites link /usr/ucb/cc to gcc; configure will not notice path. Some sites link /usr/ucb/cc to gcc; configure will
this and still refuse to use /usr/ucb/cc, so make sure gcc not notice this and still refuse to use /usr/ucb/cc, so
is also in your path if your site is setup this way. make sure gcc is also in your path if your site is setup
this way.
Also: Older versions of Solaris come with a broken syslogd. Also: Older versions of Solaris come with a broken syslogd.
If you have having problems with sudo logging you should If you have having problems with sudo logging you should
make sure you have the latest syslogd patch installed. make sure you have the latest syslogd patch installed.

28
configure vendored
View File

@ -787,7 +787,6 @@ enable_option_checking
with_otp_only with_otp_only
with_alertmail with_alertmail
with_devel with_devel
with_CC
with_rpath with_rpath
with_blibpath with_blibpath
with_bsm_audit with_bsm_audit
@ -1555,7 +1554,6 @@ Optional Packages:
--with-otp-only deprecated --with-otp-only deprecated
--with-alertmail deprecated --with-alertmail deprecated
--with-devel add development options --with-devel add development options
--with-CC C compiler to use
--with-rpath pass -R flag in addition to -L for lib paths --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-blibpath=PATH pass -blibpath flag to ld for additional lib paths
--with-bsm-audit enable BSM audit support --with-bsm-audit enable BSM audit support
@ -2990,20 +2988,6 @@ fi
# Check whether --with-CC was given.
if test "${with_CC+set}" = set; then :
withval=$with_CC; case $with_CC in
yes) as_fn_error $? "\"must give --with-CC an argument.\"" "$LINENO" 5
;;
no) as_fn_error $? "\"illegal argument: --without-CC.\"" "$LINENO" 5
;;
*) CC=$with_CC
;;
esac
fi
# Check whether --with-rpath was given. # Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then : if test "${with_rpath+set}" = set; then :
withval=$with_rpath; case $with_rpath in withval=$with_rpath; case $with_rpath in
@ -14193,17 +14177,7 @@ fi
;; ;;
*-*-bsdi*) *-*-bsdi*)
SKIP_SETREUID=yes SKIP_SETREUID=yes
# Use shlicc for BSD/OS [23].x unless asked to do otherwise # Check for newer BSD auth API
if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
case "$OSMAJOR" in
2|3) { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
$as_echo "$as_me: using shlicc as CC" >&6;}
ac_cv_prog_CC=shlicc
CC="$ac_cv_prog_CC"
;;
esac
fi
# Check for newer BSD auth API (just check for >= 3.0?)
if test -z "$with_bsdauth"; then if test -z "$with_bsdauth"; then
for ac_func in auth_challenge for ac_func in auth_challenge
do : do :

View File

@ -222,16 +222,6 @@ AC_ARG_WITH(devel, [AS_HELP_STRING([--with-devel], [add development options])],
;; ;;
esac]) esac])
AC_ARG_WITH(CC, [AS_HELP_STRING([--with-CC], [C compiler to use])],
[case $with_CC in
yes) AC_MSG_ERROR(["must give --with-CC an argument."])
;;
no) AC_MSG_ERROR(["illegal argument: --without-CC."])
;;
*) CC=$with_CC
;;
esac])
AC_ARG_WITH(rpath, [AS_HELP_STRING([--with-rpath], [pass -R flag in addition to -L for lib paths])], AC_ARG_WITH(rpath, [AS_HELP_STRING([--with-rpath], [pass -R flag in addition to -L for lib paths])],
[case $with_rpath in [case $with_rpath in
yes|no) ;; yes|no) ;;
@ -1777,16 +1767,7 @@ case "$host" in
;; ;;
*-*-bsdi*) *-*-bsdi*)
SKIP_SETREUID=yes SKIP_SETREUID=yes
# Use shlicc for BSD/OS [23].x unless asked to do otherwise # Check for newer BSD auth API
if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
case "$OSMAJOR" in
2|3) AC_MSG_NOTICE([using shlicc as CC])
ac_cv_prog_CC=shlicc
CC="$ac_cv_prog_CC"
;;
esac
fi
# Check for newer BSD auth API (just check for >= 3.0?)
if test -z "$with_bsdauth"; then if test -z "$with_bsdauth"; then
AC_CHECK_FUNCS(auth_challenge, [AUTH_EXCL_DEF="BSD_AUTH"]) AC_CHECK_FUNCS(auth_challenge, [AUTH_EXCL_DEF="BSD_AUTH"])
fi fi