NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 6768


Ignore:
Timestamp:
Mar 5, 2014, 4:01:52 PM (4 years ago)
Author:
bless@…
Message:
  • better autotools checks for libraries
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • natfw-nslp/trunk/configure.ac

    r6282 r6768  
    1515AC_PROG_MAKE_SET
    1616AC_PROG_CPP
     17AM_PROG_AR
     18
    1719
    1820AC_CHECK_LIB([cppunit], [main])
     
    4244AC_PROG_RANLIB
    4345
     46#check for C libs
     47AC_CHECK_LIB([ssl], [SSL_CTX_new],  , [AC_MSG_FAILURE("OpenSSL is not installed")])
     48AC_CHECK_LIB([crypto], [EVP_PKEY_new],  , [AC_MSG_FAILURE("OpenSSL is not installed")])
     49
     50
    4451#check for unordered map
    4552[SAVECXXFLAGS=$CXXFLAGS; CXXFLAGS="-std=c++0x"]
    4653AC_LANG_CPLUSPLUS
     54
    4755
    4856AC_CACHE_CHECK([whether unordered_map is available],
     
    6270
    6371AM_CONDITIONAL(NSIS_NO_WARN_HASHMAP, test "$ac_cv_unordered_map_exists" = yes)
     72
     73## libnetfilter_queue or obsolete libipq
     74AC_ARG_ENABLE([nfq],
     75        [AS_HELP_STRING([--enable-nfq], [compile with libnetfilter_queue support (default: disabled)])],
     76        [protlib_with_nfq=$enableval],
     77        [protlib_with_nfq=no])
     78
     79
     80
     81#LIB NETFILTER_QUEUE
     82AM_CONDITIONAL(PROTLIB_WITH_NFQ, test "$protlib_with_nfq" = yes)
     83if test $protlib_with_nfq = yes; then
     84        AC_CHECK_LIB([netfilter_queue],[nfq_get_payload],,[AC_MSG_ERROR([cannot find libnetfilter_queue, probably you need to install libnetfilter-queue-dev first])])
     85else
     86        AC_CHECK_LIB([ipq], [ipq_get_packet],,[AC_MSG_ERROR([cannot find libipq, probably you need to install iptables-dev(el) first])])
     87fi
    6488
    6589AC_ARG_ENABLE([sctp],
  • natfw-nslp/trunk/src/Makefile.am

    r6407 r6768  
    6565endif
    6666
    67 natfwd_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
     67natfwd_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    6868
    69 test_stress_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
     69test_stress_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    7070
    71 test_stress2_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
     71test_stress2_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    7272
    7373test_client_SOURCES = test_client.cpp
    7474
    75 test_client_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lipq -lssl -lrt $(LD_SCTP_LIB)
     75test_client_LDADD = -L. -l$(NATFW_LLIB) -L$(NATFWMSG_LIBDIR) -l$(NATFWMSG_LLIB) $(LD_QSPEC_LIB) $(LD_NTLP_LIB) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt $(LD_SCTP_LIB)
    7676
    7777
  • ntlp/trunk/src/Makefile.am

    r6717 r6768  
    3434gistka_DEPENDENCIES = libgist.a $(PROTLIB_LIB)
    3535
    36 # netfilter_queue will be automatically added by the LIBS variable
    37 gistka_LDADD =  $(EXTRA_gistka_LDADD) -L. -lgist $(EXTRA_gistka_LDADD) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lssl -lrt
     36# ssl,crypt,netfilter_queue will be automatically added by the LIBS variable
     37gistka_LDADD =  $(EXTRA_gistka_LDADD) -L. -lgist $(EXTRA_gistka_LDADD) $(LD_PROTLIB_LIB) $(LD_FQUEUE_LIB) -lrt
    3838
    3939libgist_a_SOURCES = apimessage.cpp apiwrapper.cpp capability.cpp        \
  • qspec/trunk/configure.ac

    r6282 r6768  
    1515AC_PROG_MAKE_SET
    1616AC_PROG_CPP
     17AM_PROG_AR
    1718
    1819AC_CHECK_LIB([cppunit], [main])
  • sessionauth/trunk/configure.ac

    r6282 r6768  
    4242
    4343AC_PROG_RANLIB
     44AM_PROG_AR
    4445
    4546#check for unordered map
Note: See TracChangeset for help on using the changeset viewer.