@@ -87,11 +87,6 @@ AC_ARG_ENABLE([lib-only],
8787 [ Build libnghttp3 only.] ) ] ,
8888 [ lib_only=$enableval] , [ lib_only=no] )
8989
90- AC_ARG_WITH ( [ cunit] ,
91- [ AS_HELP_STRING ( [ --with-cunit] ,
92- [ Use cunit [ default=check] ] ) ] ,
93- [ request_cunit=$withval] , [ request_cunit=check] )
94-
9590# Checks for programs
9691AC_PROG_CC
9792AC_PROG_CXX
@@ -107,43 +102,6 @@ AX_CXX_COMPILE_STDCXX([17], [], [optional])
107102
108103# Checks for libraries.
109104
110- # cunit
111- have_cunit=no
112- if test "x${request_cunit}" != "xno"; then
113- PKG_CHECK_MODULES([ CUNIT] , [ cunit >= 2.1] , [ have_cunit=yes] , [ have_cunit=no] )
114- # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
115- # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
116- if test "x${have_cunit}" = "xno"; then
117- AC_MSG_WARN ( [ ${CUNIT_PKG_ERRORS}] )
118- AC_CHECK_LIB ( [ cunit] , [ CU_initialize_registry] ,
119- [ have_cunit=yes] , [ have_cunit=no] )
120- if test "x${have_cunit}" = "xyes"; then
121- CUNIT_LIBS="-lcunit"
122- CUNIT_CFLAGS=""
123- AC_SUBST ( [ CUNIT_LIBS] )
124- AC_SUBST ( [ CUNIT_CFLAGS] )
125- fi
126- fi
127- if test "x${have_cunit}" = "xyes"; then
128- # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
129- # program can be built without -lncurses, but it emits runtime
130- # error.
131- case "${build}" in
132- *-apple-darwin*)
133- CUNIT_LIBS="$CUNIT_LIBS -lncurses"
134- AC_SUBST ( [ CUNIT_LIBS] )
135- ;;
136- esac
137- fi
138- fi
139-
140- if test "x${request_cunit}" = "xyes" &&
141- test "x${have_cunit}" != "xyes"; then
142- AC_MSG_ERROR ( [ cunit was requested (--with-cunit) but not found] )
143- fi
144-
145- AM_CONDITIONAL([ HAVE_CUNIT] , [ test "x${have_cunit}" = "xyes" ] )
146-
147105enable_examples=yes
148106if test "x${lib_only}" = "xyes"; then
149107 enable_examples=no
@@ -344,8 +302,6 @@ AC_MSG_NOTICE([summary of build options:
344302 Library:
345303 Shared: ${enable_shared}
346304 Static: ${enable_static}
347- Test:
348- CUnit: ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
349305 Debug:
350306 Debug: ${debug} (CFLAGS='${DEBUGCFLAGS}')
351307 Library only: ${lib_only}
0 commit comments