diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-04 20:34:04 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-04 20:34:04 +0000 |
commit | a1dbd11a1b890a20969352b75cb2ebdea929d85b (patch) | |
tree | b0f1601173e2341deb01293731dc002eeb0e5929 /pkgtools/pkg_install | |
parent | 8922fec633f46d6764cc0fb2d3a25dd190cc10cb (diff) | |
download | pkgsrc-a1dbd11a1b890a20969352b75cb2ebdea929d85b.tar.gz |
Allow this to compile on systems without vfork by #define'ing it to fork.
This is okay since we just do vfork()/exec() in lib/ftpio.c and don't rely
on any vfork vs. fork semantics.
Diffstat (limited to 'pkgtools/pkg_install')
-rwxr-xr-x | pkgtools/pkg_install/files/configure | 6 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/configure.ac | 8 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/lib/config.h.in | 8 |
3 files changed, 20 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/configure b/pkgtools/pkg_install/files/configure index 467b818d4a4..9d64f03efac 100755 --- a/pkgtools/pkg_install/files/configure +++ b/pkgtools/pkg_install/files/configure @@ -3560,7 +3560,8 @@ done -for ac_func in chflags dbopen tgetent + +for ac_func in chflags dbopen tgetent vfork do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -3729,6 +3730,9 @@ fi done + + + ac_config_files="$ac_config_files Makefile add/Makefile admin/Makefile create/Makefile delete/Makefile info/Makefile lib/Makefile view/Makefile" cat >confcache <<\_ACEOF diff --git a/pkgtools/pkg_install/files/configure.ac b/pkgtools/pkg_install/files/configure.ac index e59c7300d6c..22cc2bcfdb3 100644 --- a/pkgtools/pkg_install/files/configure.ac +++ b/pkgtools/pkg_install/files/configure.ac @@ -40,8 +40,14 @@ AC_CHECK_HEADERS([fnmatch.h md5.h regex.h]) AC_CHECK_HEADERS([sys/ioctl.h sys/resource.h sys/wait.h]) # Checks for library functions. -AC_CHECK_FUNCS([chflags dbopen tgetent]) +AC_CHECK_FUNCS([chflags dbopen tgetent vfork]) AC_CHECK_FUNCS([getrlimit setrlimit]) +AH_BOTTOM( +#if !HAVE_VFORK +# define vfork fork +#endif +) + AC_CONFIG_FILES([Makefile add/Makefile admin/Makefile create/Makefile delete/Makefile info/Makefile lib/Makefile view/Makefile]) AC_OUTPUT diff --git a/pkgtools/pkg_install/files/lib/config.h.in b/pkgtools/pkg_install/files/lib/config.h.in index 81707428ca5..373e2dabcc4 100644 --- a/pkgtools/pkg_install/files/lib/config.h.in +++ b/pkgtools/pkg_install/files/lib/config.h.in @@ -69,6 +69,9 @@ /* Define to 1 if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H +/* Define to 1 if you have the `vfork' function. */ +#undef HAVE_VFORK + /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT @@ -86,3 +89,8 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS + +#if !HAVE_VFORK +# define vfork fork +#endif + |