diff options
| author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-08-20 17:49:38 +0000 | 
|---|---|---|
| committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-08-20 17:49:38 +0000 | 
| commit | d404404dda40eab419b37f8136920e8edf38d401 (patch) | |
| tree | ce4ccf54721997c7f4385cdc0daeb5f323873e53 /configure | |
| parent | Debian Bug#154766: w3m-img: support DirectColor framebuffer visuals? (diff) | |
| download | w3m-d404404dda40eab419b37f8136920e8edf38d401.tar.gz w3m-d404404dda40eab419b37f8136920e8edf38d401.zip | |
Debian Bug#157098: wrong file presentation on large files
	  from "Eduard Bloch" <blade@debian.org>
* configure (clen_t): added
		(HAVE_STRTOLL): added
		(HAVE_STRTOQ): added
		(HAVE_ATOLL): added
		(HAVE_ATOQ): added
* config.h.dist: ditto
* file.c (current_content_length): s/int/clen_t/
	(loadGeneralFile): s/atoi/strtoclen/
	(convert_size): s/int/clen_t/
	(convert_size2): s/int/clen_t/
	(showProgress): s/int/clen_t/
	(loadHTMLstream): s/int/clen_t/ linelen, trbyte
	(loadBuffer): ditto
	(getNextPage): s/int/clen_t/ linelen
	(save2tmp): s/int/clen_t/ linelen, trbye
	(_MoveFile): s/int/clen_t/ linelen, trbye
* fm.h (_Buffer): s/int/clen_t/ linelen, trbye
* ftp.c (size_int2str): s/long/clen_t/
	(ex_ftpdir_name_size_date): s/long/clen_t/
* indep.c (strtoclen): added
* indep.h (strtoclen): added
* proto.h (showProgress): s/int/clen_t/
From: Fumitoshi UKAI  <ukai@debian.or.jp>
Diffstat (limited to '')
| -rwxr-xr-x | configure | 89 | 
1 files changed, 88 insertions, 1 deletions
| @@ -1,5 +1,5 @@  #!/bin/sh -# $Id: configure,v 1.72 2002/07/18 06:07:25 ukai Exp $ +# $Id: configure,v 1.73 2002/08/20 17:49:38 ukai Exp $  #	Configuration.  # @@ -1283,6 +1283,88 @@ fi  def_param use_help_cgi $have_perl +####### long long +cat > _zmachdep.c <<EOF +main() +{ +  int i = sizeof(unsigned long long); +} +EOF +if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +then +    echo "You have long long" +    def_have_long_long="typedef long long clen_t;" +    cat > _zmachdep.c <<EOF +#include <stdlib.h> +main() +{ +    const char *s = "1"; +    long long ll = strtoll(s, NULL, 10); +} +EOF +    if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +    then +	echo "You have strtoll()" +	def_have_strtoll="#define HAVE_STRTOLL" +    else +	echo "You don't have strtoll()" +	def_have_strtoll="#undef HAVE_STRTOLL" +    fi +    cat > _zmachdep.c <<EOF +#include <sys/types.h> +#include <stdlib.h> +#include <limits.h> +main() +{ +    const char *s = "1" +    quad_t q = strtoq(s, NULL, 10); +} +EOF +    if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +    then +	echo "You have strtoq()" +	def_have_strtoq="#define HAVE_STRTOQ" +    else +	echo "You don't have strtoq()" +	def_have_strtoq="#undef HAVE_STRTOQ" +    fi +    cat > _zmachdep.c <<EOF +#include <stdlib.h> +main() +{ +    const char *s = "1"; +    long long ll = atoll(s); +} +EOF +    if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +    then +	echo "You have atoll()" +	def_have_atoll="#define HAVE_ATOLL" +    else +	echo "You don't have atoll()" +	def_have_atoll="#undef HAVE_ATOLL" +    fi +    cat > _zmachdep.c <<EOF +#include <stdlib.h> +main() +{ +    const char *s = "1"; +    long long ll = atoq(s); +} +EOF +    if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +    then +	echo "You have atoq()" +	def_have_atoq="#define HAVE_ATOQ" +    else +	echo "You don't have atoq()" +	def_have_atoq="#undef HAVE_ATOQ" +    fi +else +    echo "You don't have long long" +    def_have_long_long="typedef long clen_t;" +fi +  ####### strcasecmp  cat > _zmachdep.c << EOF  #include <string.h> @@ -2306,6 +2388,11 @@ $def_use_xface  $def_use_binstream  $def_term_if  $def_dir_if +$def_have_long_long +$def_have_strtoll +$def_have_strtoq +$def_have_atoll +$def_have_atoq  $def_have_strcasecmp  $def_have_strcasestr  $def_have_strchr | 
