This patch cleans up the acinclude code (wx library is no longer tied to
a particular system type), and fixes the wx-config static libs problem.
I will submit another patch (against this version), when I figure out
what I have to do for embeded XRC files.
ahp
--- pgadmin3/acinclude.m4 2003-06-27 11:40:05.000000000 -0400
+++ pgadmin3.new/acinclude.m4 2003-07-21 13:16:33.000000000 -0400
@@ -187,7 +187,7 @@
WX_OLD_CPPFLAGS="$CPPFLAGS"
if test "$pg_static_build" == "yes"
then
- WX_NEW_LDFLAGS=`${WX_CONFIG} --libs --static`
+ WX_NEW_LDFLAGS=`${WX_CONFIG} --static --libs`
else
WX_NEW_LDFLAGS=`${WX_CONFIG} --libs`
fi
@@ -208,105 +208,85 @@
# Here we go!!
if test "$pg_static_build" == "yes"
then
- case "${host}" in
- *-apple-darwin*)
- case "${WX_NEW_LDFLAGS}" in
- *libwx_macud-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_macud_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_macud_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_macd-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_macd_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_macd_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_mac-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_mac_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_mac_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *)
- ;;
- esac
- ;;
- *) # This used to be just for Linux, but let's make it the default now as it should be appropriate for any
wxGTKbuild
- case "${WX_NEW_LDFLAGS}" in
- *libwx_gtk2ud-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2ud_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk2ud_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_gtk2d-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2d_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk2d_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_gtk2u-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2u_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk2u_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_gtkud-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkud_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtkud_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_gtkd-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkd_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtkd_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *libwx_gtk-*)
- LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk_xrc-${WX_VERSION}.a"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *)
- ;;
- esac
+ case "${WX_NEW_LDFLAGS}" in
+ *libwx_macud-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_macud_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_macud_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_macd-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_macd_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_macd_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_mac-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_mac_stc-${WX_VERSION}.a ${WX_HOME}/lib/libwx_mac_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_gtk2ud-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2ud_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk2ud_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_gtk2d-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2d_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk2d_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_gtk2u-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2u_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtk2u_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_gtkud-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkud_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtkud_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_gtkd-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkd_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_gtkd_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *libwx_gtk-*)
+ LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk_stc-${WX_VERSION}.a ${WX_HOME}/lib/libwx_gtk_xrc-${WX_VERSION}.a"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *)
;;
esac
else
- case "${host}" in
- *-apple-darwin*)
- case "${WX_NEW_LDFLAGS}" in
- *wx_macud-*)
- LIBS="$LIBS -lwx_macud_stc-${WX_VERSION} -lwx_macud_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_macd-*)
- LIBS="$LIBS -lwx_macd_stc-${WX_VERSION} -lwx_macd_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_mac-*)
- LIBS="$LIBS -lwx_mac_stc-${WX_VERSION} -lwx_mac_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *)
- ;;
- esac
- ;;
- *) # This used to be just for Linux, but let's make it the default now as it should be appropriate for
anywxGTK build
- case "${WX_NEW_LDFLAGS}" in
- *wx_gtk2ud-*)
- LIBS="$LIBS -lwx_gtk2ud_stc-${WX_VERSION} -lwx_gtk2ud_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_gtk2d-*)
- LIBS="$LIBS -lwx_gtk2d_stc-${WX_VERSION} -lwx_gtk2d_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_gtk2u-*)
- LIBS="$LIBS -lwx_gtk2u_stc-${WX_VERSION} -lwx_gtk2u_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_gtkud-*)
- LIBS="$LIBS -lwx_gtkud_stc-${WX_VERSION} -lwx_gtkud_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_gtkd-*)
- LIBS="$LIBS -lwx_gtkd_stc-${WX_VERSION} -lwx_gtkd_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *wx_gtk-*)
- LIBS="$LIBS -lwx_gtk_stc-${WX_VERSION} -lwx_gtk_xrc-${WX_VERSION}"
- LIBS="$LIBS $WX_NEW_LDFLAGS"
- ;;
- *)
- ;;
- esac
+ case "${WX_NEW_LDFLAGS}" in
+ *wx_macud-*)
+ LIBS="$LIBS -lwx_macud_stc-${WX_VERSION} -lwx_macud_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_macd-*)
+ LIBS="$LIBS -lwx_macd_stc-${WX_VERSION} -lwx_macd_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_mac-*)
+ LIBS="$LIBS -lwx_mac_stc-${WX_VERSION} -lwx_mac_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_gtk2ud-*)
+ LIBS="$LIBS -lwx_gtk2ud_stc-${WX_VERSION} -lwx_gtk2ud_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_gtk2d-*)
+ LIBS="$LIBS -lwx_gtk2d_stc-${WX_VERSION} -lwx_gtk2d_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_gtk2u-*)
+ LIBS="$LIBS -lwx_gtk2u_stc-${WX_VERSION} -lwx_gtk2u_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_gtkud-*)
+ LIBS="$LIBS -lwx_gtkud_stc-${WX_VERSION} -lwx_gtkud_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_gtkd-*)
+ LIBS="$LIBS -lwx_gtkd_stc-${WX_VERSION} -lwx_gtkd_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *wx_gtk-*)
+ LIBS="$LIBS -lwx_gtk_stc-${WX_VERSION} -lwx_gtk_xrc-${WX_VERSION}"
+ LIBS="$LIBS $WX_NEW_LDFLAGS"
+ ;;
+ *)
;;
esac
fi