added minimal support for xlc under Darwin

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-09-20 15:41:41 +00:00
parent de5eec8ebb
commit 8e91c6f389
2 changed files with 28 additions and 2 deletions

17
configure vendored
View File

@@ -24312,7 +24312,22 @@ rm -f conftest.$ac_objext conftest.$ac_ext
fi
if test "$wxUSE_MAC" = 1; then
CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
if test "$GCC" = yes; then
echo "$as_me:$LINENO: result: gcc" >&5
echo "${ECHO_T}gcc" >&6
CPPFLAGS_PASCAL="-fpascal-strings"
elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
echo "$as_me:$LINENO: result: xlc" >&5
echo "${ECHO_T}xlc" >&6
CPPFLAGS_PASCAL="-qmacpstr"
else
echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
fi
CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
TOOLKIT=MAC

View File

@@ -2796,7 +2796,18 @@ equivalent variable and GTK+ is version 1.2.3 or above.
fi
if test "$wxUSE_MAC" = 1; then
CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
AC_MSG_CHECKING([for compiler syntax to enable Pascal strings])
if test "$GCC" = yes; then
AC_MSG_RESULT([gcc])
CPPFLAGS_PASCAL="-fpascal-strings"
elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
AC_MSG_RESULT([xlc])
CPPFLAGS_PASCAL="-qmacpstr"
else
AC_MSG_RESULT([none])
fi
CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
TOOLKIT=MAC