autoconf/doc
Zack Weinberg b560f0a657
AC_PROG_*CPP: Try ‘cpp’ before ‘/lib/cpp’
All of the AC_PROG_*CPP macros fall back to ‘/lib/cpp’ if invoking the
relevant compiler with ‘-E’ doesn’t work.  This is an obsolete
location to find the C preprocessor.  Linux distributions tend to ship
a compatibility symlink, as do Solaris and AIX (as of the versions in the
GCC compile farm, anyway), but the BSDs no longer do.

The tests for this fallback are already expecting ‘cpp’ to be a
command findable via $PATH, so make the probe macros do the same
thing.  (We still try ‘/lib/cpp’ if ‘cpp’ _isn’t_ in $PATH.)

* lib/autoconf/c.m4
  (AC_PROG_CPP, AC_PROG_CXXCPP, AC_PROG_OBJCPP, AC_PROG_OBJCXXCPP):
  If $CC / $CXX / $OBJC / $OBJCXX -E (respectively) does not run the
  preprocessor, look for ‘cpp’ in $PATH before falling back to ‘/lib/cpp’.

* doc/autoconf.texi
  (AC_PROG_CPP, AC_PROG_CXXCPP, AC_PROG_OBJCPP, AC_PROG_OBJCXXCPP):
  Update to match.
2020-09-10 12:10:41 -04:00
..
autoconf.texi AC_PROG_*CPP: Try ‘cpp’ before ‘/lib/cpp’ 2020-09-10 12:10:41 -04:00
fdl.texi make fetch 2020-09-03 12:08:31 -04:00
gendocs_template make fetch 2020-06-29 17:08:26 -07:00
gnu-oids.texi make fetch 2020-07-11 11:10:39 -04:00
install.texi maint: make update-copyright 2020-01-01 11:45:50 -08:00
local.mk maint: make update-copyright 2020-01-01 11:45:50 -08:00
make-stds.texi make fetch 2020-06-29 17:08:26 -07:00
standards.texi make fetch 2020-06-29 17:42:16 -07:00