[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About popen()



On Mar 2, 2011, at 4:09 , Till Straumann wrote:

> Another possibility would be a 'gnu configure' test which would fail
> to link and then e.g., undefine HAVE_POPEN in 'config.h'. E.g.,
> with autoconf:
> 
> AC_CHECK_FUNC([popen], [AC_DEFINE([HAVE_POPEN],[1], [Define if popen 
> exists])])

Yes, but the unfulfilled promise of POSIX is to be able to avoid that machinery, preferably at compile time.

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering