Enable Large File Support.
This commit is contained in:
parent
ae612a811b
commit
479ce5d3ca
@ -40,6 +40,7 @@ OPTION(DISABLE_NCURSES "Disable Ncurses interface")
|
||||
OPTION(ENABLE_GTK "Enable GTK interface")
|
||||
OPTION(DISABLE_NLS "Disable Native Language Support")
|
||||
OPTION(DISABLE_GNUTLS "Disable SSLv3/TLS connection support")
|
||||
OPTION(DISABLE_LARGEFILE "Disable Large File Support")
|
||||
OPTION(DISABLE_ALIAS "Disable Alias plugin")
|
||||
OPTION(ENABLE_ASPELL "Enable Aspell plugin")
|
||||
OPTION(DISABLE_CHARSET "Disable Charset plugin")
|
||||
|
13
configure.in
13
configure.in
@ -117,6 +117,7 @@ AC_ARG_ENABLE(wxwidgets, [ --enable-wxwidgets turn on WxWidgets interfa
|
||||
AC_ARG_ENABLE(gtk, [ --enable-gtk turn on Gtk interface (default=off)],enable_gtk=$enableval,enable_gtk=no)
|
||||
AC_ARG_ENABLE(qt, [ --enable-qt turn on Qt interface (default=off)],enable_qt=$enableval,enable_qt=no)
|
||||
AC_ARG_ENABLE(gnutls, [ --disable-gnutls turn off gnutls support (default=compiled if found)],enable_gnutls=$enableval,enable_gnutls=yes)
|
||||
AC_ARG_ENABLE(largefile, [ --disable-largefile turn off Large File Support (default=on)],enable_largefile=$enableval,enable_largefile=yes)
|
||||
AC_ARG_ENABLE(alias, [ --disable-alias turn off Alias plugin (default=compiled)],enable_alias=$enableval,enable_alias=yes)
|
||||
AC_ARG_ENABLE(aspell, [ --enable-aspell turn on Aspell plugin (default=off)],enable_aspell=$enableval,enable_aspell=no)
|
||||
AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled if found)],enable_charset=$enableval,enable_charset=yes)
|
||||
@ -750,6 +751,15 @@ else
|
||||
not_found="$not_found flock"
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# large file support
|
||||
# ------------------------------------------------------------------------------
|
||||
if test "x$enable_largefile" = "xyes" ; then
|
||||
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
|
||||
else
|
||||
not_asked="$not_asked largefile"
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# backtrace
|
||||
# ------------------------------------------------------------------------------
|
||||
@ -1032,6 +1042,9 @@ fi
|
||||
if test "x$enable_flock" = "xyes"; then
|
||||
listoptional="$listoptional flock"
|
||||
fi
|
||||
if test "x$enable_largefile" = "xyes"; then
|
||||
listoptional="$listoptional largefile"
|
||||
fi
|
||||
if test "x$enable_backtrace" = "xyes"; then
|
||||
listoptional="$listoptional backtrace"
|
||||
fi
|
||||
|
@ -62,6 +62,11 @@ CHECK_FUNCTION_EXISTS(strstr HAVE_STRSTR)
|
||||
# FIXME: weechat_gui_common MUST be the first lib in the list
|
||||
SET(STATIC_LIBS weechat_gui_common)
|
||||
|
||||
# Check for Large File Support
|
||||
IF (NOT DISABLE_LARGEFILE)
|
||||
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES)
|
||||
ENDIF (NOT DISABLE_LARGEFILE)
|
||||
|
||||
# Check for Gettext
|
||||
IF(NOT DISABLE_NLS)
|
||||
FIND_PACKAGE(Gettext)
|
||||
|
Loading…
x
Reference in New Issue
Block a user