Recognize GTK3 port in helper autoconf macros.
Allow "gtk3" as a value of --with-toolkit option and recognize it correctly when auto-detecting toolkit from `wx-config --selected-config` output.
This commit is contained in:
parent
bbecebd4ba
commit
bff235c918
6
wxwin.m4
6
wxwin.m4
@ -602,12 +602,12 @@ AC_DEFUN([WX_STANDARD_OPTIONS],
|
||||
TOOLKIT="$withval"
|
||||
|
||||
dnl PORT must be one of the allowed values
|
||||
if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
|
||||
if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
|
||||
"$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
|
||||
"$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
|
||||
"$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11"; then
|
||||
AC_MSG_ERROR([
|
||||
Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, osx_carbon, osx_cocoa, dfb, x11)
|
||||
Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11)
|
||||
])
|
||||
fi
|
||||
|
||||
@ -866,6 +866,7 @@ AC_DEFUN([WX_DETECT_STANDARD_OPTION_VALUES],
|
||||
|
||||
WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
|
||||
WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
|
||||
WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
|
||||
WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
|
||||
WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
|
||||
WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
|
||||
@ -876,6 +877,7 @@ AC_DEFUN([WX_DETECT_STANDARD_OPTION_VALUES],
|
||||
WX_PORT="unknown"
|
||||
if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
|
||||
if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
|
||||
if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
|
||||
if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
|
||||
if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
|
||||
if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
|
||||
|
Loading…
Reference in New Issue
Block a user