* configure.in: Allow --enable-newvfork to turn NEWVFORK on and off.

* configure: Regenerate.
This commit is contained in:
Christopher Faylor 2001-05-21 19:13:48 +00:00
parent f01fb5e796
commit 7cef8b61c4
3 changed files with 23 additions and 16 deletions

View File

@ -1,3 +1,8 @@
Mon May 21 15:08:00 2001 Christopher Faylor <cgf@cygnus.com>
* configure.in: Allow --enable-newvfork to turn NEWVFORK on and off.
* configure: Regenerate.
Mon May 21 11:46:01 2001 Christopher Faylor <cgf@cygnus.com> Mon May 21 11:46:01 2001 Christopher Faylor <cgf@cygnus.com>
* include/cygwin/version.h: Bump minor version number. * include/cygwin/version.h: Bump minor version number.

View File

@ -1882,23 +1882,24 @@ fi
# Check whether --enable-vfork or --disable-vfork was given. # Check whether --enable-vfork or --disable-vfork was given.
if test "${enable_vfork+set}" = set; then if test "${enable_vfork+set}" = set; then
enableval="$enable_vfork" enableval="$enable_vfork"
case "${enableval}" in vfork="${enableval}"
yes) cat >> confdefs.h <<\EOF ]
#define NEWVFORK 1
EOF
;;
no) ;;
esac
fi fi
case "$vfork" in
no) ;;
yes|*) cat >> confdefs.h <<EOF
#define NEWVFORK 1
EOF
;;
esac
echo $ac_n "checking if newlib is part of the build tree""... $ac_c" 1>&6 echo $ac_n "checking if newlib is part of the build tree""... $ac_c" 1>&6
echo "configure:1902: checking if newlib is part of the build tree" >&5 echo "configure:1903: checking if newlib is part of the build tree" >&5
EXE_LDFLAGS= EXE_LDFLAGS=
if test -d ../newlib if test -d ../newlib
@ -1913,9 +1914,9 @@ fi
if test x"$EXE_LDFLAGS" = x if test x"$EXE_LDFLAGS" = x
then then
echo $ac_n "checking if installed newlib needed""... $ac_c" 1>&6 echo $ac_n "checking if installed newlib needed""... $ac_c" 1>&6
echo "configure:1917: checking if installed newlib needed" >&5 echo "configure:1918: checking if installed newlib needed" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1919 "configure" #line 1920 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
@ -1923,7 +1924,7 @@ int main() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6

View File

@ -179,12 +179,13 @@ esac
AC_ARG_ENABLE(vfork, AC_ARG_ENABLE(vfork,
[ --enable-vfork Build a cygwin DLL which uses experimental vfork code], [ --enable-vfork Build a cygwin DLL which uses experimental vfork code],
[case "${enableval}" in vfork="${enableval}"
yes) AC_DEFINE(NEWVFORK) ;;
no) ;;
esac
]) ])
case "$vfork" in
no) ;;
yes|*) AC_DEFINE_UNQUOTED(NEWVFORK) ;;
esac
dnl The only time we might want to transform the install names dnl The only time we might want to transform the install names
dnl is for unix x cygwin. Otherwise we don't. For now we don't dnl is for unix x cygwin. Otherwise we don't. For now we don't