diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-01-23 15:07:01 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-01-23 15:07:01 -0800 |
commit | 7254c152b316bd9f0d88b9522eaa2c2405821a76 (patch) | |
tree | 9953bde9342bbf204e7d40c3a5b04ecd5f435f68 /aclocal.m4 | |
parent | 869efa23a3e4cbc1f2875c672ecdf891a5a54218 (diff) | |
download | tcpdump-7254c152b316bd9f0d88b9522eaa2c2405821a76.tar.gz |
Point people to the autoconf documentation on shell substitution.
Hopefully this will keep people from sending "helpful" patches that
break things.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -315,6 +315,13 @@ AC_DEFUN(AC_LBL_LIBPCAP, # Found - use it to get the include flags for # libpcap and the flags to link with libpcap. # + # Please read section 11.6 "Shell Substitutions" + # in the autoconf manual before doing anything + # to this that involves quoting. Especially note + # the statement "There is just no portable way to use + # double-quoted strings inside double-quoted back-quoted + # expressions (pfew!)." + # cflags=`"$PCAP_CONFIG" --cflags` $2="$cflags $$2" libpcap=`"$PCAP_CONFIG" --libs` @@ -379,7 +386,14 @@ AC_DEFUN(AC_LBL_LIBPCAP, # The libpcap directory has a pcap-config script. # Use it to get any additioal libraries needed # to link with the libpcap archive library in - # that directory + # that directory. + # + # Please read section 11.6 "Shell Substitutions" + # in the autoconf manual before doing anything + # to this that involves quoting. Especially note + # the statement "There is just no portable way to use + # double-quoted strings inside double-quoted back-quoted + # expressions (pfew!)." # additional_libs=`"$PCAP_CONFIG" --additional-libs --static` libpcap="$libpcap $additional_libs" |