fixing the build via the configure step

This commit is contained in:
David Carlier 2020-06-22 19:19:47 +00:00
parent 6989af0bc7
commit cc08fd527e
2 changed files with 21 additions and 1 deletions

12
configure vendored
View File

@ -3332,6 +3332,7 @@ then
linux*) MACHDEP="linux";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
haiku*) MACHDEP="haiku";;
'') MACHDEP="unknown";;
esac
fi
@ -3455,6 +3456,17 @@ $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
define_xopen_source=no
;;
Haiku/*|HAIKU*)
# On Haiku, mainly to enable *pty functions and
# also setting _SC_TTY_NAME_MAX to its Haiku counterpart.
$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
$as_echo "#define _SC_TTY_NAME_MAX TTY_NAME_MAX" >>confdefs.h
;;
esac
if test $define_xopen_source = yes

View File

@ -420,6 +420,7 @@ then
linux*) MACHDEP="linux";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
haiku*) MACHDEP="haiku";;
'') MACHDEP="unknown";;
esac
fi
@ -539,6 +540,13 @@ case $ac_sys_system/$ac_sys_release in
define_xopen_source=no
;;
Haiku/*|HAIKU*)
# On Haiku, mainly to enable *pty functions and
# also setting _SC_TTY_NAME_MAX to its Haiku counterpart.
AC_DEFINE(_BSD_SOURCE, 1, [Define on Haiku to activate all library features])
AC_DEFINE(_SC_TTY_NAME_MAX, TTY_NAME_MAX, [Define sysconf value equivalence])
;;
esac
if test $define_xopen_source = yes
@ -5438,7 +5446,7 @@ do
done
AC_SUBST(SRCDIRS)
SRCDIRS="Parser Objects Python Modules Modules/_io Programs"
SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs"
AC_MSG_CHECKING(for build directories)
for dir in $SRCDIRS; do
if test ! -d $dir; then