From f9181e78805d46d32747735e38a2e0d597f80d6b Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 24 Nov 2006 19:08:52 +0000 Subject: More fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5793 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/openssl_config.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/openssl_config.pl b/src/modules/extra/openssl_config.pl index 303b6e4ed..79fdf832f 100644 --- a/src/modules/extra/openssl_config.pl +++ b/src/modules/extra/openssl_config.pl @@ -1,8 +1,15 @@ #!/usr/bin/perl -$ENV{PKG_CONFIG_PATH} = "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig:/usr/X11R6/libdata/pkgconfig"; +if (!exists $ENV{PKG_CONFIG_PATH}) +{ + $ENV{PKG_CONFIG_PATH} = "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig:/usr/X11R6/libdata/pkgconfig"; +} +else +{ + $ENV{PKG_CONFIG_PATH} .= ":/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig:/usr/X11R6/libdata/pkgconfig"; +} -if ($ARGV[1] eq "compile") +if ($ARGV[0] eq "compile") { $ret = `pkg-config --cflags openssl`; if ((undef $ret) || ($ret eq "")) -- cgit v1.2.3