]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 12 Jan 2010 01:11:42 +0000 (01:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 12 Jan 2010 01:11:42 +0000 (01:11 +0000)
config/config.h.in
configure
configure.ac
magick/magick-config.h
magick/nt-base.h
magick/utility.c

index e8ae0c6e41d2299a77ddfa08136f15fc89d5fb4f..9b882d49d8eef87234c647dab09cd996c450954a 100644 (file)
 /* Define if libtool can extract symbol lists from object files. */
 #undef HAVE_PRELOADED_SYMBOLS
 
+/* Define to 1 if you have the <process.h> header file. */
+#undef HAVE_PROCESS_H
+
 /* Define if you have POSIX threads libraries and header files. */
 #undef HAVE_PTHREAD
 
index 023c032db3cf53f010eab9ed78e4fe474bcbe433..84bb38fad5583dff1119120805a524714bce60f9 100755 (executable)
--- a/configure
+++ b/configure
@@ -19316,7 +19316,7 @@ fi
 
 
 # Check additional headers
-for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
+for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
index 1f6c3d492d6ae6dc237283b7e6faebdf370510c0..98b5d55265c204f0cd27ecbe3da1813c89a11fd1 100755 (executable)
@@ -763,7 +763,7 @@ fi
 AC_HEADER_DIRENT
 
 # Check additional headers
-AC_CHECK_HEADERS(arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h)
+AC_CHECK_HEADERS(arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h)
 
 ########
 #
index 870b5019fbe82e215f3b7daf4469cc987795d43e..a1de28a5ab3551af1909aac7dc5d66fa48d9e08b 100644 (file)
 #define MAGICKCORE_HAVE_PRELOADED_SYMBOLS  1 
 #endif
 
+/* Define to 1 if you have the <process.h> header file. */
+/* #undef HAVE_PROCESS_H */
+
 /* Define if you have POSIX threads libraries and header files. */
 #ifndef MAGICKCORE_HAVE_PTHREAD 
 #define MAGICKCORE_HAVE_PTHREAD  1 
index 38924163242fc16caf579301f9b2eac8afdd3fd8..0073a0b7261db342cdcaab10d4184d7727b1d7a2 100644 (file)
@@ -187,6 +187,9 @@ extern "C" {
 #if !defined(setmode)
 #  define setmode  _setmode
 #endif
+#if !defined(spawnvp)
+#  define spawnvp  _spawnvp
+#endif
 #if !defined(stat) && !defined(__BORLANDC__)
 #if defined(__WINDOWS__) && !defined(Windows95) && \
   !(defined(_MSC_VER) && (_MSC_VER < 1400)) &&  (__MSVCRT_VERSION__ < 0x800)
index c8963cdb16da4ec0d9a5ac425a6cb2073d7c3432..79af1526079c6a0914acc84bd9fc3a990637f82e 100644 (file)
@@ -58,6 +58,9 @@
 #include "magick/string_.h"
 #include "magick/token.h"
 #include "magick/utility.h"
+#if defined(MAGICKCORE_HAVE_PROCESS_H)
+#include <process.h>
+#endif
 #if defined(MAGICKCORE_HAVE_MACH_O_DYLD_H)
 #include <mach-o/dyld.h>
 #endif
@@ -1901,7 +1904,9 @@ MagickExport int SystemCommand(const MagickBooleanType verbose,
       (void) fflush(stderr);
     }
 #if defined(MAGICKCORE_POSIX_SUPPORT)
-#if !defined(MAGICKCORE_HAVE_EXECVP)
+#if defined(MAGICKCORE_HAVE_SPAWNVP)
+  status=spawnvp(_P_WAIT,arguments[1],arguments+1);
+#elif !defined(MAGICKCORE_HAVE_EXECVP)
   status=system(command);
 #else
   if (strspn(command,"&;<>|") == 0)
@@ -1947,7 +1952,7 @@ MagickExport int SystemCommand(const MagickBooleanType verbose,
     }
 #endif
 #elif defined(__WINDOWS__)
-  status=NTSystemCommand(command);
+  status=spawnvp(_P_WAIT,arguments[1],arguments+1);
 #elif defined(macintosh)
   status=MACSystemCommand(command);
 #elif defined(vms)