Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7dba5940
Commit
7dba5940
authored
Nov 22, 2012
by
Stefan Krah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13057: Include stdio.h when NULL is used in configure.ac.
parent
5bd92709
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
configure
configure
+9
-1
configure.ac
configure.ac
+10
-2
No files found.
configure
View file @
7dba5940
...
...
@@ -6562,6 +6562,7 @@ else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -6617,6 +6618,7 @@ else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -6666,6 +6668,7 @@ else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -6715,6 +6718,7 @@ else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -9323,6 +9327,8 @@ $as_echo "$unistd_defines_pthreads" >&6; }
$as_echo_n
"checking for pthread_create in -lpthread... "
>
&6
;
}
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <stdio.h>
#include <pthread.h>
void * start_routine (void *arg) { exit (0); }
...
...
@@ -9672,7 +9678,9 @@ else
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <pthread.h>
#include <stdio.h>
#include <pthread.h>
void *foo(void *parm) {
return NULL;
}
...
...
configure.ac
View file @
7dba5940
...
...
@@ -1345,6 +1345,7 @@ fi
AC_MSG_CHECKING(whether pthreads are available without options)
AC_CACHE_VAL(ac_cv_pthread_is_default,
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -1379,6 +1380,7 @@ AC_CACHE_VAL(ac_cv_kpthread,
[ac_save_cc="$CC"
CC="$CC -Kpthread"
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -1407,6 +1409,7 @@ AC_CACHE_VAL(ac_cv_kthread,
[ac_save_cc="$CC"
CC="$CC -Kthread"
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -1435,6 +1438,7 @@ AC_CACHE_VAL(ac_cv_thread,
[ac_save_cc="$CC"
CC="$CC -pthread"
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <pthread.h>
void* routine(void* p){return NULL;}
...
...
@@ -2356,7 +2360,9 @@ yes
_libs=$LIBS
LIBS="$LIBS -lpthread"
AC_MSG_CHECKING([for pthread_create in -lpthread])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <pthread.h>
void * start_routine (void *arg) { exit (0); }]], [[
pthread_create (NULL, NULL, start_routine, NULL)]])],[
...
...
@@ -2422,7 +2428,9 @@ if test "$posix_threads" = "yes"; then
AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported)
AC_CACHE_VAL(ac_cv_pthread_system_supported,
[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <pthread.h>
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <pthread.h>
void *foo(void *parm) {
return NULL;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment