From 6859d1f198f97aad129c54fcd156700a9178204e Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 7 Oct 2019 17:48:45 +0200 Subject: 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 --- libnet-config.in | 20 +++++++++++++------- 1 file 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 # +# 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 -- cgit v1.2.1