Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
net-snmp
> net-snmp-5.4.2_net-snmp-config_headercheck.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File net-snmp-5.4.2_net-snmp-config_headercheck.patch of Package net-snmp (Revision 3)
Currently displaying revision
3
,
show latest
Index: net-snmp-config.in =================================================================== --- net-snmp-config.in.orig 2008-07-30 19:28:08.000000000 +0200 +++ net-snmp-config.in 2008-10-24 15:30:56.926874746 +0200 @@ -27,6 +27,14 @@ check_build_dir() fi } +check_devel_files() +{ + if [ ! -e "${NSC_INCDIR}/net-snmp/net-snmp-config.h" ] ; then + echo "Can not find \"${NSC_INCDIR}/net-snmp/net-snmp-config.h\". The net-snmp development files seems to be missing. Exiting" >&2 + # exit 2 + fi +} + prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ @@ -105,9 +113,11 @@ else ;; #################################################### compile --base-cflags) + check_devel_files echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR} ;; --cflags|--cf*) + check_devel_files echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR} ;; --srcdir) @@ -118,6 +128,7 @@ else echo $NSC_LIBDIR ;; --ldflags|--ld*) + check_devel_files echo $NSC_LDFLAGS ;; --build-lib-dirs) @@ -151,30 +162,38 @@ else ;; #################################################### client lib --libs) + check_devel_files # use this one == --netsnmp-libs + --external-libs echo $NSC_LDFLAGS $NSC_LIBDIR -lnetsnmp $NSC_LIBS ;; --netsnmp-libs) + check_devel_files echo $NSC_LIBDIR -lnetsnmp ;; --external-libs) + check_devel_files echo $NSC_LDFLAGS $NSC_LIBS ;; #################################################### agent lib --base-agent-libs) + check_devel_files echo $NSC_BASE_AGENT_LIBS ;; --base-subagent-libs) + check_devel_files echo $NSC_BASE_SUBAGENT_LIBS ;; --agent-libs) + check_devel_files # use this one == --netsnmp-agent-libs + --external-libs echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_BASE_AGENT_LIBS $NSC_AGENTLIBS ;; --netsnmp-agent-libs) + check_devel_files echo $NSC_LIBDIR $NSC_BASE_AGENT_LIBS ;; --external-agent-libs) + check_devel_files echo $NSC_LDFLAGS $NSC_AGENTLIBS ;; #################################################### @@ -316,6 +335,7 @@ else #################################################### --compile-subagent) + check_devel_files shift shifted=1 while test "x$done" = "x" -a "x$1" != "x" ; do