Index: share/mk/src.opts.mk =================================================================== --- share/mk/src.opts.mk +++ share/mk/src.opts.mk @@ -208,7 +208,6 @@ CLANG_FORMAT \ DTRACE_TESTS \ EXPERIMENTAL \ - GNU_GREP_COMPAT \ HESIOD \ LIBSOFT \ LOADER_FIREWIRE \ Index: tools/build/options/WITHOUT_GNU_GREP_COMPAT =================================================================== --- tools/build/options/WITHOUT_GNU_GREP_COMPAT +++ /dev/null @@ -1,3 +0,0 @@ -.\" $FreeBSD$ -Set this option to omit the gnu extensions to grep from being included in -BSD grep. Index: tools/build/options/WITH_GNU_GREP_COMPAT =================================================================== --- tools/build/options/WITH_GNU_GREP_COMPAT +++ /dev/null @@ -1,4 +0,0 @@ -.\" $FreeBSD$ -Set this option to include GNU extensions in -.Xr bsdgrep 1 -by linking against libgnuregex. Index: usr.bin/grep/Makefile =================================================================== --- usr.bin/grep/Makefile +++ usr.bin/grep/Makefile @@ -60,10 +60,7 @@ grep.1 rgrep.1 .endif -.if ${MK_GNU_GREP_COMPAT} != "no" -CFLAGS+= -DWITH_GNU_COMPAT LIBADD+= regex -.endif HAS_TESTS= SUBDIR.${MK_TESTS}+= tests Index: usr.bin/grep/grep.c =================================================================== --- usr.bin/grep/grep.c +++ usr.bin/grep/grep.c @@ -555,11 +555,7 @@ filebehave = FILE_MMAP; break; case 'V': -#ifdef WITH_GNU_COMPAT printf(errstr[9], getprogname(), VERSION); -#else - printf(errstr[8], getprogname(), VERSION); -#endif exit(0); case 'v': vflag = true;