[ptx] wx-config related change in configure

Hendrik Scholz hscholz at raisdorf.net
Wed Sep 8 19:03:49 BST 2004


Hi!

I'm about to compile hugin on FreeBSD and configure didn't work since
FreeBSD has wxgtk-2.4.4-config rather than wx-config (and gtk12-config 
instead of gtk-config and ....).

Here is a small diff for configure that allows me to get started with 
compiling:

--- configure.orig  Wed Sep  8 19:54:26 2004
+++ configure   Wed Sep  8 19:58:25 2004
@@ -54,7 +54,9 @@
  }

  print "checking for wxwin32 2.4 or greater: ";
-$_ = `wx-config --version`;
+my $WXCONFIG="wx-config";
+$WXCONFIG=$ENV{'WX_CONFIG'} if ($ENV{'WX_CONFIG'});
+$_ = `$WXCONFIG --version`;

  chomp;
  m/^(\d).(\d).(\d)/;
@@ -65,8 +67,8 @@
      exit(1);
  }

-my $WXWIN_CFLAGS=`wx-config --cxxflags`;
-my $WXWIN_LFLAGS=`wx-config --libs`;
+my $WXWIN_CFLAGS=`$WXCONFIG --cxxflags`;
+my $WXWIN_LFLAGS=`$WXCONFIG --libs`;
  chomp($WXWIN_CFLAGS);
  chomp($WXWIN_LFLAGS);

It's against the latest CVS snapshot.

Hendrik

-- 
Hendrik Scholz - <hscholz at raisdorf.net> - http://www.wormulon.net/
drag me, drop me - treat me like an object


More information about the ptX mailing list