From: Kevin Rosenberg Date: Mon, 10 Sep 2007 08:21:42 +0000 (-0600) Subject: fix build on multiple versions of wx-config X-Git-Tag: v4.5.4^0 X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=commitdiff_plain;h=f217ca2511d7d18fe38b42a257a886a14fb984e8 fix build on multiple versions of wx-config --- diff --git a/ChangeLog b/ChangeLog index 4429dc2..cbdd961 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sep 10, 2007 Version 4.5.4 + * configure.ac: Fix builds with multiple versions of wx-config + -- thanks to Steve White + Apr 1, 2007 Version 4.5.3 * include/timer.h: Fix building on GCC 4.3 -- thanks to Martin Michlmayr diff --git a/Makefile.in b/Makefile.in index c12b66e..c2edfa8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -193,7 +193,7 @@ RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \ COPYING ChangeLog INSTALL Makefile.am NEWS TODO aclocal.m4 \ config.guess config.h.in config.sub configure configure.ac \ - configure.in depcomp install-sh missing mkinstalldirs + depcomp install-sh missing mkinstalldirs DIST_SUBDIRS = man libctsupport libctsim html cgi-bin include getopt \ libctgraphics src tools helical all: config.h diff --git a/configure b/configure index 8c25f9c..9e1d2ff 100755 --- a/configure +++ b/configure @@ -4969,7 +4969,7 @@ echo "${ECHO_T}no" >&6; } fi -if ! "$wxconfig" ; then +if test -z "$wxconfig" ; then # Extract the first word of "wx-config", so it can be a program name with args. set dummy wx-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 @@ -11133,7 +11133,7 @@ echo "${ECHO_T}yes" >&6; } ctlib_graphics="$ctlib_graphics -lGL -lGLU" if test "$wxwin" = "true" ; then if "$wx_gtk" ; then - ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`" + ctlib_graphics="$ctlib_graphics `$wxconfig --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`" elif "$wx_mac" ; then ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4" fi diff --git a/configure.ac b/configure.ac index f0c72fe..78bcb8a 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_PROG_CXX AC_C_BIGENDIAN AC_PATH_PROG(wxconfig,wxgtk-2.4-config) -if [ ! "$wxconfig" ]; then +if test -z "$wxconfig" ; then AC_PATH_PROG(wxconfig,wx-config) fi @@ -338,7 +338,7 @@ if test "$with_x" != "no" && test "$wxwin" = "true"; then ctlib_graphics="$ctlib_graphics -lGL -lGLU" if test "$wxwin" = "true" ; then if [ "$wx_gtk" ]; then - ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`" + ctlib_graphics="$ctlib_graphics `$wxconfig --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`" elif [ "$wx_mac" ]; then ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4" fi diff --git a/debian/changelog b/debian/changelog index 86e0dd6..dda10e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ctsim (4.5.4-1) unstable; urgency=low + + * New upstrea + + -- Kevin M. Rosenberg Mon, 10 Sep 2007 02:18:54 -0600 + ctsim (4.5.3-3) unstable; urgency=low * debian/ctsim.menu: Update to new menu structure