path: root/
AgeCommit message (Collapse)Author
2008-03-11autoconf: Test FREAD_READS_DIRECTORIESMichal Rokos
Add test for FREAD_READS_DIRECTORIES to detect when fread() reads fopen'ed directory. Tested on these platforms: AIX 5.3 - FREAD_READS_DIRECTORIES=UnfortunatelyYes HP-UX B.11.11 - FREAD_READS_DIRECTORIES=UnfortunatelyYes HP-UX B.11.23 - FREAD_READS_DIRECTORIES=UnfortunatelyYes Linux 2.6.25-rc4 - FREAD_READS_DIRECTORIES= Tru64 V5.1 - FREAD_READS_DIRECTORIES=UnfortunatelyYes Windows - FREAD_READS_DIRECTORIES= Signed-off-by: Michal Rokos <> Tested-by: Mike Ralphson <> Tested-by: Johannes Schindelin <> Signed-off-by: Junio C Hamano <>
2008-03-05Add compat/snprintf.c for systems that return bogusMichal Rokos
Some systems (namely HPUX and Windows) return -1 when maxsize in snprintf() and in vsnprintf() is reached. So replace snprintf() and vsnprintf() functions with our own ones that return correct value upon overflow. [jc: verified that review comments by J6t have been incorporated, and tightened the check to verify the resulting buffer contents, suggested by Wayne Davison] Signed-off-by: Michal Rokos <> Signed-off-by: Junio C Hamano <>
2008-01-26autoconf: define NO_SYS_SELECT_H on systems without <sys/select.h>.Jakub Narebski
Pre-POSIX.1-2001 systems don't have <sys/select.h>, but select(2) is declared in <sys/time.h>, which git-compat-util.h includes. Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2008-01-18autoconf: Add checking for unsetenv functionJakub Narebski
Update (and by adding test for unsetenv (NO_UNSETENV). Add comment about NO_UNSETENV to Makefile header, as original commit 731043fd adding compat/unsetenv.c didn't do that. Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2007-12-11autoconf: Check asciidoc version to automatically set ASCIIDOC8Jakub Narebski
Check for asciidoc, and if it exists check asciidoc version, setting ASCIIDOC8 when needed. Currently it just runs asciidoc in asciidoc7 compatibility mode (see: Documentation/Makefile). Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2007-12-07autoconf: Add test for OLD_ICONV (squelching compiler warning)Jakub Narebski
Update (and to keep up with git development by adding [compile] test whether your library has an old iconv(), where the second (input buffer pointer) parameter is declared with type (const char **) (OLD_ICONV). Test-proposed-by: Linus Torvalds <> Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2007-11-20autoconf: Add tests for memmem, strtoumax and mkdtemp functionsJakub Narebski
Update (and to keep up with git development by adding tests for memmem (NO_MEMMEM), strtoumax (NO_STRTOUMAX) and mkdtemp (NO_MKDTEMP) functions. Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2007-11-08Improve accuracy of check for presence of deflateBound.David Symonds
ZLIB_VERNUM isn't defined in some zlib versions, so this patch does a proper linking test in autoconf to see whether deflateBound exists in zlib. Also, setting NO_DEFLATE_BOUND will also work for folk not using autoconf. Signed-off-by: David Symonds <> Signed-off-by: Junio C Hamano <>
2007-06-07War on whitespaceJunio C Hamano
This uses "git-apply --whitespace=strip" to fix whitespace errors that have crept in to our source files over time. There are a few files that need to have trailing whitespaces (most notably, test vectors). The results still passes the test, and build result in Documentation/ area is unchanged. Signed-off-by: Junio C Hamano <>
2007-04-01Add --with-tcltk and --without-tcltk to configure.Eygene Ryabinkin
--with-tcltk enables the search of the Tcl/Tk interpreter. If no interpreter is found then Tcl/Tk dependend parts are disabled. --without-tcltk unconditionally disables Tcl/Tk dependent parts. The original behaviour is not changed: bare './configure' just installs the Tcl/Tk part doing no checks for the interpreter. Signed-off-by: Eygene Ryabinkin <>
2006-11-22remove merge-recursive-oldJunio C Hamano
This frees the Porcelain-ish that comes with the core Python-free. Signed-off-by: Junio C Hamano <>
2006-10-01Merge branch 'jc/gitpm'Junio C Hamano
* jc/gitpm: (52 commits) Remove -fPIC which was only needed for Git.xs Kill Git.xs for now Revert "Make it possible to set up libgit directly (instead of from the environment)" Revert " Introduce fast get_object() method" Revert "Convert git-annotate to use" Fix compilation with Sun CC pass DESTDIR to the generated perl/Makefile Eliminate Scalar::Util usage from Convert git-annotate to use Introduce fast get_object() method Make it possible to set up libgit directly (instead of from the environment) Work around sed and make interactions on the backslash at the end of line. Introduce ident() and ident_person() methods Convert git-send-email to use Add config() method Use $GITPERLLIB instead of $RUNNING_GIT_TESTS and centralize @INC munging INSTALL: a tip for running after building but without installing. Perly Git: make sure we do test the freshly built one. Don't #define around die Git.xs: older perl do not know const char * ...
2006-09-30Remove -fPIC which was only needed for Git.xsJunio C Hamano
The distinction between BASIC_ vs ALL_ is still kept, since it is not Git.xs specific -- we could face the same issue when we do other language bindings (e.g. Python). Signed-off-by: Junio C Hamano <>
2006-09-07autoconf: Add support for setting NO_ICONV and ICONVDIRJakub Narebski
Add support for ./configure options --without-iconv (if neither libc nor libiconv properly support iconv), and for --with-iconv=PATH (to set prefix to libiconv library and headers, used only when NEED_LIBICONV is set). While at it, make ./configure set or unset NO_ICONV always (it is not autodetected in Makefile). Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2006-08-15Fix compilation with Sun CCDennis Stosberg
- Add the CFLAGS variable to to override the Makefile's default, which is gcc-specific and won't work with Sun CC. - Prefer "cc" over "gcc", because Pasky's will not compile with gcc on Solaris at all. On Linux and the free BSDs "cc" is linked to "gcc" anyway. - Set correct flag to generate position-independent code. - Add "-xO3" (= use default optimization level) to CFLAGS. Signed-off-by: Dennis Stosberg <> Signed-off-by: Junio C Hamano <>
2006-08-09autoconf: Move variables which we always set to config.mak.inJakub Narebski
Move detected NO_STH and NEED_STH variables, which we always output, either setting or unsetting (setting to empty string) to and use setting appropriately named variables and doing AC_SUBST instead of adding them via GIT_CONF_APPEND_LINE macro and config.mak.append temporary file. Variables which might and might not be set are still added via config.mak.append; this include all STH_PATH variables. Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2006-07-15Set datarootdir in config.mak.inPavel Roskin
Autoconf 2.60 expresses datadir in terms of datarootdir. If datarootdir is not substituted, configure issues a warning and uses a compatibility substitution for datadir. Signed-off-by: Pavel Roskin <> Signed-off-by: Junio C Hamano <>
2006-07-09autoconf: Checks for some programsJakub Narebski
./configure script checks now for the following programs: * CC - using AC_PROG_CC * AR - using AC_CHECK_TOOL among ar * TAR - among gtar, tar Checks not implemented: * INSTALL - needs install-sh or in sources * RPMBUILD - not known alternatives for rpmbuild * PYTHON - no PYTHON variable in Makefile, has to set NO_PYTHON if not present Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
2006-07-03autoconf: Use autoconf to write installation directories to config.mak.autogenJakub Narebski
This is beginning of patch series introducing installation configuration using autoconf (and no other autotools) to git. The idea is to generate config.mak.autogen using ./configure (generated from by running autoconf) from, so one can use autoconf as an _alternative_ to ordinary Makefile, and creating one's own config.mak. Local settings in config.mak override generated settings in config.mak.autogen This patch includes minimal and, so one can set installation directories using autoconf generated ./configure script e.g. ./configure --prefix=/usr Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>