]> git.saurik.com Git - wxWidgets.git/commitdiff
Enable wxUSE_DISPLAY by default. It is required for wxPython builds now
authorRon Lee <ron@debian.org>
Tue, 16 Mar 2004 01:45:39 +0000 (01:45 +0000)
committerRon Lee <ron@debian.org>
Tue, 16 Mar 2004 01:45:39 +0000 (01:45 +0000)
and doesn't seem obviously harmful to anyone else.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index 7b894af07e36229b4b20b777b3bcc042fa378185..6502d040e8e3945ed44ff8f09cbf2ac8e24f77f7 100755 (executable)
--- a/configure
+++ b/configure
@@ -878,6 +878,7 @@ Optional Features:
   --enable-optimise       create optimised code
   --enable-debug          same as debug_flag and debug_info
   --enable-stl            use STL for containers
+  --enable-omf            use OMF object format
   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
   --enable-debug_info     create code with debugging information
   --enable-debug_gdb      create code with extra GDB debugging information
@@ -2323,7 +2324,7 @@ else
   DEFAULT_wxUSE_CHECKLST=yes
   DEFAULT_wxUSE_CHOICE=yes
   DEFAULT_wxUSE_COMBOBOX=yes
-  DEFAULT_wxUSE_DISPLAY=no
+  DEFAULT_wxUSE_DISPLAY=yes
   DEFAULT_wxUSE_GAUGE=yes
   DEFAULT_wxUSE_GRID=yes
   DEFAULT_wxUSE_IMAGLIST=yes
@@ -3542,6 +3543,49 @@ echo "${ECHO_T}yes" >&6
 echo "${ECHO_T}no" >&6
           fi
 
+if test "$USE_OS2" = "1"; then
+
+         enablestring=
+          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
+          no_cache=0
+          # Check whether --enable-omf or --disable-omf was given.
+if test "${enable_omf+set}" = set; then
+  enableval="$enable_omf"
+
+                          if test "$enableval" = yes; then
+                            ac_cv_use_omf='wxUSE_OMF=yes'
+                          else
+                            ac_cv_use_omf='wxUSE_OMF=no'
+                          fi
+
+else
+
+                          LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
+                          if test "x$LINE" != x ; then
+                            eval "DEFAULT_$LINE"
+                          else
+                            no_cache=1
+                          fi
+
+                          ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
+
+fi;
+
+          eval "$ac_cv_use_omf"
+          if test "$no_cache" != 1; then
+            echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
+          fi
+
+          if test "$wxUSE_OMF" = yes; then
+            echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+          else
+            echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+          fi
+
+fi
 
 if test "$wxUSE_DEBUG" = "yes"; then
   DEFAULT_wxUSE_DEBUG_FLAG=yes
@@ -9849,6 +9893,13 @@ fi
 case "${host}" in
   *-pc-os2_emx | *-pc-os2-emx )
     PATH_IFS=';'
+        if test "$wxUSE_OMF" = "yes"; then
+      AR=emxomfar
+      RANLIB=:
+      LDFLAGS="-Zomf $LDFLAGS"
+      CFLAGS="-Zomf $CFLAGS"
+      CXXFLAGS="-Zomf $CXXFLAGS"
+    fi
   ;;
   *)
     PATH_IFS=':'
@@ -12254,6 +12305,9 @@ echo "${ECHO_T}$wx_cv_gccversion" >&6
           else
               LIBS="$LIBS -lstdc++"
           fi
+      fi
+      if test "$wxUSE_OMF" = "yes"; then
+        LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
       fi
         ;;
   *)
@@ -27627,7 +27681,6 @@ fi
 
 if test "$wxUSE_SHARED" = "yes"; then
     case "${host}" in
-      *-pc-os2_emx | *-pc-os2-emx | \
       *-pc-msdosdjgpp )
                 wxUSE_SHARED=no
         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
@@ -38285,6 +38338,8 @@ echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
             DLLPREFIX=""
         ;;
         *-pc-os2_emx | *-pc-os2-emx )
+            SO_SUFFIX="dll"
+            SO_SUFFIX_MODULE="dll"
             EXEEXT=".exe"
             DLLPREFIX=""
             LIBPREFIX=""
         PIC_FLAG=""
       ;;
 
+      *-pc-os2_emx | *-pc-os2-emx )
+        SHARED_LD_CC="dllar.sh -o"
+        SHARED_LD_CXX="dllar.sh -o"
+        PIC_FLAG=""
+      ;;
+
       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
       *-*-sunos4* | \
       *-*-osf* | \
       *-*-dgux5* | \
-      *-pc-os2_emx | *-pc-os2-emx | \
       *-*-sysv5* )
               ;;
 
index 7e466cf75ac377478ee3d1c57ebff4f93ad81379..b2ab7c13ff28ff4cd4302ceb561a69764db19850 100644 (file)
@@ -675,7 +675,7 @@ else
   DEFAULT_wxUSE_CHECKLST=yes
   DEFAULT_wxUSE_CHOICE=yes
   DEFAULT_wxUSE_COMBOBOX=yes
-  DEFAULT_wxUSE_DISPLAY=no
+  DEFAULT_wxUSE_DISPLAY=yes
   DEFAULT_wxUSE_GAUGE=yes
   DEFAULT_wxUSE_GRID=yes
   DEFAULT_wxUSE_IMAGLIST=yes