diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-07-30 01:08:28 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-07-30 01:08:28 (GMT) |
commit | 1169011f6f29b4d332aa8c9ea543c64dc2e11bbb (patch) | |
tree | 4f9de0eafdf5e4c968c3e4fb4c24df37105c61bd /configure.in | |
parent | cee5ca060bc1e8870fdadf1ef719761fe2dc500d (diff) | |
download | cpython-1169011f6f29b4d332aa8c9ea543c64dc2e11bbb.zip cpython-1169011f6f29b4d332aa8c9ea543c64dc2e11bbb.tar.gz cpython-1169011f6f29b4d332aa8c9ea543c64dc2e11bbb.tar.bz2 |
SF patch #584245, get python to link on OSF1 (Dec Unix)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 88a285f..7e82ca5 100644 --- a/configure.in +++ b/configure.in @@ -623,6 +623,30 @@ AC_EGREP_HEADER(clock_t, time.h, was_it_defined=yes, [ ]) AC_MSG_RESULT($was_it_defined) +# Check whether using makedev requires defining _OSF_SOURCE +AC_MSG_CHECKING(for makedev) +AC_TRY_LINK([ #include <sys/types.h> ], + [ makedev(0, 0) ], + ac_cv_has_makedev=yes, + ac_cv_has_makedev=no) +if test "$ac_cv_has_makedev" = "no"; then + # we didn't link, try if _OSF_SOURCE will allow us to link + AC_TRY_LINK([ + #define _OSF_SOURCE 1 + #include <sys/types.h> + ], + [ makedev(0, 0) ], + ac_cv_has_makedev=yes, + ac_cv_has_makedev=no) + if test "$ac_cv_has_makedev" = "yes"; then + AC_DEFINE(_OSF_SOURCE, 1, [Define _OSF_SOURCE to get the makedev macro.]) + fi +fi +AC_MSG_RESULT($ac_cv_has_makedev) +if test "$ac_cv_has_makedev" = "yes"; then + AC_DEFINE(HAVE_MAKEDEV, 1, [Define this if you have the makedev macro.]) +fi + # Two defines needed to enable largefile support on various platforms # These may affect some typedefs AC_DEFINE(_LARGEFILE_SOURCE, 1, |