diff options
author | Guido van Rossum <guido@python.org> | 1998-10-02 14:39:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-02 14:39:42 (GMT) |
commit | fb4533c1249850eccefa2acdce5ad897d3be270c (patch) | |
tree | d2e9afa10e3da08edf3e026693a933aa595b3d0b /configure.in | |
parent | b55c4ad58d3e1e2d388756615285404eac391829 (diff) | |
download | cpython-fb4533c1249850eccefa2acdce5ad897d3be270c.zip cpython-fb4533c1249850eccefa2acdce5ad897d3be270c.tar.gz cpython-fb4533c1249850eccefa2acdce5ad897d3be270c.tar.bz2 |
Added tweak for SET_CCC (which I don't even know what it is!) for Linux.
Added AC_CHECK_SIZEOF(void *).
Added yet another test for pthreads (pthread_create may be in libc).
Added pthread_init to list of functions whose existence is checked.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 36f38be..d6eba15 100644 --- a/configure.in +++ b/configure.in @@ -84,6 +84,7 @@ if test -z "$CCC" then case $ac_sys_system in IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; + Linux*) SET_CCC="CCC= g++";; *) SET_CCC="" esac else @@ -279,6 +280,7 @@ AC_TYPE_UID_T AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) +AC_CHECK_SIZEOF(void *) AC_MSG_CHECKING(for long long support) have_long_long=no @@ -433,6 +435,9 @@ AC_DEFINE(_REENTRANT) AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD) AC_DEFINE(C_THREADS) LIBOBJS="$LIBOBJS thread.o"],[ +AC_CHECK_FUNC(pthread_create, [AC_DEFINE(WITH_THREAD) +AC_DEFINE(_POSIX_THREADS) +LIBOBJS="$LIBOBJS thread.o"],[ AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD) AC_DEFINE(BEOS_THREADS) LIBOBJS="$LIBOBJS thread.o"],[ @@ -456,7 +461,7 @@ AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD) AC_DEFINE(_POSIX_THREADS) LIBS="$LIBS -lcma" LIBOBJS="$LIBOBJS thread.o"]) -])])])])])]) +])])])])])])]) AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD) LIBS="$LIBS -lmpc" @@ -498,7 +503,7 @@ LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no)) # checks for library functions AC_CHECK_FUNCS(alarm chown clock dlopen execv flock fork ftime ftruncate \ gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \ - kill link lstat mkfifo mktime nice pause plock putenv readlink \ + kill link lstat mkfifo mktime nice pause plock pthread_init putenv readlink \ select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ sigaction siginterrupt sigrelse strftime strptime symlink \ tcgetpgrp tcsetpgrp timegm times truncate uname waitpid) |