optimization: don't test for various proprietary Unix compilers unless we're running under OS they support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -187,42 +187,57 @@ fi
|
|||||||
dnl ===========================================================================
|
dnl ===========================================================================
|
||||||
dnl Macros to do all of the compiler detections as one macro
|
dnl Macros to do all of the compiler detections as one macro
|
||||||
dnl ===========================================================================
|
dnl ===========================================================================
|
||||||
|
|
||||||
|
dnl check for different proprietary compilers depending on target platform
|
||||||
|
dnl _AC_BAKEFILE_PROG_COMPILER(LANG)
|
||||||
|
AC_DEFUN([_AC_BAKEFILE_PROG_COMPILER],
|
||||||
|
[
|
||||||
|
AC_PROG_$1
|
||||||
|
AC_BAKEFILE_PROG_INTEL$1
|
||||||
|
dnl if we're using gcc, we can't be using any of incompatible compilers
|
||||||
|
if test "x$G$1" != "xyes"; then
|
||||||
|
if test "x$1" = "xC"; then
|
||||||
|
AC_BAKEFILE_METROWERKS_EXTO
|
||||||
|
if test "x$wx_cv_c_exto" '!=' "x"; then
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
_AC_PROG_CC_G
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl most of these compilers are only used under well-defined OS so
|
||||||
|
dnl don't waste time checking for them on other ones
|
||||||
|
case `uname -s` in
|
||||||
|
AIX*)
|
||||||
|
AC_BAKEFILE_PROG_XL$1
|
||||||
|
;;
|
||||||
|
|
||||||
|
Darwin)
|
||||||
|
AC_BAKEFILE_PROG_MW$1
|
||||||
|
AC_BAKEFILE_PROG_XL$1
|
||||||
|
;;
|
||||||
|
|
||||||
|
IRIX*)
|
||||||
|
AC_BAKEFILE_PROG_SGI$1
|
||||||
|
;;
|
||||||
|
|
||||||
|
SunOS)
|
||||||
|
AC_BAKEFILE_PROG_SUN$1
|
||||||
|
;;
|
||||||
|
|
||||||
|
HP-UX*)
|
||||||
|
AC_BAKEFILE_PROG_HP$1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
AC_DEFUN([AC_BAKEFILE_PROG_CC],
|
AC_DEFUN([AC_BAKEFILE_PROG_CC],
|
||||||
[
|
[
|
||||||
AC_PROG_CC
|
_AC_BAKEFILE_PROG_COMPILER(CC)
|
||||||
AC_BAKEFILE_PROG_INTELCC
|
|
||||||
dnl if we're using gcc, we can't be using any of incompatible compilers
|
|
||||||
if test "x$GCC" != "xyes"; then
|
|
||||||
AC_BAKEFILE_METROWERKS_EXTO
|
|
||||||
dnl By the time we find out that we need -ext o some tests have failed.
|
|
||||||
if test "x$wx_cv_c_exto" '!=' "x"; then
|
|
||||||
unset ac_cv_prog_cc_g
|
|
||||||
_AC_PROG_CC_G
|
|
||||||
fi
|
|
||||||
AC_BAKEFILE_PROG_MWCC
|
|
||||||
AC_BAKEFILE_PROG_XLCC
|
|
||||||
AC_BAKEFILE_PROG_SGICC
|
|
||||||
AC_BAKEFILE_PROG_SUNCC
|
|
||||||
AC_BAKEFILE_PROG_HPCC
|
|
||||||
fi
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([AC_BAKEFILE_PROG_CXX],
|
AC_DEFUN([AC_BAKEFILE_PROG_CXX],
|
||||||
[
|
[
|
||||||
AC_PROG_CXX
|
_AC_BAKEFILE_PROG_COMPILER(CXX)
|
||||||
AC_BAKEFILE_PROG_INTELCXX
|
|
||||||
if test "x$GXX" != "xyes"; then
|
|
||||||
AC_BAKEFILE_METROWERKS_EXTO
|
|
||||||
dnl By the time we find out that we need -ext o some tests have failed.
|
|
||||||
if test "x$wx_cv_cxx_exto" '!=' "x"; then
|
|
||||||
unset ac_cv_prog_cxx_g
|
|
||||||
_AC_PROG_CXX_G
|
|
||||||
fi
|
|
||||||
AC_BAKEFILE_PROG_MWCXX
|
|
||||||
AC_BAKEFILE_PROG_XLCXX
|
|
||||||
AC_BAKEFILE_PROG_SGICXX
|
|
||||||
AC_BAKEFILE_PROG_SUNCXX
|
|
||||||
AC_BAKEFILE_PROG_HPCXX
|
|
||||||
fi
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
695
configure
vendored
695
configure
vendored
@@ -10768,6 +10768,7 @@ rm -f confcache
|
|||||||
CFLAGS=${CFLAGS:=}
|
CFLAGS=${CFLAGS:=}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -11773,7 +11774,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
|
|
||||||
|
|
||||||
if test "x$GCC" != "xyes"; then
|
if test "x$GCC" != "xyes"; then
|
||||||
echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
|
if test "xCC" = "xC"; then
|
||||||
|
echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
|
||||||
echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
|
echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
|
||||||
if test "${wx_cv_c_exto+set}" = set; then
|
if test "${wx_cv_c_exto+set}" = set; then
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
@@ -11831,9 +11833,9 @@ if test "x$wx_cv_c_exto" '!=' "x"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$wx_cv_c_exto" '!=' "x"; then
|
if test "x$wx_cv_c_exto" '!=' "x"; then
|
||||||
unset ac_cv_prog_cc_g
|
unset ac_cv_prog_cc_g
|
||||||
ac_test_CFLAGS=${CFLAGS+set}
|
ac_test_CFLAGS=${CFLAGS+set}
|
||||||
ac_save_CFLAGS=$CFLAGS
|
ac_save_CFLAGS=$CFLAGS
|
||||||
CFLAGS="-g"
|
CFLAGS="-g"
|
||||||
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
||||||
@@ -11903,80 +11905,12 @@ else
|
|||||||
CFLAGS=
|
CFLAGS=
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
ac_ext=c
|
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
||||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
||||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
|
case `uname -s` in
|
||||||
echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
|
AIX*)
|
||||||
if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
|
ac_ext=c
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
||||||
else
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
#ifndef __MWERKS__
|
|
||||||
choke me
|
|
||||||
#endif
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
(eval $ac_compile) 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } &&
|
|
||||||
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; } &&
|
|
||||||
{ ac_try='test -s conftest.$ac_objext'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; }; then
|
|
||||||
bakefile_compiler_mwerks=yes
|
|
||||||
else
|
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
bakefile_compiler_mwerks=no
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
|
|
||||||
|
|
||||||
fi
|
|
||||||
echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
|
|
||||||
echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
|
|
||||||
|
|
||||||
MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
|
|
||||||
ac_ext=c
|
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
||||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
||||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
@@ -12048,6 +11982,156 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
|
|||||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
Darwin)
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
|
||||||
|
echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
|
||||||
|
if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
#ifndef __MWERKS__
|
||||||
|
choke me
|
||||||
|
#endif
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
bakefile_compiler_mwerks=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
bakefile_compiler_mwerks=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
|
||||||
|
echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
|
||||||
|
|
||||||
|
MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
|
||||||
|
echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
|
||||||
|
if test "${wx_cv_c_compiler_xlc+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
#ifndef __xlC__
|
||||||
|
choke me
|
||||||
|
#endif
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
wx_compiler_xlc=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
wx_compiler_xlc=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
wx_cv_c_compiler_xlc=$wx_compiler_xlc
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
|
||||||
|
echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
|
||||||
|
|
||||||
|
XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
IRIX*)
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
@@ -12128,6 +12212,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
SunOS)
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
@@ -12208,9 +12295,95 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
HP-UX*)
|
||||||
|
|
||||||
|
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
|
||||||
|
echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
|
||||||
|
if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
#ifndef __HP_cc
|
||||||
|
choke me
|
||||||
|
#endif
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
bakefile_cv_c_compiler___HP_cc=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
bakefile_cv_c_compiler___HP_cc=no
|
||||||
|
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
|
||||||
|
echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
|
||||||
|
:; HPCC=yes
|
||||||
|
else
|
||||||
|
:;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -12524,6 +12697,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
CXXFLAGS=${CXXFLAGS:=}
|
CXXFLAGS=${CXXFLAGS:=}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=cc
|
ac_ext=cc
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -12955,8 +13129,9 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "x$GXX" != "xyes"; then
|
if test "x$GCXX" != "xyes"; then
|
||||||
echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
|
if test "xCXX" = "xC"; then
|
||||||
|
echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
|
||||||
echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
|
echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
|
||||||
if test "${wx_cv_cxx_exto+set}" = set; then
|
if test "${wx_cv_cxx_exto+set}" = set; then
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
@@ -13014,14 +13189,14 @@ if test "x$wx_cv_cxx_exto" '!=' "x"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$wx_cv_cxx_exto" '!=' "x"; then
|
if test "x$wx_cv_c_exto" '!=' "x"; then
|
||||||
unset ac_cv_prog_cxx_g
|
unset ac_cv_prog_cc_g
|
||||||
ac_test_CXXFLAGS=${CXXFLAGS+set}
|
ac_test_CFLAGS=${CFLAGS+set}
|
||||||
ac_save_CXXFLAGS=$CXXFLAGS
|
ac_save_CFLAGS=$CFLAGS
|
||||||
CXXFLAGS="-g"
|
CFLAGS="-g"
|
||||||
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
||||||
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
||||||
if test "${ac_cv_prog_cxx_g+set}" = set; then
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
@@ -13060,106 +13235,38 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }; }; then
|
(exit $ac_status); }; }; then
|
||||||
ac_cv_prog_cxx_g=yes
|
ac_cv_prog_cc_g=yes
|
||||||
else
|
else
|
||||||
echo "$as_me: failed program was:" >&5
|
echo "$as_me: failed program was:" >&5
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
ac_cv_prog_cxx_g=no
|
ac_cv_prog_cc_g=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
||||||
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
||||||
if test "$ac_test_CXXFLAGS" = set; then
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
CXXFLAGS=$ac_save_CXXFLAGS
|
CFLAGS=$ac_save_CFLAGS
|
||||||
elif test $ac_cv_prog_cxx_g = yes; then
|
elif test $ac_cv_prog_cc_g = yes; then
|
||||||
if test "$GXX" = yes; then
|
if test "$GCC" = yes; then
|
||||||
CXXFLAGS="-g -O2"
|
CFLAGS="-g -O2"
|
||||||
else
|
else
|
||||||
CXXFLAGS="-g"
|
CFLAGS="-g"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if test "$GXX" = yes; then
|
if test "$GCC" = yes; then
|
||||||
CXXFLAGS="-O2"
|
CFLAGS="-O2"
|
||||||
else
|
else
|
||||||
CXXFLAGS=
|
CFLAGS=
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
ac_ext=cc
|
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
||||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
||||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
|
case `uname -s` in
|
||||||
echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
|
AIX*)
|
||||||
if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
|
ac_ext=cc
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
||||||
else
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
#ifndef __MWERKS__
|
|
||||||
choke me
|
|
||||||
#endif
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
(eval $ac_compile) 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } &&
|
|
||||||
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; } &&
|
|
||||||
{ ac_try='test -s conftest.$ac_objext'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; }; then
|
|
||||||
bakefile_compiler_mwerks=yes
|
|
||||||
else
|
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
bakefile_compiler_mwerks=no
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
|
|
||||||
|
|
||||||
fi
|
|
||||||
echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
|
|
||||||
echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
|
|
||||||
|
|
||||||
MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
|
|
||||||
ac_ext=cc
|
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
||||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
||||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=cc
|
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
@@ -13231,6 +13338,156 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
|
|||||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
Darwin)
|
||||||
|
ac_ext=cc
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
|
||||||
|
echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
|
||||||
|
if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
#ifndef __MWERKS__
|
||||||
|
choke me
|
||||||
|
#endif
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
bakefile_compiler_mwerks=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
bakefile_compiler_mwerks=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
|
||||||
|
echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
|
||||||
|
|
||||||
|
MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
|
||||||
|
ac_ext=cc
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
ac_ext=cc
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
|
||||||
|
echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
|
||||||
|
if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
#ifndef __xlC__
|
||||||
|
choke me
|
||||||
|
#endif
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
wx_compiler_xlc=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
wx_compiler_xlc=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
|
||||||
|
echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
|
||||||
|
|
||||||
|
XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
|
||||||
|
ac_ext=cc
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
IRIX*)
|
||||||
|
|
||||||
|
|
||||||
ac_ext=cc
|
ac_ext=cc
|
||||||
@@ -13311,6 +13568,9 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
SunOS)
|
||||||
|
|
||||||
|
|
||||||
ac_ext=cc
|
ac_ext=cc
|
||||||
@@ -13391,9 +13651,95 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
HP-UX*)
|
||||||
|
|
||||||
|
|
||||||
|
ac_ext=cc
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
|
||||||
|
echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
|
||||||
|
if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
#ifndef __HP_aCC
|
||||||
|
choke me
|
||||||
|
#endif
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
bakefile_cv_cxx_compiler___HP_aCC=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
bakefile_cv_cxx_compiler___HP_aCC=no
|
||||||
|
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
|
||||||
|
echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
|
||||||
|
ac_ext=cc
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
|
||||||
|
:; HPCXX=yes
|
||||||
|
else
|
||||||
|
:;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -44605,8 +44951,13 @@ echo "${ECHO_T}Sun cc" >&6
|
|||||||
DEPSFLAG="-M"
|
DEPSFLAG="-M"
|
||||||
echo "$as_me:$LINENO: result: SGI cc" >&5
|
echo "$as_me:$LINENO: result: SGI cc" >&5
|
||||||
echo "${ECHO_T}SGI cc" >&6
|
echo "${ECHO_T}SGI cc" >&6
|
||||||
|
elif test "x$HPCC" = "xyes"; then
|
||||||
|
DEPSMODE=unixcc
|
||||||
|
DEPSFLAG="+make"
|
||||||
|
echo "$as_me:$LINENO: result: HP cc" >&5
|
||||||
|
echo "${ECHO_T}HP cc" >&6
|
||||||
else
|
else
|
||||||
DEPS_TRACKING=0
|
DEPS_TRACKING=0
|
||||||
echo "$as_me:$LINENO: result: none" >&5
|
echo "$as_me:$LINENO: result: none" >&5
|
||||||
echo "${ECHO_T}none" >&6
|
echo "${ECHO_T}none" >&6
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user