Fix so that AR/AROPTIONS can be overridden on the configure command line when

using Sun CC.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-12-09 23:43:54 +00:00
parent e3a10e0c62
commit d083d20168
3 changed files with 16 additions and 10 deletions

12
configure vendored
View File

@@ -15219,7 +15219,8 @@ else
fi
if test -n "$ac_tool_prefix"; then
if test "x$SUNCXX" != xyes; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -15298,10 +15299,11 @@ else
AR="$ac_cv_prog_AR"
fi
if test "x$AR" = "x" ; then
{ { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
if test "x$AR" = "x" ; then
{ { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
# Find a good install program. We prefer a C program (faster),
@@ -47931,9 +47933,9 @@ fi
if test "x$SUNCXX" = "xyes"; then
AR=$CXX
AR=${AR:-"$CXX"}
AROPTIONS="-xar -o"
AROPTIONS=${AROPTIONS:-"-xar -o"}
else
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.