check to see if lib gnugetopt is required

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@634 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2006-02-10 03:38:10 +00:00
parent 12ed047521
commit 7de2b93536
2 changed files with 510 additions and 189 deletions
Vendored
+507 -188
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -29,7 +29,7 @@ function appendCXX {
}
if `echo $host_os | grep -i 'freebsd' >/dev/null 2>/dev/null`; then
appendInc -I/usr/local/include
appendLib -L/usr/local/lib -lcompat -lgnugetopt
appendLib -L/usr/local/lib -lcompat
appendCXX -D__GNU_LIBRARY__
elif `echo $host_os | grep -i 'sol' >/dev/null 2>/dev/null`; then
appendLib -lsocket -lnsl
@@ -46,7 +46,9 @@ AC_ARG_ENABLE( ipv6, [ --enable-ipv6 enable ipv6 support], appendCXX -DHAVE_IP
AC_ARG_ENABLE( modules, [ --disable-modules disable modules], MODULES="no", MODULES="yes")
AC_ARG_ENABLE( openssl, [ --disable-openssl disable openssl], NOSSL=1,)
AC_ARG_ENABLE( perl, [ --disable-perl disable perl], NOPERL=1,)
AC_ARG_ENABLE( ipv6, [ --enable-ipv6 enable ipv6 support], appendCXX -DHAVE_IPV6,)
AC_CHECK_LIB( gnugetopt, getopt_long,)
AC_CHECK_FUNCS( stat lstat chmod open, , echo "Missing Required libc feature" && exit 1)
if test "$MODULES" = "yes"; then
AC_CHECK_FUNC( dlopen,NOCHECK_DL=1,)