HP-UX diff does not support the -u flag. Based on the feedback from
Richard Lloyd of Connect Internet Solutions.
CMake: Skip snprintf(3) tests when cross-compiling.
Makefile.in: Do not install a version-suffixed tcpdump binary if the
.devel file does not exists.
+ tests: On HP-UX use "diff -c" by default.
Documentation:
man: Clarify the "any" pseudo-interface further.
mkpath($diffdir);
my $origdir = getcwd();
my $srcdir = $ENV{'srcdir'} || ".";
-# Default to unified diff and allow to fall back to basic diff if necessary.
-my $diff_flags = defined $ENV{'DIFF_FLAGS'} ? $ENV{'DIFF_FLAGS'} : '-u';
+# Default to unified context diff (on HP-UX diff does not support it, so
+# default to the closest alternative) and allow to fall back to another diff
+# format if necessary.
+my $diff_flags = defined $ENV{'DIFF_FLAGS'} ? $ENV{'DIFF_FLAGS'} :
+ $^O eq 'hpux' ? '-c' :
+ '-u';
#
# Force UTC, so time stamps are printed in a standard time zone, and