Skip to content

Commit 9c3596d

Browse files
Address review
1 parent 3d1b68b commit 9c3596d

File tree

4 files changed

+29
-123
lines changed

4 files changed

+29
-123
lines changed

aclocal.m4

Lines changed: 0 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure

Lines changed: 16 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ AC_DEFUN([PY_CHECK_FUNC],
7373
AS_VAR_POPDEF([py_define])
7474
])
7575

76-
dnl PY_CHECK_CPP(CPP_CHECK, [LIST-OF-INCLUDES], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
76+
dnl PY_CHECK_CPP(CPP_CHECK, [LIST-OF-INCLUDES], [ACTION-IF-TRUE], [ACTION-IF-FALSE])
7777
AC_DEFUN([PY_CHECK_CPP],
7878
[AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
7979
m4_foreach_w([incl], [$2], [@%:@include <incl> m4_newline])
8080
@%:@if $1
8181
/* pass */
8282
#else
83-
#error "not defined"
83+
#error "check failed"
8484
#endif
8585
])], [$3], [$4])])
8686

@@ -2838,15 +2838,13 @@ AC_CHECK_HEADERS(
28382838
#endif
28392839
])
28402840

2841-
# checks for typedefs
2842-
AC_CACHE_CHECK([for clock_t in time.h], [ac_cv_clock_t_time_h], [
2843-
AX_CHECK_TYPEDEF([clock_t], [time.h], [ac_cv_clock_t_time_h=yes], [ac_cv_clock_t_time_h=no])
2844-
])
2845-
dnl checks for "no"
2846-
AS_VAR_IF([ac_cv_clock_t_time_h], [no], [
2847-
AC_DEFINE([clock_t], [long],
2848-
[Define to 'long' if <time.h> doesn't define.])
2849-
])
2841+
# Check for clock_t in time.h.
2842+
AC_CHECK_TYPES([clock_t],
2843+
[],
2844+
[AS_VAR_IF([ac_cv_type_clock_t], [no],
2845+
[AC_DEFINE([clock_t], [long],
2846+
["Define to 'long' if <time.h> doesn't define."])])],
2847+
[@%:@include time.h])
28502848

28512849
AC_CACHE_CHECK([for makedev], [ac_cv_func_makedev], [
28522850
AC_LINK_IFELSE([AC_LANG_PROGRAM([[

pyconfig.h.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@
157157
/* Define to 1 if you have the `clock_settime' function. */
158158
#undef HAVE_CLOCK_SETTIME
159159

160+
/* Define to 1 if the system has the type `clock_t'. */
161+
#undef HAVE_CLOCK_T
162+
160163
/* Define to 1 if you have the `closefrom' function. */
161164
#undef HAVE_CLOSEFROM
162165

@@ -1938,7 +1941,7 @@
19381941
/* Define on FreeBSD to activate all library features */
19391942
#undef __BSD_VISIBLE
19401943

1941-
/* Define to 'long' if <time.h> doesn't define. */
1944+
/* "Define to 'long' if <time.h> doesn't define." */
19421945
#undef clock_t
19431946

19441947
/* Define to empty if `const' does not conform to ANSI C. */

0 commit comments

Comments
 (0)