Remove configure --with-CC option
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 Feb 2024 13:05:09 +0000 (17:05 +0400)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 Feb 2024 13:05:09 +0000 (17:05 +0400)
It's been deprecated since commit cb292206c5 from July 2000.

Discussion: https://www.postgresql.org/message-id/a2a0f5d8-2d80-48e5-b8f7-0a0a6018c3b7@iki.fi

configure
configure.ac

index 2b3860b50f9d1f7be304bd623c3dc8ff11e72a38..46859a4244ee85fbad791372641ebe441bd03672 100755 (executable)
--- a/configure
+++ b/configure
@@ -845,7 +845,6 @@ with_blocksize
 with_segsize
 with_segsize_blocks
 with_wal_blocksize
-with_CC
 with_llvm
 enable_depend
 enable_cassert
@@ -1557,7 +1556,6 @@ Optional Packages:
                           set table segment size in blocks [0]
   --with-wal-blocksize=BLOCKSIZE
                           set WAL block size in kB [8]
-  --with-CC=CMD           set compiler (deprecated)
   --with-llvm             build with LLVM based JIT support
   --without-icu           build without ICU support
   --with-tcl              build Tcl modules (PL/Tcl)
@@ -3891,31 +3889,6 @@ _ACEOF
 # C compiler
 #
 
-# For historical reasons you can also use --with-CC to specify the C compiler
-# to use, although the standard way to do this is to set the CC environment
-# variable.
-
-
-
-# Check whether --with-CC was given.
-if test "${with_CC+set}" = set; then :
-  withval=$with_CC;
-  case $withval in
-    yes)
-      as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
-      ;;
-    no)
-      as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
-      ;;
-    *)
-      CC=$with_CC
-      ;;
-  esac
-
-fi
-
-
-
 # If you don't specify a list of compilers to test, the AC_PROG_CC and
 # AC_PROG_CXX macros test for a long list of unsupported compilers.
 pgac_cc_list="gcc cc"
index d034bf742add7bcde2e87acf2a68e0dcc0d67e39..88b75a7696cd1451ca9a7eab66c4298c12f31e74 100644 (file)
@@ -368,11 +368,6 @@ AC_DEFINE_UNQUOTED([XLOG_BLCKSZ], ${XLOG_BLCKSZ}, [
 # C compiler
 #
 
-# For historical reasons you can also use --with-CC to specify the C compiler
-# to use, although the standard way to do this is to set the CC environment
-# variable.
-PGAC_ARG_REQ(with, CC, [CMD], [set compiler (deprecated)], [CC=$with_CC])
-
 # If you don't specify a list of compilers to test, the AC_PROG_CC and
 # AC_PROG_CXX macros test for a long list of unsupported compilers.
 pgac_cc_list="gcc cc"