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
b457b9be
Commit
b457b9be
authored
Jun 30, 2012
by
doko@ubuntu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Issue #3754: Fix /dev/ptmx, /dev/ptc file checks for cross builds,
require values set in CONFIG_SITE.
parent
536f1b90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
33 deletions
+77
-33
configure
configure
+54
-15
configure.ac
configure.ac
+21
-16
pyconfig.h.in
pyconfig.h.in
+2
-2
No files found.
configure
View file @
b457b9be
...
...
@@ -14452,34 +14452,73 @@ $as_echo "no" >&6; }
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for device files"
>
&5
$as_echo
"
$as_me
: checking for device files"
>
&6
;
}
if
test
"x
$cross_compiling
"
=
xyes
;
then
if
test
"
${
ac_cv_file__dev_ptmx
+set
}
"
!=
set
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for /dev/ptmx"
>
&5
$as_echo_n
"checking for /dev/ptmx... "
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: not set"
>
&5
$as_echo
"not set"
>
&6
;
}
as_fn_error
$?
"set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling"
"
$LINENO
"
5
fi
if
test
"
${
ac_cv_file__dev_ptc
+set
}
"
!=
set
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for /dev/ptc"
>
&5
$as_echo_n
"checking for /dev/ptc... "
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: not set"
>
&5
$as_echo
"not set"
>
&6
;
}
as_fn_error
$?
"set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling"
"
$LINENO
"
5
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for /dev/ptmx"
>
&5
$as_echo_n
"checking for /dev/ptmx... "
>
&6
;
}
if
${
ac_cv_file__dev_ptmx
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
test
"
$cross_compiling
"
=
yes
&&
as_fn_error
$?
"cannot check for file existence when cross compiling"
"
$LINENO
"
5
if
test
-r
"/dev/ptmx"
;
then
ac_cv_file__dev_ptmx
=
yes
else
ac_cv_file__dev_ptmx
=
no
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_file__dev_ptmx
"
>
&5
$as_echo
"
$ac_cv_file__dev_ptmx
"
>
&6
;
}
if
test
"x
$ac_cv_file__dev_ptmx
"
=
xyes
;
then
:
if
test
-r
/dev/ptmx
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: yes"
>
&5
$as_echo
"yes"
>
&6
;
}
fi
if
test
"x
$ac_cv_file__dev_ptmx
"
=
xyes
;
then
$as_echo
"#define HAVE_DEV_PTMX 1"
>>
confdefs.h
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for /dev/ptc"
>
&5
$as_echo_n
"checking for /dev/ptc... "
>
&6
;
}
if
${
ac_cv_file__dev_ptc
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
test
"
$cross_compiling
"
=
yes
&&
as_fn_error
$?
"cannot check for file existence when cross compiling"
"
$LINENO
"
5
if
test
-r
"/dev/ptc"
;
then
ac_cv_file__dev_ptc
=
yes
else
ac_cv_file__dev_ptc
=
no
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_file__dev_ptc
"
>
&5
$as_echo
"
$ac_cv_file__dev_ptc
"
>
&6
;
}
if
test
"x
$ac_cv_file__dev_ptc
"
=
xyes
;
then
:
if
test
-r
/dev/ptc
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: yes"
>
&5
$as_echo
"yes"
>
&6
;
}
fi
if
test
"x
$ac_cv_file__dev_ptc
"
=
xyes
;
then
$as_echo
"#define HAVE_DEV_PTC 1"
>>
confdefs.h
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
if
test
"
$have_long_long
"
=
yes
...
...
configure.ac
View file @
b457b9be
...
...
@@ -4212,26 +4212,31 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[void *x=resizeterm
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING(for /dev/ptmx)
AC_MSG_NOTICE([checking for device files])
dnl NOTE: Inform user how to proceed with files when cross compiling.
if test "x$cross_compiling" = xyes; then
if test "${ac_cv_file__dev_ptmx+set}" != set; then
AC_MSG_CHECKING([for /dev/ptmx])
AC_MSG_RESULT([not set])
AC_MSG_ERROR([set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling])
fi
if test "${ac_cv_file__dev_ptc+set}" != set; then
AC_MSG_CHECKING([for /dev/ptc])
AC_MSG_RESULT([not set])
AC_MSG_ERROR([set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling])
fi
fi
if test -r /dev/ptmx
then
AC_MSG_RESULT(yes)
AC_CHECK_FILE(/dev/ptmx, [], [])
if test "x$ac_cv_file__dev_ptmx" = xyes; then
AC_DEFINE(HAVE_DEV_PTMX, 1,
[Define if we have /dev/ptmx.])
else
AC_MSG_RESULT(no)
[Define to 1 if you have the /dev/ptmx device file.])
fi
AC_MSG_CHECKING(for /dev/ptc)
if test -r /dev/ptc
then
AC_MSG_RESULT(yes)
AC_CHECK_FILE(/dev/ptc, [], [])
if test "x$ac_cv_file__dev_ptc" = xyes; then
AC_DEFINE(HAVE_DEV_PTC, 1,
[Define if we have /dev/ptc.])
else
AC_MSG_RESULT(no)
[Define to 1 if you have the /dev/ptc device file.])
fi
if test "$have_long_long" = yes
...
...
pyconfig.h.in
View file @
b457b9be
...
...
@@ -168,10 +168,10 @@
/* Define to 1 if you have the device macros. */
#undef HAVE_DEVICE_MACROS
/* Define
if we have /dev/ptc
. */
/* Define
to 1 if you have the /dev/ptc device file
. */
#undef HAVE_DEV_PTC
/* Define
if we have /dev/ptmx
. */
/* Define
to 1 if you have the /dev/ptmx device file
. */
#undef HAVE_DEV_PTMX
/* Define to 1 if you have the <direct.h> header file. */
...
...
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