]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/extra/openssl_config.pl
Fixes
[user/henk/code/inspircd.git] / src / modules / extra / openssl_config.pl
1 #!/usr/bin/perl
2
3 $ENV{PKG_CONFIG_PATH} = "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig:/usr/X11R6/libdata/pkgconfig";
4
5 if ($ARGV[1] eq "compile")
6 {
7         $ret = `pkg-config --cflags openssl`;
8         if ((undef $ret) || ($ret eq ""))
9         {
10                 $ret = "";
11         }
12 }
13 else
14 {
15         $ret = `pkg-config --libs openssl`;
16         if ((undef $ret) || ($ret eq ""))
17         {
18                 $ret = "-lssl -lcrypto -ldl";
19         }
20 }
21 print "$ret\n";