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
2ef8d8a6
Commit
2ef8d8a6
authored
Jan 27, 1999
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patches by William Lewis for Nextstep descendants.
parent
75c74c59
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
689 additions
and
328 deletions
+689
-328
Makefile.in
Makefile.in
+8
-4
Modules/Makefile.pre.in
Modules/Makefile.pre.in
+2
-2
Modules/getbuildinfo.c
Modules/getbuildinfo.c
+2
-2
Modules/getpath.c
Modules/getpath.c
+25
-1
Modules/posixmodule.c
Modules/posixmodule.c
+94
-25
Modules/readline.c
Modules/readline.c
+1
-0
Python/getversion.c
Python/getversion.c
+2
-2
Python/importdl.c
Python/importdl.c
+71
-4
Python/strdup.c
Python/strdup.c
+1
-5
acconfig.h
acconfig.h
+12
-0
config.h.in
config.h.in
+12
-6
configure
configure
+361
-259
configure.in
configure.in
+98
-18
No files found.
Makefile.in
View file @
2ef8d8a6
...
...
@@ -161,6 +161,7 @@ DIST= $(DISTFILES) $(DISTDIRS)
CFLAGS
=
$(OPT)
-I
.
$(DEFS)
LIBRARY
=
libpython
$(VERSION)
.a
LDLIBRARY
=
@LDLIBRARY@
# Default target
all
:
$(LIBRARY) python sharedmods
...
...
@@ -173,10 +174,10 @@ python: $(LIBRARY) buildno Modules/python.o
$(srcdir)
/Modules/getbuildinfo.c
$(AR)
cr
$(LIBRARY)
getbuildinfo.o
$(RANLIB)
$(LIBRARY)
@
DGUX_IS_BROKEN
@
@
MAKE_LDLIBRARY
@
cd
Modules
;
$(MAKE)
OPT
=
"
$(OPT)
"
VERSION
=
"
$(VERSION)
"
\
prefix
=
"
$(prefix)
"
exec_prefix
=
"
$(exec_prefix)
"
\
LIBRARY
=
../
$(LIBRARY)
link
LIBRARY
=
../
$(L
DL
IBRARY)
link
Modules/python.o
:
$(srcdir)/Modules/python.c
cd
Modules
;
$(MAKE)
OPT
=
"
$(OPT)
"
python.o
...
...
@@ -204,6 +205,10 @@ libpython$(VERSION).so: $(LIBRARY)
(
cd
dgux
;
ar x ../
$^
;
ld
-G
-o
../
$@
*
)
/bin/rm
-rf
./dgux
# This rule is here for OPENSTEP/Rhapsody/MacOSX
libpython$(VERSION).dylib
:
$(LIBRARY)
libtool
-o
$(LDLIBRARY)
-dynamic
$(OTHER_LIBTOOL_OPT)
$(LIBRARY)
-framework
System @LIBTOOL_CRUFT@
$(SUBDIRS)
:
Makefiles
Parser
:
...
...
@@ -258,7 +263,6 @@ altbininstall: python
fi
;
\
done
$(INSTALL_PROGRAM)
python
$(EXE)
$(BINDIR)
/python
$(VERSION)$(EXE)
@
DGUX_IS_BROKEN@
if
test
-f
libpython
$(VERSION)
.so
;
then
\
$(INSTALL_DATA)
libpython
$(VERSION)
.so
$(LIBDIR)
;
\
else
true
;
\
...
...
@@ -504,7 +508,7 @@ clean: localclean
done
localclobber
:
localclean
-
rm
-f
tags TAGS python
$(LIBRARY)
*
.o
-
rm
-f
tags TAGS python
$(LIBRARY)
$(LDLIBRARY)
*
.o
-
rm
-f
config.log config.cache config.h
clobber
:
localclobber
...
...
Modules/Makefile.pre.in
View file @
2ef8d8a6
...
...
@@ -100,7 +100,7 @@ MAINOBJ= python.o
SYSLIBS
=
$(LIBM)
$(LIBC)
LIBRARY
=
../libpython
$(VERSION)
.a
REALLIBRARY
=
../@REAL
LIBRARY@
LDLIBRARY
=
../@LD
LIBRARY@
# === Rules ===
...
...
@@ -123,7 +123,7 @@ EXE=
# This target is used by the master Makefile to link the final binary.
link
:
$(MAINOBJ)
$(LINKCC)
$(LDFLAGS)
$(LINKFORSHARED)
$(MAINOBJ)
\
$(LIBRARY)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
-o
python
$(LDLAST)
$(L
DL
IBRARY)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
-o
python
$(LDLAST)
mv
python
$(EXE)
../python
$(EXE)
clean
:
...
...
Modules/getbuildinfo.c
View file @
2ef8d8a6
...
...
@@ -30,7 +30,7 @@
const
char
*
Py_GetBuildInfo
()
{
static
char
buildinfo
[
4
0
];
sprintf
(
buildinfo
,
"#%d, %.
12s, %.8
s"
,
BUILD
,
DATE
,
TIME
);
static
char
buildinfo
[
5
0
];
sprintf
(
buildinfo
,
"#%d, %.
20s, %.9
s"
,
BUILD
,
DATE
,
TIME
);
return
buildinfo
;
}
Modules/getpath.c
View file @
2ef8d8a6
...
...
@@ -42,6 +42,10 @@ PERFORMANCE OF THIS SOFTWARE.
#include <unistd.h>
#endif
/* HAVE_UNISTD_H */
#ifdef WITH_NEXT_FRAMEWORK
#include <mach-o/dyld.h>
#endif
/* Search in some common locations for the associated Python libraries.
*
* Two directories must be found, the platform independent directory
...
...
@@ -394,7 +398,24 @@ calculate_path()
int
bufsz
;
int
prefixsz
;
char
*
defpath
=
pythonpath
;
#ifdef WITH_NEXT_FRAMEWORK
NSModule
pythonModule
;
#endif
#ifdef WITH_NEXT_FRAMEWORK
pythonModule
=
NSModuleForSymbol
(
NSLookupAndBindSymbol
(
"_Py_Initialize"
));
/* Use dylib functions to find out where the framework was loaded from */
buf
=
NSLibraryNameForModule
(
pythonModule
);
if
(
buf
!=
NULL
)
{
/* We're in a framework. */
strcpy
(
progpath
,
buf
);
/* Frameworks have support for versioning */
strcpy
(
lib_python
,
"lib"
);
}
else
{
/* If we're not in a framework, fall back to the old way (even though NSNameOfModule() probably does the same thing.) */
#endif
/* Initialize this dynamically for K&R C */
sprintf
(
lib_python
,
"lib/python%s"
,
VERSION
);
...
...
@@ -430,6 +451,9 @@ calculate_path()
}
else
progpath
[
0
]
=
'\0'
;
#ifdef WITH_NEXT_FRAMEWORK
}
#endif
strcpy
(
argv0_path
,
progpath
);
...
...
Modules/posixmodule.c
View file @
2ef8d8a6
...
...
@@ -146,6 +146,7 @@ corresponding Unix manual entries for more information on calls.";
#undef HAVE_UTIME_H
#define HAVE_WAITPID
/* #undef HAVE_GETCWD */
#define UNION_WAIT
/* This should really be checked for by autoconf */
#endif
#ifdef HAVE_UNISTD_H
...
...
@@ -255,6 +256,23 @@ extern int lstat Py_PROTO((const char *, struct stat *));
#include <io.h>
#endif
/* OS2 */
#ifdef UNION_WAIT
/* Emulate some macros on systems that have a union instead of macros */
#ifndef WIFEXITED
#define WIFEXITED(u_wait) (!(u_wait).w_termsig && !(u_wait).w_coredump)
#endif
#ifndef WEXITSTATUS
#define WEXITSTATUS(u_wait) (WIFEXITED(u_wait)?((u_wait).w_retcode):-1)
#endif
#ifndef WTERMSIG
#define WTERMSIG(u_wait) ((u_wait).w_termsig)
#endif
#endif
/* UNION_WAIT */
/* Return a dictionary corresponding to the POSIX environment table */
#if !defined(_MSC_VER) && ( !defined(__WATCOMC__) || defined(__QNX__) )
...
...
@@ -1986,20 +2004,25 @@ posix_waitpid(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
pid
,
options
,
sts
=
0
;
int
pid
,
options
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"(ii)"
,
&
pid
,
&
options
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
#ifdef NeXT
pid
=
wait4
(
pid
,
(
union
wait
*
)
&
sts
,
options
,
NULL
);
#else
pid
=
waitpid
(
pid
,
&
sts
,
options
);
#endif
pid
=
wait4
(
pid
,
&
status
,
options
,
NULL
);
Py_END_ALLOW_THREADS
if
(
pid
==
-
1
)
return
posix_error
();
else
return
Py_BuildValue
(
"ii"
,
pid
,
st
s
);
return
Py_BuildValue
(
"ii"
,
pid
,
st
atus_i
);
}
#endif
/* HAVE_WAITPID */
...
...
@@ -2015,17 +2038,21 @@ posix_wait(self, args)
PyObject
*
args
;
{
int
pid
,
sts
;
Py_BEGIN_ALLOW_THREADS
#ifdef NeXT
pid
=
wait
((
union
wait
*
)
&
sts
);
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
pid
=
wait
(
&
sts
);
int
status
;
#define status_i status
#endif
status_i
=
0
;
Py_BEGIN_ALLOW_THREADS
pid
=
wait
(
&
status
);
Py_END_ALLOW_THREADS
if
(
pid
==
-
1
)
return
posix_error
();
else
return
Py_BuildValue
(
"ii"
,
pid
,
st
s
);
return
Py_BuildValue
(
"ii"
,
pid
,
st
atus_i
);
}
#endif
...
...
@@ -2821,9 +2848,16 @@ posix_WIFSTOPPED(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
status
=
0
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
_i
))
{
return
NULL
;
}
...
...
@@ -2842,9 +2876,16 @@ posix_WIFSIGNALED(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
status
=
0
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
_i
))
{
return
NULL
;
}
...
...
@@ -2863,9 +2904,16 @@ posix_WIFEXITED(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
status
=
0
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
_i
))
{
return
NULL
;
}
...
...
@@ -2874,7 +2922,7 @@ posix_WIFEXITED(self, args)
}
#endif
/* WIFEXITED */
#ifdef W
IFSTOPPED
#ifdef W
EXITSTATUS
static
char
posix_WEXITSTATUS__doc__
[]
=
"WEXITSTATUS(status) -> integer
\n
\
See Unix documentation."
;
...
...
@@ -2884,9 +2932,16 @@ posix_WEXITSTATUS(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
status
=
0
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
_i
))
{
return
NULL
;
}
...
...
@@ -2905,9 +2960,16 @@ posix_WTERMSIG(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
status
=
0
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
_i
))
{
return
NULL
;
}
...
...
@@ -2926,9 +2988,16 @@ posix_WSTOPSIG(self, args)
PyObject
*
self
;
PyObject
*
args
;
{
int
status
=
0
;
#ifdef UNION_WAIT
union
wait
status
;
#define status_i (status.w_status)
#else
int
status
;
#define status_i status
#endif
status_i
=
0
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
status
_i
))
{
return
NULL
;
}
...
...
Modules/readline.c
View file @
2ef8d8a6
...
...
@@ -34,6 +34,7 @@ extern int rl_bind_key();
extern
int
rl_bind_key_in_map
();
extern
int
rl_initialize
();
extern
int
add_history
();
extern
Function
*
rl_event_hook
;
#endif
/* Pointers needed from outside (but not declared in a header file). */
...
...
Python/getversion.c
View file @
2ef8d8a6
...
...
@@ -38,8 +38,8 @@ PERFORMANCE OF THIS SOFTWARE.
const
char
*
Py_GetVersion
()
{
static
char
version
[
8
0
];
sprintf
(
version
,
"%.10s (%.
30s) %.3
0s"
,
PY_VERSION
,
static
char
version
[
10
0
];
sprintf
(
version
,
"%.10s (%.
40s) %.4
0s"
,
PY_VERSION
,
Py_GetBuildInfo
(),
Py_GetCompiler
());
return
version
;
}
Python/importdl.c
View file @
2ef8d8a6
...
...
@@ -46,7 +46,8 @@ PERFORMANCE OF THIS SOFTWARE.
symbol -- defined for:
DYNAMIC_LINK -- any kind of dynamic linking
USE_RLD -- NeXT dynamic linking
USE_RLD -- NeXT dynamic linking with FVM shlibs
USE_DYLD -- NeXT dynamic linking with frameworks
USE_DL -- Jack's dl for IRIX 4 or GNU dld with emulation for Jack's dl
USE_SHLIB -- SunOS or IRIX 5 (SVR4?) shared libraries
_AIX -- AIX style dynamic linking
...
...
@@ -117,7 +118,15 @@ typedef FARPROC dl_funcptr;
#endif
#endif
#ifdef NeXT
#ifdef WITH_DYLD
#define DYNAMIC_LINK
#define USE_DYLD
#define SHORT_EXT ".so"
#define LONG_EXT "module.so"
#define FUNCNAME_PATTERN "_init%.200s"
#endif
#if defined(NeXT) && !defined(DYNAMIC_LINK)
#define DYNAMIC_LINK
#define USE_RLD
/* Define this to 1 if you want be able to load ObjC modules as well:
...
...
@@ -251,16 +260,22 @@ typedef void (*dl_funcptr)();
#ifdef USE_RLD
#include <mach-o/rld.h>
#define FUNCNAME_PATTERN "_init%.200s"
#ifndef _DL_FUNCPTR_DEFINED
typedef
void
(
*
dl_funcptr
)();
#endif
#endif
/* USE_RLD */
#ifdef USE_DYLD
#include <mach-o/dyld.h>
#ifndef _DL_FUNCPTR_DEFINED
typedef
void
(
*
dl_funcptr
)();
#endif
#endif
/* USE_DYLD */
extern
char
*
Py_GetProgramName
();
#ifndef FUNCNAME_PATTERN
#if defined(__hp9000s300) || (defined(__NetBSD__) || defined(__FreeBSD__)) && !defined(__ELF__) || defined(__OpenBSD__) || defined(__BORLANDC__)
#if defined(__hp9000s300) || (defined(__NetBSD__) || defined(__FreeBSD__)) && !defined(__ELF__) || defined(__OpenBSD__) || defined(__BORLANDC__)
|| defined(NeXT)
#define FUNCNAME_PATTERN "_init%.200s"
#else
#define FUNCNAME_PATTERN "init%.200s"
...
...
@@ -653,6 +668,58 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
return
NULL
;
}
#endif
/* USE_RLD */
#ifdef USE_DYLD
/* This is also NeXT-specific. However, frameworks (the new style
of shared library) and rld() can't be used in the same program;
instead, you have to use dyld, which is mostly unimplemented. */
{
NSObjectFileImageReturnCode
rc
;
NSObjectFileImage
image
;
NSModule
newModule
;
NSSymbol
theSym
;
void
*
symaddr
;
const
char
*
errString
;
rc
=
NSCreateObjectFileImageFromFile
(
pathname
,
&
image
);
switch
(
rc
)
{
default:
case
NSObjectFileImageFailure
:
NSObjectFileImageFormat:
/* for these a message is printed on stderr by dyld */
errString
=
"Can't create object file image"
;
break
;
case
NSObjectFileImageSuccess
:
errString
=
NULL
;
break
;
case
NSObjectFileImageInappropriateFile
:
errString
=
"Inappropriate file type for dynamic loading"
;
break
;
case
NSObjectFileImageArch
:
errString
=
"Wrong CPU type in object file"
;
break
;
NSObjectFileImageAccess:
errString
=
"Can't read object file (no access)"
;
break
;
}
if
(
errString
==
NULL
)
{
newModule
=
NSLinkModule
(
image
,
pathname
,
TRUE
);
if
(
!
newModule
)
errString
=
"Failure linking new module"
;
}
if
(
errString
!=
NULL
)
{
PyErr_SetString
(
PyExc_ImportError
,
errString
);
return
NULL
;
}
if
(
!
NSIsSymbolNameDefined
(
funcname
))
{
/* UnlinkModule() isn't implimented in current versions, but calling it does no harm */
NSUnLinkModule
(
newModule
,
FALSE
);
PyErr_Format
(
PyExc_ImportError
,
"Loaded module does not contain symbol %s"
,
funcname
);
return
NULL
;
}
theSym
=
NSLookupAndBindSymbol
(
funcname
);
p
=
(
dl_funcptr
)
NSAddressOfSymbol
(
theSym
);
}
#endif
/* USE_DYLD */
#ifdef hpux
{
shl_t
lib
;
...
...
Python/strdup.c
View file @
2ef8d8a6
/* strdup() replacement (from stdwin, if you must know) */
#include "config.h"
#include "myproto.h"
#include "mymalloc.h"
#include <string.h>
#include "pgenheaders.h"
char
*
strdup
(
str
)
...
...
acconfig.h
View file @
2ef8d8a6
...
...
@@ -18,6 +18,9 @@
/* Define to `long' if <time.h> doesn't define. */
#undef clock_t
/* Used for BeOS configuration */
#undef DL_EXPORT_HEADER
/* Define if getpgrp() must be called as getpgrp(0). */
#undef GETPGRP_HAVE_ARG
...
...
@@ -93,9 +96,18 @@
shared libraries */
#undef WITH_DL_DLD
/* Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
dynamic linker (dyld) instead of the old-style (NextStep) dynamic
linker (rld). Dyld is necessary to support frameworks. */
#undef WITH_DYLD
/* Define if you want to compile in rudimentary thread support */
#undef WITH_THREAD
/* Define if you want to produce an OpenStep/Rhapsody framework
(shared library plus accessory files). */
#undef WITH_NEXT_FRAMEWORK
/* The number of bytes in an off_t. */
#undef SIZEOF_OFF_T
...
...
config.h.in
View file @
2ef8d8a6
...
...
@@ -79,6 +79,9 @@
/* Define to `long' if <time.h> doesn't define. */
#undef clock_t
/* Used for BeOS configuration */
#undef DL_EXPORT_HEADER
/* Define if getpgrp() must be called as getpgrp(0). */
#undef GETPGRP_HAVE_ARG
...
...
@@ -148,9 +151,18 @@
shared libraries */
#undef WITH_DL_DLD
/* Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
dynamic linker (dyld) instead of the old-style (NextStep) dynamic
linker (rld). Dyld is necessary to support frameworks. */
#undef WITH_DYLD
/* Define if you want to compile in rudimentary thread support */
#undef WITH_THREAD
/* Define if you want to produce an OpenStep/Rhapsody framework
(shared library plus accessory files). */
#undef WITH_NEXT_FRAMEWORK
/* The number of bytes in an off_t. */
#undef SIZEOF_OFF_T
...
...
@@ -453,9 +465,3 @@
/* Define if you have the m library (-lm). */
#undef HAVE_LIBM
/* Define if you have special dynamic linkage requirements in declarations. */
#undef DL_EXPORT_HEADER
#ifdef DL_EXPORT_HEADER
#include DL_EXPORT_HEADER
#endif
configure
View file @
2ef8d8a6
#! /bin/sh
# From configure.in Revision: 1.9
5
# From configure.in Revision: 1.9
6
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
...
...
@@ -16,6 +16,10 @@ ac_default_prefix=/usr/local
ac_help
=
"
$ac_help
--with-next-archs='arch1 arch2 ..' build MAB binary"
ac_help
=
"
$ac_help
--with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework"
ac_help
=
"
$ac_help
--with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker"
ac_help
=
"
$ac_help
--without-gcc never use gcc"
ac_help
=
"
$ac_help
--with-libs='lib1 ...' link against additional libs"
...
...
@@ -554,10 +558,10 @@ fi
VERSION
=
1.5
# NEXTSTEP stuff
if
test
-f
/usr/lib/NextStep/software_version
;
then
if
test
-f
/usr/lib/NextStep/software_version
-o
-f
/System/Library/CoreServices/software_version
;
then
echo
$ac_n
"checking for --with-next-archs""...
$ac_c
"
1>&6
echo
"configure:56
1
: checking for --with-next-archs"
>
&5
echo
"configure:56
5
: checking for --with-next-archs"
>
&5
# Check whether --with-next-archs or --without-next-archs was given.
if
test
"
${
with_next_archs
+set
}
"
=
set
;
then
withval
=
"
$with_next_archs
"
...
...
@@ -576,7 +580,7 @@ fi
if
test
-z
"
$MACHDEP
"
then
set
X
`
hostinfo |
grep
'NeXT Mach
.*:'
|
\
set
X
`
hostinfo |
egrep
'(NeXT Mach|Kernel Release)
.*:'
|
\
sed
-e
's/://'
-e
's/\./_/'
`
&&
\
ac_sys_system
=
next
&&
ac_sys_release
=
$4
...
...
@@ -584,11 +588,23 @@ fi
fi
fi
# Check whether --with-next-framework or --without-next-framework was given.
if
test
"
${
with_next_framework
+set
}
"
=
set
;
then
withval
=
"
$with_next_framework
"
:
fi
# Check whether --with-dyld or --without-dyld was given.
if
test
"
${
with_dyld
+set
}
"
=
set
;
then
withval
=
"
$with_dyld
"
:
fi
# Set name for machine-dependent library files
echo
$ac_n
"checking MACHDEP""...
$ac_c
"
1>&6
echo
"configure:
592
: checking MACHDEP"
>
&5
echo
"configure:
608
: checking MACHDEP"
>
&5
if
test
-z
"
$MACHDEP
"
then
ac_sys_system
=
`
uname
-s
`
...
...
@@ -633,7 +649,7 @@ echo "$ac_t""$MACHDEP" 1>&6
#
echo
$ac_n
"checking CCC""...
$ac_c
"
1>&6
echo
"configure:6
37
: checking CCC"
>
&5
echo
"configure:6
53
: checking CCC"
>
&5
if
test
-z
"
$CCC
"
then
case
$ac_sys_system
in
...
...
@@ -649,7 +665,7 @@ echo "$ac_t""$SET_CCC" 1>&6
# checks for alternative programs
echo
$ac_n
"checking for --without-gcc""...
$ac_c
"
1>&6
echo
"configure:6
53
: checking for --without-gcc"
>
&5
echo
"configure:6
69
: checking for --without-gcc"
>
&5
# Check whether --with-gcc or --without-gcc was given.
if
test
"
${
with_gcc
+set
}
"
=
set
;
then
withval
=
"
$with_gcc
"
...
...
@@ -723,7 +739,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set
dummy gcc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:7
27
: checking for
$ac_word
"
>
&5
echo
"configure:7
43
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -753,7 +769,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set
dummy cc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:7
57
: checking for
$ac_word
"
>
&5
echo
"configure:7
73
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -804,7 +820,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args.
set
dummy cl
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:8
08
: checking for
$ac_word
"
>
&5
echo
"configure:8
24
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -836,7 +852,7 @@ fi
fi
echo
$ac_n
"checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works""...
$ac_c
"
1>&6
echo
"configure:8
40
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works"
>
&5
echo
"configure:8
56
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works"
>
&5
ac_ext
=
c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
...
...
@@ -847,12 +863,12 @@ cross_compiling=$ac_cv_prog_cc_cross
cat
>
conftest.
$ac_ext
<<
EOF
#line 8
51
"configure"
#line 8
67
"configure"
#include "confdefs.h"
main(){return(0);}
EOF
if
{
(
eval echo
configure:8
56
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:8
72
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
ac_cv_prog_cc_works
=
yes
# If we can't run a trivial program, we are probably using a cross compiler.
if
(
./conftest
;
exit
)
2>/dev/null
;
then
...
...
@@ -878,12 +894,12 @@ if test $ac_cv_prog_cc_works = no; then
{
echo
"configure: error: installation or configuration problem: C compiler cannot create executables."
1>&2
;
exit
1
;
}
fi
echo
$ac_n
"checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler""...
$ac_c
"
1>&6
echo
"configure:8
82
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler"
>
&5
echo
"configure:8
98
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler"
>
&5
echo
"
$ac_t
""
$ac_cv_prog_cc_cross
"
1>&6
cross_compiling
=
$ac_cv_prog_cc_cross
echo
$ac_n
"checking whether we are using GNU C""...
$ac_c
"
1>&6
echo
"configure:
887
: checking whether we are using GNU C"
>
&5
echo
"configure:
903
: checking whether we are using GNU C"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_gcc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -892,7 +908,7 @@ else
yes;
#endif
EOF
if
{
ac_try
=
'${CC-cc} -E conftest.c'
;
{
(
eval echo
configure:
896
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
;
}
| egrep
yes
>
/dev/null 2>&1
;
then
if
{
ac_try
=
'${CC-cc} -E conftest.c'
;
{
(
eval echo
configure:
912
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
;
}
| egrep
yes
>
/dev/null 2>&1
;
then
ac_cv_prog_gcc
=
yes
else
ac_cv_prog_gcc
=
no
...
...
@@ -911,7 +927,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
echo
$ac_n
"checking whether
${
CC
-cc
}
accepts -g""...
$ac_c
"
1>&6
echo
"configure:9
15
: checking whether
${
CC
-cc
}
accepts -g"
>
&5
echo
"configure:9
31
: checking whether
${
CC
-cc
}
accepts -g"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_cc_g
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -961,12 +977,20 @@ BeOS*)
esac
;;
esac
# LDLIBRARY is the name of the library to link against (as opposed to the
# name of the library into which to insert object files). On systems
# without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
# the Makefiles).
LDLIBRARY
=
''
# LINKCC is the command that links the python executable -- default is $(CC).
# This is altered for AIX and BeOS in order to build the export list before
# linking.
echo
$ac_n
"checking LINKCC""...
$ac_c
"
1>&6
echo
"configure:9
70
: checking LINKCC"
>
&5
echo
"configure:9
94
: checking LINKCC"
>
&5
if
test
-z
"
$LINKCC
"
then
case
$ac_sys_system
in
...
...
@@ -974,7 +998,7 @@ then
LINKCC
=
"
\$
(srcdir)/makexp_aix python.exp
\"\"
\$
(LIBRARY);
\$
(PURIFY)
\$
(CC)"
;;
BeOS
*
)
LINKCC
=
"
\$
(srcdir)/../BeOS/linkcc
\$
(LIBRARY)
\$
(PURIFY)
\$
(CC)
\$
(OPT)"
REAL
LIBRARY
=
'libpython$(VERSION).so'
;;
LD
LIBRARY
=
'libpython$(VERSION).so'
;;
dgux
*
)
LINKCC
=
"LD_RUN_PATH=
$libdir
\$
(PURIFY)
\$
(CC)"
;;
*
)
LINKCC
=
"
\$
(PURIFY)
\$
(CC)"
;;
...
...
@@ -982,10 +1006,37 @@ then
fi
echo
"
$ac_t
""
$LINKCC
"
1>&6
echo
$ac_n
"checking LDLIBRARY""...
$ac_c
"
1>&6
echo
"configure:1011: checking LDLIBRARY"
>
&5
# NeXT framework builds require that the 'ar' library be converted into
# a bundle using libtool.
if
test
"
$with_next_framework
"
then
LDLIBRARY
=
'libpython$(VERSION).dylib'
fi
# DG/UX requires some fancy ld contortions to produce a .so from an .a
if
test
"
$MACHDEP
"
=
"dguxR4"
then
LDLIBRARY
=
'libpython$(VERSION).so'
OPT
=
"
$OPT
-pic"
fi
echo
"
$ac_t
""
$LDLIBRARY
"
1>&6
# If LDLIBRARY is different from LIBRARY, emit a rule to build it.
if
test
-z
"
$LDLIBRARY
"
then
LDLIBRARY
=
'libpython$(VERSION).a'
MAKE_LDLIBRARY
=
"true"
else
MAKE_LDLIBRARY
=
'$(MAKE) $(LDLIBRARY)'
fi
# Extract the first word of "ranlib", so it can be a program name with args.
set
dummy ranlib
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:
989
: checking for
$ac_word
"
>
&5
echo
"configure:
1040
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_RANLIB
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1018,7 +1069,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:10
22
: checking for
$ac_word
"
>
&5
echo
"configure:10
73
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_AR
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1051,7 +1102,6 @@ test -n "$AR" || AR="ar"
# Install just never works :-(
if
test
-z
"
$INSTALL
"
then
...
...
@@ -1093,7 +1143,7 @@ then
fi
# checks for UNIX variants that set C preprocessor variables
echo
$ac_n
"checking how to run the C preprocessor""...
$ac_c
"
1>&6
echo
"configure:1
09
7: checking how to run the C preprocessor"
>
&5
echo
"configure:1
14
7: checking how to run the C preprocessor"
>
&5
# On Suns, sometimes $CPP names a directory.
if
test
-n
"
$CPP
"
&&
test
-d
"
$CPP
"
;
then
CPP
=
...
...
@@ -1108,13 +1158,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat
>
conftest.
$ac_ext
<<
EOF
#line 11
1
2 "configure"
#line 11
6
2 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:11
1
8:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:11
6
8:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -1125,13 +1175,13 @@ else
rm
-rf
conftest
*
CPP
=
"
${
CC
-cc
}
-E -traditional-cpp"
cat
>
conftest.
$ac_ext
<<
EOF
#line 11
2
9 "configure"
#line 11
7
9 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:11
3
5:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:11
8
5:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -1142,13 +1192,13 @@ else
rm
-rf
conftest
*
CPP
=
"
${
CC
-cc
}
-nologo -E"
cat
>
conftest.
$ac_ext
<<
EOF
#line 11
4
6 "configure"
#line 11
9
6 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:1
15
2:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:1
20
2:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -1173,9 +1223,9 @@ fi
echo
"
$ac_t
""
$CPP
"
1>&6
echo
$ac_n
"checking for AIX""...
$ac_c
"
1>&6
echo
"configure:1
17
7: checking for AIX"
>
&5
echo
"configure:1
22
7: checking for AIX"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
17
9 "configure"
#line 1
22
9 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
...
...
@@ -1198,17 +1248,17 @@ rm -f conftest*
ac_safe
=
`
echo
"minix/config.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for minix/config.h""...
$ac_c
"
1>&6
echo
"configure:12
0
2: checking for minix/config.h"
>
&5
echo
"configure:12
5
2: checking for minix/config.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 12
0
7 "configure"
#line 12
5
7 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:12
1
2:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:12
6
2:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1247,7 +1297,7 @@ fi
echo
$ac_n
"checking whether
$CC
accepts -OPT:Olimit=0""...
$ac_c
"
1>&6
echo
"configure:1
25
1: checking whether
$CC
accepts -OPT:Olimit=0"
>
&5
echo
"configure:1
30
1: checking whether
$CC
accepts -OPT:Olimit=0"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_opt_olimit_ok
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1257,11 +1307,11 @@ if test "$cross_compiling" = yes; then
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
26
1 "configure"
#line 1
31
1 "configure"
#include "confdefs.h"
int main() { return 0; }
EOF
if
{
(
eval echo
configure:1
26
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:1
31
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_opt_olimit_ok
=
yes
else
...
...
@@ -1281,7 +1331,7 @@ if test $ac_cv_opt_olimit_ok = yes; then
OPT
=
"
$OPT
-OPT:Olimit=0"
else
echo
$ac_n
"checking whether
$CC
accepts -Olimit 1500""...
$ac_c
"
1>&6
echo
"configure:1
28
5: checking whether
$CC
accepts -Olimit 1500"
>
&5
echo
"configure:1
33
5: checking whether
$CC
accepts -Olimit 1500"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_olimit_ok
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1291,11 +1341,11 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
29
5 "configure"
#line 1
34
5 "configure"
#include "confdefs.h"
int main() { return 0; }
EOF
if
{
(
eval echo
configure:1
29
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:1
34
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_olimit_ok
=
yes
else
...
...
@@ -1316,22 +1366,11 @@ fi
fi
fi
if
test
"
$MACHDEP
"
!=
"dguxR4"
then
REALLIBRARY
=
'libpython$(VERSION).a'
DGUX_IS_BROKEN
=
"true"
else
REALLIBRARY
=
'libpython$(VERSION).so'
OPT
=
"
$OPT
-pic"
DGUX_IS_BROKEN
=
"make
$REALLIBRARY
"
fi
# check for ANSI or K&R ("traditional") preprocessor
echo
$ac_n
"checking for C preprocessor type""...
$ac_c
"
1>&6
echo
"configure:13
33
: checking for C preprocessor type"
>
&5
echo
"configure:13
72
: checking for C preprocessor type"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 13
35
"configure"
#line 13
74
"configure"
#include "confdefs.h"
#define spam(name, doc) {#name, &name, #name "() -- " doc}
...
...
@@ -1342,7 +1381,7 @@ int main() {
;
; return 0; }
EOF
if
{
(
eval echo
configure:13
46
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:13
85
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cpp_type
=
ansi
else
...
...
@@ -1359,12 +1398,12 @@ echo "$ac_t""$cpp_type" 1>&6
# checks for header files
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:1
363
: checking for ANSI C header files"
>
&5
echo
"configure:1
402
: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
368
"configure"
#line 1
407
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -1372,7 +1411,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:1
376
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:1
415
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1389,7 +1428,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
393
"configure"
#line 1
432
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -1407,7 +1446,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 14
11
"configure"
#line 14
50
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -1428,7 +1467,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 14
32
"configure"
#line 14
71
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -1439,7 +1478,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:14
43
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:14
82
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -1470,17 +1509,17 @@ sys/un.h sys/utsname.h sys/wait.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:1
474
: checking for
$ac_hdr
"
>
&5
echo
"configure:1
513
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
479
"configure"
#line 1
518
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:1
484
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:1
523
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1511,12 +1550,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
that defines DIR""...
$ac_c
"
1>&6
echo
"configure:15
15
: checking for
$ac_hdr
that defines DIR"
>
&5
echo
"configure:15
54
: checking for
$ac_hdr
that defines DIR"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_dirent_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 15
20
"configure"
#line 15
59
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <
$ac_hdr
>
...
...
@@ -1524,7 +1563,7 @@ int main() {
DIR *dirp = 0;
; return 0; }
EOF
if
{
(
eval echo
configure:15
28
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:15
67
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_header_dirent_
$ac_safe
=yes"
else
...
...
@@ -1549,7 +1588,7 @@ done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if
test
$ac_header_dirent
=
dirent.h
;
then
echo
$ac_n
"checking for opendir in -ldir""...
$ac_c
"
1>&6
echo
"configure:15
53
: checking for opendir in -ldir"
>
&5
echo
"configure:15
92
: checking for opendir in -ldir"
>
&5
ac_lib_var
=
`
echo dir
'_'
opendir |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1557,7 +1596,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-ldir
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
561
"configure"
#line 1
600
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1568,7 +1607,7 @@ int main() {
opendir()
; return 0; }
EOF
if
{
(
eval echo
configure:1
572
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:1
611
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1590,7 +1629,7 @@ fi
else
echo
$ac_n
"checking for opendir in -lx""...
$ac_c
"
1>&6
echo
"configure:1
594
: checking for opendir in -lx"
>
&5
echo
"configure:1
633
: checking for opendir in -lx"
>
&5
ac_lib_var
=
`
echo
x
'_'
opendir |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1598,7 +1637,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lx
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 16
02
"configure"
#line 16
41
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1609,7 +1648,7 @@ int main() {
opendir()
; return 0; }
EOF
if
{
(
eval echo
configure:16
13
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:16
52
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1635,9 +1674,9 @@ fi
# checks for typedefs
was_it_defined
=
no
echo
$ac_n
"checking for clock_t in time.h""...
$ac_c
"
1>&6
echo
"configure:16
39
: checking for clock_t in time.h"
>
&5
echo
"configure:16
78
: checking for clock_t in time.h"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 16
41
"configure"
#line 16
80
"configure"
#include "confdefs.h"
#include <time.h>
EOF
...
...
@@ -1664,12 +1703,12 @@ cat >> confdefs.h <<\EOF
EOF
echo
$ac_n
"checking for mode_t""...
$ac_c
"
1>&6
echo
"configure:1
668
: checking for mode_t"
>
&5
echo
"configure:1
707
: checking for mode_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_mode_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
673
"configure"
#line 1
712
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -1697,12 +1736,12 @@ EOF
fi
echo
$ac_n
"checking for off_t""...
$ac_c
"
1>&6
echo
"configure:17
01
: checking for off_t"
>
&5
echo
"configure:17
40
: checking for off_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_off_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 17
06
"configure"
#line 17
45
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -1730,12 +1769,12 @@ EOF
fi
echo
$ac_n
"checking for pid_t""...
$ac_c
"
1>&6
echo
"configure:17
34
: checking for pid_t"
>
&5
echo
"configure:17
73
: checking for pid_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_pid_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 17
39
"configure"
#line 17
78
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -1763,12 +1802,12 @@ EOF
fi
echo
$ac_n
"checking return type of signal handlers""...
$ac_c
"
1>&6
echo
"configure:1
767
: checking return type of signal handlers"
>
&5
echo
"configure:1
806
: checking return type of signal handlers"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_signal
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
772
"configure"
#line 1
811
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
...
...
@@ -1785,7 +1824,7 @@ int main() {
int i;
; return 0; }
EOF
if
{
(
eval echo
configure:1
789
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:1
828
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_type_signal
=
void
else
...
...
@@ -1804,12 +1843,12 @@ EOF
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:18
08
: checking for size_t"
>
&5
echo
"configure:18
47
: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 18
13
"configure"
#line 18
52
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -1837,12 +1876,12 @@ EOF
fi
echo
$ac_n
"checking for uid_t in sys/types.h""...
$ac_c
"
1>&6
echo
"configure:18
41
: checking for uid_t in sys/types.h"
>
&5
echo
"configure:18
80
: checking for uid_t in sys/types.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_uid_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 18
46
"configure"
#line 18
85
"configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
...
...
@@ -1872,7 +1911,7 @@ fi
echo
$ac_n
"checking size of int""...
$ac_c
"
1>&6
echo
"configure:1
876
: checking size of int"
>
&5
echo
"configure:1
915
: checking size of int"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_int
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1880,7 +1919,7 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
884
"configure"
#line 1
923
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -1891,7 +1930,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:1
895
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:1
934
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_int
=
`
cat
conftestval
`
else
...
...
@@ -1911,7 +1950,7 @@ EOF
echo
$ac_n
"checking size of long""...
$ac_c
"
1>&6
echo
"configure:19
15
: checking size of long"
>
&5
echo
"configure:19
54
: checking size of long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1919,7 +1958,7 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 19
23
"configure"
#line 19
62
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -1930,7 +1969,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:19
34
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:19
73
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_long
=
`
cat
conftestval
`
else
...
...
@@ -1950,7 +1989,7 @@ EOF
echo
$ac_n
"checking size of void *""...
$ac_c
"
1>&6
echo
"configure:19
54
: checking size of void *"
>
&5
echo
"configure:19
93
: checking size of void *"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_void_p
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1958,7 +1997,7 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
1962
"configure"
#line
2001
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -1969,7 +2008,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:
1973
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:
2012
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_void_p
=
`
cat
conftestval
`
else
...
...
@@ -1990,17 +2029,17 @@ EOF
echo
$ac_n
"checking for long long support""...
$ac_c
"
1>&6
echo
"configure:
1994
: checking for long long support"
>
&5
echo
"configure:
2033
: checking for long long support"
>
&5
have_long_long
=
no
cat
>
conftest.
$ac_ext
<<
EOF
#line
1997
"configure"
#line
2036
"configure"
#include "confdefs.h"
int main() {
long long x; x = (long long)0;
; return 0; }
EOF
if
{
(
eval echo
configure:20
04
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:20
43
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_LONG_LONG 1
...
...
@@ -2014,7 +2053,7 @@ rm -f conftest*
echo
"
$ac_t
""
$have_long_long
"
1>&6
if
test
$have_long_long
=
yes
;
then
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:20
18
: checking size of long long"
>
&5
echo
"configure:20
57
: checking size of long long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2022,7 +2061,7 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 20
26
"configure"
#line 20
65
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -2033,7 +2072,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:20
37
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:20
76
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_long_long
=
`
cat
conftestval
`
else
...
...
@@ -2056,7 +2095,7 @@ fi
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
echo
$ac_n
"checking size of off_t""...
$ac_c
"
1>&6
echo
"configure:20
60
: checking size of off_t"
>
&5
echo
"configure:20
99
: checking size of off_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_off_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2064,7 +2103,7 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
068
"configure"
#line 2
107
"configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
...
...
@@ -2076,7 +2115,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:2
080
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:2
119
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_off_t
=
`
cat
conftestval
`
else
...
...
@@ -2098,7 +2137,7 @@ EOF
echo
$ac_n
"checking whether to enable large file support""...
$ac_c
"
1>&6
echo
"configure:21
02
: checking whether to enable large file support"
>
&5
echo
"configure:21
41
: checking whether to enable large file support"
>
&5
if
test
$have_long_long
=
yes
-a
\
$ac_cv_sizeof_off_t
-gt
$ac_cv_sizeof_long
-a
\
$ac_cv_sizeof_long_long
-ge
$ac_cv_sizeof_off_t
;
then
...
...
@@ -2112,6 +2151,53 @@ else
fi
# Minor variations in building a framework between NextStep versions 4 and 5
case
$ac_sys_system
/
$ac_sys_release
in
next/4
*
)
ns_undef_sym
=
'__environ'
LIBTOOL_CRUFT
=
"-U
$ns_undef_sym
"
;;
next/5
*
)
ns_undef_sym
=
'_environ'
LIBTOOL_CRUFT
=
"-lcc_dynamic -U
$ns_undef_sym
"
;;
esac
echo
$ac_n
"checking for --with-next-framework""...
$ac_c
"
1>&6
echo
"configure:2167: checking for --with-next-framework"
>
&5
if
test
"
$with_next_framework
"
then
OPT
=
"
$OPT
-fno-common"
# -U __environ is needed since bundles don't have access
# to crt0 when built but will always be linked against it
LDFLAGS
=
"
$LDFLAGS
-Wl,-U,
$ns_undef_sym
"
cat
>>
confdefs.h
<<
\
EOF
#define WITH_NEXT_FRAMEWORK 1
EOF
echo
"
$ac_t
""yes"
1>&6
else
echo
"
$ac_t
""no"
1>&6
fi
echo
$ac_n
"checking for --with-dyld""...
$ac_c
"
1>&6
echo
"configure:2184: checking for --with-dyld"
>
&5
if
test
"
$with_next_framework
"
-o
"
$with_dyld
"
then
if
test
"
$with_dyld
"
then
echo
"
$ac_t
""yes"
1>&6
else
echo
"
$ac_t
""required for framework build"
1>&6
fi
cat
>>
confdefs.h
<<
\
EOF
#define WITH_DYLD 1
EOF
ns_dyld
=
'set'
else
echo
"
$ac_t
""no"
1>&6
fi
# Set info about shared libraries.
...
...
@@ -2120,7 +2206,7 @@ fi
# SO is the extension of shared libraries `(including the dot!)
# -- usually .so, .sl on HP-UX
echo
$ac_n
"checking SO""...
$ac_c
"
1>&6
echo
"configure:2
124
: checking SO"
>
&5
echo
"configure:2
210
: checking SO"
>
&5
if
test
-z
"
$SO
"
then
case
$ac_sys_system
in
...
...
@@ -2131,8 +2217,10 @@ fi
echo
"
$ac_t
""
$SO
"
1>&6
# LDSHARED is the ld *command* used to create shared library
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
# (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.)
echo
$ac_n
"checking LDSHARED""...
$ac_c
"
1>&6
echo
"configure:2
136
: checking LDSHARED"
>
&5
echo
"configure:2
224
: checking LDSHARED"
>
&5
if
test
-z
"
$LDSHARED
"
then
case
$ac_sys_system
/
$ac_sys_release
in
...
...
@@ -2145,7 +2233,14 @@ then
hp
*
|
HP
*
)
LDSHARED
=
"ld -b"
;;
OSF
*
)
LDSHARED
=
"ld -shared -expect_unresolved
\"
*
\"
"
;;
DYNIX/ptx
*
)
LDSHARED
=
"ld -G"
;;
next/
*
)
LDSHARED
=
'$(CC) $(CFLAGS) -nostdlib -r'
;;
next/
*
)
if
test
"
$ns_dyld
"
then
LDSHARED
=
'$(CC) $(LDFLAGS) -bundle -prebind'
else
LDSHARED
=
'$(CC) $(CFLAGS) -nostdlib -r'
;
fi
if
test
"
$with_next_framework
"
;
then
LDSHARED
=
"
$LDSHARED
\$
(LDLIBRARY)"
fi
;;
Linux
*
)
LDSHARED
=
"gcc -shared"
;;
dgux
*
)
LDSHARED
=
"ld -G"
;;
FreeBSD
*
/3
*
)
LDSHARED
=
"gcc -shared"
;;
...
...
@@ -2163,9 +2258,9 @@ then
fi
echo
"
$ac_t
""
$LDSHARED
"
1>&6
# CCSHARED are the C *flags* used to create objects to go into a shared
# library -- this is only needed for a few systems
# library
(module)
-- this is only needed for a few systems
echo
$ac_n
"checking CCSHARED""...
$ac_c
"
1>&6
echo
"configure:2
169
: checking CCSHARED"
>
&5
echo
"configure:2
264
: checking CCSHARED"
>
&5
if
test
-z
"
$CCSHARED
"
then
case
$ac_sys_system
/
$ac_sys_release
in
...
...
@@ -2187,7 +2282,7 @@ echo "$ac_t""$CCSHARED" 1>&6
# LINKFORSHARED are the flags passed to the $(CC) command that links
# the python executable -- this is only needed for a few systems
echo
$ac_n
"checking LINKFORSHARED""...
$ac_c
"
1>&6
echo
"configure:2
191
: checking LINKFORSHARED"
>
&5
echo
"configure:2
286
: checking LINKFORSHARED"
>
&5
if
test
-z
"
$LINKFORSHARED
"
then
case
$ac_sys_system
/
$ac_sys_release
in
...
...
@@ -2196,7 +2291,13 @@ then
LINKFORSHARED
=
"-Wl,-E -Wl,+s -Wl,+b
\$
(BINLIBDEST)/lib-dynload"
;;
FreeBSD/3
*
)
LINKFORSHARED
=
"-Xlinker -export-dynamic"
;;
Linux
*
)
LINKFORSHARED
=
"-Xlinker -export-dynamic"
;;
next/
*
)
LINKFORSHARED
=
"-u libsys_s"
;;
# -u libsys_s pulls in all symbols in libsys
next/2
*
|
next/3
*
)
LINKFORSHARED
=
"-u libsys_s"
;;
# -u __dummy makes the linker aware of the objc runtime
# in System.framework; otherwise, __objcInit (referenced in
# crt1.o) gets erroneously defined as common, which breaks dynamic
# loading of any modules which reference it in System.framework
next/4
*
|
next/5
*
)
LINKFORSHARED
=
"-u __dummy -framework System"
;;
SCO_SV
*
)
LINKFORSHARED
=
"-Bdynamic -dy -Wl,-Bexport"
;;
NetBSD
*
)
if
[
"
`
$CC
-dM
-E
- </dev/null |
grep
__ELF__
`
"
!=
""
]
...
...
@@ -2216,7 +2317,7 @@ echo "$ac_t""$LINKFORSHARED" 1>&6
# checks for libraries
echo
$ac_n
"checking for dlopen in -ldl""...
$ac_c
"
1>&6
echo
"configure:2
220
: checking for dlopen in -ldl"
>
&5
echo
"configure:2
321
: checking for dlopen in -ldl"
>
&5
ac_lib_var
=
`
echo
dl
'_'
dlopen |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2224,7 +2325,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-ldl
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
228
"configure"
#line 2
329
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2235,7 +2336,7 @@ int main() {
dlopen()
; return 0; }
EOF
if
{
(
eval echo
configure:2
239
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
340
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2263,7 +2364,7 @@ else
fi
# Dynamic linking for SunOS/Solaris and SYSV
echo
$ac_n
"checking for shl_load in -ldld""...
$ac_c
"
1>&6
echo
"configure:2
267
: checking for shl_load in -ldld"
>
&5
echo
"configure:2
368
: checking for shl_load in -ldld"
>
&5
ac_lib_var
=
`
echo
dld
'_'
shl_load |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2271,7 +2372,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-ldld
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
275
"configure"
#line 2
376
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2282,7 +2383,7 @@ int main() {
shl_load()
; return 0; }
EOF
if
{
(
eval echo
configure:2
286
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
387
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2310,7 +2411,7 @@ else
fi
# Dynamic linking for HP-UX
echo
$ac_n
"checking for pow in -lm""...
$ac_c
"
1>&6
echo
"configure:2
314
: checking for pow in -lm"
>
&5
echo
"configure:2
415
: checking for pow in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
pow |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2318,7 +2419,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
322
"configure"
#line 2
423
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2329,7 +2430,7 @@ int main() {
pow()
; return 0; }
EOF
if
{
(
eval echo
configure:2
333
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
434
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2363,7 +2464,7 @@ case "$ac_sys_system" in
IRIX
*
)
;;
*
)
echo
$ac_n
"checking for t_open in -lnsl""...
$ac_c
"
1>&6
echo
"configure:2
367
: checking for t_open in -lnsl"
>
&5
echo
"configure:2
468
: checking for t_open in -lnsl"
>
&5
ac_lib_var
=
`
echo
nsl
'_'
t_open |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2371,7 +2472,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnsl
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
375
"configure"
#line 2
476
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2382,7 +2483,7 @@ int main() {
t_open()
; return 0; }
EOF
if
{
(
eval echo
configure:2
386
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
487
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2403,7 +2504,7 @@ else
fi
# SVR4
echo
$ac_n
"checking for socket in -lsocket""...
$ac_c
"
1>&6
echo
"configure:2
407
: checking for socket in -lsocket"
>
&5
echo
"configure:2
508
: checking for socket in -lsocket"
>
&5
ac_lib_var
=
`
echo
socket
'_'
socket |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2411,7 +2512,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lsocket
$LIBS
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
415
"configure"
#line 2
516
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2422,7 +2523,7 @@ int main() {
socket()
; return 0; }
EOF
if
{
(
eval echo
configure:2
426
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
527
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2443,7 +2544,7 @@ else
fi
# SVR4 sockets
echo
$ac_n
"checking for socket in -lnet""...
$ac_c
"
1>&6
echo
"configure:2
447
: checking for socket in -lnet"
>
&5
echo
"configure:2
548
: checking for socket in -lnet"
>
&5
ac_lib_var
=
`
echo
net
'_'
socket |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2451,7 +2552,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnet
$LIBS
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
455
"configure"
#line 2
556
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2462,7 +2563,7 @@ int main() {
socket()
; return 0; }
EOF
if
{
(
eval echo
configure:2
466
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
567
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2486,7 +2587,7 @@ fi
esac
echo
$ac_n
"checking for --with-libs""...
$ac_c
"
1>&6
echo
"configure:2
490
: checking for --with-libs"
>
&5
echo
"configure:2
591
: checking for --with-libs"
>
&5
# Check whether --with-libs or --without-libs was given.
if
test
"
${
with_libs
+set
}
"
=
set
;
then
withval
=
"
$with_libs
"
...
...
@@ -2500,7 +2601,7 @@ fi
echo
$ac_n
"checking for --with(out)-readline""...
$ac_c
"
1>&6
echo
"configure:2
504
: checking for --with(out)-readline"
>
&5
echo
"configure:2
605
: checking for --with(out)-readline"
>
&5
# Check whether --with-readline or --without-readline was given.
if
test
"
${
with_readline
+set
}
"
=
set
;
then
withval
=
"
$with_readline
"
...
...
@@ -2515,7 +2616,7 @@ fi
USE_THREAD_MODULE
=
"#"
echo
$ac_n
"checking for --with-dec-threads""...
$ac_c
"
1>&6
echo
"configure:2
519
: checking for --with-dec-threads"
>
&5
echo
"configure:2
620
: checking for --with-dec-threads"
>
&5
# Check whether --with-dec-threads or --without-dec-threads was given.
if
test
"
${
with_dec_threads
+set
}
"
=
set
;
then
...
...
@@ -2531,7 +2632,7 @@ fi
echo
$ac_n
"checking for --with-threads""...
$ac_c
"
1>&6
echo
"configure:2
535
: checking for --with-threads"
>
&5
echo
"configure:2
636
: checking for --with-threads"
>
&5
# Check whether --with-threads or --without-threads was given.
if
test
"
${
with_threads
+set
}
"
=
set
;
then
withval
=
"
$with_threads
"
...
...
@@ -2545,7 +2646,7 @@ fi
echo
$ac_n
"checking for --with-thread""...
$ac_c
"
1>&6
echo
"configure:2
549
: checking for --with-thread"
>
&5
echo
"configure:2
650
: checking for --with-thread"
>
&5
# Check whether --with-thread or --without-thread was given.
if
test
"
${
with_thread
+set
}
"
=
set
;
then
withval
=
"
$with_thread
"
...
...
@@ -2561,17 +2662,17 @@ EOF
ac_safe
=
`
echo
"mach/cthreads.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for mach/cthreads.h""...
$ac_c
"
1>&6
echo
"configure:2
565
: checking for mach/cthreads.h"
>
&5
echo
"configure:2
666
: checking for mach/cthreads.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
570
"configure"
#line 2
671
"configure"
#include "confdefs.h"
#include <mach/cthreads.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:2
575
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:2
676
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -2600,12 +2701,12 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for pthread_detach""...
$ac_c
"
1>&6
echo
"configure:2
604
: checking for pthread_detach"
>
&5
echo
"configure:2
705
: checking for pthread_detach"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_pthread_detach
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
609
"configure"
#line 2
710
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_detach(); below. */
...
...
@@ -2628,7 +2729,7 @@ pthread_detach();
; return 0; }
EOF
if
{
(
eval echo
configure:2
632
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
733
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_pthread_detach=yes"
else
...
...
@@ -2656,17 +2757,17 @@ else
ac_safe
=
`
echo
"kernel/OS.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for kernel/OS.h""...
$ac_c
"
1>&6
echo
"configure:2
660
: checking for kernel/OS.h"
>
&5
echo
"configure:2
761
: checking for kernel/OS.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
665
"configure"
#line 2
766
"configure"
#include "confdefs.h"
#include <kernel/OS.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:2
670
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:2
771
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -2695,7 +2796,7 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for pthread_create in -lpthreads""...
$ac_c
"
1>&6
echo
"configure:2
699
: checking for pthread_create in -lpthreads"
>
&5
echo
"configure:2
800
: checking for pthread_create in -lpthreads"
>
&5
ac_lib_var
=
`
echo
pthreads
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2703,7 +2804,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthreads
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
707
"configure"
#line 2
808
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2714,7 +2815,7 @@ int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:2
718
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
819
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2743,7 +2844,7 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
"configure:2
747
: checking for pthread_create in -lpthread"
>
&5
echo
"configure:2
848
: checking for pthread_create in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2751,7 +2852,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
755
"configure"
#line 2
856
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2762,7 +2863,7 @@ int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:2
766
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
867
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2791,7 +2892,7 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for pthread_create in -lc_r""...
$ac_c
"
1>&6
echo
"configure:2
795
: checking for pthread_create in -lc_r"
>
&5
echo
"configure:2
896
: checking for pthread_create in -lc_r"
>
&5
ac_lib_var
=
`
echo
c_r
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2799,7 +2900,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lc_r
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
803
"configure"
#line 2
904
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2810,7 +2911,7 @@ int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:2
814
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
915
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2839,7 +2940,7 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for __d6_pthread_create in -lthread""...
$ac_c
"
1>&6
echo
"configure:2
843
: checking for __d6_pthread_create in -lthread"
>
&5
echo
"configure:2
944
: checking for __d6_pthread_create in -lthread"
>
&5
ac_lib_var
=
`
echo
thread
'_'
__d6_pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2847,7 +2948,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
851
"configure"
#line 2
952
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2858,7 +2959,7 @@ int main() {
__d6_pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:2
862
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:2
963
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2887,7 +2988,7 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for pthread_create in -lcma""...
$ac_c
"
1>&6
echo
"configure:2
891
: checking for pthread_create in -lcma"
>
&5
echo
"configure:2
992
: checking for pthread_create in -lcma"
>
&5
ac_lib_var
=
`
echo
cma
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2895,7 +2996,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lcma
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line
2899
"configure"
#line
3000
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2906,7 +3007,7 @@ int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:
2910
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:
3011
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2952,7 +3053,7 @@ fi
echo
$ac_n
"checking for usconfig in -lmpc""...
$ac_c
"
1>&6
echo
"configure:
2956
: checking for usconfig in -lmpc"
>
&5
echo
"configure:
3057
: checking for usconfig in -lmpc"
>
&5
ac_lib_var
=
`
echo
mpc
'_'
usconfig |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2960,7 +3061,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lmpc
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line
2964
"configure"
#line
3065
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2971,7 +3072,7 @@ int main() {
usconfig()
; return 0; }
EOF
if
{
(
eval echo
configure:
2975
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:
3076
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2997,7 +3098,7 @@ else
fi
echo
$ac_n
"checking for thr_create in -lthread""...
$ac_c
"
1>&6
echo
"configure:3
001
: checking for thr_create in -lthread"
>
&5
echo
"configure:3
102
: checking for thr_create in -lthread"
>
&5
ac_lib_var
=
`
echo
thread
'_'
thr_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -3005,7 +3106,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
009
"configure"
#line 3
110
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -3016,7 +3117,7 @@ int main() {
thr_create()
; return 0; }
EOF
if
{
(
eval echo
configure:3
020
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
121
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -3052,7 +3153,7 @@ fi
DLINCLDIR
=
/
echo
$ac_n
"checking for --with-sgi-dl""...
$ac_c
"
1>&6
echo
"configure:3
056
: checking for --with-sgi-dl"
>
&5
echo
"configure:3
157
: checking for --with-sgi-dl"
>
&5
# Check whether --with-sgi-dl or --without-sgi-dl was given.
if
test
"
${
with_sgi_dl
+set
}
"
=
set
;
then
withval
=
"
$with_sgi_dl
"
...
...
@@ -3075,7 +3176,7 @@ fi
echo
$ac_n
"checking for --with-dl-dld""...
$ac_c
"
1>&6
echo
"configure:3
079
: checking for --with-dl-dld"
>
&5
echo
"configure:3
180
: checking for --with-dl-dld"
>
&5
# Check whether --with-dl-dld or --without-dl-dld was given.
if
test
"
${
with_dl_dld
+set
}
"
=
set
;
then
withval
=
"
$with_dl_dld
"
...
...
@@ -3108,12 +3209,12 @@ for ac_func in alarm chown clock dlopen execv flock fork \
tcgetpgrp tcsetpgrp timegm
times truncate uname
waitpid
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3
112
: checking for
$ac_func
"
>
&5
echo
"configure:3
213
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
117
"configure"
#line 3
218
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -3136,7 +3237,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:3
140
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
241
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -3165,12 +3266,12 @@ done
for
ac_func
in
fseek64 fseeko fstatvfs ftell64 ftello statvfs
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3
169
: checking for
$ac_func
"
>
&5
echo
"configure:3
270
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
174
"configure"
#line 3
275
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -3193,7 +3294,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:3
197
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
298
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -3221,12 +3322,12 @@ done
for
ac_func
in
dup2 getcwd strdup strerror memmove
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3
225
: checking for
$ac_func
"
>
&5
echo
"configure:3
326
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
230
"configure"
#line 3
331
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -3249,7 +3350,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:3
253
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
354
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -3276,12 +3377,12 @@ done
echo
$ac_n
"checking for getpgrp""...
$ac_c
"
1>&6
echo
"configure:3
280
: checking for getpgrp"
>
&5
echo
"configure:3
381
: checking for getpgrp"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_getpgrp
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
285
"configure"
#line 3
386
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpgrp(); below. */
...
...
@@ -3304,7 +3405,7 @@ getpgrp();
; return 0; }
EOF
if
{
(
eval echo
configure:3
308
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
409
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_getpgrp=yes"
else
...
...
@@ -3319,14 +3420,14 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
getpgrp
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
323
"configure"
#line 3
424
"configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
getpgrp(0);
; return 0; }
EOF
if
{
(
eval echo
configure:3
330
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
431
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define GETPGRP_HAVE_ARG 1
...
...
@@ -3342,12 +3443,12 @@ else
fi
echo
$ac_n
"checking for setpgrp""...
$ac_c
"
1>&6
echo
"configure:3
346
: checking for setpgrp"
>
&5
echo
"configure:3
447
: checking for setpgrp"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_setpgrp
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
351
"configure"
#line 3
452
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char setpgrp(); below. */
...
...
@@ -3370,7 +3471,7 @@ setpgrp();
; return 0; }
EOF
if
{
(
eval echo
configure:3
374
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
475
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_setpgrp=yes"
else
...
...
@@ -3385,14 +3486,14 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
setpgrp
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
389
"configure"
#line 3
490
"configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
setpgrp(0,0);
; return 0; }
EOF
if
{
(
eval echo
configure:3
396
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
497
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define SETPGRP_HAVE_ARG 1
...
...
@@ -3408,12 +3509,12 @@ else
fi
echo
$ac_n
"checking for gettimeofday""...
$ac_c
"
1>&6
echo
"configure:3
412
: checking for gettimeofday"
>
&5
echo
"configure:3
513
: checking for gettimeofday"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_gettimeofday
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
417
"configure"
#line 3
518
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gettimeofday(); below. */
...
...
@@ -3436,7 +3537,7 @@ gettimeofday();
; return 0; }
EOF
if
{
(
eval echo
configure:3
440
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
541
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_gettimeofday=yes"
else
...
...
@@ -3451,14 +3552,14 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
gettimeofday
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
455
"configure"
#line 3
556
"configure"
#include "confdefs.h"
#include <sys/time.h>
int main() {
gettimeofday((struct timeval*)0,(struct timezone*)0);
; return 0; }
EOF
if
{
(
eval echo
configure:3
462
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
563
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
:
else
echo
"configure: failed program was:"
>
&5
...
...
@@ -3477,12 +3578,12 @@ fi
# checks for structures
echo
$ac_n
"checking whether time.h and sys/time.h may both be included""...
$ac_c
"
1>&6
echo
"configure:3
481
: checking whether time.h and sys/time.h may both be included"
>
&5
echo
"configure:3
582
: checking whether time.h and sys/time.h may both be included"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_time
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
486
"configure"
#line 3
587
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
...
...
@@ -3491,7 +3592,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
if
{
(
eval echo
configure:3
495
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
596
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_header_time
=
yes
else
...
...
@@ -3512,12 +3613,12 @@ EOF
fi
echo
$ac_n
"checking whether struct tm is in sys/time.h or time.h""...
$ac_c
"
1>&6
echo
"configure:3
516
: checking whether struct tm is in sys/time.h or time.h"
>
&5
echo
"configure:3
617
: checking whether struct tm is in sys/time.h or time.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_struct_tm
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
521
"configure"
#line 3
622
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
...
...
@@ -3525,7 +3626,7 @@ int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
if
{
(
eval echo
configure:3
529
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
630
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_struct_tm
=
time.h
else
...
...
@@ -3546,12 +3647,12 @@ EOF
fi
echo
$ac_n
"checking for tm_zone in struct tm""...
$ac_c
"
1>&6
echo
"configure:3
550
: checking for tm_zone in struct tm"
>
&5
echo
"configure:3
651
: checking for tm_zone in struct tm"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_struct_tm_zone
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
555
"configure"
#line 3
656
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <
$ac_cv_struct_tm
>
...
...
@@ -3559,7 +3660,7 @@ int main() {
struct tm tm; tm.tm_zone;
; return 0; }
EOF
if
{
(
eval echo
configure:3
563
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
664
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_struct_tm_zone
=
yes
else
...
...
@@ -3579,12 +3680,12 @@ EOF
else
echo
$ac_n
"checking for tzname""...
$ac_c
"
1>&6
echo
"configure:3
583
: checking for tzname"
>
&5
echo
"configure:3
684
: checking for tzname"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_var_tzname
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
588
"configure"
#line 3
689
"configure"
#include "confdefs.h"
#include <time.h>
#ifndef tzname /* For SGI. */
...
...
@@ -3594,7 +3695,7 @@ int main() {
atoi(*tzname);
; return 0; }
EOF
if
{
(
eval echo
configure:3
598
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
699
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_var_tzname
=
yes
else
...
...
@@ -3617,19 +3718,19 @@ fi
echo
$ac_n
"checking for time.h that defines altzone""...
$ac_c
"
1>&6
echo
"configure:3
621
: checking for time.h that defines altzone"
>
&5
echo
"configure:3
722
: checking for time.h that defines altzone"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_time_altzone
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
626
"configure"
#line 3
727
"configure"
#include "confdefs.h"
#include <time.h>
int main() {
return altzone;
; return 0; }
EOF
if
{
(
eval echo
configure:3
633
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
734
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_header_time_altzone
=
yes
else
...
...
@@ -3651,9 +3752,9 @@ fi
was_it_defined
=
no
echo
$ac_n
"checking whether sys/select.h and sys/time.h may both be included""...
$ac_c
"
1>&6
echo
"configure:3
655
: checking whether sys/select.h and sys/time.h may both be included"
>
&5
echo
"configure:3
756
: checking whether sys/select.h and sys/time.h may both be included"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
657
"configure"
#line 3
758
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -3664,7 +3765,7 @@ int main() {
;
; return 0; }
EOF
if
{
(
eval echo
configure:3
668
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
769
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define SYS_SELECT_WITH_SYS_TIME 1
...
...
@@ -3680,14 +3781,14 @@ echo "$ac_t""$was_it_defined" 1>&6
# checks for compiler characteristics
echo
$ac_n
"checking whether char is unsigned""...
$ac_c
"
1>&6
echo
"configure:3
684
: checking whether char is unsigned"
>
&5
echo
"configure:3
785
: checking whether char is unsigned"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_char_unsigned
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
if
test
"
$GCC
"
=
yes
;
then
# GCC predefines this symbol on systems where it applies.
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
691
"configure"
#line 3
792
"configure"
#include "confdefs.h"
#ifdef __CHAR_UNSIGNED__
yes
...
...
@@ -3709,7 +3810,7 @@ if test "$cross_compiling" = yes; then
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
713
"configure"
#line 3
814
"configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
#if !defined(__STDC__) || __STDC__ != 1
...
...
@@ -3719,7 +3820,7 @@ main() {
volatile char c = 255; exit(c < 0);
}
EOF
if
{
(
eval echo
configure:3
723
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:3
824
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_char_unsigned
=
yes
else
...
...
@@ -3744,12 +3845,12 @@ fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:3
748
: checking for working const"
>
&5
echo
"configure:3
849
: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
753
"configure"
#line 3
854
"configure"
#include "confdefs.h"
int main() {
...
...
@@ -3798,7 +3899,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:3
802
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
903
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -3821,16 +3922,16 @@ fi
works
=
no
echo
$ac_n
"checking for working volatile""...
$ac_c
"
1>&6
echo
"configure:3
825
: checking for working volatile"
>
&5
echo
"configure:3
926
: checking for working volatile"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
827
"configure"
#line 3
928
"configure"
#include "confdefs.h"
int main() {
volatile int x; x = 0;
; return 0; }
EOF
if
{
(
eval echo
configure:3
834
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
935
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
works
=
yes
else
...
...
@@ -3847,16 +3948,16 @@ echo "$ac_t""$works" 1>&6
works
=
no
echo
$ac_n
"checking for working signed char""...
$ac_c
"
1>&6
echo
"configure:3
851
: checking for working signed char"
>
&5
echo
"configure:3
952
: checking for working signed char"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
853
"configure"
#line 3
954
"configure"
#include "confdefs.h"
int main() {
signed char c;
; return 0; }
EOF
if
{
(
eval echo
configure:3
860
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
961
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
works
=
yes
else
...
...
@@ -3873,16 +3974,16 @@ echo "$ac_t""$works" 1>&6
have_prototypes
=
no
echo
$ac_n
"checking for prototypes""...
$ac_c
"
1>&6
echo
"configure:3
877
: checking for prototypes"
>
&5
echo
"configure:3
978
: checking for prototypes"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
879
"configure"
#line 3
980
"configure"
#include "confdefs.h"
int foo(int x) { return 0; }
int main() {
return foo(10);
; return 0; }
EOF
if
{
(
eval echo
configure:3
886
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
987
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_PROTOTYPES 1
...
...
@@ -3897,9 +3998,9 @@ echo "$ac_t""$have_prototypes" 1>&6
works
=
no
echo
$ac_n
"checking for variable length prototypes and stdarg.h""...
$ac_c
"
1>&6
echo
"configure:
3901
: checking for variable length prototypes and stdarg.h"
>
&5
echo
"configure:
4002
: checking for variable length prototypes and stdarg.h"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line
3903
"configure"
#line
4004
"configure"
#include "confdefs.h"
#include <stdarg.h>
...
...
@@ -3916,7 +4017,7 @@ int main() {
return foo(10, "", 3.14);
; return 0; }
EOF
if
{
(
eval echo
configure:
3920
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:
4021
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_STDARG_PROTOTYPES 1
...
...
@@ -3932,16 +4033,16 @@ echo "$ac_t""$works" 1>&6
if
test
"
$have_prototypes
"
=
yes
;
then
bad_prototypes
=
no
echo
$ac_n
"checking for bad exec* prototypes""...
$ac_c
"
1>&6
echo
"configure:
3936
: checking for bad exec* prototypes"
>
&5
echo
"configure:
4037
: checking for bad exec* prototypes"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line
3938
"configure"
#line
4039
"configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
char **t;execve("@",t,t);
; return 0; }
EOF
if
{
(
eval echo
configure:
3945
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:
4046
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
:
else
echo
"configure: failed program was:"
>
&5
...
...
@@ -3958,12 +4059,12 @@ fi
bad_forward
=
no
echo
$ac_n
"checking for bad static forward""...
$ac_c
"
1>&6
echo
"configure:
3962
: checking for bad static forward"
>
&5
echo
"configure:
4063
: checking for bad static forward"
>
&5
if
test
"
$cross_compiling
"
=
yes
;
then
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
3967
"configure"
#line
4068
"configure"
#include "confdefs.h"
struct s { int a; int b; };
...
...
@@ -3979,7 +4080,7 @@ main() {
}
EOF
if
{
(
eval echo
configure:
3983
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:
4084
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -3998,9 +4099,9 @@ echo "$ac_t""$bad_forward" 1>&6
va_list_is_array
=
no
echo
$ac_n
"checking whether va_list is an array""...
$ac_c
"
1>&6
echo
"configure:4
002
: checking whether va_list is an array"
>
&5
echo
"configure:4
103
: checking whether va_list is an array"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
004
"configure"
#line 4
105
"configure"
#include "confdefs.h"
#ifdef HAVE_STDARG_PROTOTYPES
...
...
@@ -4013,7 +4114,7 @@ int main() {
va_list list1, list2; list1 = list2;
; return 0; }
EOF
if
{
(
eval echo
configure:4
017
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:4
118
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
:
else
echo
"configure: failed program was:"
>
&5
...
...
@@ -4032,7 +4133,7 @@ echo "$ac_t""$va_list_is_array" 1>&6
# Linux requires this for correct f.p. operations
echo
$ac_n
"checking for __fpu_control in -lieee""...
$ac_c
"
1>&6
echo
"configure:4
036
: checking for __fpu_control in -lieee"
>
&5
echo
"configure:4
137
: checking for __fpu_control in -lieee"
>
&5
ac_lib_var
=
`
echo
ieee
'_'
__fpu_control |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4040,7 +4141,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lieee
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
044
"configure"
#line 4
145
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4051,7 +4152,7 @@ int main() {
__fpu_control()
; return 0; }
EOF
if
{
(
eval echo
configure:4
055
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
156
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4081,7 +4182,7 @@ fi
# Check for --with-fpectl
echo
$ac_n
"checking for --with-fpectl""...
$ac_c
"
1>&6
echo
"configure:4
085
: checking for --with-fpectl"
>
&5
echo
"configure:4
186
: checking for --with-fpectl"
>
&5
# Check whether --with-fpectl or --without-fpectl was given.
if
test
"
${
with_fpectl
+set
}
"
=
set
;
then
withval
=
"
$with_fpectl
"
...
...
@@ -4104,7 +4205,7 @@ BeOS) ;;
*
)
LIBM
=
-lm
esac
echo
$ac_n
"checking for --with-libm=STRING""...
$ac_c
"
1>&6
echo
"configure:4
108
: checking for --with-libm=STRING"
>
&5
echo
"configure:4
209
: checking for --with-libm=STRING"
>
&5
# Check whether --with-libm or --without-libm was given.
if
test
"
${
with_libm
+set
}
"
=
set
;
then
withval
=
"
$with_libm
"
...
...
@@ -4125,7 +4226,7 @@ fi
# check for --with-libc=...
echo
$ac_n
"checking for --with-libc=STRING""...
$ac_c
"
1>&6
echo
"configure:4
129
: checking for --with-libc=STRING"
>
&5
echo
"configure:4
230
: checking for --with-libc=STRING"
>
&5
# Check whether --with-libc or --without-libc was given.
if
test
"
${
with_libc
+set
}
"
=
set
;
then
withval
=
"
$with_libc
"
...
...
@@ -4149,12 +4250,12 @@ LIBS="$LIBS $LIBM"
for
ac_func
in
hypot
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:4
153
: checking for
$ac_func
"
>
&5
echo
"configure:4
254
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
158
"configure"
#line 4
259
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -4177,7 +4278,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:4
181
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
282
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -4204,12 +4305,12 @@ done
for
ac_func
in
hypot
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:4
208
: checking for
$ac_func
"
>
&5
echo
"configure:4
309
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
213
"configure"
#line 4
314
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -4232,7 +4333,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:4
236
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
337
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -4262,7 +4363,7 @@ LIBS=$LIBS_SAVE
# check for getopt
echo
$ac_n
"checking for genuine getopt""...
$ac_c
"
1>&6
echo
"configure:4
266
: checking for genuine getopt"
>
&5
echo
"configure:4
367
: checking for genuine getopt"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_getopt
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4270,7 +4371,7 @@ else
ac_cv_func_getopt
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
274
"configure"
#line 4
375
"configure"
#include "confdefs.h"
#include <stdio.h>
extern int optind, opterr, getopt();
...
...
@@ -4282,7 +4383,7 @@ int main() {
exit(0);
}
EOF
if
{
(
eval echo
configure:4
286
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:4
387
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_func_getopt
=
yes
else
...
...
@@ -4300,7 +4401,7 @@ test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
# check whether malloc(0) returns NULL or not
echo
$ac_n
"checking what malloc(0) returns""...
$ac_c
"
1>&6
echo
"configure:4
304
: checking what malloc(0) returns"
>
&5
echo
"configure:4
405
: checking what malloc(0) returns"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_malloc_zero
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4308,7 +4409,7 @@ else
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
312
"configure"
#line 4
413
"configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_STDLIB
...
...
@@ -4327,7 +4428,7 @@ main() {
exit(0);
}
EOF
if
{
(
eval echo
configure:4
331
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:4
432
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_malloc_zero
=
nonnull
else
...
...
@@ -4493,17 +4594,18 @@ s%@MACHDEP@%$MACHDEP%g
s%@SGI_ABI@%
$SGI_ABI
%g
s%@SET_CCC@%
$SET_CCC
%g
s%@CC@%
$CC
%g
s%@MAKE_LDLIBRARY@%
$MAKE_LDLIBRARY
%g
s%@LDLIBRARY@%
$LDLIBRARY
%g
s%@LINKCC@%
$LINKCC
%g
s%@RANLIB@%
$RANLIB
%g
s%@AR@%
$AR
%g
s%@INSTALL@%
$INSTALL
%g
s%@INSTALL_PROGRAM@%
$INSTALL_PROGRAM
%g
s%@INSTALL_DATA@%
$INSTALL_DATA
%g
s%@REALLIBRARY@%
$REALLIBRARY
%g
s%@LN@%
$LN
%g
s%@OPT@%
$OPT
%g
s%@CPP@%
$CPP
%g
s%@
DGUX_IS_BROKEN@%
$DGUX_IS_BROKEN
%g
s%@
LIBTOOL_CRUFT@%
$LIBTOOL_CRUFT
%g
s%@SO@%
$SO
%g
s%@LDSHARED@%
$LDSHARED
%g
s%@CCSHARED@%
$CCSHARED
%g
...
...
configure.in
View file @
2ef8d8a6
...
...
@@ -9,7 +9,7 @@ AC_SUBST(VERSION)
VERSION=1.5
# NEXTSTEP stuff
if test -f /usr/lib/NextStep/software_version; then
if test -f /usr/lib/NextStep/software_version
-o -f /System/Library/CoreServices/software_version
; then
AC_MSG_CHECKING(for --with-next-archs)
AC_ARG_WITH(next-archs,
...
...
@@ -24,7 +24,7 @@ if test -f /usr/lib/NextStep/software_version; then
if test -z "$MACHDEP"
then
set X `hostinfo |
grep 'NeXT Mach
.*:' | \
set X `hostinfo |
egrep '(NeXT Mach|Kernel Release)
.*:' | \
sed -e 's/://' -e 's/\./_/'` && \
ac_sys_system=next && ac_sys_release=$4
...
...
@@ -32,6 +32,10 @@ if test -f /usr/lib/NextStep/software_version; then
fi
fi
AC_ARG_WITH(next-framework,
[--with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework],,)
AC_ARG_WITH(dyld,
[--with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker],,)
# Set name for machine-dependent library files
AC_SUBST(MACHDEP)
...
...
@@ -172,6 +176,14 @@ BeOS*)
esac;;
esac
# LDLIBRARY is the name of the library to link against (as opposed to the
# name of the library into which to insert object files). On systems
# without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
# the Makefiles).
AC_SUBST(MAKE_LDLIBRARY)
AC_SUBST(LDLIBRARY)
LDLIBRARY=''
# LINKCC is the command that links the python executable -- default is $(CC).
# This is altered for AIX and BeOS in order to build the export list before
# linking.
...
...
@@ -184,7 +196,7 @@ then
LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
BeOS*)
LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)"
REAL
LIBRARY='libpython$(VERSION).so';;
LD
LIBRARY='libpython$(VERSION).so';;
dgux*)
LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
*) LINKCC="\$(PURIFY) \$(CC)";;
...
...
@@ -192,13 +204,38 @@ then
fi
AC_MSG_RESULT($LINKCC)
AC_MSG_CHECKING(LDLIBRARY)
# NeXT framework builds require that the 'ar' library be converted into
# a bundle using libtool.
if test "$with_next_framework"
then
LDLIBRARY='libpython$(VERSION).dylib'
fi
# DG/UX requires some fancy ld contortions to produce a .so from an .a
if test "$MACHDEP" = "dguxR4"
then
LDLIBRARY='libpython$(VERSION).so'
OPT="$OPT -pic"
fi
AC_MSG_RESULT($LDLIBRARY)
# If LDLIBRARY is different from LIBRARY, emit a rule to build it.
if test -z "$LDLIBRARY"
then
LDLIBRARY='libpython$(VERSION).a'
MAKE_LDLIBRARY="true"
else
MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)'
fi
AC_PROG_RANLIB
AC_SUBST(AR)
AC_CHECK_PROGS(AR, ar aal, ar)
AC_SUBST(INSTALL)
AC_SUBST(INSTALL_PROGRAM)
AC_SUBST(INSTALL_DATA)
AC_SUBST(REALLIBRARY)
# Install just never works :-(
if test -z "$INSTALL"
then
...
...
@@ -268,17 +305,6 @@ else
fi
fi
AC_SUBST(DGUX_IS_BROKEN)
if test "$MACHDEP" != "dguxR4"
then
REALLIBRARY='libpython$(VERSION).a'
DGUX_IS_BROKEN="true"
else
REALLIBRARY='libpython$(VERSION).so'
OPT="$OPT -pic"
DGUX_IS_BROKEN="make $REALLIBRARY"
fi
# check for ANSI or K&R ("traditional") preprocessor
AC_MSG_CHECKING(for C preprocessor type)
AC_TRY_COMPILE([
...
...
@@ -356,6 +382,45 @@ else
fi
# Minor variations in building a framework between NextStep versions 4 and 5
AC_SUBST(LIBTOOL_CRUFT)
case $ac_sys_system/$ac_sys_release in
next/4*)
ns_undef_sym='__environ'
LIBTOOL_CRUFT="-U $ns_undef_sym" ;;
next/5*)
ns_undef_sym='_environ'
LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;;
esac
AC_MSG_CHECKING(for --with-next-framework)
if test "$with_next_framework"
then
OPT="$OPT -fno-common"
# -U __environ is needed since bundles don't have access
# to crt0 when built but will always be linked against it
LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym"
AC_DEFINE(WITH_NEXT_FRAMEWORK)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING(for --with-dyld)
if test "$with_next_framework" -o "$with_dyld"
then
if test "$with_dyld"
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(required for framework build)
fi
AC_DEFINE(WITH_DYLD)
ns_dyld='set'
else
AC_MSG_RESULT(no)
fi
# Set info about shared libraries.
AC_SUBST(SO)
AC_SUBST(LDSHARED)
...
...
@@ -374,6 +439,8 @@ fi
AC_MSG_RESULT($SO)
# LDSHARED is the ld *command* used to create shared library
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
# (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.)
AC_MSG_CHECKING(LDSHARED)
if test -z "$LDSHARED"
then
...
...
@@ -387,7 +454,14 @@ then
hp*|HP*) LDSHARED="ld -b";;
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
DYNIX/ptx*) LDSHARED="ld -G";;
next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';;
next/*)
if test "$ns_dyld"
then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
fi
if test "$with_next_framework" ; then
LDSHARED="$LDSHARED \$(LDLIBRARY)"
fi ;;
Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
FreeBSD*/3*) LDSHARED="gcc -shared";;
...
...
@@ -405,7 +479,7 @@ then
fi
AC_MSG_RESULT($LDSHARED)
# CCSHARED are the C *flags* used to create objects to go into a shared
# library -- this is only needed for a few systems
# library
(module)
-- this is only needed for a few systems
AC_MSG_CHECKING(CCSHARED)
if test -z "$CCSHARED"
then
...
...
@@ -436,7 +510,13 @@ then
LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
FreeBSD/3*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
next/*) LINKFORSHARED="-u libsys_s";;
# -u libsys_s pulls in all symbols in libsys
next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
# -u __dummy makes the linker aware of the objc runtime
# in System.framework; otherwise, __objcInit (referenced in
# crt1.o) gets erroneously defined as common, which breaks dynamic
# loading of any modules which reference it in System.framework
next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
...
...
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