This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eric.araujo, neologix, pitrou, rosslagerwall, vstinner
Date 2011-08-24.21:22:15
SpamBayes Score 0.086466864
Marked as misclassified No
Message-id <1314220935.87.0.996192069008.issue12801@psf.upfronthosting.co.za>
In-reply-to
Content
Patch to get #ifdef REALPATH_SUPPORT_NULL:

diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -1539,6 +1539,17 @@ if test "$have_pthread_t" = yes ; then
 #endif
   ])
 fi
+
+AC_MSG_CHECKING(for realpath with NULL)
+realpath_support_null=no
+AC_COMPILE_IFELSE([
+  AC_LANG_PROGRAM([[#include <stdlib.h>]], [[char *p = realpath(__FILE__, NULL);]])
+],[realpath_support_null=yes],[])
+AC_MSG_RESULT($realpath_support_null)
+if test "$have_pthread_t" = yes ; then
+  AC_DEFINE(REALPATH_SUPPORT_NULL, 1,
+  [Define if the realpath() function supports NULL as the second argument])
+fi
 CC="$ac_save_cc"
 
 AC_SUBST(OTHER_LIBTOOL_OPT)
History
Date User Action Args
2011-08-24 21:22:15vstinnersetrecipients: + vstinner, pitrou, eric.araujo, neologix, rosslagerwall
2011-08-24 21:22:15vstinnersetmessageid: <1314220935.87.0.996192069008.issue12801@psf.upfronthosting.co.za>
2011-08-24 21:22:15vstinnerlinkissue12801 messages
2011-08-24 21:22:15vstinnercreate