"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tcl8.6/unix/configure.in" between
ds9.8.2.tar.gz and ds9.8.2.1.tar.gz

About: SAOImage DS9 is an astronomical imaging and data visualization application that supports FITS images and binary tables, multiple frame buffers, region manipulation, and many scale algorithms and colormaps.

configure.in  (ds9.8.2):configure.in  (ds9.8.2.1)
skipping to change at line 345 skipping to change at line 345
AC_CHECK_FUNC(memmove, , [ AC_CHECK_FUNC(memmove, , [
AC_DEFINE(NO_MEMMOVE, 1, [Do we have memmove()?]) AC_DEFINE(NO_MEMMOVE, 1, [Do we have memmove()?])
AC_DEFINE(NO_STRING_H, 1, [Do we have <string.h>?]) ]) AC_DEFINE(NO_STRING_H, 1, [Do we have <string.h>?]) ])
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# On some systems strstr is broken: it returns a pointer even even if # On some systems strstr is broken: it returns a pointer even even if
# the original string is empty. # the original string is empty.
#-------------------------------------------------------------------- #--------------------------------------------------------------------
SC_TCL_CHECK_BROKEN_FUNC(strstr, [ SC_TCL_CHECK_BROKEN_FUNC(strstr, [
extern int strstr();
exit(strstr("\0test", "test") ? 1 : 0); exit(strstr("\0test", "test") ? 1 : 0);
]) ])
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# Check for strtoul function. This is tricky because under some # Check for strtoul function. This is tricky because under some
# versions of AIX strtoul returns an incorrect terminator # versions of AIX strtoul returns an incorrect terminator
# pointer for the string "0". # pointer for the string "0".
#-------------------------------------------------------------------- #--------------------------------------------------------------------
SC_TCL_CHECK_BROKEN_FUNC(strtoul, [ SC_TCL_CHECK_BROKEN_FUNC(strtoul, [
extern int strtoul();
char *term, *string = "0"; char *term, *string = "0";
exit(strtoul(string,&term,0) != 0 || term != string+1); exit(strtoul(string,&term,0) != 0 || term != string+1);
]) ])
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# Check for various typedefs and provide substitutes if # Check for various typedefs and provide substitutes if
# they don't exist. # they don't exist.
#-------------------------------------------------------------------- #--------------------------------------------------------------------
AC_TYPE_MODE_T AC_TYPE_MODE_T
skipping to change at line 502 skipping to change at line 500
AC_DEFINE(HAVE_SIGNED_CHAR, 1, [Are characters signed?]) AC_DEFINE(HAVE_SIGNED_CHAR, 1, [Are characters signed?])
fi fi
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# Does putenv() copy or not? We need to know to avoid memory leaks. # Does putenv() copy or not? We need to know to avoid memory leaks.
#-------------------------------------------------------------------- #--------------------------------------------------------------------
AC_CACHE_CHECK([for a putenv() that copies the buffer], tcl_cv_putenv_copy, [ AC_CACHE_CHECK([for a putenv() that copies the buffer], tcl_cv_putenv_copy, [
AC_TRY_RUN([ AC_TRY_RUN([
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#define OURVAR "havecopy=yes" #define OURVAR "havecopy=yes"
int main (int argc, char *argv[]) int main (int argc, char *argv[])
{ {
char *foo, *bar; char *foo, *bar;
foo = (char *)strdup(OURVAR); foo = (char *)strdup(OURVAR);
putenv(foo); putenv(foo);
strcpy((char *)(strchr(foo, '=') + 1), "no"); strcpy((char *)(strchr(foo, '=') + 1), "no");
bar = getenv("havecopy"); bar = getenv("havecopy");
if (!strcmp(bar, "no")) { if (!strcmp(bar, "no")) {
/* doesnt copy */ /* doesnt copy */
 End of changes. 3 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)