From: Mattia Barbon Date: Thu, 3 Feb 2005 22:34:54 +0000 (+0000) Subject: Automatically disable wxDialupManager for wxMac and wxCocoa, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b843b628c9f936d6a87ca1e9b91e88a4604270c4?ds=inline Automatically disable wxDialupManager for wxMac and wxCocoa, skip dialup sample if wxDialupManager is disabled. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index f2e8c2feab..c3128b95ea 100755 --- a/configure +++ b/configure @@ -35645,14 +35645,6 @@ _ACEOF fi -if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then - cat >>confdefs.h <<\_ACEOF -#define wxUSE_DIALUP_MANAGER 1 -_ACEOF - - SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" -fi - if test "$wxUSE_STREAMS" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define wxUSE_STREAMS 1 @@ -38149,6 +38141,19 @@ _ACEOF fi fi +if test "$wxUSE_DIALUP" = "yes"; then + if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then + { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 +echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} + else + cat >>confdefs.h <<\_ACEOF +#define wxUSE_DIALUP_MANAGER 1 +_ACEOF + + SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" + fi +fi + if test "$wxUSE_TIPWINDOW" = "yes"; then if test "$wxUSE_PM" = 1; then { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 diff --git a/configure.in b/configure.in index de2761229a..17194bb98f 100644 --- a/configure.in +++ b/configure.in @@ -4867,11 +4867,6 @@ if test "$wxUSE_GEOMETRY" = "yes"; then AC_DEFINE(wxUSE_GEOMETRY) fi -if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then - AC_DEFINE(wxUSE_DIALUP_MANAGER) - SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" -fi - if test "$wxUSE_STREAMS" = "yes" ; then AC_DEFINE(wxUSE_STREAMS) fi @@ -5754,6 +5749,15 @@ if test "$wxUSE_POPUPWIN" = "yes"; then fi fi +if test "$wxUSE_DIALUP" = "yes"; then + if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then + AC_MSG_WARN([Dialup manager not yet supported under Mac OS X... disabled]) + else + AC_DEFINE(wxUSE_DIALUP_MANAGER) + SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" + fi +fi + if test "$wxUSE_TIPWINDOW" = "yes"; then if test "$wxUSE_PM" = 1; then AC_MSG_WARN([wxTipWindow not yet supported under PM... disabled])