2008-07-12 15:42:19 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-01-25 18:28:17 +02:00
|
|
|
case $2 in
|
2008-07-12 15:42:19 +03:00
|
|
|
link)
|
|
|
|
|
2009-01-25 18:28:17 +02:00
|
|
|
case $1 in
|
2008-07-12 15:42:19 +03:00
|
|
|
SunOS | solaris)
|
|
|
|
echo '-lsocket -lnsl';
|
|
|
|
;;
|
2008-08-07 19:53:59 +03:00
|
|
|
BeOS)
|
|
|
|
echo '-lsocket -lbind -lbsd';
|
|
|
|
;;
|
|
|
|
Haiku)
|
|
|
|
echo '-lnetwork';
|
|
|
|
;;
|
2009-01-25 00:19:11 +02:00
|
|
|
windows32)
|
2009-02-22 16:27:10 +02:00
|
|
|
echo '-lws2_32 -liphlpapi';
|
2009-01-25 00:19:11 +02:00
|
|
|
;;
|
2009-06-24 20:28:13 +03:00
|
|
|
Linux)
|
|
|
|
[ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
|
|
|
|
;;
|
2008-07-12 15:42:19 +03:00
|
|
|
esac
|
|
|
|
;;
|
2008-08-07 19:53:59 +03:00
|
|
|
cflags)
|
2009-01-25 18:28:17 +02:00
|
|
|
case $1 in
|
2009-03-07 02:00:58 +02:00
|
|
|
BeOS)
|
2008-08-07 19:53:59 +03:00
|
|
|
echo '-Dsocklen_t=int';
|
|
|
|
;;
|
2009-06-24 20:28:13 +03:00
|
|
|
Linux)
|
|
|
|
[ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
|
|
|
|
;;
|
2008-08-07 19:53:59 +03:00
|
|
|
esac
|
|
|
|
;;
|
2008-07-12 15:42:19 +03:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|