[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About popen()
- Date: Wed, 2 Mar 2011 04:17:06 -0500
- From: dufault at hda.com (Peter Dufault)
- Subject: 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