Skip to content

Commit

Permalink
configure: check for iconv in htp embedded mode
Browse files Browse the repository at this point in the history
At least on freebsd, suricata fails to build in htp embedded mode
due to iconv linking issue.
  • Loading branch information
regit committed Jul 17, 2013
1 parent 0c37f76 commit c099349
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ AC_INIT(configure.ac)
# make sure libhtp is added to the includes
CPPFLAGS="-I${srcdir}/../libhtp/ ${CPPFLAGS}"

AC_CHECK_LIB(iconv, libiconv_close)
AC_DEFINE_UNQUOTED([HAVE_HTP_URI_NORMALIZE_HOOK],[1],[Assuming htp_config_register_request_uri_normalize function in bundled libhtp])
AC_DEFINE_UNQUOTED([HAVE_HTP_TX_GET_RESPONSE_HEADERS_RAW],[1],[Assuming htp_tx_get_response_headers_raw function in bundled libhtp])
AC_DEFINE_UNQUOTED([HAVE_HTP_DECODE_QUERY_INPLACE],[1],[Assuming htp_decode_query_inplace function in bundled libhtp])
Expand Down

0 comments on commit c099349

Please sign in to comment.