Permalink
Browse files

Add more guesses for where gsl.pc could be hiding

  • Loading branch information...
1 parent 36e1be6 commit 8f15e7eea9c943a545f69eff6c770cf0bacc71bf @leto committed Mar 11, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 Build.PL
View
8 Build.PL
@@ -278,5 +278,11 @@ sub swig_version {
sub modify_env {
$ENV{PKG_CONFIG_PATH} ||= '';
- $ENV{PKG_CONFIG_PATH} = '/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/pkgconfig:/usr/libdata/pkgconfig:/usr/local/libdata/pkgconfig:' . $ENV{PKG_CONFIG_PATH};
+
+ # TODO: What about windows and darwin?
+ my $guess =<<CARGOCULT;
+/usr/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/pkgconfig:/usr/libdata/pkgconfig:/usr/local/libdata/pkgconfig:/opt/pkgconfig:
+CARGOCULT
+
+ $ENV{PKG_CONFIG_PATH} = $guess . $ENV{PKG_CONFIG_PATH};
}

0 comments on commit 8f15e7e

Please sign in to comment.