diff options
author | Joachim Nilsson <troglobit@gmail.com> | 2019-10-07 17:48:45 +0200 |
---|---|---|
committer | Joachim Nilsson <troglobit@gmail.com> | 2019-10-07 17:48:45 +0200 |
commit | 6859d1f198f97aad129c54fcd156700a9178204e (patch) | |
tree | fba187f0f6d02874ce362776898f59264562e598 | |
parent | cb0288e5fb5709cfb566cd2e65b53a290acd3ffd (diff) | |
download | libnet-6859d1f198f97aad129c54fcd156700a9178204e.tar.gz |
libnet-config.in: Add missing paths to -I and -L
This whole script is only kept for compatibility reasons. The major
content added in this commit is blatantly stolen from libnet.pc.in
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r-- | libnet-config.in | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/libnet-config.in b/libnet-config.in index da86f12..5596e31 100644 --- a/libnet-config.in +++ b/libnet-config.in @@ -1,15 +1,23 @@ #!/bin/sh # -# $Id: libnet-config.in,v 1.3 2004/01/03 20:31:00 mike Exp $ -# # Libnet 1.1 libnet-config compilation script # (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com> # +# Kept for compatibility with existing projects. For new +# projects, or those looking to upgrade, we recommend the +# new pkg-config framework, libnet.pc. See the README.md +# for details on how to use it. +# # @configure_input@ -libnet_defines="@LIBNET_CONFIG_DEFINES@" -libnet_cflags="@LIBNET_CONFIG_CFLAGS@" -libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet" +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +libnet_defines="@PKG_CONFIG_DEFINES@" +libnet_cflags="-I${includedir}" +libnet_libs="-L${libdir} @PKG_CONFIG_LIBS@ -lnet" usage() { @@ -58,5 +66,3 @@ fi if test "$echo_defines" = "yes"; then echo $libnet_defines fi - -# EOF |